public void SetupUi(QDialog NewContactDialog) { if (NewContactDialog.ObjectName == "") NewContactDialog.ObjectName = "NewContactDialog"; QSize Size = new QSize(360, 150); Size = Size.ExpandedTo(NewContactDialog.MinimumSizeHint()); NewContactDialog.Size = Size; NewContactDialog.MinimumSize = new QSize(360, 150); NewContactDialog.WindowIcon = new QIcon(":/main/resources/monosim_128.png"); gridLayout = new QGridLayout(NewContactDialog); gridLayout.ObjectName = "gridLayout"; LblTitle = new QLabel(NewContactDialog); LblTitle.ObjectName = "LblTitle"; LblTitle.Alignment = Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignCenter"); LblTitle.WordWrap = true; gridLayout.AddWidget(LblTitle, 0, 0, 1, 2); LblDesc = new QLabel(NewContactDialog); LblDesc.ObjectName = "LblDesc"; gridLayout.AddWidget(LblDesc, 2, 0, 1, 1); TxtDesc = new QLineEdit(NewContactDialog); TxtDesc.ObjectName = "TxtDesc"; gridLayout.AddWidget(TxtDesc, 2, 1, 1, 1); LblNumber = new QLabel(NewContactDialog); LblNumber.ObjectName = "LblNumber"; gridLayout.AddWidget(LblNumber, 3, 0, 1, 1); TxtNumber = new QLineEdit(NewContactDialog); TxtNumber.ObjectName = "TxtNumber"; gridLayout.AddWidget(TxtNumber, 3, 1, 1, 1); spacerItem = new QSpacerItem(282, 37, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding); gridLayout.AddItem(spacerItem, 4, 1, 1, 1); Buttons = new QDialogButtonBox(NewContactDialog); Buttons.ObjectName = "Buttons"; Buttons.Orientation = Qt.Orientation.Horizontal; Buttons.StandardButtons = Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel") | Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok"); gridLayout.AddWidget(Buttons, 5, 0, 1, 2); spacerItem1 = new QSpacerItem(20, 8, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed); gridLayout.AddItem(spacerItem1, 1, 0, 1, 1); RetranslateUi(NewContactDialog); QObject.Connect(Buttons, Qt.SIGNAL("accepted()"), NewContactDialog, Qt.SLOT("accept()")); QObject.Connect(Buttons, Qt.SIGNAL("rejected()"), NewContactDialog, Qt.SLOT("reject()")); QMetaObject.ConnectSlotsByName(NewContactDialog); } // SetupUi
public void SetupUi(QDialog SelectWriteModeDialog) { if (SelectWriteModeDialog.ObjectName == "") SelectWriteModeDialog.ObjectName = "SelectWriteModeDialog"; QSize Size = new QSize(443, 125); Size = Size.ExpandedTo(SelectWriteModeDialog.MinimumSizeHint()); SelectWriteModeDialog.Size = Size; SelectWriteModeDialog.WindowIcon = new QIcon(":/main/resources/monosim_128.png"); gridLayout = new QGridLayout(SelectWriteModeDialog); gridLayout.ObjectName = "gridLayout"; LblTitle = new QLabel(SelectWriteModeDialog); LblTitle.ObjectName = "LblTitle"; LblTitle.Alignment = Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeading") | Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeft") | Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignTop"); gridLayout.AddWidget(LblTitle, 0, 0, 1, 4); BtnCancel = new QPushButton(SelectWriteModeDialog); BtnCancel.ObjectName = "BtnCancel"; gridLayout.AddWidget(BtnCancel, 1, 0, 1, 1); spacerItem = new QSpacerItem(152, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum); gridLayout.AddItem(spacerItem, 1, 1, 1, 1); BtnOverride = new QPushButton(SelectWriteModeDialog); BtnOverride.ObjectName = "BtnOverride"; BtnOverride.icon = new QIcon(":/toolbar/resources/qt/draw-eraser.png"); gridLayout.AddWidget(BtnOverride, 1, 2, 1, 1); BtnAppend = new QPushButton(SelectWriteModeDialog); BtnAppend.ObjectName = "BtnAppend"; BtnAppend.icon = new QIcon(":/toolbar/resources/qt/list-add.png"); gridLayout.AddWidget(BtnAppend, 1, 3, 1, 1); RetranslateUi(SelectWriteModeDialog); QMetaObject.ConnectSlotsByName(SelectWriteModeDialog); } // SetupUi
public void SetupUi(QDialog ChangePinStatusDialog) { if (ChangePinStatusDialog.ObjectName == "") ChangePinStatusDialog.ObjectName = "ChangePinStatusDialog"; QSize Size = new QSize(357, 159); Size = Size.ExpandedTo(ChangePinStatusDialog.MinimumSizeHint()); ChangePinStatusDialog.Size = Size; ChangePinStatusDialog.WindowIcon = new QIcon(":/main/resources/monosim_128.png"); gridLayout = new QGridLayout(ChangePinStatusDialog); gridLayout.ObjectName = "gridLayout"; LblTitle = new QLabel(ChangePinStatusDialog); LblTitle.ObjectName = "LblTitle"; LblTitle.Alignment = Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignCenter"); LblTitle.WordWrap = true; gridLayout.AddWidget(LblTitle, 0, 0, 1, 2); LblPin1 = new QLabel(ChangePinStatusDialog); LblPin1.ObjectName = "LblPin1"; gridLayout.AddWidget(LblPin1, 2, 0, 1, 1); TxtPin1 = new QLineEdit(ChangePinStatusDialog); TxtPin1.ObjectName = "TxtPin1"; TxtPin1.MaxLength = 4; TxtPin1.echoMode = QLineEdit.EchoMode.Password; gridLayout.AddWidget(TxtPin1, 2, 1, 1, 1); LblPin1check = new QLabel(ChangePinStatusDialog); LblPin1check.ObjectName = "LblPin1check"; gridLayout.AddWidget(LblPin1check, 3, 0, 1, 1); TxtPin1check = new QLineEdit(ChangePinStatusDialog); TxtPin1check.ObjectName = "TxtPin1check"; TxtPin1check.MaxLength = 4; TxtPin1check.echoMode = QLineEdit.EchoMode.Password; gridLayout.AddWidget(TxtPin1check, 3, 1, 1, 1); spacerItem = new QSpacerItem(282, 37, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding); gridLayout.AddItem(spacerItem, 4, 1, 1, 1); Buttons = new QDialogButtonBox(ChangePinStatusDialog); Buttons.ObjectName = "Buttons"; Buttons.Orientation = Qt.Orientation.Horizontal; Buttons.StandardButtons = Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel") | Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok"); gridLayout.AddWidget(Buttons, 5, 0, 1, 2); spacerItem1 = new QSpacerItem(20, 8, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed); gridLayout.AddItem(spacerItem1, 1, 0, 1, 1); RetranslateUi(ChangePinStatusDialog); QObject.Connect(Buttons, Qt.SIGNAL("accepted()"), ChangePinStatusDialog, Qt.SLOT("accept()")); QObject.Connect(Buttons, Qt.SIGNAL("rejected()"), ChangePinStatusDialog, Qt.SLOT("reject()")); QMetaObject.ConnectSlotsByName(ChangePinStatusDialog); } // SetupUi
protected void SetupUi() { base.ObjectName = "InsertSnippetDialog"; this.Geometry = new QRect(0, 0, 400, 300); this.WindowTitle = "Insert Code Snippet"; QVBoxLayout verticalLayout; verticalLayout = new QVBoxLayout(this); verticalLayout.Margin = 6; QGridLayout gridLayout; gridLayout = new QGridLayout(); verticalLayout.AddLayout(gridLayout); this.label = new QLabel(this); this.label.ObjectName = "label"; this.label.Text = "Type:"; gridLayout.AddWidget(this.label, 1, 0, 1, 1); this.typeComboBox = new QComboBox(this); this.typeComboBox.ObjectName = "typeComboBox"; gridLayout.AddWidget(this.typeComboBox, 1, 1, 1, 1); QSpacerItem horizontalSpacer; horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum); gridLayout.AddItem(horizontalSpacer, 1, 2, 1, 1); this.label_2 = new QLabel(this); this.label_2.ObjectName = "label_2"; this.label_2.Text = "To:"; gridLayout.AddWidget(this.label_2, 0, 0, 1, 1); this.toLabel = new QLabel(this); this.toLabel.ObjectName = "toLabel"; this.toLabel.Text = ""; gridLayout.AddWidget(this.toLabel, 0, 1, 1, 1); QSpacerItem horizontalSpacer_3; horizontalSpacer_3 = new QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum); gridLayout.AddItem(horizontalSpacer_3, 0, 2, 1, 1); this.tabWidget = new QTabWidget(this); this.tabWidget.ObjectName = "tabWidget"; this.tabWidget.CurrentIndex = 0; verticalLayout.AddWidget(this.tabWidget); this.tab_3 = new QWidget(this.tabWidget); this.tab_3.ObjectName = "tab_3"; QHBoxLayout horizontalLayout; horizontalLayout = new QHBoxLayout(this.tab_3); horizontalLayout.Spacing = 0; horizontalLayout.Margin = 0; this.textEdit = new QTextEdit(this.tab_3); this.textEdit.ObjectName = "textEdit"; this.textEdit.FrameShape = QFrame.Shape.NoFrame; horizontalLayout.AddWidget(this.textEdit); this.tabWidget.AddTab(this.tab_3, "Paste"); this.tab_4 = new QWidget(this.tabWidget); this.tab_4.ObjectName = "tab_4"; QHBoxLayout horizontalLayout_2; horizontalLayout_2 = new QHBoxLayout(this.tab_4); horizontalLayout_2.Spacing = 0; horizontalLayout_2.Margin = 0; this.webView = new QWebView(this.tab_4); this.webView.ObjectName = "webView"; this.webView.Url = new QUrl("about:blank"); horizontalLayout_2.AddWidget(this.webView); this.tabWidget.AddTab(this.tab_4, "Preview"); QHBoxLayout horizontalLayout_3; horizontalLayout_3 = new QHBoxLayout(); verticalLayout.AddLayout(horizontalLayout_3); this.pushButton = new QPushButton(this); this.pushButton.ObjectName = "pushButton"; this.pushButton.Text = "Import File..."; horizontalLayout_3.AddWidget(this.pushButton); QSpacerItem horizontalSpacer_2; horizontalSpacer_2 = new QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum); horizontalLayout_3.AddItem(horizontalSpacer_2); this.buttonBox = new QDialogButtonBox(this); this.buttonBox.ObjectName = "buttonBox"; this.buttonBox.StandardButtons = global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "NoButton"); horizontalLayout_3.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); }