Example #1
0
    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);
    } // SetupUi
Example #2
0
    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);
    }
Example #3
0
        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();
        }
Example #4
0
        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);
        }
Example #5
0
        protected void SetupUi()
        {
            base.ObjectName  = "MucAffiliationDialog";
            this.Geometry    = new QRect(0, 0, 336, 245);
            this.WindowTitle = "Change Participant Affiliation";
            QVBoxLayout verticalLayout_2;

            verticalLayout_2 = new QVBoxLayout(this);
            verticalLayout_2.sizeConstraint = QLayout.SizeConstraint.SetFixedSize;
            verticalLayout_2.Margin         = 6;
            QGridLayout gridLayout;

            gridLayout = new QGridLayout();
            verticalLayout_2.AddLayout(gridLayout);
            this.roomLabel            = new QLabel(this);
            this.roomLabel.ObjectName = "roomLabel";
            this.roomLabel.Text       = "*****@*****.**";
            gridLayout.AddWidget(this.roomLabel, 0, 1, 1, 1);
            this.label_2            = new QLabel(this);
            this.label_2.ObjectName = "label_2";
            this.label_2.Text       = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\np, li { white-space: pre-wrap; }\n</style></head><body style=\" font-family:'Bitstream Vera Sans'; font-size:9pt; font-weight:400; font-style:normal;\">\n<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Room:</span></p></body></html>";
            gridLayout.AddWidget(this.label_2, 0, 0, 1, 1);
            this.label_3            = new QLabel(this);
            this.label_3.ObjectName = "label_3";
            this.label_3.Text       = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\np, li { white-space: pre-wrap; }\n</style></head><body style=\" font-family:'Bitstream Vera Sans'; font-size:9pt; font-weight:400; font-style:normal;\">\n<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">User:</span></p></body></html>";
            gridLayout.AddWidget(this.label_3, 1, 0, 1, 1);
            this.userLabel            = new QLabel(this);
            this.userLabel.ObjectName = "userLabel";
            this.userLabel.Text       = "*****@*****.**";
            gridLayout.AddWidget(this.userLabel, 1, 1, 1, 1);
            QVBoxLayout verticalLayout;

            verticalLayout = new QVBoxLayout();
            verticalLayout_2.AddLayout(verticalLayout);
            verticalLayout.Spacing           = 0;
            verticalLayout.Margin            = 0;
            this.ownerRadioButton            = new QRadioButton(this);
            this.ownerRadioButton.ObjectName = "ownerRadioButton";
            this.ownerRadioButton.Text       = "Owner";
            verticalLayout.AddWidget(this.ownerRadioButton);
            this.adminRadioButton            = new QRadioButton(this);
            this.adminRadioButton.ObjectName = "adminRadioButton";
            this.adminRadioButton.Text       = "Admin";
            verticalLayout.AddWidget(this.adminRadioButton);
            this.memberRadioButton            = new QRadioButton(this);
            this.memberRadioButton.ObjectName = "memberRadioButton";
            this.memberRadioButton.Text       = "Member";
            verticalLayout.AddWidget(this.memberRadioButton);
            this.outcastRadioButton            = new QRadioButton(this);
            this.outcastRadioButton.ObjectName = "outcastRadioButton";
            this.outcastRadioButton.Text       = "Outcast (Banned)";
            verticalLayout.AddWidget(this.outcastRadioButton);
            this.noneRadioButton            = new QRadioButton(this);
            this.noneRadioButton.ObjectName = "noneRadioButton";
            this.noneRadioButton.Text       = "None";
            verticalLayout.AddWidget(this.noneRadioButton);
            QGridLayout gridLayout_2;

            gridLayout_2 = new QGridLayout();
            verticalLayout_2.AddLayout(gridLayout_2);
            this.reasonLineEdit            = new QLineEdit(this);
            this.reasonLineEdit.ObjectName = "reasonLineEdit";
            gridLayout_2.AddWidget(this.reasonLineEdit, 0, 1, 1, 1);
            this.label            = new QLabel(this);
            this.label.ObjectName = "label";
            this.label.Text       = "Reason:";
            gridLayout_2.AddWidget(this.label, 0, 0, 1, 1);
            this.label_4            = new QLabel(this);
            this.label_4.ObjectName = "label_4";
            this.label_4.Text       = "(optional)";
            gridLayout_2.AddWidget(this.label_4, 0, 2, 1, 1);
            this.buttonBox                 = new QDialogButtonBox(this);
            this.buttonBox.ObjectName      = "buttonBox";
            this.buttonBox.Orientation     = Qt.Orientation.Horizontal;
            this.buttonBox.StandardButtons = (global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel") | global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok"));
            verticalLayout_2.AddWidget(this.buttonBox);
            QObject.Connect(buttonBox, Qt.SIGNAL("accepted()"), this, Qt.SLOT("accept()"));
            QObject.Connect(buttonBox,Qt.SIGNAL("rejected()"),this,Qt.SLOT("reject()"));
            QMetaObject.ConnectSlotsByName(this);
        }