public void RetranslateUi(QWidget LifetimeConstraintWidget) { LifetimeConstraintWidget.WindowTitle = QApplication.Translate("LifetimeConstraintWidget", "Form", null, QApplication.Encoding.UnicodeUTF8); mCheckBox.ToolTip = QApplication.Translate("LifetimeConstraintWidget", "Key will automatically be removed from agent after specified lifetime", null, QApplication.Encoding.UnicodeUTF8); mCheckBox.Text = QApplication.Translate("LifetimeConstraintWidget", "Lifetime", null, QApplication.Encoding.UnicodeUTF8); mSecondsLable.Text = QApplication.Translate("LifetimeConstraintWidget", "Seconds", null, QApplication.Encoding.UnicodeUTF8); }
public void SetupUi(QWidget Form) { if (Form.ObjectName == "") Form.ObjectName = "Form"; QSize Size = new QSize(887, 679); Size = Size.ExpandedTo(Form.MinimumSizeHint()); Form.Size = Size; vboxLayout = new QVBoxLayout(Form); vboxLayout.ObjectName = "vboxLayout"; tabWidget = new QTabWidget(Form); tabWidget.ObjectName = "tabWidget"; tab = new QWidget(); tab.ObjectName = "tab"; tabWidget.AddTab(tab, QApplication.Translate("Form", "Tab 1", null, QApplication.Encoding.UnicodeUTF8)); tab_2 = new QWidget(); tab_2.ObjectName = "tab_2"; vboxLayout1 = new QVBoxLayout(tab_2); vboxLayout1.ObjectName = "vboxLayout1"; listView = new QListView(tab_2); listView.ObjectName = "listView"; vboxLayout1.AddWidget(listView); groupBox = new QGroupBox(tab_2); groupBox.ObjectName = "groupBox"; groupBox.MinimumSize = new QSize(0, 64); pushButton = new QPushButton(groupBox); pushButton.ObjectName = "pushButton"; pushButton.Geometry = new QRect(690, 6, 151, 51); radioButton = new QRadioButton(groupBox); radioButton.ObjectName = "radioButton"; radioButton.Geometry = new QRect(120, 10, 109, 22); radioButton_2 = new QRadioButton(groupBox); radioButton_2.ObjectName = "radioButton_2"; radioButton_2.Geometry = new QRect(120, 40, 109, 22); lineEdit = new QLineEdit(groupBox); lineEdit.ObjectName = "lineEdit"; lineEdit.Geometry = new QRect(280, 20, 371, 27); vboxLayout1.AddWidget(groupBox); tabWidget.AddTab(tab_2, QApplication.Translate("Form", "Join", null, QApplication.Encoding.UnicodeUTF8)); tab_3 = new QWidget(); tab_3.ObjectName = "tab_3"; tabWidget.AddTab(tab_3, QApplication.Translate("Form", "Page", null, QApplication.Encoding.UnicodeUTF8)); vboxLayout.AddWidget(tabWidget); RetranslateUi(Form); tabWidget.CurrentIndex = 1; QMetaObject.ConnectSlotsByName(Form); }
public void RetranslateUi(QWidget Form) { Form.WindowTitle = QApplication.Translate("Form", "Form", null, QApplication.Encoding.UnicodeUTF8); tabWidget.SetTabText(tabWidget.IndexOf(tab), QApplication.Translate("Form", "Tab 1", null, QApplication.Encoding.UnicodeUTF8)); groupBox.Title = QApplication.Translate("Form", "GroupBox", null, QApplication.Encoding.UnicodeUTF8); pushButton.Text = QApplication.Translate("Form", "PushButton", null, QApplication.Encoding.UnicodeUTF8); radioButton.Text = QApplication.Translate("Form", "RadioButton", null, QApplication.Encoding.UnicodeUTF8); radioButton_2.Text = QApplication.Translate("Form", "RadioButton", null, QApplication.Encoding.UnicodeUTF8); tabWidget.SetTabText(tabWidget.IndexOf(tab_2), QApplication.Translate("Form", "Join", null, QApplication.Encoding.UnicodeUTF8)); tabWidget.SetTabText(tabWidget.IndexOf(tab_3), QApplication.Translate("Form", "Page", null, QApplication.Encoding.UnicodeUTF8)); }
public static void Main() { // Create a new QApplication object QApp = QApp.CreateQApp(); // Create a basic widget var widg1 = new QWidget(); widg1.Resize(250, 150); widg1.WindowTitle = "Simple example"; widg1.Show(); QApplication.Exec(); }
public void SetupUi(QWidget LifetimeConstraintWidget) { if (LifetimeConstraintWidget.ObjectName == "") LifetimeConstraintWidget.ObjectName = "LifetimeConstraintWidget"; QSize Size = new QSize(283, 48); Size = Size.ExpandedTo(LifetimeConstraintWidget.MinimumSizeHint); LifetimeConstraintWidget.Size = Size; horizontalLayout = new QHBoxLayout(LifetimeConstraintWidget); horizontalLayout.SetContentsMargins(0, 0, 0, 0); horizontalLayout.ObjectName = "horizontalLayout"; horizontalLayout.sizeConstraint = QLayout.SizeConstraint.SetNoConstraint; mCheckBox = new QCheckBox(LifetimeConstraintWidget); mCheckBox.ObjectName = "mCheckBox"; QSizePolicy sizePolicy = new QSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed); sizePolicy.SetHorizontalStretch(0); sizePolicy.SetVerticalStretch(0); sizePolicy.SetHeightForWidth(mCheckBox.SizePolicy.HasHeightForWidth); mCheckBox.SizePolicy = sizePolicy; horizontalLayout.AddWidget(mCheckBox); mLineEdit = new QLineEdit(LifetimeConstraintWidget); mLineEdit.ObjectName = "mLineEdit"; mLineEdit.Enabled = false; sizePolicy.SetHeightForWidth(mLineEdit.SizePolicy.HasHeightForWidth); mLineEdit.SizePolicy = sizePolicy; mLineEdit.MaximumSize = new QSize(40, 16777215); mLineEdit.InputMethodHints = Qt.InputMethodHint.ImhPreferNumbers; horizontalLayout.AddWidget(mLineEdit); mSecondsLable = new QLabel(LifetimeConstraintWidget); mSecondsLable.ObjectName = "mSecondsLable"; mSecondsLable.Enabled = false; horizontalLayout.AddWidget(mSecondsLable); spacerItem = new QSpacerItem(90, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum); horizontalLayout.AddItem(spacerItem); RetranslateUi(LifetimeConstraintWidget); QObject.Connect(mCheckBox, Qt.SIGNAL("toggled(bool)"), mLineEdit, Qt.SLOT("setEnabled(bool)")); QObject.Connect(mCheckBox, Qt.SIGNAL("toggled(bool)"), mSecondsLable, Qt.SLOT("setEnabled(bool)")); QObject.Connect(mCheckBox, Qt.SIGNAL("toggled(bool)"), mLineEdit, Qt.SLOT("setFocus()")); QMetaObject.ConnectSlotsByName(LifetimeConstraintWidget); }
public SourceWindow(QWidget parent, ClassItem klass) : base(parent, "", WidgetFlags.WType_TopLevel) { SetCaption (klass.Model.sourceFile.sourceFile); Resize (640, 480); QBoxLayout layout = new QBoxLayout (this, 0); editor = new QTextEdit (this); editor.SetTextFormat (TextFormat.PlainText); editor.SetReadOnly (true); editor.SetFamily ("misc-fixed"); editor.SetPointSize (13); editor.SetWordWrap (QTextEdit.WordWrap.NoWrap); layout.AddWidget (editor); int[] coverage = klass.Model.sourceFile.Coverage; StreamReader infile = new StreamReader (klass.Model.sourceFile.sourceFile); int pos = 1; QColor deadColor = editor.Color (); QColor hitColor = new QColor ("blue"); QColor missedColor = new QColor ("red"); while (infile.Peek () > -1) { if (pos < coverage.Length) { int count = coverage [pos]; if (count > 0) editor.SetColor (hitColor); else if (count == 0) editor.SetColor (missedColor); else editor.SetColor (deadColor); } else editor.SetColor (deadColor); editor.Append (String.Format ("{0, 6}", pos) + " " + infile.ReadLine ()); pos ++; } editor.SetCursorPosition (0, 0); }
public void SetupUi(QWidget ConfirmConstraintWidget) { if (ConfirmConstraintWidget.ObjectName == "") ConfirmConstraintWidget.ObjectName = "ConfirmConstraintWidget"; horizontalLayout = new QHBoxLayout(ConfirmConstraintWidget); horizontalLayout.Spacing = 6; horizontalLayout.SetContentsMargins(0, 0, 0, 0); horizontalLayout.ObjectName = "horizontalLayout"; horizontalLayout.sizeConstraint = QLayout.SizeConstraint.SetNoConstraint; mCheckBox = new QCheckBox(ConfirmConstraintWidget); mCheckBox.ObjectName = "mCheckBox"; horizontalLayout.AddWidget(mCheckBox); spacerItem = new QSpacerItem(111, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum); horizontalLayout.AddItem(spacerItem); RetranslateUi(ConfirmConstraintWidget); QMetaObject.ConnectSlotsByName(ConfirmConstraintWidget); }
public MyWidget() { QVBoxLayout vBoxLayout = new QVBoxLayout(this); tabWidget = new QTabWidget(); tabWidget.TabsClosable = true; vBoxLayout.AddWidget(tabWidget); QWidget wdgt = new QWidget(); QVBoxLayout vBox2 = new QVBoxLayout(wdgt); QRadioButton btnRadio1 = new QRadioButton("Radio Button 1", wdgt); QRadioButton btnRadio2 = new QRadioButton("Radio Button 2", wdgt); QRadioButton btnRadio3 = new QRadioButton("Radio Button 3", wdgt); vBox2.AddWidget(btnRadio1); vBox2.AddWidget(btnRadio2); vBox2.AddWidget(btnRadio3); vBox2.AddStretch(1); tabWidget.AddTab(wdgt, "Home"); QWidget wdgt1 = new QWidget(); QVBoxLayout vBox3 = new QVBoxLayout(wdgt1); QCheckBox chkBox1 = new QCheckBox("Check Box 1", wdgt1); QCheckBox chkBox2 = new QCheckBox("Check Box 2", wdgt1); QCheckBox chkBox3 = new QCheckBox("Check Box 3", wdgt1); vBox3.AddWidget(chkBox1); vBox3.AddWidget(chkBox2); vBox3.AddWidget(chkBox3); vBox3.AddStretch(1); tabWidget.AddTab(wdgt1, "Tab 1"); tabWidget.TabCloseRequested += OnTabCloseRequested; Resize(300, 200); Show(); }
public void RetranslateUi(QWidget KeyManagerFrame) { KeyManagerFrame.WindowTitle = QApplication.Translate("KeyManagerFrame", "Dialog", null, QApplication.Encoding.UnicodeUTF8); mMessageLabel.Text = QApplication.Translate("KeyManagerFrame", "Message", null, QApplication.Encoding.UnicodeUTF8); if (mTableWidget.ColumnCount < 6) mTableWidget.ColumnCount = 6; QTableWidgetItem __colItem = new QTableWidgetItem(); __colItem.Text = QApplication.Translate("KeyManagerFrame", "C", null, QApplication.Encoding.UnicodeUTF8); mTableWidget.SetHorizontalHeaderItem(0, __colItem); QTableWidgetItem __colItem1 = new QTableWidgetItem(); __colItem1.Text = QApplication.Translate("KeyManagerFrame", "L", null, QApplication.Encoding.UnicodeUTF8); mTableWidget.SetHorizontalHeaderItem(1, __colItem1); QTableWidgetItem __colItem2 = new QTableWidgetItem(); __colItem2.Text = QApplication.Translate("KeyManagerFrame", "Type", null, QApplication.Encoding.UnicodeUTF8); mTableWidget.SetHorizontalHeaderItem(2, __colItem2); QTableWidgetItem __colItem3 = new QTableWidgetItem(); __colItem3.Text = QApplication.Translate("KeyManagerFrame", "Size", null, QApplication.Encoding.UnicodeUTF8); mTableWidget.SetHorizontalHeaderItem(3, __colItem3); QTableWidgetItem __colItem4 = new QTableWidgetItem(); __colItem4.Text = QApplication.Translate("KeyManagerFrame", "Fingerprint", null, QApplication.Encoding.UnicodeUTF8); mTableWidget.SetHorizontalHeaderItem(4, __colItem4); QTableWidgetItem __colItem5 = new QTableWidgetItem(); __colItem5.Text = QApplication.Translate("KeyManagerFrame", "Comment", null, QApplication.Encoding.UnicodeUTF8); mTableWidget.SetHorizontalHeaderItem(5, __colItem5); mLockButton.Text = QApplication.Translate("KeyManagerFrame", "Lock", null, QApplication.Encoding.UnicodeUTF8); mUnlockButton.Text = QApplication.Translate("KeyManagerFrame", "Unlock", null, QApplication.Encoding.UnicodeUTF8); mAddButton.Text = QApplication.Translate("KeyManagerFrame", "Add...", null, QApplication.Encoding.UnicodeUTF8); mRemoveButton.Text = QApplication.Translate("KeyManagerFrame", "Remove", null, QApplication.Encoding.UnicodeUTF8); mRemoveAllButton.Text = QApplication.Translate("KeyManagerFrame", "Remove All", null, QApplication.Encoding.UnicodeUTF8); mRefreshButton.Text = QApplication.Translate("KeyManagerFrame", "Refresh", null, QApplication.Encoding.UnicodeUTF8); }
public KeyFileDialog(QWidget aParent = null, string aCaption = "", string aDirectory = "", string aFilter = "") : base(aParent, aCaption, aDirectory, aFilter) { SetOption (QFileDialog.Option.DontUseNativeDialog, true); SetNameFilter (Tr ("All Files (*)") + ";;" + Tr ("PuTTY Private Key Files (*.ppk)") ); fileMode = QFileDialog.FileMode.ExistingFiles; mConfirmWidget = new ConfirmConstraintWidget(); mLifetimeWidget = new LifetimeConstraintWidget(); // can't get layout as QGridLayout, so we are forced to add to bottom // and add extra widgets to take up space Layout.AddWidget (new QLabel(Tr ("Constraints:"))); Layout.AddWidget (mConfirmWidget); Layout.AddWidget (new QWidget()); Layout.AddWidget (new QWidget()); Layout.AddWidget (mLifetimeWidget); }
public void AddRow(QWidget widget) { interceptor.Invoke("addRow#", "addRow(QWidget*)", typeof(void), typeof(QWidget), widget); }
public void TestPointerPassedAsItsSecondaryBase() { using (QApplication application = new QApplication()) { using (QWidget widget = new QWidget()) { using (QPainter painter = new QPainter(widget)) { Assert.That(widget.Test, Is.EqualTo(5)); } } } }
public void RemoveMapping(QWidget widget) { interceptor.Invoke("removeMapping#", "removeMapping(QWidget*)", typeof(void), typeof(QWidget), widget); }
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/Images/comex_256.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/Images/comex_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); }
public EditGroupsWidget(QWidget parent) : base(parent) { SetupUi(); addButton.icon = Gui.LoadIcon("list-add", 16); }
public void AddMapping(QWidget widget, int section) { interceptor.Invoke("addMapping#$", "addMapping(QWidget*, int)", typeof(void), typeof(QWidget), widget, typeof(int), section); }
public QFormLayout(QWidget parent) : this((Type)null) { CreateProxy(); interceptor.Invoke("QFormLayout#", "QFormLayout(QWidget*)", typeof(void), typeof(QWidget), parent); }
public abstract void Simulate(QWidget w);
public void SetWidget(int row, QFormLayout.ItemRole role, QWidget widget) { interceptor.Invoke("setWidget$$#", "setWidget(int, QFormLayout::ItemRole, QWidget*)", typeof(void), typeof(int), row, typeof(QFormLayout.ItemRole), role, typeof(QWidget), widget); }
public QWidget LabelForField(QWidget field) { return((QWidget)interceptor.Invoke("labelForField#", "labelForField(QWidget*) const", typeof(QWidget), typeof(QWidget), field)); }
public void InsertRow(int row, QWidget widget) { interceptor.Invoke("insertRow$#", "insertRow(int, QWidget*)", typeof(void), typeof(int), row, typeof(QWidget), widget); }
public void InsertRow(int row, string labelText, QWidget field) { interceptor.Invoke("insertRow$$#", "insertRow(int, const QString&, QWidget*)", typeof(void), typeof(int), row, typeof(string), labelText, typeof(QWidget), field); }
public void InsertRow(int row, QWidget label, QLayout field) { interceptor.Invoke("insertRow$##", "insertRow(int, QWidget*, QLayout*)", typeof(void), typeof(int), row, typeof(QWidget), label, typeof(QLayout), field); }
public void AddTab(QWidget page, string label) { m_Pages.AddWidget(page); m_TabBar.AddTab(label); CurrentIndex = CurrentIndex; }
public void AddRow(QWidget label, QLayout field) { interceptor.Invoke("addRow##", "addRow(QWidget*, QLayout*)", typeof(void), typeof(QWidget), label, typeof(QLayout), field); }
public Tab(string text, QWidget parent) : base(text, parent) { base.Alignment = (uint)QLabel.AlignmentFlag.AlignLeft | (uint)QLabel.AlignmentFlag.AlignVCenter; base.MinimumWidth = 32; }
public QSvgWidget(string file, QWidget parent) : this((Type)null) { CreateProxy(); interceptor.Invoke("QSvgWidget$#", "QSvgWidget(const QString&, QWidget*)", typeof(void), typeof(string), file, typeof(QWidget), parent); }
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.comboBox_3.InsertItems(0, new System.Collections.Generic.List <string>(new string[] { "Grid", "List" })); 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.comboBox_4.InsertItems(0, new System.Collections.Generic.List <string>(new string[] { "Name", "Status" })); 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.comboBox_5.InsertItems(0, new System.Collections.Generic.List <string>(new string[] { "Disabled" })); 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.Widgets.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); }
protected void SetupUi() { base.ObjectName = "AddAccountDialog"; this.Geometry = new QRect(0, 0, 436, 239); this.WindowTitle = "Add Account"; this.Modal = true; QVBoxLayout verticalLayout; verticalLayout = new QVBoxLayout(this); verticalLayout.Spacing = 0; verticalLayout.sizeConstraint = QLayout.SizeConstraint.SetFixedSize; verticalLayout.Margin = 0; 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 = 6; this.radioButton = new QRadioButton(this.page); this.radioButton.ObjectName = "radioButton"; this.radioButton.Text = "I already have an &account I'd like to use"; this.radioButton.Checked = true; verticalLayout_2.AddWidget(this.radioButton); this.radioButton_2 = new QRadioButton(this.page); this.radioButton_2.ObjectName = "radioButton_2"; this.radioButton_2.Enabled = false; this.radioButton_2.Text = "I'd like to &create a new account"; verticalLayout_2.AddWidget(this.radioButton_2); QSpacerItem verticalSpacer; verticalSpacer = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding); verticalLayout_2.AddItem(verticalSpacer); this.buttonBox = new QDialogButtonBox(this.page); this.buttonBox.ObjectName = "buttonBox"; this.buttonBox.Orientation = Qt.Orientation.Horizontal; this.buttonBox.StandardButtons = global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel"); verticalLayout_2.AddWidget(this.buttonBox); 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 = 6; this.label_6 = new QLabel(this.page_2); this.label_6.ObjectName = "label_6"; this.label_6.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;\">Please enter the information about your existing account:</span></p></body></html>"; verticalLayout_3.AddWidget(this.label_6); QFormLayout formLayout; formLayout = new QFormLayout(); verticalLayout_3.AddLayout(formLayout); this.label = new QLabel(this.page_2); this.label.ObjectName = "label"; this.label.Text = "&Jabber ID:"; formLayout.SetWidget(0, QFormLayout.ItemRole.LabelRole, this.label); this.jidLineEdit = new QLineEdit(this.page_2); this.jidLineEdit.ObjectName = "jidLineEdit"; formLayout.SetWidget(0, QFormLayout.ItemRole.FieldRole, this.jidLineEdit); this.label_2 = new QLabel(this.page_2); this.label_2.ObjectName = "label_2"; this.label_2.Text = "Eg: username@hostname"; this.label_2.Alignment = ((global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeading") | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeft")) | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignTop")); formLayout.SetWidget(1, QFormLayout.ItemRole.FieldRole, this.label_2); this.label_3 = new QLabel(this.page_2); this.label_3.ObjectName = "label_3"; this.label_3.Text = "&Password:"******"passwordLineEdit"; this.passwordLineEdit.echoMode = QLineEdit.EchoMode.Password; formLayout.SetWidget(2, QFormLayout.ItemRole.FieldRole, this.passwordLineEdit); this.label_4 = new QLabel(this.page_2); this.label_4.ObjectName = "label_4"; this.label_4.Text = "&Resource:"; formLayout.SetWidget(3, QFormLayout.ItemRole.LabelRole, this.label_4); this.resourceComboBox = new QComboBox(this.page_2); this.resourceComboBox.ObjectName = "resourceComboBox"; this.resourceComboBox.Editable = true; formLayout.SetWidget(3, QFormLayout.ItemRole.FieldRole, this.resourceComboBox); this.resourceComboBox.InsertItems(0, new System.Collections.Generic.List <string>(new string[] { "Home", "Work", "Laptop", "Netbook" })); this.label_5 = new QLabel(this.page_2); this.label_5.ObjectName = "label_5"; this.label_5.Text = "One word describing this computer, i.e. \"HomeLaptop\""; this.label_5.Alignment = ((global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeading") | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeft")) | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignTop")); this.label_5.WordWrap = false; formLayout.SetWidget(4, QFormLayout.ItemRole.FieldRole, this.label_5); this.autoConnectCheckBox = new QCheckBox(this.page_2); this.autoConnectCheckBox.ObjectName = "autoConnectCheckBox"; this.autoConnectCheckBox.Text = "Connect &Automatically"; this.autoConnectCheckBox.Checked = true; formLayout.SetWidget(5, QFormLayout.ItemRole.FieldRole, this.autoConnectCheckBox); QSpacerItem verticalSpacer_2; verticalSpacer_2 = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding); verticalLayout_3.AddItem(verticalSpacer_2); this.buttonBox_2 = new QDialogButtonBox(this.page_2); this.buttonBox_2.ObjectName = "buttonBox_2"; this.buttonBox_2.StandardButtons = (global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel") | global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok")); verticalLayout_3.AddWidget(this.buttonBox_2); this.stackedWidget.AddWidget(this.page_2); QObject.Connect(buttonBox, Qt.SIGNAL("rejected()"), this, Qt.SLOT("reject()")); QObject.Connect(buttonBox_2,Qt.SIGNAL("rejected()"),this,Qt.SLOT("reject()")); QMetaObject.ConnectSlotsByName(this); this.label.SetBuddy(jidLineEdit); this.label_3.SetBuddy(passwordLineEdit); this.label_4.SetBuddy(resourceComboBox); }
public QByteArray MappedPropertyName(QWidget widget) { return((QByteArray)interceptor.Invoke("mappedPropertyName#", "mappedPropertyName(QWidget*) const", typeof(QByteArray), typeof(QWidget), widget)); }
// QTreeView* QTreeView(QTreeViewPrivate& arg1,QWidget* arg2); >>>> NOT CONVERTED // QTreeView* QTreeView(QTreeViewPrivate& arg1); >>>> NOT CONVERTED public QTreeView(QWidget parent) : this((Type)null) { CreateProxy(); interceptor.Invoke("QTreeView#", "QTreeView(QWidget*)", typeof(void), typeof(QWidget), parent); }
public void AddMapping(QWidget widget, int section, QByteArray propertyName) { interceptor.Invoke("addMapping#$#", "addMapping(QWidget*, int, const QByteArray&)", typeof(void), typeof(QWidget), widget, typeof(int), section, typeof(QByteArray), propertyName); }
public QColorDialog(QColor initial, QWidget parent) : this((Type)null) { CreateProxy(); interceptor.Invoke("QColorDialog##", "QColorDialog(const QColor&, QWidget*)", typeof(void), typeof(QColor), initial, typeof(QWidget), parent); }
public int MappedSection(QWidget widget) { return((int)interceptor.Invoke("mappedSection#", "mappedSection(QWidget*) const", typeof(int), typeof(QWidget), widget)); }
public void SetupUi(QMainWindow MainWindow) { if (MainWindow.ObjectName == "") MainWindow.ObjectName = "MainWindow"; QSize Size = new QSize(631, 570); Size = Size.ExpandedTo(MainWindow.MinimumSizeHint()); MainWindow.Size = Size; MainWindow.MinimumSize = new QSize(600, 550); MainWindow.WindowIcon = new QIcon(":/main/resources/Images/comex_256.png"); action_Open = new QAction(MainWindow); action_Open.ObjectName = "action_Open"; action_Open.icon = new QIcon(":/main/resources/Images/document-open.png"); action_Close = new QAction(MainWindow); action_Close.ObjectName = "action_Close"; action_Close.Enabled = false; action_Close.icon = new QIcon(":/main/resources/Images/document-close.png"); action_Exit = new QAction(MainWindow); action_Exit.ObjectName = "action_Exit"; action_Exit.icon = new QIcon(":/main/resources/Images/application-exit.png"); action_Info = new QAction(MainWindow); action_Info.ObjectName = "action_Info"; action_Info.icon = new QIcon(":/main/resources/Images/dialog-information.png"); action_ATR = new QAction(MainWindow); action_ATR.ObjectName = "action_ATR"; action_ATR.icon = new QIcon(":/main/resources/Images/quickopen.png"); action_Exec_Command = new QAction(MainWindow); action_Exec_Command.ObjectName = "action_Exec_Command"; action_SerialSettings = new QAction(MainWindow); action_SerialSettings.ObjectName = "action_SerialSettings"; action_SerialSettings.icon = new QIcon(":/main/resources/Images/configure.png"); centralwidget = new QWidget(MainWindow); centralwidget.ObjectName = "centralwidget"; gridLayout = new QGridLayout(centralwidget); gridLayout.ObjectName = "gridLayout"; FrameATR = new QGroupBox(centralwidget); FrameATR.ObjectName = "FrameATR"; QSizePolicy sizePolicy = new QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Fixed); sizePolicy.SetHorizontalStretch(0); sizePolicy.SetVerticalStretch(0); sizePolicy.SetHeightForWidth(FrameATR.SizePolicy.HasHeightForWidth()); FrameATR.SizePolicy = sizePolicy; gridLayout1 = new QGridLayout(FrameATR); gridLayout1.ObjectName = "gridLayout1"; TxtATR = new QLineEdit(FrameATR); TxtATR.ObjectName = "TxtATR"; TxtATR.StyleSheet = "color: rgb(30, 109, 30);"; TxtATR.ReadOnly = true; gridLayout1.AddWidget(TxtATR, 0, 0, 1, 1); gridLayout.AddWidget(FrameATR, 0, 0, 1, 1); FrameFile = new QGroupBox(centralwidget); FrameFile.ObjectName = "FrameFile"; gridLayout2 = new QGridLayout(FrameFile); gridLayout2.ObjectName = "gridLayout2"; LstCommands = new QListWidget(FrameFile); LstCommands.ObjectName = "LstCommands"; LstCommands.EditTriggers = Qyoto.Qyoto.GetCPPEnumValue("QAbstractItemView", "NoEditTriggers"); gridLayout2.AddWidget(LstCommands, 0, 0, 1, 1); gridLayout.AddWidget(FrameFile, 1, 0, 1, 1); FrameExchange = new QGroupBox(centralwidget); FrameExchange.ObjectName = "FrameExchange"; sizePolicy.SetHeightForWidth(FrameExchange.SizePolicy.HasHeightForWidth()); FrameExchange.SizePolicy = sizePolicy; gridLayout3 = new QGridLayout(FrameExchange); gridLayout3.ObjectName = "gridLayout3"; LblCommand = new QLabel(FrameExchange); LblCommand.ObjectName = "LblCommand"; gridLayout3.AddWidget(LblCommand, 0, 0, 1, 1); TxtCmd = new QLineEdit(FrameExchange); TxtCmd.ObjectName = "TxtCmd"; TxtCmd.StyleSheet = "color: rgb(30, 109, 30);"; gridLayout3.AddWidget(TxtCmd, 0, 1, 1, 1); BtnSend = new QPushButton(FrameExchange); BtnSend.ObjectName = "BtnSend"; BtnSend.icon = new QIcon(":/main/resources/Images/arrow-right.png"); gridLayout3.AddWidget(BtnSend, 0, 2, 1, 1); LblResponse = new QLabel(FrameExchange); LblResponse.ObjectName = "LblResponse"; gridLayout3.AddWidget(LblResponse, 1, 0, 1, 1); TxtResp = new QLineEdit(FrameExchange); TxtResp.ObjectName = "TxtResp"; TxtResp.StyleSheet = "color: rgb(0, 0, 255);"; TxtResp.ReadOnly = true; gridLayout3.AddWidget(TxtResp, 1, 1, 1, 1); gridLayout.AddWidget(FrameExchange, 2, 0, 1, 1); MainWindow.SetCentralWidget(centralwidget); menubar = new QMenuBar(MainWindow); menubar.ObjectName = "menubar"; menubar.Geometry = new QRect(0, 0, 631, 24); menu_File = new QMenu(menubar); menu_File.ObjectName = "menu_File"; menu_Reader = new QMenu(menubar); menu_Reader.ObjectName = "menu_Reader"; menu_About = new QMenu(menubar); menu_About.ObjectName = "menu_About"; MainWindow.SetMenuBar(menubar); statusbar = new QStatusBar(MainWindow); statusbar.ObjectName = "statusbar"; MainWindow.SetStatusBar(statusbar); toolBar = new QToolBar(MainWindow); toolBar.ObjectName = "toolBar"; toolBar.Movable = false; toolBar.ToolButtonStyle = Qt.ToolButtonStyle.ToolButtonTextBesideIcon; toolBar.Floatable = false; MainWindow.AddToolBar(Qt.ToolBarArea.TopToolBarArea, toolBar); menubar.AddAction(menu_File.MenuAction()); menubar.AddAction(menu_Reader.MenuAction()); menubar.AddAction(menu_About.MenuAction()); menu_File.AddAction(action_Open); menu_File.AddAction(action_Close); menu_File.AddSeparator(); menu_File.AddAction(action_SerialSettings); menu_File.AddSeparator(); menu_File.AddAction(action_Exit); menu_About.AddAction(action_Info); toolBar.AddAction(action_Open); toolBar.AddAction(action_Close); toolBar.AddAction(action_SerialSettings); toolBar.AddAction(action_ATR); toolBar.AddAction(action_Info); toolBar.AddSeparator(); toolBar.AddAction(action_Exit); RetranslateUi(MainWindow); QMetaObject.ConnectSlotsByName(MainWindow); }
public void RetranslateUi(QWidget ConfirmConstraintWidget) { ConfirmConstraintWidget.WindowTitle = QApplication.Translate("ConfirmConstraintWidget", "Form", null, QApplication.Encoding.UnicodeUTF8); mCheckBox.ToolTip = QApplication.Translate("ConfirmConstraintWidget", "User confirmation will be required each time this key is used to authenticate", null, QApplication.Encoding.UnicodeUTF8); mCheckBox.Text = QApplication.Translate("ConfirmConstraintWidget", "Require confirmation", null, QApplication.Encoding.UnicodeUTF8); }
public void AddRow(string labelText, QWidget field) { interceptor.Invoke("addRow$#", "addRow(const QString&, QWidget*)", typeof(void), typeof(string), labelText, typeof(QWidget), field); }
public static QColor GetColor(QColor initial, QWidget parent) { return((QColor)staticInterceptor.Invoke("getColor##", "getColor(const QColor&, QWidget*)", typeof(QColor), typeof(QColor), initial, typeof(QWidget), parent)); }
public Gui(Net net) { net.newMsg += this.addMessage; // copy the net object so all methods can access it netCpy = net; setWindowTitle("Group-chat"); // Read-only text box where we display messages from everyone. // This widget expands both horizontally and vertically. // MULTI line text edit textview = new QTextEdit(this); textview.setReadOnly(true); // Small text-entry box the user can enter messages. // This widget normally expands only horizontally, // leaving extra vertical space for the textview widget. // // Challenge! Change this into a read/write QTextEdit, // so that the user can easily enter multi-line messages. // single line text edit textline = new QLineEdit(this); // Create the list of nodes //table = new QListView(this); model = new QStringListModel(); //model.setStringList(net.peerNames); // Lay out the widgets to appear in the main window. // For Qt widget and layout concepts see: // http://doc.trolltech.com/4.6/widgets-and-layouts.html // Q Vertical Box layout QVBoxLayout layout = new QVBoxLayout(); layout.addWidget(textview); layout.addWidget(textline); // add objectst to layout tehn QVBoxLayout peerLayout = new QVBoxLayout(); QLabel title = new QLabel("List of peers:"); peerLayout.addWidget(title); for(int i=0; i< net.peerList.size(); i++){ String peerName = (String)net.peerList.get(i); Console.WriteLine(peerName); QLabel label = new QLabel(peerName); peerLayout.addWidget(label); } QPushButton button = new QPushButton("Add Peer"); QPushButton sendButton = new QPushButton("Send Message"); sendButton.clicked.connect(this,"gotReturnPressed()"); button.clicked.connect(this,"addPeer()"); QVBoxLayout buttonLay = new QVBoxLayout(); buttonLay.addWidget(sendButton); buttonLay.addWidget(button); QWidget buttonW = new QWidget(this); buttonW.setLayout(buttonLay); QWidget peers = new QWidget(this); peers.setLayout(peerLayout); QWidget msgAndInput = new QWidget(this); msgAndInput.setLayout(layout); QHBoxLayout window = new QHBoxLayout(); window.addWidget(peers); window.addWidget(msgAndInput); window.addWidget(buttonW); base.setLayout(window); //layout.addWidget(table); // base is like "this" in Java, base object of GUI //base.setLayout(layout); // Register a callback on the textline's returnPressed signal // so that we can send the message entered by the user. // Note that here we're using a Qt signal, not a C# event. // The Qt Jambi bindings for C# don't support custom signals, // only the the signals built-in to "native" Qt objects. // Thus, any new signals we need to define should be C# events; // see the example below. // removed this functionality and replaced with a button //textline.returnPressed.connect(this, "gotReturnPressed()"); // Lab 1: Insert code here to add some kind of GUI facility // allowing the user to view the list of peers available, // as maintained by the Net instance provided above. // You might do this simply by adding a widget to this dialog, // or by adding a button or menu that opens a new dialog // to display the list of peers, or whatever method you prefer. }
public CoverageView(QWidget parent, String fileName) : base(parent) { SetRootIsDecorated (true); AddColumn ("Classes"); AddColumn ("Lines Hit"); AddColumn ("Lines Missed"); AddColumn ("Coverage"); sourceViews = new Hashtable (); // TODO: Why the cast ? SetColumnAlignment (1, (int)Qt.AlignmentFlags.AlignCenter); SetColumnAlignment (2, (int)Qt.AlignmentFlags.AlignCenter); SetColumnAlignment (3, (int)Qt.AlignmentFlags.AlignCenter); QObject.Connect (this, SIGNAL ("doubleClicked(QListViewItem)"), this, SLOT ("OnDoubleClick(QListViewItem)")); QObject.Connect (this, SIGNAL ("expanded(QListViewItem)"), this, SLOT ("OnExpanded(QListViewItem)")); // TODO: This is not supported by current Qt# try { QObject.Connect (this, SIGNAL ("contextMenuRequested(QListViewItem,QPoint,int)"), this, SLOT ("OnContextMenu(QListViewItem, QPoint, Int32)")); } catch (Exception) { } QPixmap namespaceOpenPixmap = new QPixmap (namespace_open_xpm); QPixmap namespaceClosedPixmap = new QPixmap (namespace_closed_xpm); QPixmap classPixmap = new QPixmap (class_xpm); model = new CoverageModel (); foreach (string filter in DEFAULT_FILTERS) { model.AddFilter (filter); } model.ReadFromFile (fileName); QListViewItem rootItem = new TreeItem (this, "PROJECT", model); rootItem.SetOpen (true); Hashtable classes2 = model.Classes; namespaces = new Hashtable (); foreach (string name in classes2.Keys) { ClassCoverageItem klass = (ClassCoverageItem)classes2 [name]; if (klass.filtered) continue; string namespace2 = klass.name_space; NamespaceItem nsItem = (NamespaceItem)namespaces [namespace2]; if (nsItem == null) { // Create namespaces String nsPrefix = ""; QListViewItem parentItem = rootItem; foreach (String nsPart in namespace2.Split ('.')) { if (nsPrefix == "") nsPrefix = nsPart; else nsPrefix = nsPrefix + "." + nsPart; NamespaceCoverageItem nsModel = (NamespaceCoverageItem)model.Namespaces [nsPrefix]; if (nsModel.filtered) break; nsItem = (NamespaceItem)namespaces [nsPrefix]; if (nsItem == null) { nsItem = new NamespaceItem (parentItem, nsPrefix, nsModel); nsItem.SetOpen (true); nsItem.SetPixmap (0, namespaceOpenPixmap); namespaces [nsPrefix] = nsItem; } parentItem = nsItem; } } if (nsItem != null) { ClassItem classItem = new ClassItem (nsItem, klass.name, klass); classItem.SetPixmap (0, classPixmap); if (klass.ChildCount > 0) classItem.SetExpandable (true); } } }
public LCDRange(string text, QWidget parent) : base(parent) { init(); setText(text); }
private QGroupBox InitToggleButtons() { var groupBox = new QGroupBox ("Toggle Buttons", this); color = new QColor (); redButton = new QPushButton ("Red", this); greenButton = new QPushButton ("Green", this); blueButton = new QPushButton ("Blue", this); colorBoxWidget = new QWidget (this); colorBoxWidget.StyleSheet = "QWidget { background-color: black }"; redButton.Toggled += OnToggled; greenButton.Toggled += OnToggled; blueButton.Toggled += OnToggled; redButton.Checkable = true; greenButton.Checkable = true; blueButton.Checkable = true; QHBoxLayout hBox = new QHBoxLayout (); QVBoxLayout vBox = new QVBoxLayout (); vBox.AddWidget (redButton); vBox.AddWidget (greenButton); vBox.AddWidget (blueButton); hBox.AddLayout (vBox); hBox.AddWidget (colorBoxWidget); groupBox.Layout = hBox; return groupBox; }
// QAbstractSpinBox* QAbstractSpinBox(QAbstractSpinBoxPrivate& arg1,QWidget* arg2); >>>> NOT CONVERTED // QAbstractSpinBox* QAbstractSpinBox(QAbstractSpinBoxPrivate& arg1); >>>> NOT CONVERTED public QAbstractSpinBox(QWidget parent) : this((Type)null) { CreateProxy(); interceptor.Invoke("QAbstractSpinBox#", "QAbstractSpinBox(QWidget*)", typeof(void), typeof(QWidget), parent); }
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); }
public virtual QWidget CreateEditor(QVariant.TypeOf type, QWidget parent) { return((QWidget)interceptor.Invoke("createEditor$#", "createEditor(QVariant::Type, QWidget*) const", typeof(QWidget), typeof(QVariant.TypeOf), type, typeof(QWidget), parent)); }
public void SetupUi(QWidget KeyManagerFrame) { if (KeyManagerFrame.ObjectName == "") KeyManagerFrame.ObjectName = "KeyManagerFrame"; QSize Size = new QSize(787, 318); Size = Size.ExpandedTo(KeyManagerFrame.MinimumSizeHint); KeyManagerFrame.Size = Size; verticalLayout = new QVBoxLayout(KeyManagerFrame); verticalLayout.ObjectName = "verticalLayout"; mStackedWidget = new QStackedWidget(KeyManagerFrame); mStackedWidget.ObjectName = "mStackedWidget"; mMessagePage = new QWidget(); mMessagePage.ObjectName = "mMessagePage"; mMessagePaneLayout_3 = new QHBoxLayout(mMessagePage); mMessagePaneLayout_3.SetContentsMargins(0, 0, 0, 0); mMessagePaneLayout_3.ObjectName = "mMessagePaneLayout_3"; mMessageLabel = new QLabel(mMessagePage); mMessageLabel.ObjectName = "mMessageLabel"; QFont font = new QFont(); font.PointSize = 12; mMessageLabel.Font = font; mMessageLabel.AcceptDrops = true; mMessageLabel.Alignment = Qt.AlignmentFlag.AlignCenter; mMessagePaneLayout_3.AddWidget(mMessageLabel); mStackedWidget.AddWidget(mMessagePage); mTablePage = new QWidget(); mTablePage.ObjectName = "mTablePage"; horizontalLayout_2 = new QHBoxLayout(mTablePage); horizontalLayout_2.SetContentsMargins(0, 0, 0, 0); horizontalLayout_2.ObjectName = "horizontalLayout_2"; mTableWidget = new QTableWidget(mTablePage); mTableWidget.ObjectName = "mTableWidget"; QFont font1 = new QFont(); font1.PointSize = 8; mTableWidget.Font = font1; mTableWidget.FocusPolicy = Qt.FocusPolicy.NoFocus; mTableWidget.AcceptDrops = true; mTableWidget.EditTriggers = QAbstractItemView.EditTrigger.NoEditTriggers; mTableWidget.dragDropMode = QAbstractItemView.DragDropMode.DropOnly; mTableWidget.DefaultDropAction = Qt.DropAction.CopyAction; mTableWidget.AlternatingRowColors = true; mTableWidget.selectionMode = QAbstractItemView.SelectionMode.MultiSelection; mTableWidget.selectionBehavior = QAbstractItemView.SelectionBehavior.SelectRows; mTableWidget.ShowGrid = false; mTableWidget.WordWrap = false; mTableWidget.RowCount = 0; mTableWidget.ColumnCount = 6; mTableWidget.HorizontalHeader.StretchLastSection = true; mTableWidget.VerticalHeader.Visible = false; horizontalLayout_2.AddWidget(mTableWidget); mStackedWidget.AddWidget(mTablePage); verticalLayout.AddWidget(mStackedWidget); mButtonLayout = new QHBoxLayout(); mButtonLayout.ObjectName = "mButtonLayout"; mLockButton = new QPushButton(KeyManagerFrame); mLockButton.ObjectName = "mLockButton"; mLockButton.Checkable = false; mButtonLayout.AddWidget(mLockButton); mUnlockButton = new QPushButton(KeyManagerFrame); mUnlockButton.ObjectName = "mUnlockButton"; mButtonLayout.AddWidget(mUnlockButton); mAddButton = new QPushButton(KeyManagerFrame); mAddButton.ObjectName = "mAddButton"; mButtonLayout.AddWidget(mAddButton); mRemoveButton = new QPushButton(KeyManagerFrame); mRemoveButton.ObjectName = "mRemoveButton"; mButtonLayout.AddWidget(mRemoveButton); mRemoveAllButton = new QPushButton(KeyManagerFrame); mRemoveAllButton.ObjectName = "mRemoveAllButton"; mButtonLayout.AddWidget(mRemoveAllButton); mRefreshButton = new QPushButton(KeyManagerFrame); mRefreshButton.ObjectName = "mRefreshButton"; mButtonLayout.AddWidget(mRefreshButton); verticalLayout.AddLayout(mButtonLayout); RetranslateUi(KeyManagerFrame); mStackedWidget.CurrentIndex = 1; QMetaObject.ConnectSlotsByName(KeyManagerFrame); }
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 LCDRange(QWidget parent) : base(parent) { init(); }
public override void Paint(QtGui.QPainter painter, QStyleOptionGraphicsItem option, QWidget widget = null) { }