示例#1
0
 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);
 }
示例#2
0
    public void SetupUi(QDialog SettingsDialog)
    {
    if (SettingsDialog.ObjectName == "")
        SettingsDialog.ObjectName = "SettingsDialog";
    QSize Size = new QSize(320, 280);
    Size = Size.ExpandedTo(SettingsDialog.MinimumSizeHint());
    SettingsDialog.Size = Size;
    SettingsDialog.MinimumSize = new QSize(320, 280);
    SettingsDialog.WindowIcon = new QIcon(":/main/resources/monosim_128.png");
    SettingsDialog.Modal = true;
    gridLayout = new QGridLayout(SettingsDialog);
    gridLayout.ObjectName = "gridLayout";
    FrameSettings = new QGroupBox(SettingsDialog);
    FrameSettings.ObjectName = "FrameSettings";
    gridLayout1 = new QGridLayout(FrameSettings);
    gridLayout1.ObjectName = "gridLayout1";
    LblPortSpeedReset = new QLabel(FrameSettings);
    LblPortSpeedReset.ObjectName = "LblPortSpeedReset";
    QSizePolicy sizePolicy = new QSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Preferred);
    sizePolicy.SetHorizontalStretch(0);
    sizePolicy.SetVerticalStretch(0);
    sizePolicy.SetHeightForWidth(LblPortSpeedReset.SizePolicy.HasHeightForWidth());
    LblPortSpeedReset.SizePolicy = sizePolicy;

    gridLayout1.AddWidget(LblPortSpeedReset, 0, 0, 1, 1);

    CmbPortSpeedReset = new QComboBox(FrameSettings);
    CmbPortSpeedReset.ObjectName = "CmbPortSpeedReset";

    gridLayout1.AddWidget(CmbPortSpeedReset, 0, 1, 1, 1);

    LblPortSpeed = new QLabel(FrameSettings);
    LblPortSpeed.ObjectName = "LblPortSpeed";
    sizePolicy.SetHeightForWidth(LblPortSpeed.SizePolicy.HasHeightForWidth());
    LblPortSpeed.SizePolicy = sizePolicy;

    gridLayout1.AddWidget(LblPortSpeed, 1, 0, 1, 1);

    CmbPortSpeed = new QComboBox(FrameSettings);
    CmbPortSpeed.ObjectName = "CmbPortSpeed";

    gridLayout1.AddWidget(CmbPortSpeed, 1, 1, 1, 1);

    LblDataBits = new QLabel(FrameSettings);
    LblDataBits.ObjectName = "LblDataBits";
    sizePolicy.SetHeightForWidth(LblDataBits.SizePolicy.HasHeightForWidth());
    LblDataBits.SizePolicy = sizePolicy;

    gridLayout1.AddWidget(LblDataBits, 2, 0, 1, 1);

    CmbDataBits = new QComboBox(FrameSettings);
    CmbDataBits.ObjectName = "CmbDataBits";

    gridLayout1.AddWidget(CmbDataBits, 2, 1, 1, 1);

    LblStopBits = new QLabel(FrameSettings);
    LblStopBits.ObjectName = "LblStopBits";
    sizePolicy.SetHeightForWidth(LblStopBits.SizePolicy.HasHeightForWidth());
    LblStopBits.SizePolicy = sizePolicy;

    gridLayout1.AddWidget(LblStopBits, 3, 0, 1, 1);

    CmbStopBits = new QComboBox(FrameSettings);
    CmbStopBits.ObjectName = "CmbStopBits";

    gridLayout1.AddWidget(CmbStopBits, 3, 1, 1, 1);

    LblParity = new QLabel(FrameSettings);
    LblParity.ObjectName = "LblParity";
    sizePolicy.SetHeightForWidth(LblParity.SizePolicy.HasHeightForWidth());
    LblParity.SizePolicy = sizePolicy;

    gridLayout1.AddWidget(LblParity, 4, 0, 1, 1);

    CmbParity = new QComboBox(FrameSettings);
    CmbParity.ObjectName = "CmbParity";

    gridLayout1.AddWidget(CmbParity, 4, 1, 1, 1);

    LblConvention = new QLabel(FrameSettings);
    LblConvention.ObjectName = "LblConvention";
    sizePolicy.SetHeightForWidth(LblConvention.SizePolicy.HasHeightForWidth());
    LblConvention.SizePolicy = sizePolicy;

    gridLayout1.AddWidget(LblConvention, 5, 0, 1, 1);

    CmbConvention = new QComboBox(FrameSettings);
    CmbConvention.ObjectName = "CmbConvention";

    gridLayout1.AddWidget(CmbConvention, 5, 1, 1, 1);


    gridLayout.AddWidget(FrameSettings, 1, 0, 1, 1);

    Buttons = new QDialogButtonBox(SettingsDialog);
    Buttons.ObjectName = "Buttons";
    Buttons.Orientation = Qt.Orientation.Horizontal;
    Buttons.StandardButtons = Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel") | Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok");

    gridLayout.AddWidget(Buttons, 2, 0, 1, 1);


    RetranslateUi(SettingsDialog);

    QMetaObject.ConnectSlotsByName(SettingsDialog);
    } // SetupUi
示例#3
0
 protected void SetupUi()
 {
     base.ObjectName = "EditProfileDialog";
     this.Geometry = new QRect(0, 0, 605, 459);
     this.WindowTitle = "Edit Profile";
     QVBoxLayout verticalLayout;
     verticalLayout = new QVBoxLayout(this);
     verticalLayout.Margin = 6;
     this.mainTabWidget = new QTabWidget(this);
     this.mainTabWidget.ObjectName = "mainTabWidget";
     this.mainTabWidget.CurrentIndex = 0;
     verticalLayout.AddWidget(this.mainTabWidget);
     this.tab = new QWidget(this.mainTabWidget);
     this.tab.ObjectName = "tab";
     this.tab.Enabled = false;
     QHBoxLayout horizontalLayout;
     horizontalLayout = new QHBoxLayout(this.tab);
     horizontalLayout.Margin = 6;
     this.widget = new QWidget(this.tab);
     this.widget.ObjectName = "widget";
     QSizePolicy widget_sizePolicy;
     widget_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Preferred);
     widget_sizePolicy.SetVerticalStretch(0);
     widget_sizePolicy.SetHorizontalStretch(0);
     widget_sizePolicy.SetHeightForWidth(this.widget.SizePolicy.HasHeightForWidth());
     this.widget.SizePolicy = widget_sizePolicy;
     QVBoxLayout verticalLayout_2;
     verticalLayout_2 = new QVBoxLayout(this.widget);
     verticalLayout_2.Margin = 0;
     this.groupBox_2 = new QGroupBox(this.widget);
     this.groupBox_2.ObjectName = "groupBox_2";
     QSizePolicy groupBox_2_sizePolicy;
     groupBox_2_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Preferred);
     groupBox_2_sizePolicy.SetVerticalStretch(0);
     groupBox_2_sizePolicy.SetHorizontalStretch(0);
     groupBox_2_sizePolicy.SetHeightForWidth(this.groupBox_2.SizePolicy.HasHeightForWidth());
     this.groupBox_2.SizePolicy = groupBox_2_sizePolicy;
     this.groupBox_2.Title = "Basic Information";
     QFormLayout formLayout_2;
     formLayout_2 = new QFormLayout(this.groupBox_2);
     formLayout_2.fieldGrowthPolicy = QFormLayout.FieldGrowthPolicy.AllNonFixedFieldsGrow;
     formLayout_2.SetContentsMargins(6, 12, 6, 0);
     this.label_9 = new QLabel(this.groupBox_2);
     this.label_9.ObjectName = "label_9";
     this.label_9.Text = "Full Name:";
     formLayout_2.SetWidget(0, QFormLayout.ItemRole.LabelRole, this.label_9);
     this.fullNameLineEdit = new QLineEdit(this.groupBox_2);
     this.fullNameLineEdit.ObjectName = "fullNameLineEdit";
     formLayout_2.SetWidget(0, QFormLayout.ItemRole.FieldRole, this.fullNameLineEdit);
     this.label_10 = new QLabel(this.groupBox_2);
     this.label_10.ObjectName = "label_10";
     this.label_10.Text = "Nickname:";
     formLayout_2.SetWidget(1, QFormLayout.ItemRole.LabelRole, this.label_10);
     this.nicknameLineEdit = new QLineEdit(this.groupBox_2);
     this.nicknameLineEdit.ObjectName = "nicknameLineEdit";
     formLayout_2.SetWidget(1, QFormLayout.ItemRole.FieldRole, this.nicknameLineEdit);
     this.label_14 = new QLabel(this.groupBox_2);
     this.label_14.ObjectName = "label_14";
     this.label_14.Text = "Birthday:";
     formLayout_2.SetWidget(2, QFormLayout.ItemRole.LabelRole, this.label_14);
     this.birthdayDateEdit = new QDateEdit(this.groupBox_2);
     this.birthdayDateEdit.ObjectName = "birthdayDateEdit";
     this.birthdayDateEdit.DisplayFormat = "M/d/yyyy";
     this.birthdayDateEdit.CalendarPopup = true;
     formLayout_2.SetWidget(2, QFormLayout.ItemRole.FieldRole, this.birthdayDateEdit);
     this.label_11 = new QLabel(this.groupBox_2);
     this.label_11.ObjectName = "label_11";
     this.label_11.Text = "Website:";
     formLayout_2.SetWidget(3, QFormLayout.ItemRole.LabelRole, this.label_11);
     this.websiteLineEdit = new QLineEdit(this.groupBox_2);
     this.websiteLineEdit.ObjectName = "websiteLineEdit";
     formLayout_2.SetWidget(3, QFormLayout.ItemRole.FieldRole, this.websiteLineEdit);
     verticalLayout_2.AddWidget(this.groupBox_2);
     this.groupBox_5 = new QGroupBox(this.widget);
     this.groupBox_5.ObjectName = "groupBox_5";
     this.groupBox_5.Title = "About Me";
     this.groupBox_5.Flat = false;
     this.groupBox_5.Checkable = false;
     QHBoxLayout horizontalLayout_3;
     horizontalLayout_3 = new QHBoxLayout(this.groupBox_5);
     horizontalLayout_3.SetContentsMargins(6, 12, 6, 6);
     this.bioTextEdit = new QTextEdit(this.groupBox_5);
     this.bioTextEdit.ObjectName = "bioTextEdit";
     horizontalLayout_3.AddWidget(this.bioTextEdit);
     verticalLayout_2.AddWidget(this.groupBox_5);
     horizontalLayout.AddWidget(this.widget);
     this.groupBox_4 = new QGroupBox(this.tab);
     this.groupBox_4.ObjectName = "groupBox_4";
     QSizePolicy groupBox_4_sizePolicy;
     groupBox_4_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Preferred);
     groupBox_4_sizePolicy.SetVerticalStretch(0);
     groupBox_4_sizePolicy.SetHorizontalStretch(0);
     groupBox_4_sizePolicy.SetHeightForWidth(this.groupBox_4.SizePolicy.HasHeightForWidth());
     this.groupBox_4.SizePolicy = groupBox_4_sizePolicy;
     this.groupBox_4.Title = "Contact Information";
     QFormLayout formLayout_3;
     formLayout_3 = new QFormLayout(this.groupBox_4);
     formLayout_3.SetContentsMargins(6, 12, 6, 6);
     this.label_12 = new QLabel(this.groupBox_4);
     this.label_12.ObjectName = "label_12";
     this.label_12.Text = "Email:";
     formLayout_3.SetWidget(0, QFormLayout.ItemRole.LabelRole, this.label_12);
     this.lineEdit_9 = new QLineEdit(this.groupBox_4);
     this.lineEdit_9.ObjectName = "lineEdit_9";
     formLayout_3.SetWidget(0, QFormLayout.ItemRole.FieldRole, this.lineEdit_9);
     this.label_13 = new QLabel(this.groupBox_4);
     this.label_13.ObjectName = "label_13";
     this.label_13.Text = "Phone:";
     formLayout_3.SetWidget(1, QFormLayout.ItemRole.LabelRole, this.label_13);
     this.lineEdit_11 = new QLineEdit(this.groupBox_4);
     this.lineEdit_11.ObjectName = "lineEdit_11";
     formLayout_3.SetWidget(1, QFormLayout.ItemRole.FieldRole, this.lineEdit_11);
     this.label_15 = new QLabel(this.groupBox_4);
     this.label_15.ObjectName = "label_15";
     this.label_15.Text = "Address:";
     formLayout_3.SetWidget(2, QFormLayout.ItemRole.LabelRole, this.label_15);
     this.lineEdit_12 = new QLineEdit(this.groupBox_4);
     this.lineEdit_12.ObjectName = "lineEdit_12";
     formLayout_3.SetWidget(2, QFormLayout.ItemRole.FieldRole, this.lineEdit_12);
     this.label_16 = new QLabel(this.groupBox_4);
     this.label_16.ObjectName = "label_16";
     this.label_16.Text = "City/Town:";
     formLayout_3.SetWidget(3, QFormLayout.ItemRole.LabelRole, this.label_16);
     this.lineEdit_13 = new QLineEdit(this.groupBox_4);
     this.lineEdit_13.ObjectName = "lineEdit_13";
     formLayout_3.SetWidget(3, QFormLayout.ItemRole.FieldRole, this.lineEdit_13);
     this.label_23 = new QLabel(this.groupBox_4);
     this.label_23.ObjectName = "label_23";
     this.label_23.Text = "State:";
     formLayout_3.SetWidget(4, QFormLayout.ItemRole.LabelRole, this.label_23);
     this.lineEdit_21 = new QLineEdit(this.groupBox_4);
     this.lineEdit_21.ObjectName = "lineEdit_21";
     formLayout_3.SetWidget(4, QFormLayout.ItemRole.FieldRole, this.lineEdit_21);
     this.label_17 = new QLabel(this.groupBox_4);
     this.label_17.ObjectName = "label_17";
     this.label_17.Text = "Zip:";
     formLayout_3.SetWidget(5, QFormLayout.ItemRole.LabelRole, this.label_17);
     this.lineEdit_14 = new QLineEdit(this.groupBox_4);
     this.lineEdit_14.ObjectName = "lineEdit_14";
     formLayout_3.SetWidget(5, QFormLayout.ItemRole.FieldRole, this.lineEdit_14);
     this.label_18 = new QLabel(this.groupBox_4);
     this.label_18.ObjectName = "label_18";
     this.label_18.Text = "Country:";
     formLayout_3.SetWidget(6, QFormLayout.ItemRole.LabelRole, this.label_18);
     this.lineEdit_15 = new QLineEdit(this.groupBox_4);
     this.lineEdit_15.ObjectName = "lineEdit_15";
     formLayout_3.SetWidget(6, QFormLayout.ItemRole.FieldRole, this.lineEdit_15);
     horizontalLayout.AddWidget(this.groupBox_4);
     this.mainTabWidget.AddTab(this.tab, "Personal Information");
     this.tab_4 = new QWidget(this.mainTabWidget);
     this.tab_4.ObjectName = "tab_4";
     this.tab_4.Enabled = false;
     QHBoxLayout horizontalLayout_5;
     horizontalLayout_5 = new QHBoxLayout(this.tab_4);
     horizontalLayout_5.Margin = 6;
     this.groupBox_6 = new QGroupBox(this.tab_4);
     this.groupBox_6.ObjectName = "groupBox_6";
     QSizePolicy groupBox_6_sizePolicy;
     groupBox_6_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Preferred);
     groupBox_6_sizePolicy.SetVerticalStretch(0);
     groupBox_6_sizePolicy.SetHorizontalStretch(0);
     groupBox_6_sizePolicy.SetHeightForWidth(this.groupBox_6.SizePolicy.HasHeightForWidth());
     this.groupBox_6.SizePolicy = groupBox_6_sizePolicy;
     this.groupBox_6.Title = "Company Information";
     QFormLayout formLayout_4;
     formLayout_4 = new QFormLayout(this.groupBox_6);
     formLayout_4.SetContentsMargins(6, 12, 6, 0);
     this.label = new QLabel(this.groupBox_6);
     this.label.ObjectName = "label";
     this.label.Text = "Company:";
     formLayout_4.SetWidget(0, QFormLayout.ItemRole.LabelRole, this.label);
     this.workCompanyLineEdit = new QLineEdit(this.groupBox_6);
     this.workCompanyLineEdit.ObjectName = "workCompanyLineEdit";
     formLayout_4.SetWidget(0, QFormLayout.ItemRole.FieldRole, this.workCompanyLineEdit);
     this.label_6 = new QLabel(this.groupBox_6);
     this.label_6.ObjectName = "label_6";
     this.label_6.Text = "Department:";
     formLayout_4.SetWidget(1, QFormLayout.ItemRole.LabelRole, this.label_6);
     this.workDepartmentLineEdit = new QLineEdit(this.groupBox_6);
     this.workDepartmentLineEdit.ObjectName = "workDepartmentLineEdit";
     formLayout_4.SetWidget(1, QFormLayout.ItemRole.FieldRole, this.workDepartmentLineEdit);
     this.label_7 = new QLabel(this.groupBox_6);
     this.label_7.ObjectName = "label_7";
     this.label_7.Text = "Position:";
     formLayout_4.SetWidget(2, QFormLayout.ItemRole.LabelRole, this.label_7);
     this.workPositionLineEdit = new QLineEdit(this.groupBox_6);
     this.workPositionLineEdit.ObjectName = "workPositionLineEdit";
     formLayout_4.SetWidget(2, QFormLayout.ItemRole.FieldRole, this.workPositionLineEdit);
     horizontalLayout_5.AddWidget(this.groupBox_6);
     this.groupBox = new QGroupBox(this.tab_4);
     this.groupBox.ObjectName = "groupBox";
     QSizePolicy groupBox_sizePolicy;
     groupBox_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Preferred);
     groupBox_sizePolicy.SetVerticalStretch(0);
     groupBox_sizePolicy.SetHorizontalStretch(0);
     groupBox_sizePolicy.SetHeightForWidth(this.groupBox.SizePolicy.HasHeightForWidth());
     this.groupBox.SizePolicy = groupBox_sizePolicy;
     this.groupBox.Title = "Contact Information";
     QFormLayout formLayout;
     formLayout = new QFormLayout(this.groupBox);
     formLayout.fieldGrowthPolicy = QFormLayout.FieldGrowthPolicy.AllNonFixedFieldsGrow;
     formLayout.SetContentsMargins(6, 12, 6, 0);
     this.label_8 = new QLabel(this.groupBox);
     this.label_8.ObjectName = "label_8";
     this.label_8.Text = "Email:";
     formLayout.SetWidget(0, QFormLayout.ItemRole.LabelRole, this.label_8);
     this.workEmailLineEdit = new QLineEdit(this.groupBox);
     this.workEmailLineEdit.ObjectName = "workEmailLineEdit";
     formLayout.SetWidget(0, QFormLayout.ItemRole.FieldRole, this.workEmailLineEdit);
     this.label_21 = new QLabel(this.groupBox);
     this.label_21.ObjectName = "label_21";
     this.label_21.Text = "Address:";
     formLayout.SetWidget(2, QFormLayout.ItemRole.LabelRole, this.label_21);
     this.workAddressLineEdit = new QLineEdit(this.groupBox);
     this.workAddressLineEdit.ObjectName = "workAddressLineEdit";
     formLayout.SetWidget(2, QFormLayout.ItemRole.FieldRole, this.workAddressLineEdit);
     this.label_19 = new QLabel(this.groupBox);
     this.label_19.ObjectName = "label_19";
     this.label_19.Text = "City/Town:";
     formLayout.SetWidget(3, QFormLayout.ItemRole.LabelRole, this.label_19);
     this.workCityLineEdit = new QLineEdit(this.groupBox);
     this.workCityLineEdit.ObjectName = "workCityLineEdit";
     formLayout.SetWidget(3, QFormLayout.ItemRole.FieldRole, this.workCityLineEdit);
     this.label_24 = new QLabel(this.groupBox);
     this.label_24.ObjectName = "label_24";
     this.label_24.Text = "State:";
     formLayout.SetWidget(4, QFormLayout.ItemRole.LabelRole, this.label_24);
     this.workStateLineEdit = new QLineEdit(this.groupBox);
     this.workStateLineEdit.ObjectName = "workStateLineEdit";
     formLayout.SetWidget(4, QFormLayout.ItemRole.FieldRole, this.workStateLineEdit);
     this.label_20 = new QLabel(this.groupBox);
     this.label_20.ObjectName = "label_20";
     this.label_20.Text = "Zip:";
     formLayout.SetWidget(5, QFormLayout.ItemRole.LabelRole, this.label_20);
     this.workZipLineEdit = new QLineEdit(this.groupBox);
     this.workZipLineEdit.ObjectName = "workZipLineEdit";
     formLayout.SetWidget(5, QFormLayout.ItemRole.FieldRole, this.workZipLineEdit);
     this.label_22 = new QLabel(this.groupBox);
     this.label_22.ObjectName = "label_22";
     this.label_22.Text = "Country:";
     formLayout.SetWidget(6, QFormLayout.ItemRole.LabelRole, this.label_22);
     this.workCountryLineEdit = new QLineEdit(this.groupBox);
     this.workCountryLineEdit.ObjectName = "workCountryLineEdit";
     formLayout.SetWidget(6, QFormLayout.ItemRole.FieldRole, this.workCountryLineEdit);
     this.label_2 = new QLabel(this.groupBox);
     this.label_2.ObjectName = "label_2";
     this.label_2.Text = "Phone:";
     formLayout.SetWidget(1, QFormLayout.ItemRole.LabelRole, this.label_2);
     this.workPhoneLineEdit = new QLineEdit(this.groupBox);
     this.workPhoneLineEdit.ObjectName = "workPhoneLineEdit";
     formLayout.SetWidget(1, QFormLayout.ItemRole.FieldRole, this.workPhoneLineEdit);
     horizontalLayout_5.AddWidget(this.groupBox);
     this.mainTabWidget.AddTab(this.tab_4, "Work Information");
     this.tab_2 = new QWidget(this.mainTabWidget);
     this.tab_2.ObjectName = "tab_2";
     QHBoxLayout horizontalLayout_2;
     horizontalLayout_2 = new QHBoxLayout(this.tab_2);
     horizontalLayout_2.Margin = 6;
     QVBoxLayout verticalLayout_4;
     verticalLayout_4 = new QVBoxLayout();
     horizontalLayout_2.AddLayout(verticalLayout_4);
     verticalLayout_4.sizeConstraint = QLayout.SizeConstraint.SetMinimumSize;
     this.label_4 = new QLabel(this.tab_2);
     this.label_4.ObjectName = "label_4";
     this.label_4.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;\">Your Avatar:</span></p></body></html>";
     verticalLayout_4.AddWidget(this.label_4);
     this.avatarLabel = new QLabel(this.tab_2);
     this.avatarLabel.ObjectName = "avatarLabel";
     this.avatarLabel.MinimumSize = new QSize(48, 96);
     this.avatarLabel.FrameShape = QFrame.Shape.StyledPanel;
     this.avatarLabel.FrameShadow = QFrame.Shadow.Raised;
     this.avatarLabel.Text = "";
     this.avatarLabel.Alignment = global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignCenter");
     verticalLayout_4.AddWidget(this.avatarLabel);
     this.avatarBrowseButton = new QPushButton(this.tab_2);
     this.avatarBrowseButton.ObjectName = "avatarBrowseButton";
     this.avatarBrowseButton.Text = "Select File...";
     verticalLayout_4.AddWidget(this.avatarBrowseButton);
     this.clearAvatarButton = new QPushButton(this.tab_2);
     this.clearAvatarButton.ObjectName = "clearAvatarButton";
     this.clearAvatarButton.Text = "Clear";
     verticalLayout_4.AddWidget(this.clearAvatarButton);
     QSpacerItem verticalSpacer;
     verticalSpacer = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding);
     verticalLayout_4.AddItem(verticalSpacer);
     this.line_2 = new QFrame(this.tab_2);
     this.line_2.ObjectName = "line_2";
     this.line_2.FrameShape = QFrame.Shape.VLine;
     this.line_2.FrameShadow = QFrame.Shadow.Sunken;
     horizontalLayout_2.AddWidget(this.line_2);
     QVBoxLayout verticalLayout_5;
     verticalLayout_5 = new QVBoxLayout();
     horizontalLayout_2.AddLayout(verticalLayout_5);
     QGridLayout gridLayout_2;
     gridLayout_2 = new QGridLayout();
     verticalLayout_5.AddLayout(gridLayout_2);
     this.label_5 = new QLabel(this.tab_2);
     this.label_5.ObjectName = "label_5";
     this.label_5.Text = "Search:";
     this.label_5.SetBuddy(avatarSearchLineEdit);
     gridLayout_2.AddWidget(this.label_5, 0, 0, 1, 1);
     this.avatarSearchLineEdit = new QLineEdit(this.tab_2);
     this.avatarSearchLineEdit.ObjectName = "avatarSearchLineEdit";
     gridLayout_2.AddWidget(this.avatarSearchLineEdit, 0, 1, 1, 1);
     this.avatarSearchButton = new QPushButton(this.tab_2);
     this.avatarSearchButton.ObjectName = "avatarSearchButton";
     this.avatarSearchButton.Text = "Search";
     this.avatarSearchButton.Default = true;
     gridLayout_2.AddWidget(this.avatarSearchButton, 0, 2, 1, 1);
     this.avatarTabWidget = new QTabWidget(this.tab_2);
     this.avatarTabWidget.ObjectName = "avatarTabWidget";
     this.avatarTabWidget.CurrentIndex = -1;
     verticalLayout_5.AddWidget(this.avatarTabWidget);
     this.mainTabWidget.AddTab(this.tab_2, "Avatar");
     this.tab_3 = new QWidget(this.mainTabWidget);
     this.tab_3.ObjectName = "tab_3";
     QVBoxLayout verticalLayout_3;
     verticalLayout_3 = new QVBoxLayout(this.tab_3);
     verticalLayout_3.Margin = 0;
     this.scrollArea = new QScrollArea(this.tab_3);
     this.scrollArea.ObjectName = "scrollArea";
     this.scrollArea.StyleSheet = "background: palette(base);";
     this.scrollArea.FrameShape = QFrame.Shape.NoFrame;
     this.scrollArea.HorizontalScrollBarPolicy = Qt.ScrollBarPolicy.ScrollBarAlwaysOff;
     this.scrollArea.WidgetResizable = true;
     this.scrollArea.Alignment = ((global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeading") | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeft")) | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignTop"));
     verticalLayout_3.AddWidget(this.scrollArea);
     this.webIdentitiesContainer = new QWidget(this.scrollArea);
     this.webIdentitiesContainer.ObjectName = "webIdentitiesContainer";
     this.webIdentitiesContainer.Geometry = new QRect(0, 0, 589, 376);
     QVBoxLayout verticalLayout_6;
     verticalLayout_6 = new QVBoxLayout(this.webIdentitiesContainer);
     verticalLayout_6.Margin = 6;
     QSpacerItem verticalSpacer_2;
     verticalSpacer_2 = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding);
     verticalLayout_6.AddItem(verticalSpacer_2);
     this.scrollArea.SetWidget(this.webIdentitiesContainer);
     this.mainTabWidget.AddTab(this.tab_3, "Web Identities");
     this.buttonBox = new QDialogButtonBox(this);
     this.buttonBox.ObjectName = "buttonBox";
     this.buttonBox.StandardButtons = (global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel") | global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok"));
     verticalLayout.AddWidget(this.buttonBox);
     QObject.Connect(buttonBox, Qt.SIGNAL("rejected()"), this, Qt.SLOT("reject()"));
     QObject.Connect(buttonBox, Qt.SIGNAL("accepted()"), this, Qt.SLOT("accept()"));
     QMetaObject.ConnectSlotsByName(this);
 }
示例#4
0
    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, 450);
    MainWindow.WindowIcon = new QIcon(":/main/resources/monosim_128.png");
    MenuFileNew = new QAction(MainWindow);
    MenuFileNew.ObjectName = "MenuFileNew";
    MenuFileNew.icon = new QIcon(":/toolbar/resources/qt/document-new.png");
    MenuFileOpen = new QAction(MainWindow);
    MenuFileOpen.ObjectName = "MenuFileOpen";
    MenuFileOpen.icon = new QIcon(":/toolbar/resources/qt/document-open.png");
    MenuFileSaveFile = new QAction(MainWindow);
    MenuFileSaveFile.ObjectName = "MenuFileSaveFile";
    MenuFileSaveFile.Enabled = false;
    MenuFileSaveFile.icon = new QIcon(":/toolbar/resources/qt/document-save.png");
    MenuFileSaveSim = new QAction(MainWindow);
    MenuFileSaveSim.ObjectName = "MenuFileSaveSim";
    MenuFileSaveSim.Enabled = false;
    MenuFileSaveSim.icon = new QIcon(":/main/resources/chip_32.png");
    MenuFileClose = new QAction(MainWindow);
    MenuFileClose.ObjectName = "MenuFileClose";
    MenuFileClose.Enabled = false;
    MenuFileClose.icon = new QIcon(":/toolbar/resources/qt/document-close.png");
    MenuFileSettings = new QAction(MainWindow);
    MenuFileSettings.ObjectName = "MenuFileSettings";
    MenuFileSettings.icon = new QIcon(":/toolbar/resources/qt/configure.png");
    MenuFileExit = new QAction(MainWindow);
    MenuFileExit.ObjectName = "MenuFileExit";
    MenuFileExit.icon = new QIcon(":/toolbar/resources/qt/application-exit.png");
    MenuSimConnect = new QAction(MainWindow);
    MenuSimConnect.ObjectName = "MenuSimConnect";
    MenuSimConnect.icon = new QIcon(":/toolbar/resources/qt/network-connect.png");
    MenuSimPin = new QAction(MainWindow);
    MenuSimPin.ObjectName = "MenuSimPin";
    MenuSimPin.Enabled = false;
    MenuSimPin.icon = new QIcon(":/toolbar/resources/qt/document-encrypt.png");
    MenuSimSaveFile = new QAction(MainWindow);
    MenuSimSaveFile.ObjectName = "MenuSimSaveFile";
    MenuSimSaveFile.Enabled = false;
    MenuSimSaveFile.icon = new QIcon(":/toolbar/resources/qt/document-save.png");
    MenuSimSaveSim = new QAction(MainWindow);
    MenuSimSaveSim.ObjectName = "MenuSimSaveSim";
    MenuSimSaveSim.Enabled = false;
    MenuSimSaveSim.icon = new QIcon(":/main/resources/chip_32.png");
    MenuSimDeleteAll = new QAction(MainWindow);
    MenuSimDeleteAll.ObjectName = "MenuSimDeleteAll";
    MenuSimDeleteAll.Enabled = false;
    MenuSimDeleteAll.icon = new QIcon(":/toolbar/resources/qt/edit-delete.png");
    MenuSimDisconnect = new QAction(MainWindow);
    MenuSimDisconnect.ObjectName = "MenuSimDisconnect";
    MenuSimDisconnect.Enabled = false;
    MenuSimDisconnect.icon = new QIcon(":/toolbar/resources/qt/network-disconnect.png");
    MenuAboutInfo = new QAction(MainWindow);
    MenuAboutInfo.ObjectName = "MenuAboutInfo";
    MenuAboutInfo.icon = new QIcon(":/toolbar/resources/qt/dialog-information.png");
    centralwidget = new QWidget(MainWindow);
    centralwidget.ObjectName = "centralwidget";
    gridLayout = new QGridLayout(centralwidget);
    gridLayout.ObjectName = "gridLayout";
    splitter = new QSplitter(centralwidget);
    splitter.ObjectName = "splitter";
    splitter.Orientation = Qt.Orientation.Vertical;
    splitter.ChildrenCollapsible = false;
    FrameFile = new QGroupBox(splitter);
    FrameFile.ObjectName = "FrameFile";
    FrameFile.MinimumSize = new QSize(0, 100);
    gridLayout1 = new QGridLayout(FrameFile);
    gridLayout1.ObjectName = "gridLayout1";
    LstFileContacts = new QTreeWidget(FrameFile);
    LstFileContacts.ObjectName = "LstFileContacts";
    LstFileContacts.Enabled = false;
    LstFileContacts.EditTriggers = Qyoto.Qyoto.GetCPPEnumValue("QAbstractItemView", "NoEditTriggers");
    LstFileContacts.selectionMode = QAbstractItemView.SelectionMode.ExtendedSelection;
    LstFileContacts.ItemsExpandable = false;
    LstFileContacts.ExpandsOnDoubleClick = false;

    gridLayout1.AddWidget(LstFileContacts, 0, 0, 1, 1);

    splitter.AddWidget(FrameFile);
    FrameSim = new QGroupBox(splitter);
    FrameSim.ObjectName = "FrameSim";
    FrameSim.MinimumSize = new QSize(0, 100);
    gridLayout2 = new QGridLayout(FrameSim);
    gridLayout2.ObjectName = "gridLayout2";
    LstSimContacts = new QTreeWidget(FrameSim);
    LstSimContacts.ObjectName = "LstSimContacts";
    LstSimContacts.Enabled = false;
    LstSimContacts.EditTriggers = Qyoto.Qyoto.GetCPPEnumValue("QAbstractItemView", "NoEditTriggers");
    LstSimContacts.selectionMode = QAbstractItemView.SelectionMode.ExtendedSelection;
    LstSimContacts.ItemsExpandable = false;
    LstSimContacts.ExpandsOnDoubleClick = false;

    gridLayout2.AddWidget(LstSimContacts, 0, 0, 1, 1);

    splitter.AddWidget(FrameSim);

    gridLayout.AddWidget(splitter, 0, 0, 1, 1);

    MainWindow.SetCentralWidget(centralwidget);
    MainMenu = new QMenuBar(MainWindow);
    MainMenu.ObjectName = "MainMenu";
    MainMenu.Geometry = new QRect(0, 0, 631, 24);
    MenuFileItem = new QMenu(MainMenu);
    MenuFileItem.ObjectName = "MenuFileItem";
    MenuReaderItem = new QMenu(MainMenu);
    MenuReaderItem.ObjectName = "MenuReaderItem";
    MenuAboutItem = new QMenu(MainMenu);
    MenuAboutItem.ObjectName = "MenuAboutItem";
    MenuSimItem = new QMenu(MainMenu);
    MenuSimItem.ObjectName = "MenuSimItem";
    MainWindow.SetMenuBar(MainMenu);
    StatusBar = new QStatusBar(MainWindow);
    StatusBar.ObjectName = "StatusBar";
    MainWindow.SetStatusBar(StatusBar);
    TopToolBar = new QToolBar(MainWindow);
    TopToolBar.ObjectName = "TopToolBar";
    TopToolBar.Movable = false;
    TopToolBar.Floatable = false;
    MainWindow.AddToolBar(Qt.ToolBarArea.TopToolBarArea, TopToolBar);

    MainMenu.AddAction(MenuFileItem.MenuAction());
    MainMenu.AddAction(MenuReaderItem.MenuAction());
    MainMenu.AddAction(MenuSimItem.MenuAction());
    MainMenu.AddAction(MenuAboutItem.MenuAction());
    MenuFileItem.AddAction(MenuFileNew);
    MenuFileItem.AddAction(MenuFileOpen);
    MenuFileItem.AddAction(MenuFileSaveFile);
    MenuFileItem.AddAction(MenuFileSaveSim);
    MenuFileItem.AddAction(MenuFileClose);
    MenuFileItem.AddSeparator();
    MenuFileItem.AddAction(MenuFileSettings);
    MenuFileItem.AddSeparator();
    MenuFileItem.AddAction(MenuFileExit);
    MenuAboutItem.AddAction(MenuAboutInfo);
    MenuSimItem.AddAction(MenuSimConnect);
    MenuSimItem.AddAction(MenuSimPin);
    MenuSimItem.AddSeparator();
    MenuSimItem.AddAction(MenuSimSaveFile);
    MenuSimItem.AddAction(MenuSimSaveSim);
    MenuSimItem.AddAction(MenuSimDeleteAll);
    MenuSimItem.AddSeparator();
    MenuSimItem.AddAction(MenuSimDisconnect);
    TopToolBar.AddAction(MenuFileNew);
    TopToolBar.AddAction(MenuFileOpen);
    TopToolBar.AddAction(MenuFileSaveFile);
    TopToolBar.AddAction(MenuFileSaveSim);
    TopToolBar.AddAction(MenuFileClose);
    TopToolBar.AddSeparator();
    TopToolBar.AddAction(MenuFileSettings);
    TopToolBar.AddAction(MenuSimConnect);
    TopToolBar.AddAction(MenuSimPin);
    TopToolBar.AddAction(MenuSimSaveFile);
    TopToolBar.AddAction(MenuSimSaveSim);
    TopToolBar.AddAction(MenuSimDisconnect);
    TopToolBar.AddSeparator();
    TopToolBar.AddAction(MenuAboutInfo);
    TopToolBar.AddAction(MenuFileExit);

    RetranslateUi(MainWindow);

    QMetaObject.ConnectSlotsByName(MainWindow);
    } // SetupUi