Пример #1
0
        public void SetupUi(QWidget ConfirmConstraintWidget)
        {
            if (ConfirmConstraintWidget.ObjectName == "")
            {
                ConfirmConstraintWidget.ObjectName = "ConfirmConstraintWidget";
            }
            horizontalLayout         = new QHBoxLayout(ConfirmConstraintWidget);
            horizontalLayout.Spacing = 6;
            horizontalLayout.SetContentsMargins(0, 0, 0, 0);
            horizontalLayout.ObjectName     = "horizontalLayout";
            horizontalLayout.sizeConstraint = QLayout.SizeConstraint.SetNoConstraint;
            mCheckBox            = new QCheckBox(ConfirmConstraintWidget);
            mCheckBox.ObjectName = "mCheckBox";

            horizontalLayout.AddWidget(mCheckBox);

            spacerItem = new QSpacerItem(111, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum);

            horizontalLayout.AddItem(spacerItem);


            RetranslateUi(ConfirmConstraintWidget);

            QMetaObject.ConnectSlotsByName(ConfirmConstraintWidget);
        } // SetupUi
Пример #2
0
    public void SetupUi(QWidget Form)
    {
        if (Form.ObjectName == "")
        {
            Form.ObjectName = "Form";
        }
        QSize Size = new QSize(887, 679);

        Size                  = Size.ExpandedTo(Form.MinimumSizeHint());
        Form.Size             = Size;
        vboxLayout            = new QVBoxLayout(Form);
        vboxLayout.ObjectName = "vboxLayout";
        tabWidget             = new QTabWidget(Form);
        tabWidget.ObjectName  = "tabWidget";
        tab            = new QWidget();
        tab.ObjectName = "tab";
        tabWidget.AddTab(tab, QApplication.Translate("Form", "Tab 1", null, QApplication.Encoding.UnicodeUTF8));
        tab_2                  = new QWidget();
        tab_2.ObjectName       = "tab_2";
        vboxLayout1            = new QVBoxLayout(tab_2);
        vboxLayout1.ObjectName = "vboxLayout1";
        listView               = new QListView(tab_2);
        listView.ObjectName    = "listView";

        vboxLayout1.AddWidget(listView);

        groupBox                 = new QGroupBox(tab_2);
        groupBox.ObjectName      = "groupBox";
        groupBox.MinimumSize     = new QSize(0, 64);
        pushButton               = new QPushButton(groupBox);
        pushButton.ObjectName    = "pushButton";
        pushButton.Geometry      = new QRect(690, 6, 151, 51);
        radioButton              = new QRadioButton(groupBox);
        radioButton.ObjectName   = "radioButton";
        radioButton.Geometry     = new QRect(120, 10, 109, 22);
        radioButton_2            = new QRadioButton(groupBox);
        radioButton_2.ObjectName = "radioButton_2";
        radioButton_2.Geometry   = new QRect(120, 40, 109, 22);
        lineEdit                 = new QLineEdit(groupBox);
        lineEdit.ObjectName      = "lineEdit";
        lineEdit.Geometry        = new QRect(280, 20, 371, 27);

        vboxLayout1.AddWidget(groupBox);

        tabWidget.AddTab(tab_2, QApplication.Translate("Form", "Join", null, QApplication.Encoding.UnicodeUTF8));
        tab_3            = new QWidget();
        tab_3.ObjectName = "tab_3";
        tabWidget.AddTab(tab_3, QApplication.Translate("Form", "Page", null, QApplication.Encoding.UnicodeUTF8));

        vboxLayout.AddWidget(tabWidget);


        RetranslateUi(Form);

        tabWidget.CurrentIndex = 1;


        QMetaObject.ConnectSlotsByName(Form);
    } // SetupUi
Пример #3
0
        protected void SetupUi()
        {
            base.ObjectName  = "ChatWindow";
            this.Geometry    = new QRect(0, 0, 562, 331);
            this.WindowTitle = "Chat window";
            this.StyleSheet  = "";
            QHBoxLayout horizontalLayout;

            horizontalLayout            = new QHBoxLayout(this);
            horizontalLayout.Spacing    = 0;
            horizontalLayout.Margin     = 0;
            this.splitter_2             = new QSplitter(this);
            this.splitter_2.ObjectName  = "splitter_2";
            this.splitter_2.Orientation = Qt.Orientation.Horizontal;
            horizontalLayout.AddWidget(this.splitter_2);
            this.splitter            = new QSplitter(this.splitter_2);
            this.splitter.ObjectName = "splitter";
            QSizePolicy splitter_sizePolicy;

            splitter_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Expanding);
            splitter_sizePolicy.SetVerticalStretch(0);
            splitter_sizePolicy.SetHorizontalStretch(1);
            splitter_sizePolicy.SetHeightForWidth(this.splitter.SizePolicy.HasHeightForWidth());
            this.splitter.SizePolicy          = splitter_sizePolicy;
            this.splitter.Orientation         = Qt.Orientation.Vertical;
            this.splitter.OpaqueResize        = true;
            this.splitter.ChildrenCollapsible = false;
            this.splitter_2.AddWidget(this.splitter);
            this.m_ConversationWidget            = new Synapse.QtClient.Widgets.ConversationWidget(this.splitter);
            this.m_ConversationWidget.ObjectName = "m_ConversationWidget";
            this.m_ConversationWidget.Url        = new QUrl("about:blank");
            this.splitter.AddWidget(this.m_ConversationWidget);
            this.bottomContainer            = new QWidget(this.splitter);
            this.bottomContainer.ObjectName = "bottomContainer";
            QVBoxLayout verticalLayout;

            verticalLayout            = new QVBoxLayout(this.bottomContainer);
            verticalLayout.Spacing    = 0;
            verticalLayout.Margin     = 0;
            this.textEdit             = new Synapse.QtClient.Widgets.ConversationTextEdit(this.bottomContainer);
            this.textEdit.ObjectName  = "textEdit";
            this.textEdit.MinimumSize = new QSize(0, 40);
            this.textEdit.FrameShape  = QFrame.Shape.NoFrame;
            verticalLayout.AddWidget(this.textEdit);
            this.splitter.AddWidget(this.bottomContainer);
            this.rightContainer            = new QWidget(this.splitter_2);
            this.rightContainer.ObjectName = "rightContainer";
            QVBoxLayout verticalLayout_2;

            verticalLayout_2                 = new QVBoxLayout(this.rightContainer);
            verticalLayout_2.Margin          = 0;
            this.participantsGrid            = new Synapse.QtClient.Widgets.AvatarGrid <jabber.connection.RoomParticipant>(this.rightContainer);
            this.participantsGrid.ObjectName = "participantsGrid";
            this.participantsGrid.FrameShape = QFrame.Shape.NoFrame;
            this.participantsGrid.Alignment  = ((global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeading") | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeft")) | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignTop"));
            verticalLayout_2.AddWidget(this.participantsGrid);
            this.splitter_2.AddWidget(this.rightContainer);
            QMetaObject.ConnectSlotsByName(this);
        }
Пример #4
0
        protected unsafe bool ConnectDynamicSlot(QObject sender, string signal, Delegate slot)
        {
            int signalId = sender.MetaObject.IndexOfSignal(QMetaObject.NormalizedSignature(signal));

            this.slots.Add(new Handler(signalId, slot));
            QMetaObject.Connection connection = QMetaObject.Connect(sender, signalId, this, this.slots.Count - 1 + MetaObject.MethodCount);
            return(connection != null);
        }
Пример #5
0
        protected void SetupUi()
        {
            base.ObjectName  = "DebugWindow";
            this.Geometry    = new QRect(0, 0, 518, 405);
            this.WindowTitle = "DebugWindow";
            QVBoxLayout verticalLayout;

            verticalLayout              = new QVBoxLayout(this);
            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_3;

            verticalLayout_3             = new QVBoxLayout(this.tab);
            verticalLayout_3.Spacing     = 0;
            verticalLayout_3.Margin      = 0;
            this.m_XmlToolBox            = new QToolBox(this.tab);
            this.m_XmlToolBox.ObjectName = "m_XmlToolBox";
            QSizePolicy m_XmlToolBox_sizePolicy;

            m_XmlToolBox_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Expanding);
            m_XmlToolBox_sizePolicy.SetVerticalStretch(0);
            m_XmlToolBox_sizePolicy.SetHorizontalStretch(0);
            m_XmlToolBox_sizePolicy.SetHeightForWidth(this.m_XmlToolBox.SizePolicy.HasHeightForWidth());
            this.m_XmlToolBox.SizePolicy = m_XmlToolBox_sizePolicy;
            verticalLayout_3.AddWidget(this.m_XmlToolBox);
            this.line             = new QFrame(this.tab);
            this.line.ObjectName  = "line";
            this.line.FrameShape  = QFrame.Shape.HLine;
            this.line.FrameShadow = QFrame.Shadow.Sunken;
            verticalLayout_3.AddWidget(this.line);
            QHBoxLayout horizontalLayout;

            horizontalLayout = new QHBoxLayout();
            verticalLayout_3.AddLayout(horizontalLayout);
            horizontalLayout.sizeConstraint       = QLayout.SizeConstraint.SetDefaultConstraint;
            horizontalLayout.Margin               = 6;
            this.enableConsoleCheckBox            = new QCheckBox(this.tab);
            this.enableConsoleCheckBox.ObjectName = "enableConsoleCheckBox";
            this.enableConsoleCheckBox.Text       = "Enable";
            horizontalLayout.AddWidget(this.enableConsoleCheckBox);
            QSpacerItem horizontalSpacer;

            horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum);
            horizontalLayout.AddItem(horizontalSpacer);
            this.clearConsoleButton            = new QPushButton(this.tab);
            this.clearConsoleButton.ObjectName = "clearConsoleButton";
            this.clearConsoleButton.Text       = "Clear";
            horizontalLayout.AddWidget(this.clearConsoleButton);
            this.tabWidget.AddTab(this.tab, "XML Console");
            QMetaObject.ConnectSlotsByName(this);
        }
Пример #6
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);
        }
Пример #7
0
        public void SetupUi(QWidget LifetimeConstraintWidget)
        {
            if (LifetimeConstraintWidget.ObjectName == "")
            {
                LifetimeConstraintWidget.ObjectName = "LifetimeConstraintWidget";
            }
            QSize Size = new QSize(283, 48);

            Size = Size.ExpandedTo(LifetimeConstraintWidget.MinimumSizeHint);
            LifetimeConstraintWidget.Size = Size;
            horizontalLayout = new QHBoxLayout(LifetimeConstraintWidget);
            horizontalLayout.SetContentsMargins(0, 0, 0, 0);
            horizontalLayout.ObjectName     = "horizontalLayout";
            horizontalLayout.sizeConstraint = QLayout.SizeConstraint.SetNoConstraint;
            mCheckBox            = new QCheckBox(LifetimeConstraintWidget);
            mCheckBox.ObjectName = "mCheckBox";
            QSizePolicy sizePolicy = new QSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed);

            sizePolicy.SetHorizontalStretch(0);
            sizePolicy.SetVerticalStretch(0);
            sizePolicy.SetHeightForWidth(mCheckBox.SizePolicy.HasHeightForWidth);
            mCheckBox.SizePolicy = sizePolicy;

            horizontalLayout.AddWidget(mCheckBox);

            mLineEdit            = new QLineEdit(LifetimeConstraintWidget);
            mLineEdit.ObjectName = "mLineEdit";
            mLineEdit.Enabled    = false;
            sizePolicy.SetHeightForWidth(mLineEdit.SizePolicy.HasHeightForWidth);
            mLineEdit.SizePolicy       = sizePolicy;
            mLineEdit.MaximumSize      = new QSize(40, 16777215);
            mLineEdit.InputMethodHints = Qt.InputMethodHint.ImhPreferNumbers;

            horizontalLayout.AddWidget(mLineEdit);

            mSecondsLable            = new QLabel(LifetimeConstraintWidget);
            mSecondsLable.ObjectName = "mSecondsLable";
            mSecondsLable.Enabled    = false;

            horizontalLayout.AddWidget(mSecondsLable);

            spacerItem = new QSpacerItem(90, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum);

            horizontalLayout.AddItem(spacerItem);


            RetranslateUi(LifetimeConstraintWidget);
            QObject.Connect(mCheckBox, Qt.SIGNAL("toggled(bool)"), mLineEdit, Qt.SLOT("setEnabled(bool)"));
            QObject.Connect(mCheckBox,Qt.SIGNAL("toggled(bool)"),mSecondsLable,Qt.SLOT("setEnabled(bool)"));
            QObject.Connect(mCheckBox,Qt.SIGNAL("toggled(bool)"),mLineEdit,Qt.SLOT("setFocus()"));

            QMetaObject.ConnectSlotsByName(LifetimeConstraintWidget);
        } // SetupUi
Пример #8
0
        protected bool DisconnectDynamicSlot(QObject sender, string signal, Delegate value)
        {
            int i = this.slots.FindIndex(h => h.Delegate == value);

            if (i >= 0)
            {
                int  signalId   = this.slots[i].SignalId;
                bool disconnect = QMetaObject.Disconnect(sender, signalId, this, i + MetaObject.MethodCount);
                this.slots.RemoveAt(i);
                return(disconnect);
            }
            return(false);
        }
Пример #9
0
        protected void SetupUi()
        {
            base.ObjectName  = "WebIdentityConfiguratorWidget";
            this.Geometry    = new QRect(0, 0, 540, 61);
            this.WindowTitle = "WebIdentityConfiguratorWidget";
            QVBoxLayout verticalLayout_2;

            verticalLayout_2         = new QVBoxLayout(this);
            verticalLayout_2.Spacing = 6;
            verticalLayout_2.Margin  = 0;
            QHBoxLayout horizontalLayout;

            horizontalLayout = new QHBoxLayout();
            verticalLayout_2.AddLayout(horizontalLayout);
            horizontalLayout.Spacing   = 6;
            this.iconLabel             = new QLabel(this);
            this.iconLabel.ObjectName  = "iconLabel";
            this.iconLabel.MinimumSize = new QSize(48, 0);
            this.iconLabel.Text        = "";
            horizontalLayout.AddWidget(this.iconLabel);
            this.nameLabel            = new QLabel(this);
            this.nameLabel.ObjectName = "nameLabel";
            QSizePolicy nameLabel_sizePolicy;

            nameLabel_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Preferred);
            nameLabel_sizePolicy.SetVerticalStretch(0);
            nameLabel_sizePolicy.SetHorizontalStretch(0);
            nameLabel_sizePolicy.SetHeightForWidth(this.nameLabel.SizePolicy.HasHeightForWidth());
            this.nameLabel.SizePolicy = nameLabel_sizePolicy;
            this.nameLabel.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;\">Addin Name</span></p>\n<p 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;\">Addin description.</span></p></body></html>";
            this.nameLabel.Alignment  = ((global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeading") | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeft")) | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignVCenter"));
            this.nameLabel.WordWrap   = true;
            horizontalLayout.AddWidget(this.nameLabel);
            this.widget            = new QWidget(this);
            this.widget.ObjectName = "widget";
            QVBoxLayout verticalLayout;

            verticalLayout                  = new QVBoxLayout(this.widget);
            verticalLayout.Margin           = 0;
            this.configureButton            = new QPushButton(this.widget);
            this.configureButton.ObjectName = "configureButton";
            this.configureButton.Text       = "Configure...";
            verticalLayout.AddWidget(this.configureButton);
            horizontalLayout.AddWidget(this.widget);
            this.line             = new QFrame(this);
            this.line.ObjectName  = "line";
            this.line.FrameShape  = QFrame.Shape.HLine;
            this.line.FrameShadow = QFrame.Shadow.Sunken;
            verticalLayout_2.AddWidget(this.line);
            QMetaObject.ConnectSlotsByName(this);
        }
Пример #10
0
        public static QObject findChild <T>(QObject parent, string name, QtCore.Qt.FindChildOption options = QtCore.Qt.FindChildOption.FindChildrenRecursively) where T : QObject
        {
            //QMetaObject meta = QPushButton.StaticMetaObject;
            QMetaObject meta = QObject.StaticMetaObject;
            //Dim meta As QMetaObject = GetType(T).GetProperty("StaticMetaObject").GetValue(Nothing, Nothing)

            //IntPtr symboltest = SymbolResolver.ResolveSymbol("Qt5Widgets", "_ZN11QPushButton16staticMetaObjectE");
            //QMetaObject meta = QMetaObject.__CreateInstance(*(QMetaObject.Internal*)(void*)symboltest, false);

            var ret = QObject.QtQFindChildHelper(parent, name, meta, options);

            //var ret = Qt_qFindChild_helper(parent, name, meta, options);
            return(ret);
        }
Пример #11
0
        protected void SetupUi()
        {
            base.ObjectName = "AccountStatusWidget";
            this.Geometry   = new QRect(0, 0, 416, 47);
            QSizePolicy AccountStatusWidget_sizePolicy;

            AccountStatusWidget_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Minimum);
            AccountStatusWidget_sizePolicy.SetVerticalStretch(0);
            AccountStatusWidget_sizePolicy.SetHorizontalStretch(0);
            AccountStatusWidget_sizePolicy.SetHeightForWidth(this.SizePolicy.HasHeightForWidth());
            this.SizePolicy  = AccountStatusWidget_sizePolicy;
            this.WindowTitle = "Form";
            QHBoxLayout horizontalLayout;

            horizontalLayout         = new QHBoxLayout(this);
            horizontalLayout.Spacing = 6;
            horizontalLayout.SetContentsMargins(6, 0, 6, 6);
            this.m_AvatarLabel            = new Synapse.QtClient.Widgets.AvatarLabel(this);
            this.m_AvatarLabel.ObjectName = "m_AvatarLabel";
            QSizePolicy m_AvatarLabel_sizePolicy;

            m_AvatarLabel_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed);
            m_AvatarLabel_sizePolicy.SetVerticalStretch(0);
            m_AvatarLabel_sizePolicy.SetHorizontalStretch(0);
            m_AvatarLabel_sizePolicy.SetHeightForWidth(this.m_AvatarLabel.SizePolicy.HasHeightForWidth());
            this.m_AvatarLabel.SizePolicy  = m_AvatarLabel_sizePolicy;
            this.m_AvatarLabel.MinimumSize = new QSize(36, 36);
            this.m_AvatarLabel.MaximumSize = new QSize(32, 32);
            horizontalLayout.AddWidget(this.m_AvatarLabel);
            QVBoxLayout verticalLayout;

            verticalLayout = new QVBoxLayout();
            horizontalLayout.AddLayout(verticalLayout);
            verticalLayout.Spacing      = 0;
            this.m_NameLabel            = new Synapse.QtClient.Widgets.FadingQLabel(this);
            this.m_NameLabel.ObjectName = "m_NameLabel";
            this.m_NameLabel.Text       = "test@localhost";
            this.m_NameLabel.TextFormat = Qt.TextFormat.RichText;
            verticalLayout.AddWidget(this.m_NameLabel);
            this.m_StatusLabel                      = new QLabel(this);
            this.m_StatusLabel.ObjectName           = "m_StatusLabel";
            this.m_StatusLabel.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;\"><a href=\"#show-presence-menu\"><span style=\" text-decoration: underline; color:#0057ae;\">Offline</span></a></p></body></html>";
            this.m_StatusLabel.ScaledContents       = false;
            this.m_StatusLabel.OpenExternalLinks    = false;
            this.m_StatusLabel.TextInteractionFlags = global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "LinksAccessibleByMouse");
            verticalLayout.AddWidget(this.m_StatusLabel);
            QMetaObject.ConnectSlotsByName(this);
        }
Пример #12
0
        protected void SetupUi()
        {
            base.ObjectName  = "ProfileWindow";
            this.Geometry    = new QRect(0, 0, 512, 436);
            this.WindowTitle = "ProfileWindow";
            QHBoxLayout horizontalLayout;

            horizontalLayout         = new QHBoxLayout(this);
            horizontalLayout.Spacing = 0;
            horizontalLayout.Margin  = 0;
            this.webView             = new QWebView(this);
            this.webView.ObjectName  = "webView";
            this.webView.Url         = new QUrl("about:blank");
            horizontalLayout.AddWidget(this.webView);
            QMetaObject.ConnectSlotsByName(this);
        }
Пример #13
0
        protected void SetupUi()
        {
            base.ObjectName  = "ServiceBrowserWindow";
            this.Geometry    = new QRect(0, 0, 484, 401);
            this.WindowTitle = "XMPP Browser";
            QVBoxLayout verticalLayout;

            verticalLayout          = new QVBoxLayout(this);
            verticalLayout.Spacing  = 0;
            verticalLayout.Margin   = 0;
            this.webView            = new QWebView(this);
            this.webView.ObjectName = "webView";
            this.webView.Url        = new QUrl("about:blank");
            verticalLayout.AddWidget(this.webView);
            QMetaObject.ConnectSlotsByName(this);
        }
Пример #14
0
        protected void SetupUi()
        {
            base.ObjectName  = "AddOctyDialog";
            this.Geometry    = new QRect(0, 0, 597, 409);
            this.WindowTitle = "Synapse is ready to go!";
            QHBoxLayout horizontalLayout;

            horizontalLayout         = new QHBoxLayout(this);
            horizontalLayout.Spacing = 0;
            horizontalLayout.Margin  = 0;
            this.webView             = new QWebView(this);
            this.webView.ObjectName  = "webView";
            this.webView.Url         = new QUrl("about:blank");
            horizontalLayout.AddWidget(this.webView);
            QMetaObject.ConnectSlotsByName(this);
        }
Пример #15
0
        // Returns declared slots
        public static Dictionary <string, CPPMethod> GetSlotSignatures(Type t)
        {
            /// This Hashtable contains the slots of a class. The C++ type signature is the key, the appropriate array with the MethodInfo, signature and return type the value.
            Dictionary <string, CPPMethod> slots;

            if (slotSignatures.TryGetValue(t, out slots))
            {
                return(slots);
            }

            slots             = new Dictionary <string, CPPMethod>();
            slotSignatures[t] = slots;

            // only declared members
            MethodInfo[] mis = t.GetMethods(BindingFlags.Instance
                                            | BindingFlags.Public
                                            | BindingFlags.NonPublic
                                            | BindingFlags.DeclaredOnly);

            foreach (MethodInfo mi in mis)
            {
                object[] attributes = mi.GetCustomAttributes(typeof(Q_SLOT), false);
                foreach (Q_SLOT attr in attributes)
                {
                    CPPMethod cppinfo = new CPPMethod();

                    string sig = attr.Signature;
                    if (sig == "")
                    {
                        sig = SignatureFromMethodInfo(mi);
                    }

                    sig = QMetaObject.NormalizedSignature(sig).ConstData();
                    GetCPPMethodInfo(sig, out cppinfo.signature, out cppinfo.type);
                    cppinfo.mi = mi;

                    if (mi.GetCustomAttributes(typeof(Q_SCRIPTABLE), false).Length > 0)
                    {
                        cppinfo.scriptable = true;
                    }

                    slots.Add(cppinfo.signature, cppinfo);
                    break;
                }
            }
            return(slots);
        }
Пример #16
0
        // Returns declared signals
        public static Dictionary <MethodInfo, CPPMethod> GetSignalSignatures(Type iface)
        {
            Dictionary <MethodInfo, CPPMethod> signals;

            if (signalSignatures.TryGetValue(iface, out signals))
            {
                return(signals);
            }

            signals = new Dictionary <MethodInfo, CPPMethod>();
            signalSignatures[iface] = signals;

            // GetMethods() doesn't return inherited methods for interfaces
            MethodInfo[] mis = iface.GetMethods();

            /// the interface has no signals...
            if (mis.Length == 0)
            {
                return(signals);
            }

            foreach (MethodInfo mi in mis)
            {
                object[] attributes = mi.GetCustomAttributes(typeof(Q_SIGNAL), false);
                foreach (Q_SIGNAL attr in attributes)
                {
                    CPPMethod cppinfo = new CPPMethod();
                    string    sig     = attr.Signature;
                    if (sig == "")
                    {
                        sig = SignatureFromMethodInfo(mi).Trim();
                    }
                    sig = QMetaObject.NormalizedSignature(sig).ConstData();
                    GetCPPMethodInfo(sig, out cppinfo.signature, out cppinfo.type);
                    cppinfo.mi = mi;

                    if (mi.GetCustomAttributes(typeof(Q_SCRIPTABLE), false).Length > 0)
                    {
                        cppinfo.scriptable = true;
                    }

                    signals.Add(cppinfo.mi, cppinfo);
                }
            }

            return(signals);
        }
Пример #17
0
    public void SetupUi(QDialog SelectWriteModeDialog)
    {
        if (SelectWriteModeDialog.ObjectName == "")
        {
            SelectWriteModeDialog.ObjectName = "SelectWriteModeDialog";
        }
        QSize Size = new QSize(443, 125);

        Size = Size.ExpandedTo(SelectWriteModeDialog.MinimumSizeHint());
        SelectWriteModeDialog.Size       = Size;
        SelectWriteModeDialog.WindowIcon = new QIcon(":/main/resources/monosim_128.png");
        gridLayout            = new QGridLayout(SelectWriteModeDialog);
        gridLayout.ObjectName = "gridLayout";
        LblTitle            = new QLabel(SelectWriteModeDialog);
        LblTitle.ObjectName = "LblTitle";
        LblTitle.Alignment  = Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeading") | Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeft") | Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignTop");

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

        BtnCancel            = new QPushButton(SelectWriteModeDialog);
        BtnCancel.ObjectName = "BtnCancel";

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

        spacerItem = new QSpacerItem(152, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum);

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

        BtnOverride            = new QPushButton(SelectWriteModeDialog);
        BtnOverride.ObjectName = "BtnOverride";
        BtnOverride.icon       = new QIcon(":/toolbar/resources/qt/draw-eraser.png");

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

        BtnAppend            = new QPushButton(SelectWriteModeDialog);
        BtnAppend.ObjectName = "BtnAppend";
        BtnAppend.icon       = new QIcon(":/toolbar/resources/qt/list-add.png");

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


        RetranslateUi(SelectWriteModeDialog);

        QMetaObject.ConnectSlotsByName(SelectWriteModeDialog);
    } // SetupUi
Пример #18
0
 protected int HandleQtMetacall(int index, QMetaObject.Call call, void** arguments)
 {
     if (index < 0 || call != QMetaObject.Call.InvokeMetaMethod)
     {
         return index;
     }
     Handler handler = this.slots[index];
     System.Reflection.ParameterInfo[] @params = handler.Delegate.Method.GetParameters();
     object[] parameters = new object[@params.Length];
     for (int i = 0; i < @params.Length; i++)
     {
         System.Reflection.ParameterInfo parameter = @params[i];
         var arg = new IntPtr(arguments[1 + i]);
         parameters[i] = GetParameterValue(handler, i, parameter, arg);
     }
     handler.Delegate.DynamicInvoke(parameters);
     return -1;
 }
Пример #19
0
 protected int HandleQtMetacall(int index, QMetaObject.Call call, void** arguments)
 {
     if (index < 0 || call != QMetaObject.Call.InvokeMetaMethod)
     {
         return index;
     }
     Handler handler = this.slots[index];
     System.Reflection.ParameterInfo[] @params = handler.Delegate.Method.GetParameters();
     object[] parameters = new object[@params.Length];
     for (int i = 0; i < @params.Length; i++)
     {
         System.Reflection.ParameterInfo parameter = @params[i];
         var arg = new IntPtr(arguments[1 + i]);
         object value;
         if (parameter.ParameterType.IsValueType)
         {
             value = Marshal.PtrToStructure(arg, parameter.ParameterType);
         }
         else
         {
             if (parameter.ParameterType.IsAssignableFrom(typeof(string)))
             {
                 var metaMethod = this.Sender.MetaObject.Method(handler.SignalId);
                 if (metaMethod.ParameterType(i) == (int) QMetaType.Type.QString)
                 {
                     value = Marshal.PtrToStringUni(new IntPtr(QtCore.QString.__CreateInstance(arg).Utf16));
                 }
                 else
                 {
                     value = Marshal.PtrToStringUni(arg);
                 }
             }
             else
             {
                 value = Activator.CreateInstance(parameter.ParameterType, arg);
             }
         }
         parameters[i] = value;
     }
     handler.Delegate.DynamicInvoke(parameters);
     return -1;
 }
Пример #20
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);
        }
Пример #21
0
        public unsafe override int Qt_metacall(QMetaObject.Call _1, int _2, void* _3)
        {
            var arg0 = _1;
            var arg2 = _3;
            var __ret = base.Qt_metacall(arg0, _2, arg2);

            if (__ret < 0 || _1 != QMetaObject.Call.InvokeMetaMethod)
            {
                return __ret;
            }
            Delegate @delegate = this.slots[__ret];
            System.Reflection.ParameterInfo[] @params = @delegate.Method.GetParameters();
            object[] parameters = new object[@params.Length];
            for (int i = 0; i < @params.Length; i++)
            {
                System.Reflection.ParameterInfo parameter = @params[i];
                var arg = new IntPtr((int*) _3 + 1 + i);
                object value;
                if (parameter.ParameterType.IsValueType)
                {
                    value = Marshal.PtrToStructure(arg, parameter.ParameterType);
                }
                else
                {
                    if (parameter.ParameterType.IsAssignableFrom(typeof(string)))
                    {
                        // TODO: must properly handle QString here
                        value = Marshal.PtrToStringUni(arg);
                    }
                    else
                    {
                        value = Activator.CreateInstance(parameter.ParameterType, arg);
                    }
                }
                parameters[i] = value;
            }
            @delegate.DynamicInvoke(parameters);
            return -1;
        }
Пример #22
0
        protected void SetupUi()
        {
            base.ObjectName  = "EditGroupsWidget";
            this.Geometry    = new QRect(0, 0, 212, 239);
            this.WindowTitle = "EditGroupsWidget";
            QVBoxLayout verticalLayout;

            verticalLayout             = new QVBoxLayout(this);
            verticalLayout.Spacing     = 3;
            verticalLayout.Margin      = 0;
            this.listWidget            = new QListWidget(this);
            this.listWidget.ObjectName = "listWidget";
            QSizePolicy listWidget_sizePolicy;

            listWidget_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Expanding);
            listWidget_sizePolicy.SetVerticalStretch(0);
            listWidget_sizePolicy.SetHorizontalStretch(0);
            listWidget_sizePolicy.SetHeightForWidth(this.listWidget.SizePolicy.HasHeightForWidth());
            this.listWidget.SizePolicy  = listWidget_sizePolicy;
            this.listWidget.MinimumSize = new QSize(0, 50);
            this.listWidget.FrameShape  = QFrame.Shape.NoFrame;
            verticalLayout.AddWidget(this.listWidget);
            QGridLayout gridLayout;

            gridLayout = new QGridLayout();
            verticalLayout.AddLayout(gridLayout);
            this.label_2            = new QLabel(this);
            this.label_2.ObjectName = "label_2";
            this.label_2.Text       = "Add Group:";
            gridLayout.AddWidget(this.label_2, 0, 0, 1, 1);
            this.lineEdit            = new QLineEdit(this);
            this.lineEdit.ObjectName = "lineEdit";
            gridLayout.AddWidget(this.lineEdit, 0, 1, 1, 1);
            this.addButton            = new QPushButton(this);
            this.addButton.ObjectName = "addButton";
            this.addButton.Text       = "";
            gridLayout.AddWidget(this.addButton, 0, 2, 1, 1);
            QMetaObject.ConnectSlotsByName(this);
        }
        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
Пример #24
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);
        }
Пример #25
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);
 }
Пример #26
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);
        }
Пример #27
0
    public void SetupUi(QMainWindow MainWindow)
    {
        if (MainWindow.ObjectName == "")
        {
            MainWindow.ObjectName = "MainWindow";
        }
        QSize Size = new QSize(631, 570);

        Size                                 = Size.ExpandedTo(MainWindow.MinimumSizeHint());
        MainWindow.Size                      = Size;
        MainWindow.MinimumSize               = new QSize(600, 450);
        MainWindow.WindowIcon                = new QIcon(":/main/resources/monosim_128.png");
        MenuFileNew                          = new QAction(MainWindow);
        MenuFileNew.ObjectName               = "MenuFileNew";
        MenuFileNew.icon                     = new QIcon(":/toolbar/resources/qt/document-new.png");
        MenuFileOpen                         = new QAction(MainWindow);
        MenuFileOpen.ObjectName              = "MenuFileOpen";
        MenuFileOpen.icon                    = new QIcon(":/toolbar/resources/qt/document-open.png");
        MenuFileSaveFile                     = new QAction(MainWindow);
        MenuFileSaveFile.ObjectName          = "MenuFileSaveFile";
        MenuFileSaveFile.Enabled             = false;
        MenuFileSaveFile.icon                = new QIcon(":/toolbar/resources/qt/document-save.png");
        MenuFileSaveSim                      = new QAction(MainWindow);
        MenuFileSaveSim.ObjectName           = "MenuFileSaveSim";
        MenuFileSaveSim.Enabled              = false;
        MenuFileSaveSim.icon                 = new QIcon(":/main/resources/chip_32.png");
        MenuFileClose                        = new QAction(MainWindow);
        MenuFileClose.ObjectName             = "MenuFileClose";
        MenuFileClose.Enabled                = false;
        MenuFileClose.icon                   = new QIcon(":/toolbar/resources/qt/document-close.png");
        MenuFileSettings                     = new QAction(MainWindow);
        MenuFileSettings.ObjectName          = "MenuFileSettings";
        MenuFileSettings.icon                = new QIcon(":/toolbar/resources/qt/configure.png");
        MenuFileExit                         = new QAction(MainWindow);
        MenuFileExit.ObjectName              = "MenuFileExit";
        MenuFileExit.icon                    = new QIcon(":/toolbar/resources/qt/application-exit.png");
        MenuSimConnect                       = new QAction(MainWindow);
        MenuSimConnect.ObjectName            = "MenuSimConnect";
        MenuSimConnect.icon                  = new QIcon(":/toolbar/resources/qt/network-connect.png");
        MenuSimPin                           = new QAction(MainWindow);
        MenuSimPin.ObjectName                = "MenuSimPin";
        MenuSimPin.Enabled                   = false;
        MenuSimPin.icon                      = new QIcon(":/toolbar/resources/qt/document-encrypt.png");
        MenuSimSaveFile                      = new QAction(MainWindow);
        MenuSimSaveFile.ObjectName           = "MenuSimSaveFile";
        MenuSimSaveFile.Enabled              = false;
        MenuSimSaveFile.icon                 = new QIcon(":/toolbar/resources/qt/document-save.png");
        MenuSimSaveSim                       = new QAction(MainWindow);
        MenuSimSaveSim.ObjectName            = "MenuSimSaveSim";
        MenuSimSaveSim.Enabled               = false;
        MenuSimSaveSim.icon                  = new QIcon(":/main/resources/chip_32.png");
        MenuSimDeleteAll                     = new QAction(MainWindow);
        MenuSimDeleteAll.ObjectName          = "MenuSimDeleteAll";
        MenuSimDeleteAll.Enabled             = false;
        MenuSimDeleteAll.icon                = new QIcon(":/toolbar/resources/qt/edit-delete.png");
        MenuSimDisconnect                    = new QAction(MainWindow);
        MenuSimDisconnect.ObjectName         = "MenuSimDisconnect";
        MenuSimDisconnect.Enabled            = false;
        MenuSimDisconnect.icon               = new QIcon(":/toolbar/resources/qt/network-disconnect.png");
        MenuAboutInfo                        = new QAction(MainWindow);
        MenuAboutInfo.ObjectName             = "MenuAboutInfo";
        MenuAboutInfo.icon                   = new QIcon(":/toolbar/resources/qt/dialog-information.png");
        centralwidget                        = new QWidget(MainWindow);
        centralwidget.ObjectName             = "centralwidget";
        gridLayout                           = new QGridLayout(centralwidget);
        gridLayout.ObjectName                = "gridLayout";
        splitter                             = new QSplitter(centralwidget);
        splitter.ObjectName                  = "splitter";
        splitter.Orientation                 = Qt.Orientation.Vertical;
        splitter.ChildrenCollapsible         = false;
        FrameFile                            = new QGroupBox(splitter);
        FrameFile.ObjectName                 = "FrameFile";
        FrameFile.MinimumSize                = new QSize(0, 100);
        gridLayout1                          = new QGridLayout(FrameFile);
        gridLayout1.ObjectName               = "gridLayout1";
        LstFileContacts                      = new QTreeWidget(FrameFile);
        LstFileContacts.ObjectName           = "LstFileContacts";
        LstFileContacts.Enabled              = false;
        LstFileContacts.EditTriggers         = Qyoto.Qyoto.GetCPPEnumValue("QAbstractItemView", "NoEditTriggers");
        LstFileContacts.selectionMode        = QAbstractItemView.SelectionMode.ExtendedSelection;
        LstFileContacts.ItemsExpandable      = false;
        LstFileContacts.ExpandsOnDoubleClick = false;

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

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

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

        splitter.AddWidget(FrameSim);

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

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

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

        RetranslateUi(MainWindow);

        QMetaObject.ConnectSlotsByName(MainWindow);
    } // SetupUi
Пример #28
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
        public void SetupUi(QWidget KeyManagerFrame)
        {
            if (KeyManagerFrame.ObjectName == "")
            {
                KeyManagerFrame.ObjectName = "KeyManagerFrame";
            }
            QSize Size = new QSize(787, 318);

            Size = Size.ExpandedTo(KeyManagerFrame.MinimumSizeHint);
            KeyManagerFrame.Size      = Size;
            verticalLayout            = new QVBoxLayout(KeyManagerFrame);
            verticalLayout.ObjectName = "verticalLayout";
            mStackedWidget            = new QStackedWidget(KeyManagerFrame);
            mStackedWidget.ObjectName = "mStackedWidget";
            mMessagePage            = new QWidget();
            mMessagePage.ObjectName = "mMessagePage";
            mMessagePaneLayout_3    = new QHBoxLayout(mMessagePage);
            mMessagePaneLayout_3.SetContentsMargins(0, 0, 0, 0);
            mMessagePaneLayout_3.ObjectName = "mMessagePaneLayout_3";
            mMessageLabel            = new QLabel(mMessagePage);
            mMessageLabel.ObjectName = "mMessageLabel";
            QFont font = new QFont();

            font.PointSize            = 12;
            mMessageLabel.Font        = font;
            mMessageLabel.AcceptDrops = true;
            mMessageLabel.Alignment   = Qt.AlignmentFlag.AlignCenter;

            mMessagePaneLayout_3.AddWidget(mMessageLabel);

            mStackedWidget.AddWidget(mMessagePage);
            mTablePage            = new QWidget();
            mTablePage.ObjectName = "mTablePage";
            horizontalLayout_2    = new QHBoxLayout(mTablePage);
            horizontalLayout_2.SetContentsMargins(0, 0, 0, 0);
            horizontalLayout_2.ObjectName = "horizontalLayout_2";
            mTableWidget            = new QTableWidget(mTablePage);
            mTableWidget.ObjectName = "mTableWidget";
            QFont font1 = new QFont();

            font1.PointSize                   = 8;
            mTableWidget.Font                 = font1;
            mTableWidget.FocusPolicy          = Qt.FocusPolicy.NoFocus;
            mTableWidget.AcceptDrops          = true;
            mTableWidget.EditTriggers         = QAbstractItemView.EditTrigger.NoEditTriggers;
            mTableWidget.dragDropMode         = QAbstractItemView.DragDropMode.DropOnly;
            mTableWidget.DefaultDropAction    = Qt.DropAction.CopyAction;
            mTableWidget.AlternatingRowColors = true;
            mTableWidget.selectionMode        = QAbstractItemView.SelectionMode.MultiSelection;
            mTableWidget.selectionBehavior    = QAbstractItemView.SelectionBehavior.SelectRows;
            mTableWidget.ShowGrid             = false;
            mTableWidget.WordWrap             = false;
            mTableWidget.RowCount             = 0;
            mTableWidget.ColumnCount          = 6;
            mTableWidget.HorizontalHeader.StretchLastSection = true;
            mTableWidget.VerticalHeader.Visible = false;

            horizontalLayout_2.AddWidget(mTableWidget);

            mStackedWidget.AddWidget(mTablePage);

            verticalLayout.AddWidget(mStackedWidget);

            mButtonLayout            = new QHBoxLayout();
            mButtonLayout.ObjectName = "mButtonLayout";
            mLockButton            = new QPushButton(KeyManagerFrame);
            mLockButton.ObjectName = "mLockButton";
            mLockButton.Checkable  = false;

            mButtonLayout.AddWidget(mLockButton);

            mUnlockButton            = new QPushButton(KeyManagerFrame);
            mUnlockButton.ObjectName = "mUnlockButton";

            mButtonLayout.AddWidget(mUnlockButton);

            mAddButton            = new QPushButton(KeyManagerFrame);
            mAddButton.ObjectName = "mAddButton";

            mButtonLayout.AddWidget(mAddButton);

            mRemoveButton            = new QPushButton(KeyManagerFrame);
            mRemoveButton.ObjectName = "mRemoveButton";

            mButtonLayout.AddWidget(mRemoveButton);

            mRemoveAllButton            = new QPushButton(KeyManagerFrame);
            mRemoveAllButton.ObjectName = "mRemoveAllButton";

            mButtonLayout.AddWidget(mRemoveAllButton);

            mRefreshButton            = new QPushButton(KeyManagerFrame);
            mRefreshButton.ObjectName = "mRefreshButton";

            mButtonLayout.AddWidget(mRefreshButton);


            verticalLayout.AddLayout(mButtonLayout);


            RetranslateUi(KeyManagerFrame);

            mStackedWidget.CurrentIndex = 1;


            QMetaObject.ConnectSlotsByName(KeyManagerFrame);
        } // SetupUi
Пример #30
0
        protected void SetupUi()
        {
            base.ObjectName = "NoAccountsWidget";
            this.Geometry   = new QRect(0, 0, 341, 485);
            QSizePolicy NoAccountsWidget_sizePolicy;

            NoAccountsWidget_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Minimum);
            NoAccountsWidget_sizePolicy.SetVerticalStretch(0);
            NoAccountsWidget_sizePolicy.SetHorizontalStretch(0);
            NoAccountsWidget_sizePolicy.SetHeightForWidth(this.SizePolicy.HasHeightForWidth());
            this.SizePolicy  = NoAccountsWidget_sizePolicy;
            this.WindowTitle = "Form";
            QVBoxLayout verticalLayout;

            verticalLayout                 = new QVBoxLayout(this);
            verticalLayout.Spacing         = 6;
            verticalLayout.Margin          = 6;
            this.m_GraphicsView            = new QGraphicsView(this);
            this.m_GraphicsView.ObjectName = "m_GraphicsView";
            QSizePolicy m_GraphicsView_sizePolicy;

            m_GraphicsView_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Fixed);
            m_GraphicsView_sizePolicy.SetVerticalStretch(0);
            m_GraphicsView_sizePolicy.SetHorizontalStretch(0);
            m_GraphicsView_sizePolicy.SetHeightForWidth(this.m_GraphicsView.SizePolicy.HasHeightForWidth());
            this.m_GraphicsView.SizePolicy  = m_GraphicsView_sizePolicy;
            this.m_GraphicsView.MinimumSize = new QSize(0, 300);
            this.m_GraphicsView.FrameShape  = QFrame.Shape.NoFrame;
            verticalLayout.AddWidget(this.m_GraphicsView);
            this.stackedWidget              = new QStackedWidget(this);
            this.stackedWidget.ObjectName   = "stackedWidget";
            this.stackedWidget.CurrentIndex = 1;
            verticalLayout.AddWidget(this.stackedWidget);
            this.page_3            = new QWidget(this.stackedWidget);
            this.page_3.ObjectName = "page_3";
            QVBoxLayout verticalLayout_2;

            verticalLayout_2         = new QVBoxLayout(this.page_3);
            verticalLayout_2.Spacing = 6;
            verticalLayout_2.Margin  = 0;
            this.m_Label             = new QLabel(this.page_3);
            this.m_Label.ObjectName  = "m_Label";
            QSizePolicy m_Label_sizePolicy;

            m_Label_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Minimum);
            m_Label_sizePolicy.SetVerticalStretch(0);
            m_Label_sizePolicy.SetHorizontalStretch(0);
            m_Label_sizePolicy.SetHeightForWidth(this.m_Label.SizePolicy.HasHeightForWidth());
            this.m_Label.SizePolicy = m_Label_sizePolicy;
            this.m_Label.Text       = "<p><strong>Welcome.</strong><br/>Click <em>Add Account</em> below to begin.";
            this.m_Label.Alignment  = ((global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignBottom") | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeading")) | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeft"));
            verticalLayout_2.AddWidget(this.m_Label);
            QHBoxLayout horizontalLayout_2;

            horizontalLayout_2 = new QHBoxLayout();
            verticalLayout_2.AddLayout(horizontalLayout_2);
            QSpacerItem horizontalSpacer_2;

            horizontalSpacer_2 = new QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum);
            horizontalLayout_2.AddItem(horizontalSpacer_2);
            this.quitButton1            = new QPushButton(this.page_3);
            this.quitButton1.ObjectName = "quitButton1";
            this.quitButton1.Text       = "Quit";
            horizontalLayout_2.AddWidget(this.quitButton1);
            this.addAccountButton            = new QPushButton(this.page_3);
            this.addAccountButton.ObjectName = "addAccountButton";
            this.addAccountButton.Text       = "Add Account";
            horizontalLayout_2.AddWidget(this.addAccountButton);
            this.stackedWidget.AddWidget(this.page_3);
            this.page_4            = new QWidget(this.stackedWidget);
            this.page_4.ObjectName = "page_4";
            QVBoxLayout verticalLayout_3;

            verticalLayout_3        = new QVBoxLayout(this.page_4);
            verticalLayout_3.Margin = 0;
            this.label_3            = new QLabel(this.page_4);
            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:'DejaVu Sans'; font-size:8pt; 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 Account</span></p></body></html>";
            this.label_3.Alignment  = ((global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignBottom") | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeading")) | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeft"));
            verticalLayout_3.AddWidget(this.label_3);
            QGridLayout gridLayout;

            gridLayout = new QGridLayout();
            verticalLayout_3.AddLayout(gridLayout);
            this.label            = new QLabel(this.page_4);
            this.label.ObjectName = "label";
            this.label.Text       = "Jabber ID:";
            gridLayout.AddWidget(this.label, 0, 0, 1, 1);
            this.m_LoginLineEdit            = new QLineEdit(this.page_4);
            this.m_LoginLineEdit.ObjectName = "m_LoginLineEdit";
            gridLayout.AddWidget(this.m_LoginLineEdit, 0, 1, 1, 1);
            this.label_2            = new QLabel(this.page_4);
            this.label_2.ObjectName = "label_2";
            this.label_2.Text       = "Password:"******"m_PasswordLineEdit";
            this.m_PasswordLineEdit.echoMode   = QLineEdit.EchoMode.Password;
            gridLayout.AddWidget(this.m_PasswordLineEdit, 1, 1, 1, 1);
            QHBoxLayout horizontalLayout;

            horizontalLayout = new QHBoxLayout();
            verticalLayout_3.AddLayout(horizontalLayout);
            horizontalLayout.sizeConstraint = QLayout.SizeConstraint.SetDefaultConstraint;
            QSpacerItem horizontalSpacer;

            horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum);
            horizontalLayout.AddItem(horizontalSpacer);
            this.quitButton2            = new QPushButton(this.page_4);
            this.quitButton2.ObjectName = "quitButton2";
            this.quitButton2.Text       = "Quit";
            horizontalLayout.AddWidget(this.quitButton2);
            this.saveAccountButton             = new QPushButton(this.page_4);
            this.saveAccountButton.ObjectName  = "saveAccountButton";
            this.saveAccountButton.Text        = "OK";
            this.saveAccountButton.AutoDefault = true;
            this.saveAccountButton.Default     = true;
            horizontalLayout.AddWidget(this.saveAccountButton);
            this.stackedWidget.AddWidget(this.page_4);
            QObject.Connect(m_PasswordLineEdit, Qt.SIGNAL("returnPressed()"), saveAccountButton, Qt.SLOT("click()"));
            QObject.Connect(m_LoginLineEdit,Qt.SIGNAL("returnPressed()"),saveAccountButton,Qt.SLOT("click()"));
            QMetaObject.ConnectSlotsByName(this);
            this.label.SetBuddy(m_LoginLineEdit);
            this.label_2.SetBuddy(m_PasswordLineEdit);
        }
Пример #31
0
        protected void SetupUi()
        {
            base.ObjectName  = "MainWindow";
            this.Geometry    = new QRect(0, 0, 236, 483);
            this.WindowTitle = "Synapse";
            QVBoxLayout verticalLayout;

            verticalLayout                  = new QVBoxLayout(this);
            verticalLayout.Spacing          = 0;
            verticalLayout.Margin           = 0;
            this.containerWidget            = new QWidget(this);
            this.containerWidget.ObjectName = "containerWidget";
            QVBoxLayout verticalLayout_2;

            verticalLayout_2             = new QVBoxLayout(this.containerWidget);
            verticalLayout_2.Spacing     = 0;
            verticalLayout_2.Margin      = 0;
            this.headerWidget            = new QWidget(this.containerWidget);
            this.headerWidget.ObjectName = "headerWidget";
            QHBoxLayout horizontalLayout_3;

            horizontalLayout_3         = new QHBoxLayout(this.headerWidget);
            horizontalLayout_3.Spacing = 3;
            horizontalLayout_3.SetContentsMargins(0, 0, 3, 0);
            this.headerLabel            = new QLabel(this.headerWidget);
            this.headerLabel.ObjectName = "headerLabel";
            QSizePolicy headerLabel_sizePolicy;

            headerLabel_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum);
            headerLabel_sizePolicy.SetVerticalStretch(0);
            headerLabel_sizePolicy.SetHorizontalStretch(0);
            headerLabel_sizePolicy.SetHeightForWidth(this.headerLabel.SizePolicy.HasHeightForWidth());
            this.headerLabel.SizePolicy = headerLabel_sizePolicy;
            this.headerLabel.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:33px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Synapse</span></p></body></html>";
            this.headerLabel.Alignment  = global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignCenter");
            this.headerLabel.Margin     = 3;
            horizontalLayout_3.AddWidget(this.headerLabel);
            this.menuButton            = new QPushButton(this.headerWidget);
            this.menuButton.ObjectName = "menuButton";
            QSizePolicy menuButton_sizePolicy;

            menuButton_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed);
            menuButton_sizePolicy.SetVerticalStretch(0);
            menuButton_sizePolicy.SetHorizontalStretch(0);
            menuButton_sizePolicy.SetHeightForWidth(this.menuButton.SizePolicy.HasHeightForWidth());
            this.menuButton.SizePolicy  = menuButton_sizePolicy;
            this.menuButton.MinimumSize = new QSize(12, 12);
            this.menuButton.MaximumSize = new QSize(12, 12);
            this.menuButton.FocusPolicy = Qt.FocusPolicy.TabFocus;
            this.menuButton.Text        = "";
            this.menuButton.IconSize    = new QSize(7, 7);
            this.menuButton.Flat        = true;
            horizontalLayout_3.AddWidget(this.menuButton);
            this.closeButton            = new QPushButton(this.headerWidget);
            this.closeButton.ObjectName = "closeButton";
            QSizePolicy closeButton_sizePolicy;

            closeButton_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed);
            closeButton_sizePolicy.SetVerticalStretch(0);
            closeButton_sizePolicy.SetHorizontalStretch(0);
            closeButton_sizePolicy.SetHeightForWidth(this.closeButton.SizePolicy.HasHeightForWidth());
            this.closeButton.SizePolicy  = closeButton_sizePolicy;
            this.closeButton.MinimumSize = new QSize(12, 12);
            this.closeButton.MaximumSize = new QSize(12, 12);
            this.closeButton.FocusPolicy = Qt.FocusPolicy.TabFocus;
            this.closeButton.Text        = "";
            this.closeButton.IconSize    = new QSize(7, 7);
            this.closeButton.Flat        = true;
            horizontalLayout_3.AddWidget(this.closeButton);
            verticalLayout_2.AddWidget(this.headerWidget);
            this.stackedWidget              = new Synapse.QtClient.Widgets.LightboxContainerWidget(this.containerWidget);
            this.stackedWidget.ObjectName   = "stackedWidget";
            this.stackedWidget.CurrentIndex = 0;
            verticalLayout_2.AddWidget(this.stackedWidget);
            this.page            = new QWidget(this.stackedWidget);
            this.page.ObjectName = "page";
            QHBoxLayout horizontalLayout;

            horizontalLayout              = new QHBoxLayout(this.page);
            horizontalLayout.Spacing      = 0;
            horizontalLayout.Margin       = 0;
            this.contentWidget            = new QWidget(this.page);
            this.contentWidget.ObjectName = "contentWidget";
            QSizePolicy contentWidget_sizePolicy;

            contentWidget_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Expanding);
            contentWidget_sizePolicy.SetVerticalStretch(0);
            contentWidget_sizePolicy.SetHorizontalStretch(0);
            contentWidget_sizePolicy.SetHeightForWidth(this.contentWidget.SizePolicy.HasHeightForWidth());
            this.contentWidget.SizePolicy = contentWidget_sizePolicy;
            horizontalLayout.AddWidget(this.contentWidget);
            this.stackedWidget.AddWidget(this.page);
            verticalLayout.AddWidget(this.containerWidget);
            QMetaObject.ConnectSlotsByName(this);
        }
Пример #32
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);
        }
Пример #33
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