protected void SetupUi() { base.ObjectName = "InsertLinkDialog"; this.Geometry = new QRect(0, 0, 287, 110); this.WindowTitle = "Insert Link"; QVBoxLayout verticalLayout; verticalLayout = new QVBoxLayout(this); verticalLayout.Margin = 6; QFormLayout formLayout; formLayout = new QFormLayout(); verticalLayout.AddLayout(formLayout); this.label_2 = new QLabel(this); this.label_2.ObjectName = "label_2"; this.label_2.Text = "URL:"; formLayout.SetWidget(0, QFormLayout.ItemRole.LabelRole, this.label_2); this.urlLineEdit = new QLineEdit(this); this.urlLineEdit.ObjectName = "urlLineEdit"; formLayout.SetWidget(0, QFormLayout.ItemRole.FieldRole, this.urlLineEdit); this.label = new QLabel(this); this.label.ObjectName = "label"; this.label.Text = "Text:"; formLayout.SetWidget(1, QFormLayout.ItemRole.LabelRole, this.label); this.textLineEdit = new QLineEdit(this); this.textLineEdit.ObjectName = "textLineEdit"; formLayout.SetWidget(1, QFormLayout.ItemRole.FieldRole, this.textLineEdit); this.buttonBox = new QDialogButtonBox(this); this.buttonBox.ObjectName = "buttonBox"; this.buttonBox.Orientation = Qt.Orientation.Horizontal; this.buttonBox.StandardButtons = (global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel") | global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok")); verticalLayout.AddWidget(this.buttonBox); QObject.Connect(buttonBox, Qt.SIGNAL("accepted()"), this, Qt.SLOT("accept()")); QObject.Connect(buttonBox, Qt.SIGNAL("rejected()"), this, Qt.SLOT("reject()")); QMetaObject.ConnectSlotsByName(this); }
public void HandleAccountAdded(Account account) { QApplication.Invoke(delegate { QTextEdit textEdit = new QTextEdit(this); textEdit.FrameShape = QFrame.Shape.NoFrame; textEdit.ReadOnly = true; QWidget widget = new QWidget(); QVBoxLayout layout = new QVBoxLayout(widget); layout.Margin = 0; layout.AddWidget(textEdit); m_XmlToolBox.AddItem(widget, account.Jid); m_AccountXmlWidgets.Add(account, widget); account.Client.OnWriteText += delegate(object sender, string txt) { QApplication.Invoke(delegate { if (enableConsoleCheckBox.Checked) textEdit.Append("<b>" + Qt.Escape(txt) + "</b><br/>"); }); }; account.Client.OnReadText += delegate(object sender, string txt) { QApplication.Invoke(delegate { if (enableConsoleCheckBox.Checked) textEdit.Append(Qt.Escape(txt) + "<br/>"); }); }; }); }
protected void SetupUi() { base.ObjectName = "TwitterConfigurationDialog"; this.WindowModality = Qt.WindowModality.NonModal; this.Geometry = new QRect(0, 0, 313, 137); this.WindowTitle = "Twitter Configuration"; this.Modal = true; QVBoxLayout verticalLayout; verticalLayout = new QVBoxLayout(this); verticalLayout.Margin = 6; QHBoxLayout horizontalLayout; horizontalLayout = new QHBoxLayout(); verticalLayout.AddLayout(horizontalLayout); this.logoLabel = new QLabel(this); this.logoLabel.ObjectName = "logoLabel"; this.logoLabel.MinimumSize = new QSize(48, 0); this.logoLabel.Text = ""; horizontalLayout.AddWidget(this.logoLabel); QVBoxLayout verticalLayout_2; verticalLayout_2 = new QVBoxLayout(); horizontalLayout.AddLayout(verticalLayout_2); this.label = new QLabel(this); this.label.ObjectName = "label"; QSizePolicy label_sizePolicy; label_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Minimum); label_sizePolicy.SetVerticalStretch(0); label_sizePolicy.SetHorizontalStretch(0); label_sizePolicy.SetHeightForWidth(this.label.SizePolicy.HasHeightForWidth()); this.label.SizePolicy = label_sizePolicy; this.label.Text = "Enter your Twitter account information:"; verticalLayout_2.AddWidget(this.label); QGridLayout gridLayout_2; gridLayout_2 = new QGridLayout(); verticalLayout_2.AddLayout(gridLayout_2); gridLayout_2.sizeConstraint = QLayout.SizeConstraint.SetMaximumSize; this.label_2 = new QLabel(this); this.label_2.ObjectName = "label_2"; this.label_2.Text = "Username:"******"usernameLineEdit"; gridLayout_2.AddWidget(this.usernameLineEdit, 0, 1, 1, 1); this.label_3 = new QLabel(this); this.label_3.ObjectName = "label_3"; this.label_3.Text = "Password:"******"passwordLineEdit"; this.passwordLineEdit.echoMode = QLineEdit.EchoMode.Password; gridLayout_2.AddWidget(this.passwordLineEdit, 1, 1, 1, 1); this.buttonBox = new QDialogButtonBox(this); this.buttonBox.ObjectName = "buttonBox"; this.buttonBox.Orientation = Qt.Orientation.Horizontal; this.buttonBox.StandardButtons = (global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel") | global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok")); verticalLayout.AddWidget(this.buttonBox); QObject.Connect(buttonBox, Qt.SIGNAL("accepted()"), this, Qt.SLOT("accept()")); QObject.Connect(buttonBox, Qt.SIGNAL("rejected()"), this, Qt.SLOT("reject()")); QMetaObject.ConnectSlotsByName(this); }
public MainWindow() { SetupUi(); base.WindowFlags = (uint)Qt.WindowType.FramelessWindowHint; closeButton.icon = new QIcon(new QPixmap("resource:/stock-close_12.png")); menuButton.icon = new QIcon(new QPixmap("resource:/menu-icon.png")); // FIXME: Add a global "Application Icon" somewhere that contains multiple sizes. QPixmap pixmap = new QPixmap("resource:/octy-22.png"); base.WindowIcon = new QIcon(pixmap); m_NoAccountsStyleSheet = Util.ReadResource("mainwindow-noaccounts.qss"); m_StyleSheet = Util.ReadResource("mainwindow.qss"); containerWidget.SetStyleSheet(m_StyleSheet); QVBoxLayout layout = new QVBoxLayout(); layout.SetContentsMargins(0, 0, 0, 0); contentWidget.SetLayout(layout); m_RosterWidget = new RosterWidget(contentWidget); contentWidget.Layout().AddWidget(m_RosterWidget); m_NoAccountsWidget = new NoAccountsWidget(contentWidget); contentWidget.Layout().AddWidget(m_NoAccountsWidget); // This makes the shortcut work. base.AddAction(Gui.GlobalActions.QuitAction); m_MainMenu = new QMenu(this); m_MainMenu.AddAction(Gui.GlobalActions.NewMessageAction); m_MainMenu.AddAction(Gui.GlobalActions.JoinConferenceAction); m_MainMenu.AddAction(Gui.GlobalActions.ShowBrowserAction); m_MainMenu.AddAction(Gui.GlobalActions.EditProfileAction); m_MainMenu.AddAction(Gui.GlobalActions.ChangeStatusAction); m_MainMenu.AddSeparator(); m_MainMenu.AddAction(Gui.GlobalActions.ShowPreferencesAction); m_MainMenu.AddSeparator(); m_MainMenu.AddAction(Gui.GlobalActions.AboutAction); m_MainMenu.AddAction(Gui.GlobalActions.SendFeedbackAction); m_MainMenu.AddSeparator(); m_MainMenu.AddAction(Gui.GlobalActions.QuitAction); Gui.CenterWidgetOnScreen(this); headerLabel.InstallEventFilter(new WindowMover(this)); AccountService accountService = ServiceManager.Get<AccountService>(); accountService.AccountAdded += AddAccount; accountService.AccountRemoved += RemoveAccount; foreach (Account account in accountService.Accounts) { AddAccount(account); } }
protected void SetupUi() { base.ObjectName = "ChatWindow"; this.Geometry = new QRect(0, 0, 562, 331); this.WindowTitle = "Chat window"; this.StyleSheet = ""; QHBoxLayout horizontalLayout; horizontalLayout = new QHBoxLayout(this); horizontalLayout.Spacing = 0; horizontalLayout.Margin = 0; this.splitter_2 = new QSplitter(this); this.splitter_2.ObjectName = "splitter_2"; this.splitter_2.Orientation = Qt.Orientation.Horizontal; horizontalLayout.AddWidget(this.splitter_2); this.splitter = new QSplitter(this.splitter_2); this.splitter.ObjectName = "splitter"; QSizePolicy splitter_sizePolicy; splitter_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Expanding); splitter_sizePolicy.SetVerticalStretch(0); splitter_sizePolicy.SetHorizontalStretch(1); splitter_sizePolicy.SetHeightForWidth(this.splitter.SizePolicy.HasHeightForWidth()); this.splitter.SizePolicy = splitter_sizePolicy; this.splitter.Orientation = Qt.Orientation.Vertical; this.splitter.OpaqueResize = true; this.splitter.ChildrenCollapsible = false; this.splitter_2.AddWidget(this.splitter); this.m_ConversationWidget = new Synapse.QtClient.Widgets.ConversationWidget(this.splitter); this.m_ConversationWidget.ObjectName = "m_ConversationWidget"; this.m_ConversationWidget.Url = new QUrl("about:blank"); this.splitter.AddWidget(this.m_ConversationWidget); this.bottomContainer = new QWidget(this.splitter); this.bottomContainer.ObjectName = "bottomContainer"; QVBoxLayout verticalLayout; verticalLayout = new QVBoxLayout(this.bottomContainer); verticalLayout.Spacing = 0; verticalLayout.Margin = 0; this.textEdit = new Synapse.QtClient.Widgets.ConversationTextEdit(this.bottomContainer); this.textEdit.ObjectName = "textEdit"; this.textEdit.MinimumSize = new QSize(0, 40); this.textEdit.FrameShape = QFrame.Shape.NoFrame; verticalLayout.AddWidget(this.textEdit); this.splitter.AddWidget(this.bottomContainer); this.rightContainer = new QWidget(this.splitter_2); this.rightContainer.ObjectName = "rightContainer"; QVBoxLayout verticalLayout_2; verticalLayout_2 = new QVBoxLayout(this.rightContainer); verticalLayout_2.Margin = 0; this.participantsGrid = new Synapse.QtClient.Widgets.AvatarGrid<jabber.connection.RoomParticipant>(this.rightContainer); this.participantsGrid.ObjectName = "participantsGrid"; this.participantsGrid.FrameShape = QFrame.Shape.NoFrame; this.participantsGrid.Alignment = ((global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeading") | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeft")) | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignTop")); verticalLayout_2.AddWidget(this.participantsGrid); this.splitter_2.AddWidget(this.rightContainer); QMetaObject.ConnectSlotsByName(this); }
public Window() { layout = new QVBoxLayout(this); browser = new QTextBrowser(this); button = new QPushButton("Toggle Text",this); Connect(button,SIGNAL("clicked()"),this,SLOT("toggleText()")); toggled = false; layout.AddWidget(browser); layout.AddWidget(button); SetLayout(layout); }
public MainWindow(string name) : base((QWidget) null) { ObjectName = name; SetCaption("KDE Tutorial - p5"); QMenu filemenu = new QMenu(KDE.I18n("&File"), this); filemenu.AddAction(KDE.I18n("&Quit"), KApplication.kApplication(), SLOT("quit()")); string about = KDE.I18n("p5 1.0\n\n" + "(C) 1999-2002 Antonio Larrosa Jimenez\n" + "[email protected]\t\[email protected]\n" + "Malaga (Spain)\n\n" + "Simple KDE Tutorial\n" + "This tutorial comes with ABSOLUTELY NO WARRANTY\n" + "This is free software, and you are welcome to redistribute it\n" + "under certain conditions\n"); QMenu helpmenu = HelpMenu(about); KMenuBar menu = MenuBar(); menu.AddMenu(filemenu); menu.AddSeparator(); menu.AddMenu(helpmenu); location = new QLineEdit(); location.Text = "http://localhost"; Connect( location , SIGNAL("returnPressed()"), this, SLOT("changeLocation()") ); QSplitter split = new QSplitter(); split.OpaqueResize = true; QWidget widget = new QWidget(this); QVBoxLayout vbox = new QVBoxLayout(widget); vbox.AddWidget(location); vbox.AddWidget(split); QPushButton bookmark = new QPushButton(KDE.I18n("Add to Bookmarks"), split); Connect(bookmark, SIGNAL("clicked()"), this, SLOT("BookLocation()")); browser = new KHTMLPart(split); browser.OpenUrl(new KUrl(location.Text)); Connect( browser.BrowserExtension(), SIGNAL("openUrlRequest(KUrl, KParts::OpenUrlArguments)"), this, SLOT("OpenUrlRequest(KUrl, KParts::OpenUrlArguments)") ); SetCentralWidget(widget); }
public MyWidget(QWidget parent) : base(parent) { QPushButton quit = new QPushButton("&Quit"); quit.Font = new QFont("Times", 18, (int) QFont.Weight.Bold); Connect(quit, SIGNAL("clicked()"), qApp, SLOT("quit()")); LCDRange angle = new LCDRange(null); angle.setRange(5, 70); LCDRange force = new LCDRange(null); force.setRange(10, 50); CannonField cannonField = new CannonField(null); Connect(angle, SIGNAL("valueChanged(int)"), cannonField, SLOT("setAngle(int)")); Connect(cannonField, SIGNAL("angleChanged(int)"), angle, SLOT("setValue(int)")); Connect(force, SIGNAL("valueChanged(int)"), cannonField, SLOT("setForce(int)")); Connect(cannonField, SIGNAL("forceChanged(int)"), force, SLOT("setValue(int)")); QPushButton shoot = new QPushButton("&Shoot"); shoot.Font = new QFont("Times", 18, (int) QFont.Weight.Bold); Connect(shoot, SIGNAL("clicked()"), cannonField, SLOT("shoot()")); QHBoxLayout topLayout = new QHBoxLayout(); topLayout.AddWidget(shoot); topLayout.AddStretch(1); QVBoxLayout leftLayout = new QVBoxLayout(); leftLayout.AddWidget(angle); leftLayout.AddWidget(force); QGridLayout gridLayout = new QGridLayout(); gridLayout.AddWidget(quit, 0, 0); gridLayout.AddLayout(topLayout, 0, 1); gridLayout.AddLayout(leftLayout, 1, 0); gridLayout.AddWidget(cannonField, 1, 1, 2, 1); gridLayout.SetColumnStretch(1, 10); SetLayout(gridLayout); angle.setValue(60); force.setValue(25); angle.SetFocus(); }
protected void SetupUi() { base.ObjectName = "AboutDialog"; this.Geometry = new QRect(0, 0, 384, 492); this.MinimumSize = new QSize(384, 0); this.WindowTitle = "About Synapse"; this.StyleSheet = "#AboutDialog {\n\tmax-width: 384px;\n\tbackground: #010409 url(resource:/oceanbg.png) no-repeat top center;\n}\n\nQWidget {\n\tcolor: white;\n}\n\nQGraphicsView, QTextBrowser {\n\tbackground: transparent;\n}\n\nQPushButton[flat=\"false\"] {\n\tborder: 1px solid #2B2D31;\n\tborder-radius: 3px;\n\tbackground-color: #2B2D31;\n\tpadding: 3px;\n}\n\n#textLabel {\n\tmargin-bottom: 12px;\n}\n\nQScrollBar:vertical {\n\tborder: 0px;\n\tbackground: transparent;\n\twidth: 15px;\n\tmargin: 0px;\n}\n\nQScrollBar::handle:vertical {\n\tbackground: #4F4F4F;\n\tmin-height: 20px;\n\tborder: 1px solid #4F4F4F;\n\tborder-radius: 5px;\n}\n\nQScrollBar::add-line:vertical {\n\theight: 0px;\n\tborder: 0px;\n}\n\nQScrollBar::sub-line:vertical {\n\theight: 0px;\n}\n\nQScrollBar::add-page:vertical, \nQScrollBar::sub-page:vertical {\n\tbackground: none;\n}"; QVBoxLayout verticalLayout; verticalLayout = new QVBoxLayout(this); verticalLayout.Spacing = 6; verticalLayout.Margin = 6; this.widget = new QWidget(this); this.widget.ObjectName = "widget"; QHBoxLayout horizontalLayout; horizontalLayout = new QHBoxLayout(this.widget); horizontalLayout.Margin = 0; this.graphicsView = new QGraphicsView(this.widget); this.graphicsView.ObjectName = "graphicsView"; this.graphicsView.MinimumSize = new QSize(0, 250); this.graphicsView.FrameShape = QFrame.Shape.NoFrame; horizontalLayout.AddWidget(this.graphicsView); verticalLayout.AddWidget(this.widget); this.textLabel = new QLabel(this); this.textLabel.ObjectName = "textLabel"; this.textLabel.Text = ""; this.textLabel.Alignment = global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignCenter"); verticalLayout.AddWidget(this.textLabel); this.textBrowser = new QTextBrowser(this); this.textBrowser.ObjectName = "textBrowser"; this.textBrowser.MaximumSize = new QSize(16777215, 120); this.textBrowser.FrameShape = QFrame.Shape.NoFrame; this.textBrowser.FrameShadow = QFrame.Shadow.Plain; this.textBrowser.Html = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\np, li { white-space: pre-wrap; }\n</style></head><body style=\" font-family:'Bitstream Vera Sans'; font-size:9pt; font-weight:400; font-style:normal;\">\n<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Created By</span></p>\n<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;\"></p>\n<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;\"><a href=\"#message-eric\"><span style=\" font-weight:400; text-decoration: underline; color:#ffffff;\">Eric Butler</span></a></p>\n<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"></p>\n<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Special Thanks To</span></p>\n<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;\"></p>\n<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;\"><span style=\" font-weight:400;\">Chris Hergert</span></p>\n<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Allison Hughes</p>\n<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Arno Rehn</p>\n<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Darryl Ring</p></body></html>"; verticalLayout.AddWidget(this.textBrowser); QHBoxLayout horizontalLayout_2; horizontalLayout_2 = new QHBoxLayout(); verticalLayout.AddLayout(horizontalLayout_2); this.sendFeedbackButton = new QPushButton(this); this.sendFeedbackButton.ObjectName = "sendFeedbackButton"; this.sendFeedbackButton.Text = "Send Feedback"; horizontalLayout_2.AddWidget(this.sendFeedbackButton); this.buttonBox = new QDialogButtonBox(this); this.buttonBox.ObjectName = "buttonBox"; this.buttonBox.Orientation = Qt.Orientation.Horizontal; this.buttonBox.StandardButtons = global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Close"); horizontalLayout_2.AddWidget(this.buttonBox); QObject.Connect(buttonBox, Qt.SIGNAL("rejected()"), this, Qt.SLOT("reject()")); QObject.Connect(buttonBox, Qt.SIGNAL("accepted()"), this, Qt.SLOT("accept()")); QObject.Connect(buttonBox, Qt.SIGNAL("accepted()"), this, Qt.SLOT("accept()")); QMetaObject.ConnectSlotsByName(this); }
public MainTabWidget(QWidget parent) : base(parent) { var layout = new QVBoxLayout(this); layout.Spacing = 0; layout.Margin = 0; m_Pages = new QStackedWidget(this); m_Pages.Layout().Margin = 0; layout.AddWidget(m_Pages, 1); m_TabBar = new TabBar(this); layout.AddWidget(m_TabBar, 0); }
protected void SetupUi() { base.ObjectName = "DebugWindow"; this.Geometry = new QRect(0, 0, 518, 405); this.WindowTitle = "DebugWindow"; QVBoxLayout verticalLayout; verticalLayout = new QVBoxLayout(this); this.tabWidget = new QTabWidget(this); this.tabWidget.ObjectName = "tabWidget"; this.tabWidget.CurrentIndex = 0; verticalLayout.AddWidget(this.tabWidget); this.tab = new QWidget(this.tabWidget); this.tab.ObjectName = "tab"; QVBoxLayout verticalLayout_3; verticalLayout_3 = new QVBoxLayout(this.tab); verticalLayout_3.Spacing = 0; verticalLayout_3.Margin = 0; this.m_XmlToolBox = new QToolBox(this.tab); this.m_XmlToolBox.ObjectName = "m_XmlToolBox"; QSizePolicy m_XmlToolBox_sizePolicy; m_XmlToolBox_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Expanding); m_XmlToolBox_sizePolicy.SetVerticalStretch(0); m_XmlToolBox_sizePolicy.SetHorizontalStretch(0); m_XmlToolBox_sizePolicy.SetHeightForWidth(this.m_XmlToolBox.SizePolicy.HasHeightForWidth()); this.m_XmlToolBox.SizePolicy = m_XmlToolBox_sizePolicy; verticalLayout_3.AddWidget(this.m_XmlToolBox); this.line = new QFrame(this.tab); this.line.ObjectName = "line"; this.line.FrameShape = QFrame.Shape.HLine; this.line.FrameShadow = QFrame.Shadow.Sunken; verticalLayout_3.AddWidget(this.line); QHBoxLayout horizontalLayout; horizontalLayout = new QHBoxLayout(); verticalLayout_3.AddLayout(horizontalLayout); horizontalLayout.sizeConstraint = QLayout.SizeConstraint.SetDefaultConstraint; horizontalLayout.Margin = 6; this.enableConsoleCheckBox = new QCheckBox(this.tab); this.enableConsoleCheckBox.ObjectName = "enableConsoleCheckBox"; this.enableConsoleCheckBox.Text = "Enable"; horizontalLayout.AddWidget(this.enableConsoleCheckBox); QSpacerItem horizontalSpacer; horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum); horizontalLayout.AddItem(horizontalSpacer); this.clearConsoleButton = new QPushButton(this.tab); this.clearConsoleButton.ObjectName = "clearConsoleButton"; this.clearConsoleButton.Text = "Clear"; horizontalLayout.AddWidget(this.clearConsoleButton); this.tabWidget.AddTab(this.tab, "XML Console"); QMetaObject.ConnectSlotsByName(this); }
protected void SetupUi() { base.ObjectName = "ServiceBrowserWindow"; this.Geometry = new QRect(0, 0, 484, 401); this.WindowTitle = "XMPP Browser"; QVBoxLayout verticalLayout; verticalLayout = new QVBoxLayout(this); verticalLayout.Spacing = 0; verticalLayout.Margin = 0; this.webView = new QWebView(this); this.webView.ObjectName = "webView"; this.webView.Url = new QUrl("about:blank"); verticalLayout.AddWidget(this.webView); QMetaObject.ConnectSlotsByName(this); }
public LCDRange(QWidget parent) : base(parent) { QLCDNumber lcd = new QLCDNumber( 2, this ); lcd.segmentStyle = QLCDNumber.SegmentStyle.Filled; QSlider slider = new QSlider( Orientation.Horizontal, this ); slider.SetRange( 0, 99 ); slider.Value = 0; Connect( slider, SIGNAL("valueChanged(int)"), lcd, SLOT("display(int)") ); QVBoxLayout layout = new QVBoxLayout(); layout.AddWidget(lcd); layout.AddWidget(slider); SetLayout(layout); }
protected void SetupUi() { base.ObjectName = "WebIdentityConfiguratorWidget"; this.Geometry = new QRect(0, 0, 540, 61); this.WindowTitle = "WebIdentityConfiguratorWidget"; QVBoxLayout verticalLayout_2; verticalLayout_2 = new QVBoxLayout(this); verticalLayout_2.Spacing = 6; verticalLayout_2.Margin = 0; QHBoxLayout horizontalLayout; horizontalLayout = new QHBoxLayout(); verticalLayout_2.AddLayout(horizontalLayout); horizontalLayout.Spacing = 6; this.iconLabel = new QLabel(this); this.iconLabel.ObjectName = "iconLabel"; this.iconLabel.MinimumSize = new QSize(48, 0); this.iconLabel.Text = ""; horizontalLayout.AddWidget(this.iconLabel); this.nameLabel = new QLabel(this); this.nameLabel.ObjectName = "nameLabel"; QSizePolicy nameLabel_sizePolicy; nameLabel_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Preferred); nameLabel_sizePolicy.SetVerticalStretch(0); nameLabel_sizePolicy.SetHorizontalStretch(0); nameLabel_sizePolicy.SetHeightForWidth(this.nameLabel.SizePolicy.HasHeightForWidth()); this.nameLabel.SizePolicy = nameLabel_sizePolicy; this.nameLabel.Text = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\np, li { white-space: pre-wrap; }\n</style></head><body style=\" font-family:'Bitstream Vera Sans'; font-size:9pt; font-weight:400; font-style:normal;\">\n<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Addin Name</span></p>\n<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;\"><span style=\" font-weight:400;\">Addin description.</span></p></body></html>"; this.nameLabel.Alignment = ((global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeading") | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeft")) | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignVCenter")); this.nameLabel.WordWrap = true; horizontalLayout.AddWidget(this.nameLabel); this.widget = new QWidget(this); this.widget.ObjectName = "widget"; QVBoxLayout verticalLayout; verticalLayout = new QVBoxLayout(this.widget); verticalLayout.Margin = 0; this.configureButton = new QPushButton(this.widget); this.configureButton.ObjectName = "configureButton"; this.configureButton.Text = "Configure..."; verticalLayout.AddWidget(this.configureButton); horizontalLayout.AddWidget(this.widget); this.line = new QFrame(this); this.line.ObjectName = "line"; this.line.FrameShape = QFrame.Shape.HLine; this.line.FrameShadow = QFrame.Shadow.Sunken; verticalLayout_2.AddWidget(this.line); QMetaObject.ConnectSlotsByName(this); }
protected void SetupUi() { base.ObjectName = "AccountStatusWidget"; this.Geometry = new QRect(0, 0, 416, 47); QSizePolicy AccountStatusWidget_sizePolicy; AccountStatusWidget_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Minimum); AccountStatusWidget_sizePolicy.SetVerticalStretch(0); AccountStatusWidget_sizePolicy.SetHorizontalStretch(0); AccountStatusWidget_sizePolicy.SetHeightForWidth(this.SizePolicy.HasHeightForWidth()); this.SizePolicy = AccountStatusWidget_sizePolicy; this.WindowTitle = "Form"; QHBoxLayout horizontalLayout; horizontalLayout = new QHBoxLayout(this); horizontalLayout.Spacing = 6; horizontalLayout.SetContentsMargins(6, 0, 6, 6); this.m_AvatarLabel = new Synapse.QtClient.Widgets.AvatarLabel(this); this.m_AvatarLabel.ObjectName = "m_AvatarLabel"; QSizePolicy m_AvatarLabel_sizePolicy; m_AvatarLabel_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed); m_AvatarLabel_sizePolicy.SetVerticalStretch(0); m_AvatarLabel_sizePolicy.SetHorizontalStretch(0); m_AvatarLabel_sizePolicy.SetHeightForWidth(this.m_AvatarLabel.SizePolicy.HasHeightForWidth()); this.m_AvatarLabel.SizePolicy = m_AvatarLabel_sizePolicy; this.m_AvatarLabel.MinimumSize = new QSize(36, 36); this.m_AvatarLabel.MaximumSize = new QSize(32, 32); horizontalLayout.AddWidget(this.m_AvatarLabel); QVBoxLayout verticalLayout; verticalLayout = new QVBoxLayout(); horizontalLayout.AddLayout(verticalLayout); verticalLayout.Spacing = 0; this.m_NameLabel = new Synapse.QtClient.Widgets.FadingQLabel(this); this.m_NameLabel.ObjectName = "m_NameLabel"; this.m_NameLabel.Text = "test@localhost"; this.m_NameLabel.TextFormat = Qt.TextFormat.RichText; verticalLayout.AddWidget(this.m_NameLabel); this.m_StatusLabel = new QLabel(this); this.m_StatusLabel.ObjectName = "m_StatusLabel"; this.m_StatusLabel.Text = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\np, li { white-space: pre-wrap; }\n</style></head><body style=\" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;\">\n<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><a href=\"#show-presence-menu\"><span style=\" text-decoration: underline; color:#0057ae;\">Offline</span></a></p></body></html>"; this.m_StatusLabel.ScaledContents = false; this.m_StatusLabel.OpenExternalLinks = false; this.m_StatusLabel.TextInteractionFlags = global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "LinksAccessibleByMouse"); verticalLayout.AddWidget(this.m_StatusLabel); QMetaObject.ConnectSlotsByName(this); }
public MyWidget(QWidget parent) : base(parent) { QPushButton quit = new QPushButton( "Quit", this ); quit.Font = new QFont( "Times", 18, (int) QFont.Weight.Bold ); Connect( quit, SIGNAL("clicked()"), qApp, SLOT("quit()") ); QGridLayout grid = new QGridLayout(); for ( int row = 0; row < 3; row++ ) { for ( int column = 0; column < 3; column++ ) { LCDRange lcdRange = new LCDRange(); grid.AddWidget(lcdRange, row, column); } } QVBoxLayout layout = new QVBoxLayout(); layout.AddWidget(quit); layout.AddLayout(grid); SetLayout(layout); }
public MyWidget(QWidget parent) : base(parent) { QPushButton quit = new QPushButton(Tr("Quit")); quit.Font = new QFont("Times", 18, (int) QFont.Weight.Bold); QLCDNumber lcd = new QLCDNumber(2); lcd.segmentStyle = QLCDNumber.SegmentStyle.Filled; QSlider slider = new QSlider(Qt.Orientation.Horizontal); slider.SetRange(0, 99); slider.Value = 0; Connect(quit, SIGNAL("clicked()"), qApp, SLOT("quit()")); Connect(slider, SIGNAL("valueChanged(int)"), lcd, SLOT("display(int)")); QVBoxLayout layout = new QVBoxLayout(); layout.AddWidget(quit); layout.AddWidget(lcd); layout.AddWidget(slider); SetLayout(layout); }
protected void SetupUi() { base.ObjectName = "EditGroupsWindow"; this.Geometry = new QRect(0, 0, 250, 344); this.WindowTitle = "EditGroupsWindow"; QVBoxLayout verticalLayout; verticalLayout = new QVBoxLayout(this); verticalLayout.Margin = 6; QSpacerItem verticalSpacer; verticalSpacer = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding); verticalLayout.AddItem(verticalSpacer); this.label = new QLabel(this); this.label.ObjectName = "label"; QSizePolicy label_sizePolicy; label_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Minimum); label_sizePolicy.SetVerticalStretch(0); label_sizePolicy.SetHorizontalStretch(0); label_sizePolicy.SetHeightForWidth(this.label.SizePolicy.HasHeightForWidth()); this.label.SizePolicy = label_sizePolicy; this.label.Text = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\np, li { white-space: pre-wrap; }\n</style></head><body style=\" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;\">\n<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Edit Groups</span></p></body></html>"; verticalLayout.AddWidget(this.label); this.jidLabel = new QLabel(this); this.jidLabel.ObjectName = "jidLabel"; this.jidLabel.Text = ""; verticalLayout.AddWidget(this.jidLabel); this.groupsWidget = new Synapse.QtClient.Widgets.EditGroupsWidget(this); this.groupsWidget.ObjectName = "groupsWidget"; verticalLayout.AddWidget(this.groupsWidget); this.buttonBox = new QDialogButtonBox(this); this.buttonBox.ObjectName = "buttonBox"; verticalLayout.AddWidget(this.buttonBox); QSpacerItem verticalSpacer_2; verticalSpacer_2 = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding); verticalLayout.AddItem(verticalSpacer_2); QMetaObject.ConnectSlotsByName(this); }
protected void SetupUi() { base.ObjectName = "EditGroupsWidget"; this.Geometry = new QRect(0, 0, 212, 239); this.WindowTitle = "EditGroupsWidget"; QVBoxLayout verticalLayout; verticalLayout = new QVBoxLayout(this); verticalLayout.Spacing = 3; verticalLayout.Margin = 0; this.listWidget = new QListWidget(this); this.listWidget.ObjectName = "listWidget"; QSizePolicy listWidget_sizePolicy; listWidget_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Expanding); listWidget_sizePolicy.SetVerticalStretch(0); listWidget_sizePolicy.SetHorizontalStretch(0); listWidget_sizePolicy.SetHeightForWidth(this.listWidget.SizePolicy.HasHeightForWidth()); this.listWidget.SizePolicy = listWidget_sizePolicy; this.listWidget.MinimumSize = new QSize(0, 50); this.listWidget.FrameShape = QFrame.Shape.NoFrame; verticalLayout.AddWidget(this.listWidget); QGridLayout gridLayout; gridLayout = new QGridLayout(); verticalLayout.AddLayout(gridLayout); this.label_2 = new QLabel(this); this.label_2.ObjectName = "label_2"; this.label_2.Text = "Add Group:"; gridLayout.AddWidget(this.label_2, 0, 0, 1, 1); this.lineEdit = new QLineEdit(this); this.lineEdit.ObjectName = "lineEdit"; gridLayout.AddWidget(this.lineEdit, 0, 1, 1, 1); this.addButton = new QPushButton(this); this.addButton.ObjectName = "addButton"; this.addButton.Text = ""; gridLayout.AddWidget(this.addButton, 0, 2, 1, 1); QMetaObject.ConnectSlotsByName(this); }
public GameBoard(QWidget parent) : base(parent) { QPushButton quit = new QPushButton("&Quit"); quit.Font = new QFont("Times", 18, (int) QFont.Weight.Bold); Connect(quit, SIGNAL("clicked()"), qApp, SLOT("quit()")); LCDRange angle = new LCDRange(Tr("ANGLE")); angle.SetRange(5, 70); LCDRange force = new LCDRange(Tr("FORCE")); force.SetRange(10, 50); QFrame cannonBox = new QFrame(); cannonBox.SetFrameStyle((int) QFrame.Shape.WinPanel | (int) QFrame.Shadow.Sunken); cannonField = new CannonField(); Connect(angle, SIGNAL("ValueChanged(int)"), cannonField, SLOT("SetAngle(int)")); Connect(cannonField, SIGNAL("AngleChanged(int)"), angle, SLOT("SetValue(int)")); Connect(force, SIGNAL("ValueChanged(int)"), cannonField, SLOT("SetForce(int)")); Connect(cannonField, SIGNAL("ForceChanged(int)"), force, SLOT("SetValue(int)")); Connect(cannonField, SIGNAL("Hit()"), this, SLOT("Hit()")); Connect(cannonField, SIGNAL("Missed()"), this, SLOT("Missed()")); QPushButton shoot = new QPushButton("&Shoot"); shoot.Font = new QFont("Times", 18, (int) QFont.Weight.Bold); Connect(shoot, SIGNAL("clicked()"), this, SLOT("Fire()")); Connect(cannonField, SIGNAL("CanShoot(bool)"), shoot, SLOT("setEnabled(bool)")); QPushButton restart = new QPushButton(Tr("&New Game")); restart.Font = new QFont("Times", 18, (int) QFont.Weight.Bold); Connect(restart, SIGNAL("clicked()"), this, SLOT("NewGame()")); hits = new QLCDNumber(2); hits.segmentStyle = QLCDNumber.SegmentStyle.Filled; shotsLeft = new QLCDNumber(2); shotsLeft.segmentStyle = QLCDNumber.SegmentStyle.Filled; QLabel hitsLabel = new QLabel(Tr("HITS")); QLabel shotsLeftLabel = new QLabel(Tr("SHOTS LEFT")); new QShortcut(Qt.Key.Key_Enter, this, SLOT("Fire()")); new QShortcut(Qt.Key.Key_Return, this, SLOT("Fire()")); new QShortcut((int) Qt.Modifier.CTRL + (int) Qt.Key.Key_Q, this, SLOT("close()")); QHBoxLayout topLayout = new QHBoxLayout(); topLayout.AddWidget(shoot); topLayout.AddWidget(hits); topLayout.AddWidget(hitsLabel); topLayout.AddWidget(shotsLeft); topLayout.AddWidget(shotsLeftLabel); topLayout.AddStretch(1); topLayout.AddWidget(restart); QVBoxLayout leftLayout = new QVBoxLayout(); leftLayout.AddWidget(angle); leftLayout.AddWidget(force); QVBoxLayout cannonLayout = new QVBoxLayout(); cannonLayout.AddWidget(cannonField); cannonBox.SetLayout(cannonLayout); QGridLayout gridLayout = new QGridLayout(); gridLayout.AddWidget(quit, 0, 0); gridLayout.AddLayout(topLayout, 0, 1); gridLayout.AddLayout(leftLayout, 1, 0); gridLayout.AddWidget(cannonBox, 1, 1, 2, 1); gridLayout.SetColumnStretch(1, 10); SetLayout(gridLayout); angle.SetValue(60); force.SetValue(25); angle.SetFocus(); NewGame(); }
public void SetupUi(QDialog AboutDialog) { if (AboutDialog.ObjectName == "") AboutDialog.ObjectName = "AboutDialog"; QSize Size = new QSize(660, 460); Size = Size.ExpandedTo(AboutDialog.MinimumSizeHint()); AboutDialog.Size = Size; AboutDialog.MinimumSize = new QSize(660, 460); AboutDialog.WindowIcon = new QIcon(":/main/resources/monosim_128.png"); AboutDialog.Modal = true; gridLayout = new QGridLayout(AboutDialog); gridLayout.ObjectName = "gridLayout"; vboxLayout = new QVBoxLayout(); vboxLayout.ObjectName = "vboxLayout"; FrameTop = new QFrame(AboutDialog); FrameTop.ObjectName = "FrameTop"; FrameTop.MinimumSize = new QSize(0, 64); FrameTop.AutoFillBackground = false; FrameTop.FrameShape = QFrame.Shape.StyledPanel; FrameTop.FrameShadow = QFrame.Shadow.Raised; gridLayout1 = new QGridLayout(FrameTop); gridLayout1.ObjectName = "gridLayout1"; Logo = new QWidget(FrameTop); Logo.ObjectName = "Logo"; Logo.MinimumSize = new QSize(48, 48); Logo.MaximumSize = new QSize(48, 48); Logo.StyleSheet = "background-image: url(:/main/resources/monosim_48.png);"; gridLayout1.AddWidget(Logo, 0, 0, 1, 1); vboxLayout1 = new QVBoxLayout(); vboxLayout1.ObjectName = "vboxLayout1"; LblName = new QLabel(FrameTop); LblName.ObjectName = "LblName"; QFont font = new QFont(); font.SetBold(true); font.SetWeight(75); LblName.Font = font; LblName.Margin = 1; vboxLayout1.AddWidget(LblName); LblDesc = new QLabel(FrameTop); LblDesc.ObjectName = "LblDesc"; LblDesc.Margin = 1; vboxLayout1.AddWidget(LblDesc); gridLayout1.AddLayout(vboxLayout1, 0, 1, 1, 1); vboxLayout.AddWidget(FrameTop); tabInfo = new QTabWidget(AboutDialog); tabInfo.ObjectName = "tabInfo"; tabInfo.AutoFillBackground = false; Informations = new QWidget(); Informations.ObjectName = "Informations"; gridLayout2 = new QGridLayout(Informations); gridLayout2.ObjectName = "gridLayout2"; TxtInfo = new QTextEdit(Informations); TxtInfo.ObjectName = "TxtInfo"; TxtInfo.lineWrapMode = QTextEdit.LineWrapMode.NoWrap; TxtInfo.ReadOnly = true; gridLayout2.AddWidget(TxtInfo, 0, 0, 1, 1); tabInfo.AddTab(Informations, QApplication.Translate("AboutDialog", "Informazioni su", null, QApplication.Encoding.UnicodeUTF8)); Components = new QWidget(); Components.ObjectName = "Components"; gridLayout3 = new QGridLayout(Components); gridLayout3.ObjectName = "gridLayout3"; TxtThanks = new QTextEdit(Components); TxtThanks.ObjectName = "TxtThanks"; TxtThanks.ReadOnly = true; gridLayout3.AddWidget(TxtThanks, 0, 0, 1, 1); tabInfo.AddTab(Components, QApplication.Translate("AboutDialog", "Componenti", null, QApplication.Encoding.UnicodeUTF8)); vboxLayout.AddWidget(tabInfo); buttonBox = new QDialogButtonBox(AboutDialog); buttonBox.ObjectName = "buttonBox"; buttonBox.StandardButtons = Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok"); vboxLayout.AddWidget(buttonBox); gridLayout.AddLayout(vboxLayout, 0, 0, 1, 1); RetranslateUi(AboutDialog); tabInfo.CurrentIndex = 0; QMetaObject.ConnectSlotsByName(AboutDialog); } // SetupUi
public MyWidget(QWidget parent) : base(parent) { QPushButton quit = new QPushButton("Quit"); Connect(quit, SIGNAL("clicked()"), qApp, SLOT("quit()")); QGridLayout grid = new QGridLayout(); LCDRange previousRange = null; for (int row = 0; row < 3; ++row) { for (int column = 0; column < 3; ++column) { LCDRange lcdRange = new LCDRange(); grid.AddWidget(lcdRange, row, column); if (previousRange != null) Connect(lcdRange, SIGNAL("valueChanged(int)"), previousRange, SLOT("setValue(int)")); previousRange = lcdRange; } } QVBoxLayout layout = new QVBoxLayout(); layout.AddWidget(quit); layout.AddLayout(grid); SetLayout(layout); }
protected void SetupUi() { base.ObjectName = "InviteToMucDialog"; this.Geometry = new QRect(0, 0, 402, 289); this.WindowTitle = "Invite to Conference"; QVBoxLayout verticalLayout; verticalLayout = new QVBoxLayout(this); verticalLayout.Margin = 6; this.stackedWidget = new QStackedWidget(this); this.stackedWidget.ObjectName = "stackedWidget"; this.stackedWidget.CurrentIndex = 0; verticalLayout.AddWidget(this.stackedWidget); this.page = new QWidget(this.stackedWidget); this.page.ObjectName = "page"; QVBoxLayout verticalLayout_2; verticalLayout_2 = new QVBoxLayout(this.page); verticalLayout_2.Margin = 0; this.label = new QLabel(this.page); this.label.ObjectName = "label"; this.label.Text = "Select Conference:"; verticalLayout_2.AddWidget(this.label); this.mucsListWidget = new QListWidget(this.page); this.mucsListWidget.ObjectName = "mucsListWidget"; this.mucsListWidget.selectionBehavior = QAbstractItemView.SelectionBehavior.SelectRows; verticalLayout_2.AddWidget(this.mucsListWidget); this.stackedWidget.AddWidget(this.page); this.page_2 = new QWidget(this.stackedWidget); this.page_2.ObjectName = "page_2"; QVBoxLayout verticalLayout_3; verticalLayout_3 = new QVBoxLayout(this.page_2); verticalLayout_3.Margin = 0; this.tabWidget = new QTabWidget(this.page_2); this.tabWidget.ObjectName = "tabWidget"; this.tabWidget.CurrentIndex = 0; verticalLayout_3.AddWidget(this.tabWidget); this.tab = new QWidget(this.tabWidget); this.tab.ObjectName = "tab"; QVBoxLayout verticalLayout_5; verticalLayout_5 = new QVBoxLayout(this.tab); verticalLayout_5.Margin = 6; this.label_3 = new QLabel(this.tab); this.label_3.ObjectName = "label_3"; this.label_3.Text = "Select friends to invite:"; verticalLayout_5.AddWidget(this.label_3); this.friendsListWidget = new QListWidget(this.tab); this.friendsListWidget.ObjectName = "friendsListWidget"; verticalLayout_5.AddWidget(this.friendsListWidget); this.tabWidget.AddTab(this.tab, "Invite Friends"); this.tab_2 = new QWidget(this.tabWidget); this.tab_2.ObjectName = "tab_2"; QVBoxLayout verticalLayout_4; verticalLayout_4 = new QVBoxLayout(this.tab_2); verticalLayout_4.SetContentsMargins(6, 6, 6, 0); this.label_2 = new QLabel(this.tab_2); this.label_2.ObjectName = "label_2"; this.label_2.Text = "Send this URL to anybody:"; verticalLayout_4.AddWidget(this.label_2); this.urlLineEdit = new QLineEdit(this.tab_2); this.urlLineEdit.ObjectName = "urlLineEdit"; this.urlLineEdit.ReadOnly = true; verticalLayout_4.AddWidget(this.urlLineEdit); QHBoxLayout horizontalLayout; horizontalLayout = new QHBoxLayout(); verticalLayout_4.AddLayout(horizontalLayout); this.emailButton = new QPushButton(this.tab_2); this.emailButton.ObjectName = "emailButton"; this.emailButton.Text = "&Email"; horizontalLayout.AddWidget(this.emailButton); this.copyButton = new QPushButton(this.tab_2); this.copyButton.ObjectName = "copyButton"; this.copyButton.Text = "&Copy"; horizontalLayout.AddWidget(this.copyButton); QSpacerItem horizontalSpacer; horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum); horizontalLayout.AddItem(horizontalSpacer); QSpacerItem verticalSpacer; verticalSpacer = new QSpacerItem(20, 99, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding); verticalLayout_4.AddItem(verticalSpacer); this.tabWidget.AddTab(this.tab_2, "Invite Anyone"); this.stackedWidget.AddWidget(this.page_2); this.buttonBox = new QDialogButtonBox(this); this.buttonBox.ObjectName = "buttonBox"; this.buttonBox.Orientation = Qt.Orientation.Horizontal; this.buttonBox.StandardButtons = ((global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel") | global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Close")) | global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok")); verticalLayout.AddWidget(this.buttonBox); QObject.Connect(buttonBox, Qt.SIGNAL("accepted()"), this, Qt.SLOT("accept()")); QObject.Connect(buttonBox, Qt.SIGNAL("rejected()"), this, Qt.SLOT("reject()")); QMetaObject.ConnectSlotsByName(this); }
protected void SetupUi() { base.ObjectName = "MainWindow"; this.Geometry = new QRect(0, 0, 236, 483); this.WindowTitle = "Synapse"; QVBoxLayout verticalLayout; verticalLayout = new QVBoxLayout(this); verticalLayout.Spacing = 0; verticalLayout.Margin = 0; this.containerWidget = new QWidget(this); this.containerWidget.ObjectName = "containerWidget"; QVBoxLayout verticalLayout_2; verticalLayout_2 = new QVBoxLayout(this.containerWidget); verticalLayout_2.Spacing = 0; verticalLayout_2.Margin = 0; this.headerWidget = new QWidget(this.containerWidget); this.headerWidget.ObjectName = "headerWidget"; QHBoxLayout horizontalLayout_3; horizontalLayout_3 = new QHBoxLayout(this.headerWidget); horizontalLayout_3.Spacing = 3; horizontalLayout_3.SetContentsMargins(0, 0, 3, 0); this.headerLabel = new QLabel(this.headerWidget); this.headerLabel.ObjectName = "headerLabel"; QSizePolicy headerLabel_sizePolicy; headerLabel_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum); headerLabel_sizePolicy.SetVerticalStretch(0); headerLabel_sizePolicy.SetHorizontalStretch(0); headerLabel_sizePolicy.SetHeightForWidth(this.headerLabel.SizePolicy.HasHeightForWidth()); this.headerLabel.SizePolicy = headerLabel_sizePolicy; this.headerLabel.Text = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\np, li { white-space: pre-wrap; }\n</style></head><body style=\" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;\">\n<p style=\" margin-top:0px; margin-bottom:0px; margin-left:33px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Synapse</span></p></body></html>"; this.headerLabel.Alignment = global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignCenter"); this.headerLabel.Margin = 3; horizontalLayout_3.AddWidget(this.headerLabel); this.menuButton = new QPushButton(this.headerWidget); this.menuButton.ObjectName = "menuButton"; QSizePolicy menuButton_sizePolicy; menuButton_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed); menuButton_sizePolicy.SetVerticalStretch(0); menuButton_sizePolicy.SetHorizontalStretch(0); menuButton_sizePolicy.SetHeightForWidth(this.menuButton.SizePolicy.HasHeightForWidth()); this.menuButton.SizePolicy = menuButton_sizePolicy; this.menuButton.MinimumSize = new QSize(12, 12); this.menuButton.MaximumSize = new QSize(12, 12); this.menuButton.FocusPolicy = Qt.FocusPolicy.TabFocus; this.menuButton.Text = ""; this.menuButton.IconSize = new QSize(7, 7); this.menuButton.Flat = true; horizontalLayout_3.AddWidget(this.menuButton); this.closeButton = new QPushButton(this.headerWidget); this.closeButton.ObjectName = "closeButton"; QSizePolicy closeButton_sizePolicy; closeButton_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed); closeButton_sizePolicy.SetVerticalStretch(0); closeButton_sizePolicy.SetHorizontalStretch(0); closeButton_sizePolicy.SetHeightForWidth(this.closeButton.SizePolicy.HasHeightForWidth()); this.closeButton.SizePolicy = closeButton_sizePolicy; this.closeButton.MinimumSize = new QSize(12, 12); this.closeButton.MaximumSize = new QSize(12, 12); this.closeButton.FocusPolicy = Qt.FocusPolicy.TabFocus; this.closeButton.Text = ""; this.closeButton.IconSize = new QSize(7, 7); this.closeButton.Flat = true; horizontalLayout_3.AddWidget(this.closeButton); verticalLayout_2.AddWidget(this.headerWidget); this.stackedWidget = new Synapse.QtClient.Widgets.LightboxContainerWidget(this.containerWidget); this.stackedWidget.ObjectName = "stackedWidget"; this.stackedWidget.CurrentIndex = 0; verticalLayout_2.AddWidget(this.stackedWidget); this.page = new QWidget(this.stackedWidget); this.page.ObjectName = "page"; QHBoxLayout horizontalLayout; horizontalLayout = new QHBoxLayout(this.page); horizontalLayout.Spacing = 0; horizontalLayout.Margin = 0; this.contentWidget = new QWidget(this.page); this.contentWidget.ObjectName = "contentWidget"; QSizePolicy contentWidget_sizePolicy; contentWidget_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Expanding); contentWidget_sizePolicy.SetVerticalStretch(0); contentWidget_sizePolicy.SetHorizontalStretch(0); contentWidget_sizePolicy.SetHeightForWidth(this.contentWidget.SizePolicy.HasHeightForWidth()); this.contentWidget.SizePolicy = contentWidget_sizePolicy; horizontalLayout.AddWidget(this.contentWidget); this.stackedWidget.AddWidget(this.page); verticalLayout.AddWidget(this.containerWidget); QMetaObject.ConnectSlotsByName(this); }
protected void SetupUi() { base.ObjectName = "EditAccountDialog"; this.Geometry = new QRect(0, 0, 343, 261); this.WindowTitle = "Edit Account"; this.Modal = true; QVBoxLayout verticalLayout; verticalLayout = new QVBoxLayout(this); verticalLayout.Margin = 6; this.tabWidget = new QTabWidget(this); this.tabWidget.ObjectName = "tabWidget"; this.tabWidget.Enabled = true; this.tabWidget.CurrentIndex = 3; verticalLayout.AddWidget(this.tabWidget); this.tab = new QWidget(this.tabWidget); this.tab.ObjectName = "tab"; QVBoxLayout verticalLayout_2; verticalLayout_2 = new QVBoxLayout(this.tab); verticalLayout_2.Margin = 6; QFormLayout formLayout; formLayout = new QFormLayout(); verticalLayout_2.AddLayout(formLayout); this.label = new QLabel(this.tab); this.label.ObjectName = "label"; this.label.Text = "Jabber ID:"; formLayout.SetWidget(0, QFormLayout.ItemRole.LabelRole, this.label); this.jidLineEdit = new QLineEdit(this.tab); this.jidLineEdit.ObjectName = "jidLineEdit"; formLayout.SetWidget(0, QFormLayout.ItemRole.FieldRole, this.jidLineEdit); this.label_2 = new QLabel(this.tab); this.label_2.ObjectName = "label_2"; this.label_2.Text = "Password:"******"passwordLineEdit"; this.passwordLineEdit.echoMode = QLineEdit.EchoMode.Password; formLayout.SetWidget(1, QFormLayout.ItemRole.FieldRole, this.passwordLineEdit); this.label_3 = new QLabel(this.tab); this.label_3.ObjectName = "label_3"; this.label_3.Text = "Resource:"; formLayout.SetWidget(2, QFormLayout.ItemRole.LabelRole, this.label_3); this.resourceCombo = new QComboBox(this.tab); this.resourceCombo.ObjectName = "resourceCombo"; this.resourceCombo.Editable = true; formLayout.SetWidget(2, QFormLayout.ItemRole.FieldRole, this.resourceCombo); this.resourceCombo.InsertItems(0, new System.Collections.Generic.List<string>(new string[] { "Home Computer", "Work Computer", "Laptop"})); QSpacerItem verticalSpacer; verticalSpacer = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding); verticalLayout_2.AddItem(verticalSpacer); this.widget = new QWidget(this.tab); this.widget.ObjectName = "widget"; QHBoxLayout horizontalLayout; horizontalLayout = new QHBoxLayout(this.widget); horizontalLayout.Margin = 0; this.pushButton = new QPushButton(this.widget); this.pushButton.ObjectName = "pushButton"; this.pushButton.Enabled = false; this.pushButton.Text = "Change Password..."; horizontalLayout.AddWidget(this.pushButton); QSpacerItem horizontalSpacer; horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum); horizontalLayout.AddItem(horizontalSpacer); verticalLayout_2.AddWidget(this.widget); this.tabWidget.AddTab(this.tab, "Account"); this.tab_4 = new QWidget(this.tabWidget); this.tab_4.ObjectName = "tab_4"; QVBoxLayout verticalLayout_3; verticalLayout_3 = new QVBoxLayout(this.tab_4); verticalLayout_3.Margin = 6; this.label_5 = new QLabel(this.tab_4); this.label_5.ObjectName = "label_5"; this.label_5.Text = "Synapse will attempt to automatically discover your connect server if you leave this field blank."; this.label_5.WordWrap = true; verticalLayout_3.AddWidget(this.label_5); QFormLayout formLayout_2; formLayout_2 = new QFormLayout(); verticalLayout_3.AddLayout(formLayout_2); this.label_4 = new QLabel(this.tab_4); this.label_4.ObjectName = "label_4"; this.label_4.Text = "Connect Server:"; formLayout_2.SetWidget(0, QFormLayout.ItemRole.LabelRole, this.label_4); this.serverLineEdit = new QLineEdit(this.tab_4); this.serverLineEdit.ObjectName = "serverLineEdit"; formLayout_2.SetWidget(0, QFormLayout.ItemRole.FieldRole, this.serverLineEdit); this.label_6 = new QLabel(this.tab_4); this.label_6.ObjectName = "label_6"; this.label_6.Text = "Port:"; formLayout_2.SetWidget(1, QFormLayout.ItemRole.LabelRole, this.label_6); this.portSpinBox = new QSpinBox(this.tab_4); this.portSpinBox.ObjectName = "portSpinBox"; this.portSpinBox.Maximum = 9999999; this.portSpinBox.SingleStep = 1; this.portSpinBox.Value = 5222; formLayout_2.SetWidget(1, QFormLayout.ItemRole.FieldRole, this.portSpinBox); this.label_7 = new QLabel(this.tab_4); this.label_7.ObjectName = "label_7"; this.label_7.Enabled = false; this.label_7.Text = "Note that the server must support TLS encryption."; this.label_7.Alignment = ((global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeading") | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeft")) | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignVCenter")); verticalLayout_3.AddWidget(this.label_7); QSpacerItem verticalSpacer_2; verticalSpacer_2 = new QSpacerItem(20, 170, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding); verticalLayout_3.AddItem(verticalSpacer_2); this.tabWidget.AddTab(this.tab_4, "Server"); this.tab_2 = new QWidget(this.tabWidget); this.tab_2.ObjectName = "tab_2"; QVBoxLayout verticalLayout_4; verticalLayout_4 = new QVBoxLayout(this.tab_2); verticalLayout_4.Margin = 6; this.autoConnectCheckBox = new QCheckBox(this.tab_2); this.autoConnectCheckBox.ObjectName = "autoConnectCheckBox"; this.autoConnectCheckBox.Text = "Connect Automatically"; verticalLayout_4.AddWidget(this.autoConnectCheckBox); QSpacerItem verticalSpacer_3; verticalSpacer_3 = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding); verticalLayout_4.AddItem(verticalSpacer_3); this.tabWidget.AddTab(this.tab_2, "Options"); this.tab_3 = new QWidget(this.tabWidget); this.tab_3.ObjectName = "tab_3"; QVBoxLayout verticalLayout_5; verticalLayout_5 = new QVBoxLayout(this.tab_3); verticalLayout_5.Margin = 6; QFormLayout formLayout_3; formLayout_3 = new QFormLayout(); verticalLayout_5.AddLayout(formLayout_3); formLayout_3.fieldGrowthPolicy = QFormLayout.FieldGrowthPolicy.AllNonFixedFieldsGrow; this.label_9 = new QLabel(this.tab_3); this.label_9.ObjectName = "label_9"; this.label_9.Text = "&Type:"; formLayout_3.SetWidget(0, QFormLayout.ItemRole.LabelRole, this.label_9); this.comboBox = new QComboBox(this.tab_3); this.comboBox.ObjectName = "comboBox"; formLayout_3.SetWidget(0, QFormLayout.ItemRole.FieldRole, this.comboBox); this.comboBox.InsertItems(0, new System.Collections.Generic.List<string>(new string[] { "Use System Settings (DOES NOT WORK)", "No Proxy", "HTTP", "SOCKS4", "SOCKS5"})); this.proxyHostLabel = new QLabel(this.tab_3); this.proxyHostLabel.ObjectName = "proxyHostLabel"; this.proxyHostLabel.Enabled = true; this.proxyHostLabel.Text = "&Host:"; formLayout_3.SetWidget(2, QFormLayout.ItemRole.LabelRole, this.proxyHostLabel); this.proxyHostLineEdit = new QLineEdit(this.tab_3); this.proxyHostLineEdit.ObjectName = "proxyHostLineEdit"; this.proxyHostLineEdit.Enabled = true; formLayout_3.SetWidget(2, QFormLayout.ItemRole.FieldRole, this.proxyHostLineEdit); this.proxyPortLabel = new QLabel(this.tab_3); this.proxyPortLabel.ObjectName = "proxyPortLabel"; this.proxyPortLabel.Enabled = true; this.proxyPortLabel.Text = "&Port:"; formLayout_3.SetWidget(3, QFormLayout.ItemRole.LabelRole, this.proxyPortLabel); this.proxyPortSpinBox = new QSpinBox(this.tab_3); this.proxyPortSpinBox.ObjectName = "proxyPortSpinBox"; this.proxyPortSpinBox.Enabled = true; this.proxyPortSpinBox.Maximum = 66666; formLayout_3.SetWidget(3, QFormLayout.ItemRole.FieldRole, this.proxyPortSpinBox); this.proxyUserLabel = new QLabel(this.tab_3); this.proxyUserLabel.ObjectName = "proxyUserLabel"; this.proxyUserLabel.Enabled = true; this.proxyUserLabel.Text = "&Username:"******"proxyUserLineEdit"; this.proxyUserLineEdit.Enabled = true; formLayout_3.SetWidget(4, QFormLayout.ItemRole.FieldRole, this.proxyUserLineEdit); this.proxyPassLabel = new QLabel(this.tab_3); this.proxyPassLabel.ObjectName = "proxyPassLabel"; this.proxyPassLabel.Enabled = true; this.proxyPassLabel.Text = "Pa&ssword:"; formLayout_3.SetWidget(5, QFormLayout.ItemRole.LabelRole, this.proxyPassLabel); this.proxyPassLineEdit = new QLineEdit(this.tab_3); this.proxyPassLineEdit.ObjectName = "proxyPassLineEdit"; this.proxyPassLineEdit.Enabled = true; formLayout_3.SetWidget(5, QFormLayout.ItemRole.FieldRole, this.proxyPassLineEdit); this.line = new QFrame(this.tab_3); this.line.ObjectName = "line"; this.line.FrameShape = QFrame.Shape.HLine; this.line.FrameShadow = QFrame.Shadow.Sunken; formLayout_3.SetWidget(1, QFormLayout.ItemRole.LabelRole, this.line); QSpacerItem verticalSpacer_4; verticalSpacer_4 = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding); verticalLayout_5.AddItem(verticalSpacer_4); this.tabWidget.AddTab(this.tab_3, "Proxy"); this.buttonBox = new QDialogButtonBox(this); this.buttonBox.ObjectName = "buttonBox"; this.buttonBox.Orientation = Qt.Orientation.Horizontal; this.buttonBox.StandardButtons = (global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel") | global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok")); verticalLayout.AddWidget(this.buttonBox); QObject.Connect(buttonBox, Qt.SIGNAL("accepted()"), this, Qt.SLOT("accept()")); QObject.Connect(buttonBox, Qt.SIGNAL("rejected()"), this, Qt.SLOT("reject()")); QMetaObject.ConnectSlotsByName(this); this.label_9.SetBuddy(comboBox); this.proxyHostLabel.SetBuddy(proxyHostLineEdit); this.proxyPortLabel.SetBuddy(proxyPortSpinBox); this.proxyUserLabel.SetBuddy(proxyUserLineEdit); this.proxyPassLabel.SetBuddy(proxyPassLineEdit); }
private void Init() { QLCDNumber lcd = new QLCDNumber(2); lcd.segmentStyle = QLCDNumber.SegmentStyle.Filled; slider = new QSlider(Qt.Orientation.Horizontal); slider.SetRange(0, 99); slider.Value = 0; label = new QLabel(); label.Alignment = (int) (Qt.AlignmentFlag.AlignHCenter | Qt.AlignmentFlag.AlignTop); label.SetSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Fixed); Connect(slider, SIGNAL("valueChanged(int)"), lcd, SLOT("display(int)")); Connect(slider, SIGNAL("valueChanged(int)"), this, SIGNAL("ValueChanged(int)")); QVBoxLayout layout = new QVBoxLayout(); layout.AddWidget(lcd); layout.AddWidget(slider); layout.AddWidget(label); SetLayout(layout); SetFocusProxy(slider); }
public Browser(string name) : base((QWidget) null) { ObjectName = name; SetCaption("KDE Tutorial - p9"); QMenu filemenu = new QMenu(KDE.I18n("&File"), this); KAction setDefaultPageAction = new KAction(this); setDefaultPageAction.Text = KDE.I18n("&Set default page"); ActionCollection().AddAction("set_default_page", setDefaultPageAction); Connect( setDefaultPageAction, SIGNAL("triggered(bool)"), this, SLOT("FileSetDefaultPage()") ); addBookmarkAction = KStandardAction.AddBookmark(this, SLOT("BookLocation()"), ActionCollection()); backAction = KStandardAction.Back(this, SLOT("GotoPreviousPage()"), ActionCollection()); backAction.Enabled = false; quitAction = KStandardAction.Quit(KApplication.kApplication(), SLOT("quit()"), ActionCollection()); string about = KDE.I18n("p9 1.0\n\n" + "(C) 1999-2002 Antonio Larrosa Jimenez\n" + "[email protected]\t\[email protected]\n" + "Malaga (Spain)\n\n" + "Simple KDE Tutorial\n" + "This tutorial comes with ABSOLUTELY NO WARRANTY\n" + "This is free software, and you are welcome to redistribute it\n" + "under certain conditions\n"); QMenu helpmenu = HelpMenu(about); KMenuBar menu = MenuBar(); menu.AddMenu(filemenu); menu.AddSeparator(); menu.AddMenu(helpmenu); ToolBar().AddAction(quitAction); ToolBar().AddAction(addBookmarkAction); ToolBar().AddAction(backAction); StandardToolBarMenuEnabled = true; location = new QLineEdit(); config = new KConfigGroup(KGlobal.Config(), "Settings"); location.Text = config.ReadEntry("defaultPage", "http://localhost"); Connect(location, SIGNAL("returnPressed()"), this, SLOT("ChangeLocation()")); QSplitter split = new QSplitter(); split.OpaqueResize = true; QWidget widget = new QWidget(this); QVBoxLayout vbox = new QVBoxLayout(widget); vbox.AddWidget(location); vbox.AddWidget(split); browser = new KHTMLPart(split); browser.OpenUrl(new KUrl(location.Text)); Connect( browser.BrowserExtension(), SIGNAL("openUrlRequest(KUrl, KParts::OpenUrlArguments)"), this, SLOT("OpenUrlRequest(KUrl, KParts::OpenUrlArguments)") ); SetCentralWidget(widget); SetupGUI(); }
protected void SetupUi() { base.ObjectName = "MucAffiliationDialog"; this.Geometry = new QRect(0, 0, 336, 245); this.WindowTitle = "Change Participant Affiliation"; QVBoxLayout verticalLayout_2; verticalLayout_2 = new QVBoxLayout(this); verticalLayout_2.sizeConstraint = QLayout.SizeConstraint.SetFixedSize; verticalLayout_2.Margin = 6; QGridLayout gridLayout; gridLayout = new QGridLayout(); verticalLayout_2.AddLayout(gridLayout); this.roomLabel = new QLabel(this); this.roomLabel.ObjectName = "roomLabel"; this.roomLabel.Text = "*****@*****.**"; gridLayout.AddWidget(this.roomLabel, 0, 1, 1, 1); this.label_2 = new QLabel(this); this.label_2.ObjectName = "label_2"; this.label_2.Text = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\np, li { white-space: pre-wrap; }\n</style></head><body style=\" font-family:'Bitstream Vera Sans'; font-size:9pt; font-weight:400; font-style:normal;\">\n<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Room:</span></p></body></html>"; gridLayout.AddWidget(this.label_2, 0, 0, 1, 1); this.label_3 = new QLabel(this); this.label_3.ObjectName = "label_3"; this.label_3.Text = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\np, li { white-space: pre-wrap; }\n</style></head><body style=\" font-family:'Bitstream Vera Sans'; font-size:9pt; font-weight:400; font-style:normal;\">\n<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">User:</span></p></body></html>"; gridLayout.AddWidget(this.label_3, 1, 0, 1, 1); this.userLabel = new QLabel(this); this.userLabel.ObjectName = "userLabel"; this.userLabel.Text = "*****@*****.**"; gridLayout.AddWidget(this.userLabel, 1, 1, 1, 1); QVBoxLayout verticalLayout; verticalLayout = new QVBoxLayout(); verticalLayout_2.AddLayout(verticalLayout); verticalLayout.Spacing = 0; verticalLayout.Margin = 0; this.ownerRadioButton = new QRadioButton(this); this.ownerRadioButton.ObjectName = "ownerRadioButton"; this.ownerRadioButton.Text = "Owner"; verticalLayout.AddWidget(this.ownerRadioButton); this.adminRadioButton = new QRadioButton(this); this.adminRadioButton.ObjectName = "adminRadioButton"; this.adminRadioButton.Text = "Admin"; verticalLayout.AddWidget(this.adminRadioButton); this.memberRadioButton = new QRadioButton(this); this.memberRadioButton.ObjectName = "memberRadioButton"; this.memberRadioButton.Text = "Member"; verticalLayout.AddWidget(this.memberRadioButton); this.outcastRadioButton = new QRadioButton(this); this.outcastRadioButton.ObjectName = "outcastRadioButton"; this.outcastRadioButton.Text = "Outcast (Banned)"; verticalLayout.AddWidget(this.outcastRadioButton); this.noneRadioButton = new QRadioButton(this); this.noneRadioButton.ObjectName = "noneRadioButton"; this.noneRadioButton.Text = "None"; verticalLayout.AddWidget(this.noneRadioButton); QGridLayout gridLayout_2; gridLayout_2 = new QGridLayout(); verticalLayout_2.AddLayout(gridLayout_2); this.reasonLineEdit = new QLineEdit(this); this.reasonLineEdit.ObjectName = "reasonLineEdit"; gridLayout_2.AddWidget(this.reasonLineEdit, 0, 1, 1, 1); this.label = new QLabel(this); this.label.ObjectName = "label"; this.label.Text = "Reason:"; gridLayout_2.AddWidget(this.label, 0, 0, 1, 1); this.label_4 = new QLabel(this); this.label_4.ObjectName = "label_4"; this.label_4.Text = "(optional)"; gridLayout_2.AddWidget(this.label_4, 0, 2, 1, 1); this.buttonBox = new QDialogButtonBox(this); this.buttonBox.ObjectName = "buttonBox"; this.buttonBox.Orientation = Qt.Orientation.Horizontal; this.buttonBox.StandardButtons = (global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel") | global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok")); verticalLayout_2.AddWidget(this.buttonBox); QObject.Connect(buttonBox, Qt.SIGNAL("accepted()"), this, Qt.SLOT("accept()")); QObject.Connect(buttonBox, Qt.SIGNAL("rejected()"), this, Qt.SLOT("reject()")); QMetaObject.ConnectSlotsByName(this); }
public MyWidget(QWidget parent) : base(parent) { QPushButton quit = new QPushButton("Quit"); Connect(quit, SIGNAL("clicked()"), qApp, SLOT("quit()")); LCDRange angle = new LCDRange(); angle.SetRange(5,70); LCDRange force = new LCDRange(); force.SetRange(10,50); CannonField field = new CannonField(); Connect(angle, SIGNAL("valueChanged(int)"), field, SLOT("setAngle(int)")); Connect(field, SIGNAL("angleChanged(int)"), angle, SLOT("setValue(int)")); Connect(force, SIGNAL("valueChanged(int)"), field, SLOT("setForce(int)")); QVBoxLayout leftLayout = new QVBoxLayout(); leftLayout.AddWidget(angle); leftLayout.AddWidget(force); QGridLayout gridLayout = new QGridLayout(); gridLayout.AddWidget(quit, 0, 0); gridLayout.AddLayout(leftLayout, 1, 0); gridLayout.AddWidget(field, 1, 1, 2, 1); gridLayout.SetColumnStretch(1, 10); SetLayout(gridLayout); force.SetValue(25); angle.SetValue(60); angle.SetFocus(); }
protected void SetupUi() { base.ObjectName = "PreferencesWindow"; this.Geometry = new QRect(0, 0, 559, 480); this.WindowTitle = "Synapse Preferences"; QVBoxLayout verticalLayout; verticalLayout = new QVBoxLayout(this); verticalLayout.Margin = 6; this.tabWidget = new QTabWidget(this); this.tabWidget.ObjectName = "tabWidget"; this.tabWidget.CurrentIndex = 0; verticalLayout.AddWidget(this.tabWidget); this.tab = new QWidget(this.tabWidget); this.tab.ObjectName = "tab"; QVBoxLayout verticalLayout_2; verticalLayout_2 = new QVBoxLayout(this.tab); verticalLayout_2.Spacing = 6; verticalLayout_2.Margin = 12; this.accountsList = new QTableView(this.tab); this.accountsList.ObjectName = "accountsList"; this.accountsList.AlternatingRowColors = true; this.accountsList.selectionMode = QAbstractItemView.SelectionMode.SingleSelection; this.accountsList.selectionBehavior = QAbstractItemView.SelectionBehavior.SelectRows; this.accountsList.ShowGrid = false; this.accountsList.WordWrap = false; verticalLayout_2.AddWidget(this.accountsList); this.widget = new QWidget(this.tab); this.widget.ObjectName = "widget"; QHBoxLayout horizontalLayout; horizontalLayout = new QHBoxLayout(this.widget); horizontalLayout.Margin = 0; this.addAccountButton = new QPushButton(this.widget); this.addAccountButton.ObjectName = "addAccountButton"; this.addAccountButton.Enabled = true; this.addAccountButton.Text = "Add Account"; horizontalLayout.AddWidget(this.addAccountButton); this.editAccountButton = new QPushButton(this.widget); this.editAccountButton.ObjectName = "editAccountButton"; this.editAccountButton.Enabled = true; this.editAccountButton.Text = "Edit Account"; horizontalLayout.AddWidget(this.editAccountButton); this.removeAccountButton = new QPushButton(this.widget); this.removeAccountButton.ObjectName = "removeAccountButton"; this.removeAccountButton.Enabled = true; this.removeAccountButton.Text = "Remove Account"; horizontalLayout.AddWidget(this.removeAccountButton); QSpacerItem horizontalSpacer; horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum); horizontalLayout.AddItem(horizontalSpacer); verticalLayout_2.AddWidget(this.widget); this.tabWidget.AddTab(this.tab, "Accounts"); this.appearanceTab = new QWidget(this.tabWidget); this.appearanceTab.ObjectName = "appearanceTab"; this.appearanceTab.Enabled = false; QVBoxLayout verticalLayout_6; verticalLayout_6 = new QVBoxLayout(this.appearanceTab); verticalLayout_6.Margin = 6; this.groupBox_5 = new QGroupBox(this.appearanceTab); this.groupBox_5.ObjectName = "groupBox_5"; this.groupBox_5.Title = "Friends List"; QFormLayout formLayout_2; formLayout_2 = new QFormLayout(this.groupBox_5); formLayout_2.Margin = 6; this.label_4 = new QLabel(this.groupBox_5); this.label_4.ObjectName = "label_4"; this.label_4.Text = "Display As:"; formLayout_2.SetWidget(0, QFormLayout.ItemRole.LabelRole, this.label_4); this.comboBox_3 = new QComboBox(this.groupBox_5); this.comboBox_3.ObjectName = "comboBox_3"; QSizePolicy comboBox_3_sizePolicy; comboBox_3_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Fixed); comboBox_3_sizePolicy.SetVerticalStretch(0); comboBox_3_sizePolicy.SetHorizontalStretch(0); comboBox_3_sizePolicy.SetHeightForWidth(this.comboBox_3.SizePolicy.HasHeightForWidth()); this.comboBox_3.SizePolicy = comboBox_3_sizePolicy; formLayout_2.SetWidget(0, QFormLayout.ItemRole.FieldRole, this.comboBox_3); this.horizontalSlider = new QSlider(this.groupBox_5); this.horizontalSlider.ObjectName = "horizontalSlider"; QSizePolicy horizontalSlider_sizePolicy; horizontalSlider_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed); horizontalSlider_sizePolicy.SetVerticalStretch(0); horizontalSlider_sizePolicy.SetHorizontalStretch(0); horizontalSlider_sizePolicy.SetHeightForWidth(this.horizontalSlider.SizePolicy.HasHeightForWidth()); this.horizontalSlider.SizePolicy = horizontalSlider_sizePolicy; this.horizontalSlider.Maximum = 48; this.horizontalSlider.Value = 32; this.horizontalSlider.Orientation = Qt.Orientation.Horizontal; this.horizontalSlider.InvertedAppearance = false; this.horizontalSlider.InvertedControls = false; formLayout_2.SetWidget(2, QFormLayout.ItemRole.FieldRole, this.horizontalSlider); this.comboBox_4 = new QComboBox(this.groupBox_5); this.comboBox_4.ObjectName = "comboBox_4"; QSizePolicy comboBox_4_sizePolicy; comboBox_4_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed); comboBox_4_sizePolicy.SetVerticalStretch(0); comboBox_4_sizePolicy.SetHorizontalStretch(0); comboBox_4_sizePolicy.SetHeightForWidth(this.comboBox_4.SizePolicy.HasHeightForWidth()); this.comboBox_4.SizePolicy = comboBox_4_sizePolicy; formLayout_2.SetWidget(1, QFormLayout.ItemRole.FieldRole, this.comboBox_4); this.label_7 = new QLabel(this.groupBox_5); this.label_7.ObjectName = "label_7"; this.label_7.Text = "Sort By:"; formLayout_2.SetWidget(1, QFormLayout.ItemRole.LabelRole, this.label_7); this.label_5 = new QLabel(this.groupBox_5); this.label_5.ObjectName = "label_5"; this.label_5.Text = "Icon Size:"; formLayout_2.SetWidget(2, QFormLayout.ItemRole.LabelRole, this.label_5); verticalLayout_6.AddWidget(this.groupBox_5); this.groupBox_4 = new QGroupBox(this.appearanceTab); this.groupBox_4.ObjectName = "groupBox_4"; this.groupBox_4.Title = "Activity Feed"; QGridLayout gridLayout_4; gridLayout_4 = new QGridLayout(this.groupBox_4); this.label_6 = new QLabel(this.groupBox_4); this.label_6.ObjectName = "label_6"; this.label_6.Text = "Put options here"; gridLayout_4.AddWidget(this.label_6, 0, 0, 1, 1); verticalLayout_6.AddWidget(this.groupBox_4); this.groupBox_6 = new QGroupBox(this.appearanceTab); this.groupBox_6.ObjectName = "groupBox_6"; this.groupBox_6.Title = "Emoticons"; QGridLayout gridLayout_6; gridLayout_6 = new QGridLayout(this.groupBox_6); gridLayout_6.Margin = 6; this.comboBox_5 = new QComboBox(this.groupBox_6); this.comboBox_5.ObjectName = "comboBox_5"; QSizePolicy comboBox_5_sizePolicy; comboBox_5_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Fixed); comboBox_5_sizePolicy.SetVerticalStretch(0); comboBox_5_sizePolicy.SetHorizontalStretch(0); comboBox_5_sizePolicy.SetHeightForWidth(this.comboBox_5.SizePolicy.HasHeightForWidth()); this.comboBox_5.SizePolicy = comboBox_5_sizePolicy; gridLayout_6.AddWidget(this.comboBox_5, 0, 1, 1, 1); this.label_8 = new QLabel(this.groupBox_6); this.label_8.ObjectName = "label_8"; this.label_8.Text = "Theme:"; gridLayout_6.AddWidget(this.label_8, 0, 0, 1, 1); verticalLayout_6.AddWidget(this.groupBox_6); QSpacerItem verticalSpacer_3; verticalSpacer_3 = new QSpacerItem(20, 260, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding); verticalLayout_6.AddItem(verticalSpacer_3); this.tabWidget.AddTab(this.appearanceTab, "Appearance"); this.tab_5 = new QWidget(this.tabWidget); this.tab_5.ObjectName = "tab_5"; QVBoxLayout verticalLayout_5; verticalLayout_5 = new QVBoxLayout(this.tab_5); verticalLayout_5.Spacing = 0; verticalLayout_5.Margin = 0; this.messagePreviewWebView = new Synapse.QtClient.ConversationWidget(this.tab_5); this.messagePreviewWebView.ObjectName = "messagePreviewWebView"; QSizePolicy messagePreviewWebView_sizePolicy; messagePreviewWebView_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Fixed); messagePreviewWebView_sizePolicy.SetVerticalStretch(140); messagePreviewWebView_sizePolicy.SetHorizontalStretch(0); messagePreviewWebView_sizePolicy.SetHeightForWidth(this.messagePreviewWebView.SizePolicy.HasHeightForWidth()); this.messagePreviewWebView.SizePolicy = messagePreviewWebView_sizePolicy; this.messagePreviewWebView.MaximumSize = new QSize(16777215, 140); this.messagePreviewWebView.Url = new QUrl("about:blank"); verticalLayout_5.AddWidget(this.messagePreviewWebView); this.line = new QFrame(this.tab_5); this.line.ObjectName = "line"; this.line.FrameShape = QFrame.Shape.HLine; this.line.FrameShadow = QFrame.Shadow.Sunken; verticalLayout_5.AddWidget(this.line); QGridLayout gridLayout; gridLayout = new QGridLayout(); verticalLayout_5.AddLayout(gridLayout); gridLayout.sizeConstraint = QLayout.SizeConstraint.SetDefaultConstraint; gridLayout.Margin = 6; gridLayout.Spacing = 6; this.label = new QLabel(this.tab_5); this.label.ObjectName = "label"; this.label.Text = "Message Style:"; gridLayout.AddWidget(this.label, 0, 0, 1, 1); this.messageStyleCombo = new QComboBox(this.tab_5); this.messageStyleCombo.ObjectName = "messageStyleCombo"; QSizePolicy messageStyleCombo_sizePolicy; messageStyleCombo_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Fixed); messageStyleCombo_sizePolicy.SetVerticalStretch(0); messageStyleCombo_sizePolicy.SetHorizontalStretch(0); messageStyleCombo_sizePolicy.SetHeightForWidth(this.messageStyleCombo.SizePolicy.HasHeightForWidth()); this.messageStyleCombo.SizePolicy = messageStyleCombo_sizePolicy; gridLayout.AddWidget(this.messageStyleCombo, 0, 1, 1, 1); this.label_10 = new QLabel(this.tab_5); this.label_10.ObjectName = "label_10"; this.label_10.Enabled = false; this.label_10.MaximumSize = new QSize(120, 16777215); this.label_10.Text = "Style changes take effect for new message windows."; this.label_10.Alignment = ((global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeading") | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeft")) | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignTop")); this.label_10.WordWrap = true; gridLayout.AddWidget(this.label_10, 0, 2, 2, 1); this.label_2 = new QLabel(this.tab_5); this.label_2.ObjectName = "label_2"; this.label_2.Text = "Variant:"; gridLayout.AddWidget(this.label_2, 1, 0, 1, 1); this.messageStyleVariantCombo = new QComboBox(this.tab_5); this.messageStyleVariantCombo.ObjectName = "messageStyleVariantCombo"; QSizePolicy messageStyleVariantCombo_sizePolicy; messageStyleVariantCombo_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Fixed); messageStyleVariantCombo_sizePolicy.SetVerticalStretch(0); messageStyleVariantCombo_sizePolicy.SetHorizontalStretch(0); messageStyleVariantCombo_sizePolicy.SetHeightForWidth(this.messageStyleVariantCombo.SizePolicy.HasHeightForWidth()); this.messageStyleVariantCombo.SizePolicy = messageStyleVariantCombo_sizePolicy; gridLayout.AddWidget(this.messageStyleVariantCombo, 1, 1, 1, 1); this.showAvatarsCheckBox = new QCheckBox(this.tab_5); this.showAvatarsCheckBox.ObjectName = "showAvatarsCheckBox"; this.showAvatarsCheckBox.Text = "Show avatars"; this.showAvatarsCheckBox.Checked = true; gridLayout.AddWidget(this.showAvatarsCheckBox, 2, 1, 1, 1); this.showHeaderCheckBox = new QCheckBox(this.tab_5); this.showHeaderCheckBox.ObjectName = "showHeaderCheckBox"; this.showHeaderCheckBox.Text = "Show header"; this.showHeaderCheckBox.Checked = true; gridLayout.AddWidget(this.showHeaderCheckBox, 3, 1, 1, 1); this.label_3 = new QLabel(this.tab_5); this.label_3.ObjectName = "label_3"; this.label_3.Text = "Font:"; gridLayout.AddWidget(this.label_3, 4, 0, 1, 1); this.checkBox_3 = new QCheckBox(this.tab_5); this.checkBox_3.ObjectName = "checkBox_3"; this.checkBox_3.Enabled = false; this.checkBox_3.Text = "Show received message fonts"; this.checkBox_3.Checked = true; gridLayout.AddWidget(this.checkBox_3, 5, 1, 1, 1); this.checkBox_4 = new QCheckBox(this.tab_5); this.checkBox_4.ObjectName = "checkBox_4"; this.checkBox_4.Enabled = false; this.checkBox_4.Text = "Show received message colors"; this.checkBox_4.Checked = true; gridLayout.AddWidget(this.checkBox_4, 6, 1, 1, 1); QHBoxLayout horizontalLayout_3; horizontalLayout_3 = new QHBoxLayout(); gridLayout.AddLayout(horizontalLayout_3, 4, 1, 1, 2); this.pushButton = new QPushButton(this.tab_5); this.pushButton.ObjectName = "pushButton"; this.pushButton.Enabled = false; QSizePolicy pushButton_sizePolicy; pushButton_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Fixed); pushButton_sizePolicy.SetVerticalStretch(0); pushButton_sizePolicy.SetHorizontalStretch(0); pushButton_sizePolicy.SetHeightForWidth(this.pushButton.SizePolicy.HasHeightForWidth()); this.pushButton.SizePolicy = pushButton_sizePolicy; this.pushButton.Text = ""; horizontalLayout_3.AddWidget(this.pushButton); this.checkBox_6 = new QCheckBox(this.tab_5); this.checkBox_6.ObjectName = "checkBox_6"; this.checkBox_6.Enabled = false; this.checkBox_6.Text = "Use Default"; this.checkBox_6.Checked = true; horizontalLayout_3.AddWidget(this.checkBox_6); this.checkBox_5 = new QCheckBox(this.tab_5); this.checkBox_5.ObjectName = "checkBox_5"; this.checkBox_5.Enabled = false; this.checkBox_5.Text = "Use custom background"; gridLayout.AddWidget(this.checkBox_5, 7, 1, 1, 1); this.label_11 = new QLabel(this.tab_5); this.label_11.ObjectName = "label_11"; this.label_11.Enabled = false; this.label_11.Text = "Background:"; gridLayout.AddWidget(this.label_11, 7, 0, 1, 1); QSpacerItem verticalSpacer; verticalSpacer = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding); verticalLayout_5.AddItem(verticalSpacer); this.tabWidget.AddTab(this.tab_5, "Messages"); this.tab_7 = new QWidget(this.tabWidget); this.tab_7.ObjectName = "tab_7"; this.tabWidget.AddTab(this.tab_7, "Status"); this.tab_8 = new QWidget(this.tabWidget); this.tab_8.ObjectName = "tab_8"; this.tabWidget.AddTab(this.tab_8, "Events"); this.tab_3 = new QWidget(this.tabWidget); this.tab_3.ObjectName = "tab_3"; QVBoxLayout verticalLayout_3; verticalLayout_3 = new QVBoxLayout(this.tab_3); verticalLayout_3.Spacing = 6; verticalLayout_3.Margin = 12; this.extensionsList = new QTableView(this.tab_3); this.extensionsList.ObjectName = "extensionsList"; this.extensionsList.AlternatingRowColors = true; this.extensionsList.selectionMode = QAbstractItemView.SelectionMode.SingleSelection; this.extensionsList.selectionBehavior = QAbstractItemView.SelectionBehavior.SelectRows; this.extensionsList.ShowGrid = false; this.extensionsList.WordWrap = false; verticalLayout_3.AddWidget(this.extensionsList); this.widget_2 = new QWidget(this.tab_3); this.widget_2.ObjectName = "widget_2"; QHBoxLayout horizontalLayout_2; horizontalLayout_2 = new QHBoxLayout(this.widget_2); horizontalLayout_2.Margin = 0; this.pushButton_3 = new QPushButton(this.widget_2); this.pushButton_3.ObjectName = "pushButton_3"; this.pushButton_3.Enabled = false; this.pushButton_3.Text = "Find Updates"; horizontalLayout_2.AddWidget(this.pushButton_3); QSpacerItem horizontalSpacer_2; horizontalSpacer_2 = new QSpacerItem(293, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum); horizontalLayout_2.AddItem(horizontalSpacer_2); verticalLayout_3.AddWidget(this.widget_2); this.tabWidget.AddTab(this.tab_3, "Extensions"); this.tab_6 = new QWidget(this.tabWidget); this.tab_6.ObjectName = "tab_6"; this.tabWidget.AddTab(this.tab_6, "Advanced"); this.buttonBox = new QDialogButtonBox(this); this.buttonBox.ObjectName = "buttonBox"; this.buttonBox.Orientation = Qt.Orientation.Horizontal; this.buttonBox.StandardButtons = global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Close"); verticalLayout.AddWidget(this.buttonBox); QObject.Connect(buttonBox, Qt.SIGNAL("rejected()"), this, Qt.SLOT("close()")); QObject.Connect(buttonBox, Qt.SIGNAL("accepted()"), this, Qt.SLOT("close()")); QMetaObject.ConnectSlotsByName(this); }