public void SetupUi(QDialog PassphraseDialog)
        {
            if (PassphraseDialog.ObjectName == "")
            PassphraseDialog.ObjectName = "PassphraseDialog";
            QSize Size = new QSize(493, 118);
            Size = Size.ExpandedTo(PassphraseDialog.MinimumSizeHint);
            PassphraseDialog.Size = Size;
            verticalLayout = new QVBoxLayout(PassphraseDialog);
            verticalLayout.ObjectName = "verticalLayout";
            mMessageLabel = new QLabel(PassphraseDialog);
            mMessageLabel.ObjectName = "mMessageLabel";

            verticalLayout.AddWidget(mMessageLabel, 0, Qt.AlignmentFlag.AlignHCenter);

            mPassphraseLineEdit = new QLineEdit(PassphraseDialog);
            mPassphraseLineEdit.ObjectName = "mPassphraseLineEdit";
            mPassphraseLineEdit.echoMode = QLineEdit.EchoMode.Password;

            verticalLayout.AddWidget(mPassphraseLineEdit);

            mButtonBox = new QDialogButtonBox(PassphraseDialog);
            mButtonBox.ObjectName = "mButtonBox";
            mButtonBox.Orientation = Qt.Orientation.Horizontal;
            mButtonBox.StandardButtons = QDialogButtonBox.StandardButton.Cancel | QDialogButtonBox.StandardButton.Ok;

            verticalLayout.AddWidget(mButtonBox);

            RetranslateUi(PassphraseDialog);
            QObject.Connect(mButtonBox, Qt.SIGNAL("accepted()"), PassphraseDialog, Qt.SLOT("accept()"));
            QObject.Connect(mButtonBox, Qt.SIGNAL("rejected()"), PassphraseDialog, Qt.SLOT("reject()"));

            QMetaObject.ConnectSlotsByName(PassphraseDialog);
        }
示例#2
0
        protected void SetupUi()
        {
            base.ObjectName  = "AboutDialog";
            this.Geometry    = new QRect(0, 0, 384, 492);
            this.MinimumSize = new QSize(384, 0);
            this.WindowTitle = "About Synapse";
            this.StyleSheet  = "#AboutDialog {\n\tmax-width: 384px;\n\tbackground: #010409 url(resource:/oceanbg.png) no-repeat top center;\n}\n\nQWidget {\n\tcolor: white;\n}\n\nQGraphicsView, QTextBrowser {\n\tbackground: transparent;\n}\n\nQPushButton[flat=\"false\"] {\n\tborder: 1px solid #2B2D31;\n\tborder-radius: 3px;\n\tbackground-color: #2B2D31;\n\tpadding: 3px;\n}\n\n#textLabel {\n\tmargin-bottom: 12px;\n}\n\nQScrollBar:vertical {\n\tborder: 0px;\n\tbackground: transparent;\n\twidth: 15px;\n\tmargin: 0px;\n}\n\nQScrollBar::handle:vertical {\n\tbackground: #4F4F4F;\n\tmin-height: 20px;\n\tborder: 1px solid #4F4F4F;\n\tborder-radius: 5px;\n}\n\nQScrollBar::add-line:vertical {\n\theight: 0px;\n\tborder: 0px;\n}\n\nQScrollBar::sub-line:vertical {\n\theight: 0px;\n}\n\nQScrollBar::add-page:vertical, \nQScrollBar::sub-page:vertical {\n\tbackground: none;\n}";
            QVBoxLayout verticalLayout;

            verticalLayout         = new QVBoxLayout(this);
            verticalLayout.Spacing = 6;
            verticalLayout.Margin  = 6;
            this.widget            = new QWidget(this);
            this.widget.ObjectName = "widget";
            QHBoxLayout horizontalLayout;

            horizontalLayout              = new QHBoxLayout(this.widget);
            horizontalLayout.Margin       = 0;
            this.graphicsView             = new QGraphicsView(this.widget);
            this.graphicsView.ObjectName  = "graphicsView";
            this.graphicsView.MinimumSize = new QSize(0, 250);
            this.graphicsView.FrameShape  = QFrame.Shape.NoFrame;
            horizontalLayout.AddWidget(this.graphicsView);
            verticalLayout.AddWidget(this.widget);
            this.textLabel            = new QLabel(this);
            this.textLabel.ObjectName = "textLabel";
            this.textLabel.Text       = "";
            this.textLabel.Alignment  = global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignCenter");
            verticalLayout.AddWidget(this.textLabel);
            this.textBrowser             = new QTextBrowser(this);
            this.textBrowser.ObjectName  = "textBrowser";
            this.textBrowser.MaximumSize = new QSize(16777215, 120);
            this.textBrowser.FrameShape  = QFrame.Shape.NoFrame;
            this.textBrowser.FrameShadow = QFrame.Shadow.Plain;
            this.textBrowser.Html        = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\np, li { white-space: pre-wrap; }\n</style></head><body style=\" font-family:'Bitstream Vera Sans'; font-size:9pt; font-weight:400; font-style:normal;\">\n<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Created By</span></p>\n<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;\"></p>\n<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;\"><a href=\"#message-eric\"><span style=\" font-weight:400; text-decoration: underline; color:#ffffff;\">Eric Butler</span></a></p>\n<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"></p>\n<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Special Thanks To</span></p>\n<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;\"></p>\n<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;\"><span style=\" font-weight:400;\">Chris Hergert</span></p>\n<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Allison Hughes</p>\n<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Arno Rehn</p>\n<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Darryl Ring</p></body></html>";
            verticalLayout.AddWidget(this.textBrowser);
            QHBoxLayout horizontalLayout_2;

            horizontalLayout_2 = new QHBoxLayout();
            verticalLayout.AddLayout(horizontalLayout_2);
            this.sendFeedbackButton            = new QPushButton(this);
            this.sendFeedbackButton.ObjectName = "sendFeedbackButton";
            this.sendFeedbackButton.Text       = "Send Feedback";
            horizontalLayout_2.AddWidget(this.sendFeedbackButton);
            this.buttonBox                 = new QDialogButtonBox(this);
            this.buttonBox.ObjectName      = "buttonBox";
            this.buttonBox.Orientation     = Qt.Orientation.Horizontal;
            this.buttonBox.StandardButtons = global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Close");
            horizontalLayout_2.AddWidget(this.buttonBox);
            QObject.Connect(buttonBox, Qt.SIGNAL("rejected()"), this, Qt.SLOT("reject()"));
            QObject.Connect(buttonBox,Qt.SIGNAL("accepted()"),this,Qt.SLOT("accept()"));
            QObject.Connect(buttonBox,Qt.SIGNAL("accepted()"),this,Qt.SLOT("accept()"));
            QMetaObject.ConnectSlotsByName(this);
        }
示例#3
0
        protected void SetupUi()
        {
            base.ObjectName  = "EditGroupsWindow";
            this.Geometry    = new QRect(0, 0, 250, 344);
            this.WindowTitle = "EditGroupsWindow";
            QVBoxLayout verticalLayout;

            verticalLayout        = new QVBoxLayout(this);
            verticalLayout.Margin = 6;
            QSpacerItem verticalSpacer;

            verticalSpacer = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding);
            verticalLayout.AddItem(verticalSpacer);
            this.label            = new QLabel(this);
            this.label.ObjectName = "label";
            QSizePolicy label_sizePolicy;

            label_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Minimum);
            label_sizePolicy.SetVerticalStretch(0);
            label_sizePolicy.SetHorizontalStretch(0);
            label_sizePolicy.SetHeightForWidth(this.label.SizePolicy.HasHeightForWidth());
            this.label.SizePolicy = label_sizePolicy;
            this.label.Text       = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\np, li { white-space: pre-wrap; }\n</style></head><body style=\" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;\">\n<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Edit Groups</span></p></body></html>";
            verticalLayout.AddWidget(this.label);
            this.jidLabel            = new QLabel(this);
            this.jidLabel.ObjectName = "jidLabel";
            this.jidLabel.Text       = "";
            verticalLayout.AddWidget(this.jidLabel);
            this.groupsWidget            = new Synapse.QtClient.Widgets.EditGroupsWidget(this);
            this.groupsWidget.ObjectName = "groupsWidget";
            verticalLayout.AddWidget(this.groupsWidget);
            this.buttonBox            = new QDialogButtonBox(this);
            this.buttonBox.ObjectName = "buttonBox";
            verticalLayout.AddWidget(this.buttonBox);
            QSpacerItem verticalSpacer_2;

            verticalSpacer_2 = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding);
            verticalLayout.AddItem(verticalSpacer_2);
            QMetaObject.ConnectSlotsByName(this);
        }
    public void SetupUi(QDialog ScanningDialog)
    {
        if (ScanningDialog.ObjectName == "")
        ScanningDialog.ObjectName = "ScanningDialog";
        QSize Size = new QSize(750, 100);
        Size = Size.ExpandedTo(ScanningDialog.MinimumSizeHint());
        ScanningDialog.Size = Size;
        ScanningDialog.MinimumSize = new QSize(750, 100);
        ScanningDialog.MaximumSize = new QSize(750, 100);
        ScanningDialog.WindowIcon = new QIcon(":/main/themonospot_48.png");
        ScanningDialog.Modal = true;
        vboxLayout = new QVBoxLayout(ScanningDialog);
        vboxLayout.ObjectName = "vboxLayout";
        lblOperation = new QLabel(ScanningDialog);
        lblOperation.ObjectName = "lblOperation";
        lblOperation.Alignment = Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignCenter");
        lblOperation.Margin = 1;

        vboxLayout.AddWidget(lblOperation);

        lblFileName = new QLabel(ScanningDialog);
        lblFileName.ObjectName = "lblFileName";
        lblFileName.Alignment = Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignCenter");
        lblFileName.WordWrap = true;
        lblFileName.Margin = 1;

        vboxLayout.AddWidget(lblFileName);

        buttonBox = new QDialogButtonBox(ScanningDialog);
        buttonBox.ObjectName = "buttonBox";
        buttonBox.Orientation = Qt.Orientation.Horizontal;
        buttonBox.StandardButtons = Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel");
        buttonBox.CenterButtons = true;

        vboxLayout.AddWidget(buttonBox);

        RetranslateUi(ScanningDialog);

        QMetaObject.ConnectSlotsByName(ScanningDialog);
    }
        public void SetupUi(QDialog PassphraseDialog)
        {
            if (PassphraseDialog.ObjectName == "")
            {
                PassphraseDialog.ObjectName = "PassphraseDialog";
            }
            QSize Size = new QSize(493, 118);

            Size = Size.ExpandedTo(PassphraseDialog.MinimumSizeHint);
            PassphraseDialog.Size     = Size;
            verticalLayout            = new QVBoxLayout(PassphraseDialog);
            verticalLayout.ObjectName = "verticalLayout";
            mMessageLabel             = new QLabel(PassphraseDialog);
            mMessageLabel.ObjectName  = "mMessageLabel";

            verticalLayout.AddWidget(mMessageLabel, 0, Qt.AlignmentFlag.AlignHCenter);

            mPassphraseLineEdit            = new QLineEdit(PassphraseDialog);
            mPassphraseLineEdit.ObjectName = "mPassphraseLineEdit";
            mPassphraseLineEdit.echoMode   = QLineEdit.EchoMode.Password;

            verticalLayout.AddWidget(mPassphraseLineEdit);

            mButtonBox                 = new QDialogButtonBox(PassphraseDialog);
            mButtonBox.ObjectName      = "mButtonBox";
            mButtonBox.Orientation     = Qt.Orientation.Horizontal;
            mButtonBox.StandardButtons = QDialogButtonBox.StandardButton.Cancel | QDialogButtonBox.StandardButton.Ok;

            verticalLayout.AddWidget(mButtonBox);


            RetranslateUi(PassphraseDialog);
            QObject.Connect(mButtonBox, Qt.SIGNAL("accepted()"), PassphraseDialog, Qt.SLOT("accept()"));
            QObject.Connect(mButtonBox,Qt.SIGNAL("rejected()"),PassphraseDialog,Qt.SLOT("reject()"));

            QMetaObject.ConnectSlotsByName(PassphraseDialog);
        } // SetupUi
示例#6
0
        protected void SetupUi()
        {
            base.ObjectName  = "InsertLinkDialog";
            this.Geometry    = new QRect(0, 0, 287, 110);
            this.WindowTitle = "Insert Link";
            QVBoxLayout verticalLayout;

            verticalLayout        = new QVBoxLayout(this);
            verticalLayout.Margin = 6;
            QFormLayout formLayout;

            formLayout = new QFormLayout();
            verticalLayout.AddLayout(formLayout);
            this.label_2            = new QLabel(this);
            this.label_2.ObjectName = "label_2";
            this.label_2.Text       = "URL:";
            formLayout.SetWidget(0, QFormLayout.ItemRole.LabelRole, this.label_2);
            this.urlLineEdit            = new QLineEdit(this);
            this.urlLineEdit.ObjectName = "urlLineEdit";
            formLayout.SetWidget(0, QFormLayout.ItemRole.FieldRole, this.urlLineEdit);
            this.label            = new QLabel(this);
            this.label.ObjectName = "label";
            this.label.Text       = "Text:";
            formLayout.SetWidget(1, QFormLayout.ItemRole.LabelRole, this.label);
            this.textLineEdit            = new QLineEdit(this);
            this.textLineEdit.ObjectName = "textLineEdit";
            formLayout.SetWidget(1, QFormLayout.ItemRole.FieldRole, this.textLineEdit);
            this.buttonBox                 = new QDialogButtonBox(this);
            this.buttonBox.ObjectName      = "buttonBox";
            this.buttonBox.Orientation     = Qt.Orientation.Horizontal;
            this.buttonBox.StandardButtons = (global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel") | global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok"));
            verticalLayout.AddWidget(this.buttonBox);
            QObject.Connect(buttonBox, Qt.SIGNAL("accepted()"), this, Qt.SLOT("accept()"));
            QObject.Connect(buttonBox,Qt.SIGNAL("rejected()"),this,Qt.SLOT("reject()"));
            QMetaObject.ConnectSlotsByName(this);
        }
示例#7
0
        protected void SetupUi()
        {
            base.ObjectName  = "AddFriendWindow";
            this.Geometry    = new QRect(0, 0, 285, 349);
            this.WindowTitle = "AddFriend";
            QVBoxLayout verticalLayout;

            verticalLayout        = new QVBoxLayout(this);
            verticalLayout.Margin = 0;
            QHBoxLayout horizontalLayout;

            horizontalLayout = new QHBoxLayout();
            verticalLayout.AddLayout(horizontalLayout);
            QSpacerItem horizontalSpacer;

            horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum);
            horizontalLayout.AddItem(horizontalSpacer);
            this.closeButton            = new QPushButton(this);
            this.closeButton.ObjectName = "closeButton";
            this.closeButton.BaseSize   = new QSize(0, 0);
            this.closeButton.Text       = "";
            horizontalLayout.AddWidget(this.closeButton);
            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;
            QSpacerItem verticalSpacer_2;

            verticalSpacer_2 = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding);
            verticalLayout_2.AddItem(verticalSpacer_2);
            this.pushButton            = new QPushButton(this.page);
            this.pushButton.ObjectName = "pushButton";
            this.pushButton.Text       = "Search && Add friends automatically...";
            verticalLayout_2.AddWidget(this.pushButton);
            this.pushButton_3            = new QPushButton(this.page);
            this.pushButton_3.ObjectName = "pushButton_3";
            this.pushButton_3.Text       = "Search for friends...";
            verticalLayout_2.AddWidget(this.pushButton_3);
            this.enterJidButton            = new QPushButton(this.page);
            this.enterJidButton.ObjectName = "enterJidButton";
            this.enterJidButton.Text       = "Enter friend's JID...";
            verticalLayout_2.AddWidget(this.enterJidButton);
            QSpacerItem verticalSpacer;

            verticalSpacer = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding);
            verticalLayout_2.AddItem(verticalSpacer);
            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;
            QSpacerItem verticalSpacer_3;

            verticalSpacer_3 = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding);
            verticalLayout_3.AddItem(verticalSpacer_3);
            this.label_2            = new QLabel(this.page_2);
            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:'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;\">Add Friend</span></p></body></html>";
            verticalLayout_3.AddWidget(this.label_2);
            QGridLayout gridLayout;

            gridLayout = new QGridLayout();
            verticalLayout_3.AddLayout(gridLayout);
            this.label            = new QLabel(this.page_2);
            this.label.ObjectName = "label";
            this.label.Text       = "JID:";
            gridLayout.AddWidget(this.label, 0, 0, 1, 1);
            this.jidLineEdit            = new QLineEdit(this.page_2);
            this.jidLineEdit.ObjectName = "jidLineEdit";
            gridLayout.AddWidget(this.jidLineEdit, 0, 1, 1, 1);
            this.label_4            = new QLabel(this.page_2);
            this.label_4.ObjectName = "label_4";
            this.label_4.Text       = "Name:";
            gridLayout.AddWidget(this.label_4, 1, 0, 1, 1);
            this.nameLineEdit            = new QLineEdit(this.page_2);
            this.nameLineEdit.ObjectName = "nameLineEdit";
            gridLayout.AddWidget(this.nameLineEdit, 1, 1, 1, 1);
            this.label_3            = new QLabel(this.page_2);
            this.label_3.ObjectName = "label_3";
            this.label_3.Text       = "Add to Group(s):";
            verticalLayout_3.AddWidget(this.label_3);
            this.groupsWidget            = new Synapse.QtClient.Widgets.EditGroupsWidget(this.page_2);
            this.groupsWidget.ObjectName = "groupsWidget";
            verticalLayout_3.AddWidget(this.groupsWidget);
            this.buttonBox                 = new QDialogButtonBox(this.page_2);
            this.buttonBox.ObjectName      = "buttonBox";
            this.buttonBox.StandardButtons = global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "NoButton");
            verticalLayout_3.AddWidget(this.buttonBox);
            QSpacerItem verticalSpacer_4;

            verticalSpacer_4 = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding);
            verticalLayout_3.AddItem(verticalSpacer_4);
            this.stackedWidget.AddWidget(this.page_2);
            QMetaObject.ConnectSlotsByName(this);
        }
示例#8
0
        protected void SetupUi()
        {
            base.ObjectName  = "ErrorDialog";
            this.Geometry    = new QRect(0, 0, 400, 322);
            this.WindowTitle = "ErrorDialog";
            QVBoxLayout verticalLayout_2;

            verticalLayout_2 = new QVBoxLayout(this);
            verticalLayout_2.sizeConstraint = QLayout.SizeConstraint.SetFixedSize;
            verticalLayout_2.Margin         = 6;
            QHBoxLayout horizontalLayout_2;

            horizontalLayout_2 = new QHBoxLayout();
            verticalLayout_2.AddLayout(horizontalLayout_2);
            horizontalLayout_2.sizeConstraint = QLayout.SizeConstraint.SetFixedSize;
            this.iconLabel            = new QLabel(this);
            this.iconLabel.ObjectName = "iconLabel";
            QSizePolicy iconLabel_sizePolicy;

            iconLabel_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Minimum);
            iconLabel_sizePolicy.SetVerticalStretch(0);
            iconLabel_sizePolicy.SetHorizontalStretch(0);
            iconLabel_sizePolicy.SetHeightForWidth(this.iconLabel.SizePolicy.HasHeightForWidth());
            this.iconLabel.SizePolicy  = iconLabel_sizePolicy;
            this.iconLabel.MinimumSize = new QSize(48, 48);
            this.iconLabel.Text        = "";
            this.iconLabel.Alignment   = ((global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeading") | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeft")) | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignTop"));
            horizontalLayout_2.AddWidget(this.iconLabel);
            QVBoxLayout verticalLayout;

            verticalLayout = new QVBoxLayout();
            horizontalLayout_2.AddLayout(verticalLayout);
            verticalLayout.Spacing        = 6;
            verticalLayout.sizeConstraint = QLayout.SizeConstraint.SetFixedSize;
            this.titleLabel            = new QLabel(this);
            this.titleLabel.ObjectName = "titleLabel";
            QSizePolicy titleLabel_sizePolicy;

            titleLabel_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Minimum);
            titleLabel_sizePolicy.SetVerticalStretch(0);
            titleLabel_sizePolicy.SetHorizontalStretch(0);
            titleLabel_sizePolicy.SetHeightForWidth(this.titleLabel.SizePolicy.HasHeightForWidth());
            this.titleLabel.SizePolicy = titleLabel_sizePolicy;
            this.titleLabel.Text       = "<b>Title</b>";
            this.titleLabel.WordWrap   = true;
            verticalLayout.AddWidget(this.titleLabel);
            this.messageLabel            = new QLabel(this);
            this.messageLabel.ObjectName = "messageLabel";
            QSizePolicy messageLabel_sizePolicy;

            messageLabel_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Minimum);
            messageLabel_sizePolicy.SetVerticalStretch(0);
            messageLabel_sizePolicy.SetHorizontalStretch(0);
            messageLabel_sizePolicy.SetHeightForWidth(this.messageLabel.SizePolicy.HasHeightForWidth());
            this.messageLabel.SizePolicy = messageLabel_sizePolicy;
            this.messageLabel.Text       = "Message";
            this.messageLabel.WordWrap   = true;
            verticalLayout.AddWidget(this.messageLabel);
            this.showDetailsButtonContainer            = new QWidget(this);
            this.showDetailsButtonContainer.ObjectName = "showDetailsButtonContainer";
            QSizePolicy showDetailsButtonContainer_sizePolicy;

            showDetailsButtonContainer_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Minimum);
            showDetailsButtonContainer_sizePolicy.SetVerticalStretch(0);
            showDetailsButtonContainer_sizePolicy.SetHorizontalStretch(0);
            showDetailsButtonContainer_sizePolicy.SetHeightForWidth(this.showDetailsButtonContainer.SizePolicy.HasHeightForWidth());
            this.showDetailsButtonContainer.SizePolicy = showDetailsButtonContainer_sizePolicy;
            QHBoxLayout horizontalLayout;

            horizontalLayout                  = new QHBoxLayout(this.showDetailsButtonContainer);
            horizontalLayout.Margin           = 0;
            this.showDetailsButton            = new QPushButton(this.showDetailsButtonContainer);
            this.showDetailsButton.ObjectName = "showDetailsButton";
            this.showDetailsButton.Text       = "Show Details";
            this.showDetailsButton.Checkable  = true;
            horizontalLayout.AddWidget(this.showDetailsButton);
            QSpacerItem horizontalSpacer;

            horizontalSpacer = new QSpacerItem(223, 17, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum);
            horizontalLayout.AddItem(horizontalSpacer);
            verticalLayout.AddWidget(this.showDetailsButtonContainer);
            this.detailsTextEdit            = new QPlainTextEdit(this);
            this.detailsTextEdit.ObjectName = "detailsTextEdit";
            this.detailsTextEdit.ReadOnly   = true;
            verticalLayout.AddWidget(this.detailsTextEdit);
            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_2.AddWidget(this.buttonBox);
            QObject.Connect(buttonBox, Qt.SIGNAL("accepted()"), this, Qt.SLOT("accept()"));
            QObject.Connect(buttonBox,Qt.SIGNAL("rejected()"),this,Qt.SLOT("reject()"));
            QObject.Connect(showDetailsButton,Qt.SIGNAL("toggled(bool)"),detailsTextEdit,Qt.SLOT("setVisible(bool)"));
            QMetaObject.ConnectSlotsByName(this);
        }
示例#9
0
    public void SetupUi(QDialog NewContactDialog)
    {
        if (NewContactDialog.ObjectName == "")
        {
            NewContactDialog.ObjectName = "NewContactDialog";
        }
        QSize Size = new QSize(360, 150);

        Size = Size.ExpandedTo(NewContactDialog.MinimumSizeHint());
        NewContactDialog.Size        = Size;
        NewContactDialog.MinimumSize = new QSize(360, 150);
        NewContactDialog.WindowIcon  = new QIcon(":/main/resources/monosim_128.png");
        gridLayout            = new QGridLayout(NewContactDialog);
        gridLayout.ObjectName = "gridLayout";
        LblTitle            = new QLabel(NewContactDialog);
        LblTitle.ObjectName = "LblTitle";
        LblTitle.Alignment  = Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignCenter");
        LblTitle.WordWrap   = true;

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

        LblDesc            = new QLabel(NewContactDialog);
        LblDesc.ObjectName = "LblDesc";

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

        TxtDesc            = new QLineEdit(NewContactDialog);
        TxtDesc.ObjectName = "TxtDesc";

        gridLayout.AddWidget(TxtDesc, 2, 1, 1, 1);

        LblNumber            = new QLabel(NewContactDialog);
        LblNumber.ObjectName = "LblNumber";

        gridLayout.AddWidget(LblNumber, 3, 0, 1, 1);

        TxtNumber            = new QLineEdit(NewContactDialog);
        TxtNumber.ObjectName = "TxtNumber";

        gridLayout.AddWidget(TxtNumber, 3, 1, 1, 1);

        spacerItem = new QSpacerItem(282, 37, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding);

        gridLayout.AddItem(spacerItem, 4, 1, 1, 1);

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

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

        spacerItem1 = new QSpacerItem(20, 8, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed);

        gridLayout.AddItem(spacerItem1, 1, 0, 1, 1);


        RetranslateUi(NewContactDialog);
        QObject.Connect(Buttons, Qt.SIGNAL("accepted()"), NewContactDialog, Qt.SLOT("accept()"));
        QObject.Connect(Buttons,Qt.SIGNAL("rejected()"),NewContactDialog,Qt.SLOT("reject()"));

        QMetaObject.ConnectSlotsByName(NewContactDialog);
    } // SetupUi
示例#10
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
示例#11
0
        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);
        }
示例#12
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);
        }
示例#13
0
    public void SetupUi(QDialog ChangePinStatusDialog)
    {
        if (ChangePinStatusDialog.ObjectName == "")
        {
            ChangePinStatusDialog.ObjectName = "ChangePinStatusDialog";
        }
        QSize Size = new QSize(357, 159);

        Size = Size.ExpandedTo(ChangePinStatusDialog.MinimumSizeHint());
        ChangePinStatusDialog.Size       = Size;
        ChangePinStatusDialog.WindowIcon = new QIcon(":/main/resources/monosim_128.png");
        gridLayout            = new QGridLayout(ChangePinStatusDialog);
        gridLayout.ObjectName = "gridLayout";
        LblTitle            = new QLabel(ChangePinStatusDialog);
        LblTitle.ObjectName = "LblTitle";
        LblTitle.Alignment  = Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignCenter");
        LblTitle.WordWrap   = true;

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

        LblPin1            = new QLabel(ChangePinStatusDialog);
        LblPin1.ObjectName = "LblPin1";

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

        TxtPin1            = new QLineEdit(ChangePinStatusDialog);
        TxtPin1.ObjectName = "TxtPin1";
        TxtPin1.MaxLength  = 4;
        TxtPin1.echoMode   = QLineEdit.EchoMode.Password;

        gridLayout.AddWidget(TxtPin1, 2, 1, 1, 1);

        LblPin1check            = new QLabel(ChangePinStatusDialog);
        LblPin1check.ObjectName = "LblPin1check";

        gridLayout.AddWidget(LblPin1check, 3, 0, 1, 1);

        TxtPin1check            = new QLineEdit(ChangePinStatusDialog);
        TxtPin1check.ObjectName = "TxtPin1check";
        TxtPin1check.MaxLength  = 4;
        TxtPin1check.echoMode   = QLineEdit.EchoMode.Password;

        gridLayout.AddWidget(TxtPin1check, 3, 1, 1, 1);

        spacerItem = new QSpacerItem(282, 37, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding);

        gridLayout.AddItem(spacerItem, 4, 1, 1, 1);

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

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

        spacerItem1 = new QSpacerItem(20, 8, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed);

        gridLayout.AddItem(spacerItem1, 1, 0, 1, 1);


        RetranslateUi(ChangePinStatusDialog);
        QObject.Connect(Buttons, Qt.SIGNAL("accepted()"), ChangePinStatusDialog, Qt.SLOT("accept()"));
        QObject.Connect(Buttons,Qt.SIGNAL("rejected()"),ChangePinStatusDialog,Qt.SLOT("reject()"));

        QMetaObject.ConnectSlotsByName(ChangePinStatusDialog);
    } // SetupUi
示例#14
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);
        }
示例#15
0
        protected void SetupUi()
        {
            base.ObjectName  = "InviteToMucDialog";
            this.Geometry    = new QRect(0, 0, 402, 289);
            this.WindowTitle = "Invite to Conference";
            QVBoxLayout verticalLayout;

            verticalLayout                  = new QVBoxLayout(this);
            verticalLayout.Margin           = 6;
            this.stackedWidget              = new QStackedWidget(this);
            this.stackedWidget.ObjectName   = "stackedWidget";
            this.stackedWidget.CurrentIndex = 0;
            verticalLayout.AddWidget(this.stackedWidget);
            this.page            = new QWidget(this.stackedWidget);
            this.page.ObjectName = "page";
            QVBoxLayout verticalLayout_2;

            verticalLayout_2        = new QVBoxLayout(this.page);
            verticalLayout_2.Margin = 0;
            this.label            = new QLabel(this.page);
            this.label.ObjectName = "label";
            this.label.Text       = "Select Conference:";
            verticalLayout_2.AddWidget(this.label);
            this.mucsListWidget                   = new QListWidget(this.page);
            this.mucsListWidget.ObjectName        = "mucsListWidget";
            this.mucsListWidget.selectionBehavior = QAbstractItemView.SelectionBehavior.SelectRows;
            verticalLayout_2.AddWidget(this.mucsListWidget);
            this.stackedWidget.AddWidget(this.page);
            this.page_2            = new QWidget(this.stackedWidget);
            this.page_2.ObjectName = "page_2";
            QVBoxLayout verticalLayout_3;

            verticalLayout_3            = new QVBoxLayout(this.page_2);
            verticalLayout_3.Margin     = 0;
            this.tabWidget              = new QTabWidget(this.page_2);
            this.tabWidget.ObjectName   = "tabWidget";
            this.tabWidget.CurrentIndex = 0;
            verticalLayout_3.AddWidget(this.tabWidget);
            this.tab            = new QWidget(this.tabWidget);
            this.tab.ObjectName = "tab";
            QVBoxLayout verticalLayout_5;

            verticalLayout_5        = new QVBoxLayout(this.tab);
            verticalLayout_5.Margin = 6;
            this.label_3            = new QLabel(this.tab);
            this.label_3.ObjectName = "label_3";
            this.label_3.Text       = "Select friends to invite:";
            verticalLayout_5.AddWidget(this.label_3);
            this.friendsListWidget            = new QListWidget(this.tab);
            this.friendsListWidget.ObjectName = "friendsListWidget";
            verticalLayout_5.AddWidget(this.friendsListWidget);
            this.tabWidget.AddTab(this.tab, "Invite Friends");
            this.tab_2            = new QWidget(this.tabWidget);
            this.tab_2.ObjectName = "tab_2";
            QVBoxLayout verticalLayout_4;

            verticalLayout_4 = new QVBoxLayout(this.tab_2);
            verticalLayout_4.SetContentsMargins(6, 6, 6, 0);
            this.label_2            = new QLabel(this.tab_2);
            this.label_2.ObjectName = "label_2";
            this.label_2.Text       = "Send this URL to anybody:";
            verticalLayout_4.AddWidget(this.label_2);
            this.urlLineEdit            = new QLineEdit(this.tab_2);
            this.urlLineEdit.ObjectName = "urlLineEdit";
            this.urlLineEdit.ReadOnly   = true;
            verticalLayout_4.AddWidget(this.urlLineEdit);
            QHBoxLayout horizontalLayout;

            horizontalLayout = new QHBoxLayout();
            verticalLayout_4.AddLayout(horizontalLayout);
            this.emailButton            = new QPushButton(this.tab_2);
            this.emailButton.ObjectName = "emailButton";
            this.emailButton.Text       = "&Email";
            horizontalLayout.AddWidget(this.emailButton);
            this.copyButton            = new QPushButton(this.tab_2);
            this.copyButton.ObjectName = "copyButton";
            this.copyButton.Text       = "&Copy";
            horizontalLayout.AddWidget(this.copyButton);
            QSpacerItem horizontalSpacer;

            horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum);
            horizontalLayout.AddItem(horizontalSpacer);
            QSpacerItem verticalSpacer;

            verticalSpacer = new QSpacerItem(20, 99, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding);
            verticalLayout_4.AddItem(verticalSpacer);
            this.tabWidget.AddTab(this.tab_2, "Invite Anyone");
            this.stackedWidget.AddWidget(this.page_2);
            this.buttonBox                 = new QDialogButtonBox(this);
            this.buttonBox.ObjectName      = "buttonBox";
            this.buttonBox.Orientation     = Qt.Orientation.Horizontal;
            this.buttonBox.StandardButtons = ((global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel") | global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Close")) | global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok"));
            verticalLayout.AddWidget(this.buttonBox);
            QObject.Connect(buttonBox, Qt.SIGNAL("accepted()"), this, Qt.SLOT("accept()"));
            QObject.Connect(buttonBox,Qt.SIGNAL("rejected()"),this,Qt.SLOT("reject()"));
            QMetaObject.ConnectSlotsByName(this);
        }
示例#16
0
 protected void SetupUi() {
     base.ObjectName = "EditAccountDialog";
     this.Geometry = new QRect(0, 0, 343, 261);
     this.WindowTitle = "Edit Account";
     this.Modal = true;
     QVBoxLayout verticalLayout;
     verticalLayout = new QVBoxLayout(this);
     verticalLayout.Margin = 6;
     this.tabWidget = new QTabWidget(this);
     this.tabWidget.ObjectName = "tabWidget";
     this.tabWidget.Enabled = true;
     this.tabWidget.CurrentIndex = 3;
     verticalLayout.AddWidget(this.tabWidget);
     this.tab = new QWidget(this.tabWidget);
     this.tab.ObjectName = "tab";
     QVBoxLayout verticalLayout_2;
     verticalLayout_2 = new QVBoxLayout(this.tab);
     verticalLayout_2.Margin = 6;
     QFormLayout formLayout;
     formLayout = new QFormLayout();
     verticalLayout_2.AddLayout(formLayout);
     this.label = new QLabel(this.tab);
     this.label.ObjectName = "label";
     this.label.Text = "Jabber ID:";
     formLayout.SetWidget(0, QFormLayout.ItemRole.LabelRole, this.label);
     this.jidLineEdit = new QLineEdit(this.tab);
     this.jidLineEdit.ObjectName = "jidLineEdit";
     formLayout.SetWidget(0, QFormLayout.ItemRole.FieldRole, this.jidLineEdit);
     this.label_2 = new QLabel(this.tab);
     this.label_2.ObjectName = "label_2";
     this.label_2.Text = "Password:"******"passwordLineEdit";
     this.passwordLineEdit.echoMode = QLineEdit.EchoMode.Password;
     formLayout.SetWidget(1, QFormLayout.ItemRole.FieldRole, this.passwordLineEdit);
     this.label_3 = new QLabel(this.tab);
     this.label_3.ObjectName = "label_3";
     this.label_3.Text = "Resource:";
     formLayout.SetWidget(2, QFormLayout.ItemRole.LabelRole, this.label_3);
     this.resourceCombo = new QComboBox(this.tab);
     this.resourceCombo.ObjectName = "resourceCombo";
     this.resourceCombo.Editable = true;
     formLayout.SetWidget(2, QFormLayout.ItemRole.FieldRole, this.resourceCombo);
     this.resourceCombo.InsertItems(0, new System.Collections.Generic.List<string>(new string[] {
                     "Home Computer",
                     "Work Computer",
                     "Laptop"}));
     QSpacerItem verticalSpacer;
     verticalSpacer = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding);
     verticalLayout_2.AddItem(verticalSpacer);
     this.widget = new QWidget(this.tab);
     this.widget.ObjectName = "widget";
     QHBoxLayout horizontalLayout;
     horizontalLayout = new QHBoxLayout(this.widget);
     horizontalLayout.Margin = 0;
     this.pushButton = new QPushButton(this.widget);
     this.pushButton.ObjectName = "pushButton";
     this.pushButton.Enabled = false;
     this.pushButton.Text = "Change Password...";
     horizontalLayout.AddWidget(this.pushButton);
     QSpacerItem horizontalSpacer;
     horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum);
     horizontalLayout.AddItem(horizontalSpacer);
     verticalLayout_2.AddWidget(this.widget);
     this.tabWidget.AddTab(this.tab, "Account");
     this.tab_4 = new QWidget(this.tabWidget);
     this.tab_4.ObjectName = "tab_4";
     QVBoxLayout verticalLayout_3;
     verticalLayout_3 = new QVBoxLayout(this.tab_4);
     verticalLayout_3.Margin = 6;
     this.label_5 = new QLabel(this.tab_4);
     this.label_5.ObjectName = "label_5";
     this.label_5.Text = "Synapse will attempt to automatically discover your connect server if you leave this field blank.";
     this.label_5.WordWrap = true;
     verticalLayout_3.AddWidget(this.label_5);
     QFormLayout formLayout_2;
     formLayout_2 = new QFormLayout();
     verticalLayout_3.AddLayout(formLayout_2);
     this.label_4 = new QLabel(this.tab_4);
     this.label_4.ObjectName = "label_4";
     this.label_4.Text = "Connect Server:";
     formLayout_2.SetWidget(0, QFormLayout.ItemRole.LabelRole, this.label_4);
     this.serverLineEdit = new QLineEdit(this.tab_4);
     this.serverLineEdit.ObjectName = "serverLineEdit";
     formLayout_2.SetWidget(0, QFormLayout.ItemRole.FieldRole, this.serverLineEdit);
     this.label_6 = new QLabel(this.tab_4);
     this.label_6.ObjectName = "label_6";
     this.label_6.Text = "Port:";
     formLayout_2.SetWidget(1, QFormLayout.ItemRole.LabelRole, this.label_6);
     this.portSpinBox = new QSpinBox(this.tab_4);
     this.portSpinBox.ObjectName = "portSpinBox";
     this.portSpinBox.Maximum = 9999999;
     this.portSpinBox.SingleStep = 1;
     this.portSpinBox.Value = 5222;
     formLayout_2.SetWidget(1, QFormLayout.ItemRole.FieldRole, this.portSpinBox);
     this.label_7 = new QLabel(this.tab_4);
     this.label_7.ObjectName = "label_7";
     this.label_7.Enabled = false;
     this.label_7.Text = "Note that the server must support TLS encryption.";
     this.label_7.Alignment = ((global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeading") | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeft")) | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignVCenter"));
     verticalLayout_3.AddWidget(this.label_7);
     QSpacerItem verticalSpacer_2;
     verticalSpacer_2 = new QSpacerItem(20, 170, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding);
     verticalLayout_3.AddItem(verticalSpacer_2);
     this.tabWidget.AddTab(this.tab_4, "Server");
     this.tab_2 = new QWidget(this.tabWidget);
     this.tab_2.ObjectName = "tab_2";
     QVBoxLayout verticalLayout_4;
     verticalLayout_4 = new QVBoxLayout(this.tab_2);
     verticalLayout_4.Margin = 6;
     this.autoConnectCheckBox = new QCheckBox(this.tab_2);
     this.autoConnectCheckBox.ObjectName = "autoConnectCheckBox";
     this.autoConnectCheckBox.Text = "Connect Automatically";
     verticalLayout_4.AddWidget(this.autoConnectCheckBox);
     QSpacerItem verticalSpacer_3;
     verticalSpacer_3 = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding);
     verticalLayout_4.AddItem(verticalSpacer_3);
     this.tabWidget.AddTab(this.tab_2, "Options");
     this.tab_3 = new QWidget(this.tabWidget);
     this.tab_3.ObjectName = "tab_3";
     QVBoxLayout verticalLayout_5;
     verticalLayout_5 = new QVBoxLayout(this.tab_3);
     verticalLayout_5.Margin = 6;
     QFormLayout formLayout_3;
     formLayout_3 = new QFormLayout();
     verticalLayout_5.AddLayout(formLayout_3);
     formLayout_3.fieldGrowthPolicy = QFormLayout.FieldGrowthPolicy.AllNonFixedFieldsGrow;
     this.label_9 = new QLabel(this.tab_3);
     this.label_9.ObjectName = "label_9";
     this.label_9.Text = "&Type:";
     formLayout_3.SetWidget(0, QFormLayout.ItemRole.LabelRole, this.label_9);
     this.comboBox = new QComboBox(this.tab_3);
     this.comboBox.ObjectName = "comboBox";
     formLayout_3.SetWidget(0, QFormLayout.ItemRole.FieldRole, this.comboBox);
     this.comboBox.InsertItems(0, new System.Collections.Generic.List<string>(new string[] {
                     "Use System Settings (DOES NOT WORK)",
                     "No Proxy",
                     "HTTP",
                     "SOCKS4",
                     "SOCKS5"}));
     this.proxyHostLabel = new QLabel(this.tab_3);
     this.proxyHostLabel.ObjectName = "proxyHostLabel";
     this.proxyHostLabel.Enabled = true;
     this.proxyHostLabel.Text = "&Host:";
     formLayout_3.SetWidget(2, QFormLayout.ItemRole.LabelRole, this.proxyHostLabel);
     this.proxyHostLineEdit = new QLineEdit(this.tab_3);
     this.proxyHostLineEdit.ObjectName = "proxyHostLineEdit";
     this.proxyHostLineEdit.Enabled = true;
     formLayout_3.SetWidget(2, QFormLayout.ItemRole.FieldRole, this.proxyHostLineEdit);
     this.proxyPortLabel = new QLabel(this.tab_3);
     this.proxyPortLabel.ObjectName = "proxyPortLabel";
     this.proxyPortLabel.Enabled = true;
     this.proxyPortLabel.Text = "&Port:";
     formLayout_3.SetWidget(3, QFormLayout.ItemRole.LabelRole, this.proxyPortLabel);
     this.proxyPortSpinBox = new QSpinBox(this.tab_3);
     this.proxyPortSpinBox.ObjectName = "proxyPortSpinBox";
     this.proxyPortSpinBox.Enabled = true;
     this.proxyPortSpinBox.Maximum = 66666;
     formLayout_3.SetWidget(3, QFormLayout.ItemRole.FieldRole, this.proxyPortSpinBox);
     this.proxyUserLabel = new QLabel(this.tab_3);
     this.proxyUserLabel.ObjectName = "proxyUserLabel";
     this.proxyUserLabel.Enabled = true;
     this.proxyUserLabel.Text = "&Username:"******"proxyUserLineEdit";
     this.proxyUserLineEdit.Enabled = true;
     formLayout_3.SetWidget(4, QFormLayout.ItemRole.FieldRole, this.proxyUserLineEdit);
     this.proxyPassLabel = new QLabel(this.tab_3);
     this.proxyPassLabel.ObjectName = "proxyPassLabel";
     this.proxyPassLabel.Enabled = true;
     this.proxyPassLabel.Text = "Pa&ssword:";
     formLayout_3.SetWidget(5, QFormLayout.ItemRole.LabelRole, this.proxyPassLabel);
     this.proxyPassLineEdit = new QLineEdit(this.tab_3);
     this.proxyPassLineEdit.ObjectName = "proxyPassLineEdit";
     this.proxyPassLineEdit.Enabled = true;
     formLayout_3.SetWidget(5, QFormLayout.ItemRole.FieldRole, this.proxyPassLineEdit);
     this.line = new QFrame(this.tab_3);
     this.line.ObjectName = "line";
     this.line.FrameShape = QFrame.Shape.HLine;
     this.line.FrameShadow = QFrame.Shadow.Sunken;
     formLayout_3.SetWidget(1, QFormLayout.ItemRole.LabelRole, this.line);
     QSpacerItem verticalSpacer_4;
     verticalSpacer_4 = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding);
     verticalLayout_5.AddItem(verticalSpacer_4);
     this.tabWidget.AddTab(this.tab_3, "Proxy");
     this.buttonBox = new QDialogButtonBox(this);
     this.buttonBox.ObjectName = "buttonBox";
     this.buttonBox.Orientation = Qt.Orientation.Horizontal;
     this.buttonBox.StandardButtons = (global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel") | global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok"));
     verticalLayout.AddWidget(this.buttonBox);
     QObject.Connect(buttonBox, Qt.SIGNAL("accepted()"), this, Qt.SLOT("accept()"));
     QObject.Connect(buttonBox, Qt.SIGNAL("rejected()"), this, Qt.SLOT("reject()"));
     QMetaObject.ConnectSlotsByName(this);
     this.label_9.SetBuddy(comboBox);
     this.proxyHostLabel.SetBuddy(proxyHostLineEdit);
     this.proxyPortLabel.SetBuddy(proxyPortSpinBox);
     this.proxyUserLabel.SetBuddy(proxyUserLineEdit);
     this.proxyPassLabel.SetBuddy(proxyPassLineEdit);
 }
示例#17
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.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);
        }
示例#18
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.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);
    }
示例#19
0
        protected void SetupUi()
        {
            base.ObjectName  = "AvatarSelectDialog";
            this.Geometry    = new QRect(0, 0, 542, 361);
            this.WindowTitle = "Select Avatar";
            QVBoxLayout verticalLayout_2;

            verticalLayout_2 = new QVBoxLayout(this);
            QHBoxLayout horizontalLayout;

            horizontalLayout = new QHBoxLayout();
            verticalLayout_2.AddLayout(horizontalLayout);
            QVBoxLayout verticalLayout_3;

            verticalLayout_3 = new QVBoxLayout();
            horizontalLayout.AddLayout(verticalLayout_3);
            verticalLayout_3.sizeConstraint = QLayout.SizeConstraint.SetMinimumSize;
            this.label_2            = new QLabel(this);
            this.label_2.ObjectName = "label_2";
            this.label_2.Text       = "Your Avatar:";
            verticalLayout_3.AddWidget(this.label_2);
            this.avatarLabel             = new QLabel(this);
            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_3.AddWidget(this.avatarLabel);
            this.browseButton            = new QPushButton(this);
            this.browseButton.ObjectName = "browseButton";
            this.browseButton.Text       = "Select File...";
            verticalLayout_3.AddWidget(this.browseButton);
            this.clearButton            = new QPushButton(this);
            this.clearButton.ObjectName = "clearButton";
            this.clearButton.Text       = "Clear";
            verticalLayout_3.AddWidget(this.clearButton);
            QSpacerItem verticalSpacer;

            verticalSpacer = new QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding);
            verticalLayout_3.AddItem(verticalSpacer);
            this.line             = new QFrame(this);
            this.line.ObjectName  = "line";
            this.line.FrameShape  = QFrame.Shape.VLine;
            this.line.FrameShadow = QFrame.Shadow.Sunken;
            horizontalLayout.AddWidget(this.line);
            QVBoxLayout verticalLayout;

            verticalLayout = new QVBoxLayout();
            horizontalLayout.AddLayout(verticalLayout);
            QGridLayout gridLayout;

            gridLayout = new QGridLayout();
            verticalLayout.AddLayout(gridLayout);
            this.label_3            = new QLabel(this);
            this.label_3.ObjectName = "label_3";
            this.label_3.Text       = "Search:";
            this.label_3.SetBuddy(lineEdit);
            gridLayout.AddWidget(this.label_3, 0, 0, 1, 1);
            this.lineEdit            = new QLineEdit(this);
            this.lineEdit.ObjectName = "lineEdit";
            gridLayout.AddWidget(this.lineEdit, 0, 1, 1, 1);
            this.searchButton            = new QPushButton(this);
            this.searchButton.ObjectName = "searchButton";
            this.searchButton.Text       = "Search";
            this.searchButton.Default    = true;
            gridLayout.AddWidget(this.searchButton, 0, 2, 1, 1);
            this.tabWidget              = new QTabWidget(this);
            this.tabWidget.ObjectName   = "tabWidget";
            this.tabWidget.CurrentIndex = -1;
            verticalLayout.AddWidget(this.tabWidget);
            this.buttonBox                 = new QDialogButtonBox(this);
            this.buttonBox.ObjectName      = "buttonBox";
            this.buttonBox.StandardButtons = global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Close");
            verticalLayout_2.AddWidget(this.buttonBox);
            QObject.Connect(buttonBox, Qt.SIGNAL("rejected()"), this, Qt.SLOT("reject()"));
            QMetaObject.ConnectSlotsByName(this);
        }
示例#20
0
    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);
    }
示例#21
0
    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);
    } // SetupUi
示例#22
0
        protected void SetupUi()
        {
            base.ObjectName     = "TwitterConfigurationDialog";
            this.WindowModality = Qt.WindowModality.NonModal;
            this.Geometry       = new QRect(0, 0, 313, 137);
            this.WindowTitle    = "Twitter Configuration";
            this.Modal          = true;
            QVBoxLayout verticalLayout;

            verticalLayout        = new QVBoxLayout(this);
            verticalLayout.Margin = 6;
            QHBoxLayout horizontalLayout;

            horizontalLayout = new QHBoxLayout();
            verticalLayout.AddLayout(horizontalLayout);
            this.logoLabel             = new QLabel(this);
            this.logoLabel.ObjectName  = "logoLabel";
            this.logoLabel.MinimumSize = new QSize(48, 0);
            this.logoLabel.Text        = "";
            horizontalLayout.AddWidget(this.logoLabel);
            QVBoxLayout verticalLayout_2;

            verticalLayout_2 = new QVBoxLayout();
            horizontalLayout.AddLayout(verticalLayout_2);
            this.label            = new QLabel(this);
            this.label.ObjectName = "label";
            QSizePolicy label_sizePolicy;

            label_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Minimum);
            label_sizePolicy.SetVerticalStretch(0);
            label_sizePolicy.SetHorizontalStretch(0);
            label_sizePolicy.SetHeightForWidth(this.label.SizePolicy.HasHeightForWidth());
            this.label.SizePolicy = label_sizePolicy;
            this.label.Text       = "Enter your Twitter account information:";
            verticalLayout_2.AddWidget(this.label);
            QGridLayout gridLayout_2;

            gridLayout_2 = new QGridLayout();
            verticalLayout_2.AddLayout(gridLayout_2);
            gridLayout_2.sizeConstraint = QLayout.SizeConstraint.SetMaximumSize;
            this.label_2            = new QLabel(this);
            this.label_2.ObjectName = "label_2";
            this.label_2.Text       = "Username:"******"usernameLineEdit";
            gridLayout_2.AddWidget(this.usernameLineEdit, 0, 1, 1, 1);
            this.label_3            = new QLabel(this);
            this.label_3.ObjectName = "label_3";
            this.label_3.Text       = "Password:"******"passwordLineEdit";
            this.passwordLineEdit.echoMode   = QLineEdit.EchoMode.Password;
            gridLayout_2.AddWidget(this.passwordLineEdit, 1, 1, 1, 1);
            this.buttonBox                 = new QDialogButtonBox(this);
            this.buttonBox.ObjectName      = "buttonBox";
            this.buttonBox.Orientation     = Qt.Orientation.Horizontal;
            this.buttonBox.StandardButtons = (global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel") | global::Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok"));
            verticalLayout.AddWidget(this.buttonBox);
            QObject.Connect(buttonBox, Qt.SIGNAL("accepted()"), this, Qt.SLOT("accept()"));
            QObject.Connect(buttonBox,Qt.SIGNAL("rejected()"),this,Qt.SLOT("reject()"));
            QMetaObject.ConnectSlotsByName(this);
        }
示例#23
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:";
            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);
            this.label_5.SetBuddy(avatarSearchLineEdit);
        }