Exemplo n.º 1
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);
 }
Exemplo n.º 2
0
Arquivo: p5.cs Projeto: KDE/kimono
    public MainWindow(string name)
        : base((QWidget) null)
    {
        ObjectName = name;
        SetCaption("KDE Tutorial - p5");

        QMenu filemenu = new QMenu(KDE.I18n("&File"), this);
        filemenu.AddAction(KDE.I18n("&Quit"), KApplication.kApplication(), SLOT("quit()"));

        string about = KDE.I18n("p5 1.0\n\n" +
                 "(C) 1999-2002 Antonio Larrosa Jimenez\n" +
                 "[email protected]\t\[email protected]\n" +
                 "Malaga (Spain)\n\n" +
                 "Simple KDE Tutorial\n" +
                 "This tutorial comes with ABSOLUTELY NO WARRANTY\n" +
                 "This is free software, and you are welcome to redistribute it\n" +
                 "under certain conditions\n");
        QMenu helpmenu = HelpMenu(about);

        KMenuBar menu = MenuBar();
        menu.AddMenu(filemenu);
        menu.AddSeparator();
        menu.AddMenu(helpmenu);

        location = new QLineEdit();
        location.Text = "http://localhost";

        Connect( location , SIGNAL("returnPressed()"),
                    this, SLOT("changeLocation()") );

        QSplitter split = new QSplitter();
        split.OpaqueResize = true;

        QWidget widget = new QWidget(this);

        QVBoxLayout vbox = new QVBoxLayout(widget);
        vbox.AddWidget(location);
        vbox.AddWidget(split);

        QPushButton bookmark = new QPushButton(KDE.I18n("Add to Bookmarks"), split);

        Connect(bookmark, SIGNAL("clicked()"), this, SLOT("BookLocation()"));

        browser = new KHTMLPart(split);
        browser.OpenUrl(new KUrl(location.Text));

        Connect( browser.BrowserExtension(),
                 SIGNAL("openUrlRequest(KUrl, KParts::OpenUrlArguments)"),
                 this, SLOT("OpenUrlRequest(KUrl, KParts::OpenUrlArguments)") );

        SetCentralWidget(widget);
    }
Exemplo n.º 3
0
Arquivo: Qt.cs Projeto: KDE/qyoto
 public static QTextStream Write(QTextStream arg1, QSplitter arg2)
 {
     return (QTextStream) staticInterceptor.Invoke("operator<<##", "operator<<(QTextStream&, const QSplitter&)", typeof(QTextStream), typeof(QTextStream), arg1, typeof(QSplitter), arg2);
 }
Exemplo n.º 4
0
Arquivo: Qt.cs Projeto: KDE/qyoto
 public static QTextStream Read(QTextStream arg1, QSplitter arg2)
 {
     return (QTextStream) staticInterceptor.Invoke("operator>>##", "operator>>(QTextStream&, QSplitter&)", typeof(QTextStream), typeof(QTextStream), arg1, typeof(QSplitter), arg2);
 }
Exemplo n.º 5
0
Arquivo: p9.cs Projeto: KDE/kimono
    public Browser(string name)
        : base((QWidget) null)
    {
        ObjectName = name;
        SetCaption("KDE Tutorial - p9");

        QMenu filemenu = new QMenu(KDE.I18n("&File"), this);

        KAction setDefaultPageAction = new KAction(this);
        setDefaultPageAction.Text = KDE.I18n("&Set default page");
        ActionCollection().AddAction("set_default_page", setDefaultPageAction);
        Connect(	setDefaultPageAction, SIGNAL("triggered(bool)"),
                    this, SLOT("FileSetDefaultPage()") );

        addBookmarkAction = KStandardAction.AddBookmark(this, SLOT("BookLocation()"), ActionCollection());
        backAction = KStandardAction.Back(this, SLOT("GotoPreviousPage()"), ActionCollection());
        backAction.Enabled = false;
        quitAction = KStandardAction.Quit(KApplication.kApplication(), SLOT("quit()"), ActionCollection());

        string about = KDE.I18n("p9 1.0\n\n" +
                 "(C) 1999-2002 Antonio Larrosa Jimenez\n" +
                 "[email protected]\t\[email protected]\n" +
                 "Malaga (Spain)\n\n" +
                 "Simple KDE Tutorial\n" +
                 "This tutorial comes with ABSOLUTELY NO WARRANTY\n" +
                 "This is free software, and you are welcome to redistribute it\n" +
                 "under certain conditions\n");
        QMenu helpmenu = HelpMenu(about);

        KMenuBar menu = MenuBar();
        menu.AddMenu(filemenu);
        menu.AddSeparator();
        menu.AddMenu(helpmenu);

        ToolBar().AddAction(quitAction);
        ToolBar().AddAction(addBookmarkAction);
        ToolBar().AddAction(backAction);
        StandardToolBarMenuEnabled = true;

        location = new QLineEdit();
        config = new KConfigGroup(KGlobal.Config(), "Settings");
        location.Text = config.ReadEntry("defaultPage", "http://localhost");

        Connect(location, SIGNAL("returnPressed()"), this, SLOT("ChangeLocation()"));

        QSplitter split = new QSplitter();
        split.OpaqueResize = true;

        QWidget widget = new QWidget(this);

        QVBoxLayout vbox = new QVBoxLayout(widget);
        vbox.AddWidget(location);
        vbox.AddWidget(split);

        browser = new KHTMLPart(split);
        browser.OpenUrl(new KUrl(location.Text));

        Connect( browser.BrowserExtension(),
                 SIGNAL("openUrlRequest(KUrl, KParts::OpenUrlArguments)"),
                 this, SLOT("OpenUrlRequest(KUrl, KParts::OpenUrlArguments)") );

        SetCentralWidget(widget);
        SetupGUI();
    }
Exemplo n.º 6
0
 public QSplitterHandle(Qt.Orientation o, QSplitter parent) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QSplitterHandle$#", "QSplitterHandle(Qt::Orientation, QSplitter*)", typeof(void), typeof(Qt.Orientation), o, typeof(QSplitter), parent);
 }
Exemplo n.º 7
0
 protected void SetupUi()
 {
     base.ObjectName = "RosterWidget";
     this.Geometry = new QRect(0, 0, 352, 538);
     this.WindowTitle = "RosterWidget";
     this.StyleSheet = "";
     QVBoxLayout verticalLayout_6;
     verticalLayout_6 = new QVBoxLayout(this);
     verticalLayout_6.Spacing = 0;
     verticalLayout_6.sizeConstraint = QLayout.SizeConstraint.SetDefaultConstraint;
     verticalLayout_6.Margin = 0;
     this.m_AccountsContainer = new QWidget(this);
     this.m_AccountsContainer.ObjectName = "m_AccountsContainer";
     QSizePolicy m_AccountsContainer_sizePolicy;
     m_AccountsContainer_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Preferred);
     m_AccountsContainer_sizePolicy.SetVerticalStretch(0);
     m_AccountsContainer_sizePolicy.SetHorizontalStretch(0);
     m_AccountsContainer_sizePolicy.SetHeightForWidth(this.m_AccountsContainer.SizePolicy.HasHeightForWidth());
     this.m_AccountsContainer.SizePolicy = m_AccountsContainer_sizePolicy;
     verticalLayout_6.AddWidget(this.m_AccountsContainer);
     this.notificationsWidget = new Synapse.QtClient.Widgets.NotificationsWidget(this);
     this.notificationsWidget.ObjectName = "notificationsWidget";
     this.notificationsWidget.FrameShape = QFrame.Shape.NoFrame;
     this.notificationsWidget.FrameShadow = QFrame.Shadow.Raised;
     verticalLayout_6.AddWidget(this.notificationsWidget);
     this.splitter = new QSplitter(this);
     this.splitter.ObjectName = "splitter";
     this.splitter.Orientation = Qt.Orientation.Vertical;
     verticalLayout_6.AddWidget(this.splitter);
     this.widget = new QWidget(this.splitter);
     this.widget.ObjectName = "widget";
     QVBoxLayout verticalLayout_2;
     verticalLayout_2 = new QVBoxLayout(this.widget);
     verticalLayout_2.Margin = 0;
     this.tabWidget = new Synapse.QtClient.Widgets.MainTabWidget(this.widget);
     this.tabWidget.ObjectName = "tabWidget";
     this.tabWidget.tabPosition = QTabWidget.TabPosition.South;
     this.tabWidget.CurrentIndex = 0;
     verticalLayout_2.AddWidget(this.tabWidget);
     this.friendsTab = new QWidget(this.tabWidget);
     this.friendsTab.ObjectName = "friendsTab";
     QVBoxLayout verticalLayout_4;
     verticalLayout_4 = new QVBoxLayout(this.friendsTab);
     verticalLayout_4.Spacing = 0;
     verticalLayout_4.Margin = 0;
     this.gridHeader = new QFrame(this.friendsTab);
     this.gridHeader.ObjectName = "gridHeader";
     this.gridHeader.AutoFillBackground = true;
     this.gridHeader.FrameShape = QFrame.Shape.NoFrame;
     this.gridHeader.FrameShadow = QFrame.Shadow.Raised;
     QHBoxLayout horizontalLayout_6;
     horizontalLayout_6 = new QHBoxLayout(this.gridHeader);
     horizontalLayout_6.Spacing = 3;
     horizontalLayout_6.Margin = 3;
     this.statsLabel = new QLabel(this.gridHeader);
     this.statsLabel.ObjectName = "statsLabel";
     QSizePolicy statsLabel_sizePolicy;
     statsLabel_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Preferred);
     statsLabel_sizePolicy.SetVerticalStretch(0);
     statsLabel_sizePolicy.SetHorizontalStretch(0);
     statsLabel_sizePolicy.SetHeightForWidth(this.statsLabel.SizePolicy.HasHeightForWidth());
     this.statsLabel.SizePolicy = statsLabel_sizePolicy;
     this.statsLabel.Text = "";
     horizontalLayout_6.AddWidget(this.statsLabel);
     this.rosterSearchButton = new QPushButton(this.gridHeader);
     this.rosterSearchButton.ObjectName = "rosterSearchButton";
     this.rosterSearchButton.FocusPolicy = Qt.FocusPolicy.TabFocus;
     this.rosterSearchButton.ToolTip = "Search friends";
     this.rosterSearchButton.Text = "";
     this.rosterSearchButton.Checkable = true;
     this.rosterSearchButton.Checked = false;
     this.rosterSearchButton.Flat = true;
     horizontalLayout_6.AddWidget(this.rosterSearchButton);
     this.rosterViewButton = new QPushButton(this.gridHeader);
     this.rosterViewButton.ObjectName = "rosterViewButton";
     this.rosterViewButton.FocusPolicy = Qt.FocusPolicy.TabFocus;
     this.rosterViewButton.ToolTip = "Change view options";
     this.rosterViewButton.Text = "";
     this.rosterViewButton.Flat = true;
     horizontalLayout_6.AddWidget(this.rosterViewButton);
     this.addFriendButton = new QPushButton(this.gridHeader);
     this.addFriendButton.ObjectName = "addFriendButton";
     this.addFriendButton.FocusPolicy = Qt.FocusPolicy.TabFocus;
     this.addFriendButton.ToolTip = "Add & Invite new friends";
     this.addFriendButton.Text = "";
     this.addFriendButton.Flat = true;
     horizontalLayout_6.AddWidget(this.addFriendButton);
     verticalLayout_4.AddWidget(this.gridHeader);
     this.friendSearchContainer = new QWidget(this.friendsTab);
     this.friendSearchContainer.ObjectName = "friendSearchContainer";
     QHBoxLayout horizontalLayout;
     horizontalLayout = new QHBoxLayout(this.friendSearchContainer);
     horizontalLayout.Spacing = 0;
     horizontalLayout.Margin = 3;
     this.friendSearchLineEdit = new QLineEdit(this.friendSearchContainer);
     this.friendSearchLineEdit.ObjectName = "friendSearchLineEdit";
     horizontalLayout.AddWidget(this.friendSearchLineEdit);
     verticalLayout_4.AddWidget(this.friendSearchContainer);
     this.rosterGrid = new Synapse.QtClient.Widgets.AvatarGrid<Synapse.UI.RosterItem>(this.friendsTab);
     this.rosterGrid.ObjectName = "rosterGrid";
     this.rosterGrid.FocusPolicy = Qt.FocusPolicy.StrongFocus;
     this.rosterGrid.FrameShape = QFrame.Shape.NoFrame;
     this.rosterGrid.Alignment = ((global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeading") | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeft")) | global::Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignTop"));
     verticalLayout_4.AddWidget(this.rosterGrid);
     this.tabWidget.AddTab(this.friendsTab, "Friends");
     this.chatroomsTab = new QWidget(this.tabWidget);
     this.chatroomsTab.ObjectName = "chatroomsTab";
     QVBoxLayout verticalLayout_3;
     verticalLayout_3 = new QVBoxLayout(this.chatroomsTab);
     verticalLayout_3.Spacing = 0;
     verticalLayout_3.Margin = 0;
     this.joinMucHeader = new QFrame(this.chatroomsTab);
     this.joinMucHeader.ObjectName = "joinMucHeader";
     this.joinMucHeader.FrameShape = QFrame.Shape.NoFrame;
     this.joinMucHeader.FrameShadow = QFrame.Shadow.Raised;
     QHBoxLayout horizontalLayout_5;
     horizontalLayout_5 = new QHBoxLayout(this.joinMucHeader);
     horizontalLayout_5.Spacing = 3;
     horizontalLayout_5.Margin = 3;
     this.label_7 = new QLabel(this.joinMucHeader);
     this.label_7.ObjectName = "label_7";
     QSizePolicy label_7_sizePolicy;
     label_7_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Preferred);
     label_7_sizePolicy.SetVerticalStretch(0);
     label_7_sizePolicy.SetHorizontalStretch(0);
     label_7_sizePolicy.SetHeightForWidth(this.label_7.SizePolicy.HasHeightForWidth());
     this.label_7.SizePolicy = label_7_sizePolicy;
     this.label_7.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; font-family:'DejaVu Sans';\">Join or Create Conference</p></body></html>";
     horizontalLayout_5.AddWidget(this.label_7);
     this.toggleJoinMucButton = new QPushButton(this.joinMucHeader);
     this.toggleJoinMucButton.ObjectName = "toggleJoinMucButton";
     this.toggleJoinMucButton.FocusPolicy = Qt.FocusPolicy.TabFocus;
     this.toggleJoinMucButton.Text = "";
     this.toggleJoinMucButton.Flat = true;
     horizontalLayout_5.AddWidget(this.toggleJoinMucButton);
     verticalLayout_3.AddWidget(this.joinMucHeader);
     this.joinMucContainer = new QWidget(this.chatroomsTab);
     this.joinMucContainer.ObjectName = "joinMucContainer";
     QVBoxLayout verticalLayout_5;
     verticalLayout_5 = new QVBoxLayout(this.joinMucContainer);
     verticalLayout_5.SetContentsMargins(0, 0, 0, 6);
     QGridLayout gridLayout;
     gridLayout = new QGridLayout();
     verticalLayout_5.AddLayout(gridLayout);
     gridLayout.SetContentsMargins(6, 6, 6, 0);
     this.label_2 = new QLabel(this.joinMucContainer);
     this.label_2.ObjectName = "label_2";
     this.label_2.Text = "Room:";
     gridLayout.AddWidget(this.label_2, 0, 0, 1, 1);
     this.label_5 = new QLabel(this.joinMucContainer);
     this.label_5.ObjectName = "label_5";
     this.label_5.Text = "Server:";
     gridLayout.AddWidget(this.label_5, 1, 0, 1, 1);
     this.mucServerLineEdit = new QLineEdit(this.joinMucContainer);
     this.mucServerLineEdit.ObjectName = "mucServerLineEdit";
     this.mucServerLineEdit.Text = "conference.extremeboredom.net";
     gridLayout.AddWidget(this.mucServerLineEdit, 1, 1, 1, 1);
     this.mucRoomLineEdit = new QLineEdit(this.joinMucContainer);
     this.mucRoomLineEdit.ObjectName = "mucRoomLineEdit";
     this.mucRoomLineEdit.Text = "synapse";
     gridLayout.AddWidget(this.mucRoomLineEdit, 0, 1, 1, 1);
     this.label_6 = new QLabel(this.joinMucContainer);
     this.label_6.ObjectName = "label_6";
     this.label_6.Text = "Nickname:";
     gridLayout.AddWidget(this.label_6, 2, 0, 1, 1);
     this.mucNicknameLineEdit = new QLineEdit(this.joinMucContainer);
     this.mucNicknameLineEdit.ObjectName = "mucNicknameLineEdit";
     gridLayout.AddWidget(this.mucNicknameLineEdit, 2, 1, 1, 1);
     this.label = new QLabel(this.joinMucContainer);
     this.label.ObjectName = "label";
     this.label.Text = "Password:"******"mucPasswordLineEdit";
     gridLayout.AddWidget(this.mucPasswordLineEdit, 3, 1, 1, 1);
     QHBoxLayout horizontalLayout_4;
     horizontalLayout_4 = new QHBoxLayout();
     verticalLayout_5.AddLayout(horizontalLayout_4);
     horizontalLayout_4.SetContentsMargins(6, 0, 6, 0);
     this.pushButton = new QPushButton(this.joinMucContainer);
     this.pushButton.ObjectName = "pushButton";
     this.pushButton.Text = "Browse...";
     horizontalLayout_4.AddWidget(this.pushButton);
     QSpacerItem horizontalSpacer_3;
     horizontalSpacer_3 = new QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum);
     horizontalLayout_4.AddItem(horizontalSpacer_3);
     this.m_JoinChatButton = new QPushButton(this.joinMucContainer);
     this.m_JoinChatButton.ObjectName = "m_JoinChatButton";
     this.m_JoinChatButton.Text = "Join";
     horizontalLayout_4.AddWidget(this.m_JoinChatButton);
     verticalLayout_3.AddWidget(this.joinMucContainer);
     this.yourMucsHeader = new QFrame(this.chatroomsTab);
     this.yourMucsHeader.ObjectName = "yourMucsHeader";
     this.yourMucsHeader.FrameShape = QFrame.Shape.NoFrame;
     this.yourMucsHeader.FrameShadow = QFrame.Shadow.Raised;
     QHBoxLayout horizontalLayout_7;
     horizontalLayout_7 = new QHBoxLayout(this.yourMucsHeader);
     horizontalLayout_7.Spacing = 3;
     horizontalLayout_7.Margin = 3;
     this.label_4 = new QLabel(this.yourMucsHeader);
     this.label_4.ObjectName = "label_4";
     QSizePolicy label_4_sizePolicy;
     label_4_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Preferred);
     label_4_sizePolicy.SetVerticalStretch(0);
     label_4_sizePolicy.SetHorizontalStretch(0);
     label_4_sizePolicy.SetHeightForWidth(this.label_4.SizePolicy.HasHeightForWidth());
     this.label_4.SizePolicy = label_4_sizePolicy;
     this.label_4.Text = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\np, li { white-space: pre-wrap; }\n</style></head><body style=\" font-family:'Bitstream Vera Sans'; font-size:9pt; font-weight:400; font-style:normal;\">\n<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'DejaVu Sans';\">Your Conferences</p></body></html>";
     horizontalLayout_7.AddWidget(this.label_4);
     this.addMucBookmarkButton = new QPushButton(this.yourMucsHeader);
     this.addMucBookmarkButton.ObjectName = "addMucBookmarkButton";
     this.addMucBookmarkButton.FocusPolicy = Qt.FocusPolicy.TabFocus;
     this.addMucBookmarkButton.Text = "";
     this.addMucBookmarkButton.Flat = true;
     horizontalLayout_7.AddWidget(this.addMucBookmarkButton);
     verticalLayout_3.AddWidget(this.yourMucsHeader);
     this.mucTree = new QTreeView(this.chatroomsTab);
     this.mucTree.ObjectName = "mucTree";
     this.mucTree.FrameShape = QFrame.Shape.NoFrame;
     this.mucTree.Animated = true;
     this.mucTree.HeaderHidden = true;
     verticalLayout_3.AddWidget(this.mucTree);
     this.friendsMucsHeader = new QFrame(this.chatroomsTab);
     this.friendsMucsHeader.ObjectName = "friendsMucsHeader";
     this.friendsMucsHeader.FrameShape = QFrame.Shape.NoFrame;
     this.friendsMucsHeader.FrameShadow = QFrame.Shadow.Raised;
     QHBoxLayout horizontalLayout_8;
     horizontalLayout_8 = new QHBoxLayout(this.friendsMucsHeader);
     horizontalLayout_8.Spacing = 3;
     horizontalLayout_8.Margin = 3;
     this.label_3 = new QLabel(this.friendsMucsHeader);
     this.label_3.ObjectName = "label_3";
     this.label_3.Text = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\np, li { white-space: pre-wrap; }\n</style></head><body style=\" font-family:'Bitstream Vera Sans'; font-size:9pt; font-weight:400; font-style:normal;\">\n<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'DejaVu Sans';\">Friends' Conferences</p></body></html>";
     horizontalLayout_8.AddWidget(this.label_3);
     verticalLayout_3.AddWidget(this.friendsMucsHeader);
     this.friendsMucTree = new QTreeView(this.chatroomsTab);
     this.friendsMucTree.ObjectName = "friendsMucTree";
     this.friendsMucTree.FrameShape = QFrame.Shape.NoFrame;
     this.friendsMucTree.Animated = true;
     this.friendsMucTree.HeaderHidden = true;
     verticalLayout_3.AddWidget(this.friendsMucTree);
     this.tabWidget.AddTab(this.chatroomsTab, "Conferences");
     this.activityTab = new QWidget(this.tabWidget);
     this.activityTab.ObjectName = "activityTab";
     QVBoxLayout verticalLayout;
     verticalLayout = new QVBoxLayout(this.activityTab);
     verticalLayout.Spacing = 0;
     verticalLayout.sizeConstraint = QLayout.SizeConstraint.SetDefaultConstraint;
     verticalLayout.Margin = 0;
     this.activityHeader = new QFrame(this.activityTab);
     this.activityHeader.ObjectName = "activityHeader";
     QSizePolicy activityHeader_sizePolicy;
     activityHeader_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Minimum);
     activityHeader_sizePolicy.SetVerticalStretch(0);
     activityHeader_sizePolicy.SetHorizontalStretch(0);
     activityHeader_sizePolicy.SetHeightForWidth(this.activityHeader.SizePolicy.HasHeightForWidth());
     this.activityHeader.SizePolicy = activityHeader_sizePolicy;
     this.activityHeader.FrameShape = QFrame.Shape.NoFrame;
     this.activityHeader.FrameShadow = QFrame.Shadow.Raised;
     QHBoxLayout horizontalLayout_9;
     horizontalLayout_9 = new QHBoxLayout(this.activityHeader);
     horizontalLayout_9.Spacing = 3;
     horizontalLayout_9.Margin = 3;
     this.m_ShoutButton = new QPushButton(this.activityHeader);
     this.m_ShoutButton.ObjectName = "m_ShoutButton";
     this.m_ShoutButton.FocusPolicy = Qt.FocusPolicy.TabFocus;
     this.m_ShoutButton.StyleSheet = "";
     this.m_ShoutButton.Text = "Shout!";
     this.m_ShoutButton.Checkable = true;
     this.m_ShoutButton.AutoExclusive = false;
     this.m_ShoutButton.Flat = true;
     horizontalLayout_9.AddWidget(this.m_ShoutButton);
     this.m_PostLinkButton = new QPushButton(this.activityHeader);
     this.m_PostLinkButton.ObjectName = "m_PostLinkButton";
     this.m_PostLinkButton.FocusPolicy = Qt.FocusPolicy.TabFocus;
     this.m_PostLinkButton.Text = "Post Link";
     this.m_PostLinkButton.Checkable = true;
     this.m_PostLinkButton.AutoExclusive = false;
     this.m_PostLinkButton.Flat = true;
     horizontalLayout_9.AddWidget(this.m_PostLinkButton);
     this.m_PostFileButton = new QPushButton(this.activityHeader);
     this.m_PostFileButton.ObjectName = "m_PostFileButton";
     this.m_PostFileButton.FocusPolicy = Qt.FocusPolicy.TabFocus;
     this.m_PostFileButton.Text = "Post File";
     this.m_PostFileButton.Checkable = true;
     this.m_PostFileButton.AutoExclusive = false;
     this.m_PostFileButton.Flat = true;
     horizontalLayout_9.AddWidget(this.m_PostFileButton);
     QSpacerItem horizontalSpacer_2;
     horizontalSpacer_2 = new QSpacerItem(0, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum);
     horizontalLayout_9.AddItem(horizontalSpacer_2);
     this.feedFilterButton = new QPushButton(this.activityHeader);
     this.feedFilterButton.ObjectName = "feedFilterButton";
     this.feedFilterButton.FocusPolicy = Qt.FocusPolicy.TabFocus;
     this.feedFilterButton.Text = "";
     this.feedFilterButton.Flat = true;
     horizontalLayout_9.AddWidget(this.feedFilterButton);
     verticalLayout.AddWidget(this.activityHeader);
     this.shoutContainer = new QWidget(this.activityTab);
     this.shoutContainer.ObjectName = "shoutContainer";
     QVBoxLayout verticalLayout_8;
     verticalLayout_8 = new QVBoxLayout(this.shoutContainer);
     verticalLayout_8.Margin = 6;
     QHBoxLayout horizontalLayout_2;
     horizontalLayout_2 = new QHBoxLayout();
     verticalLayout_8.AddLayout(horizontalLayout_2);
     this.shoutLineEdit = new QLineEdit(this.shoutContainer);
     this.shoutLineEdit.ObjectName = "shoutLineEdit";
     this.shoutLineEdit.MaxLength = 140;
     horizontalLayout_2.AddWidget(this.shoutLineEdit);
     this.shoutCharsLabel = new QLabel(this.shoutContainer);
     this.shoutCharsLabel.ObjectName = "shoutCharsLabel";
     this.shoutCharsLabel.Text = "140";
     horizontalLayout_2.AddWidget(this.shoutCharsLabel);
     this.shoutHandlersBox = new QWidget(this.shoutContainer);
     this.shoutHandlersBox.ObjectName = "shoutHandlersBox";
     QHBoxLayout horizontalLayout_10;
     horizontalLayout_10 = new QHBoxLayout(this.shoutHandlersBox);
     horizontalLayout_10.Margin = 0;
     this.label_8 = new QLabel(this.shoutHandlersBox);
     this.label_8.ObjectName = "label_8";
     this.label_8.Text = "Also Send To:";
     horizontalLayout_10.AddWidget(this.label_8);
     this.shoutHandlersContainer = new QWidget(this.shoutHandlersBox);
     this.shoutHandlersContainer.ObjectName = "shoutHandlersContainer";
     QHBoxLayout horizontalLayout_11;
     horizontalLayout_11 = new QHBoxLayout(this.shoutHandlersContainer);
     horizontalLayout_11.Spacing = 3;
     horizontalLayout_11.Margin = 0;
     horizontalLayout_10.AddWidget(this.shoutHandlersContainer);
     QSpacerItem horizontalSpacer_4;
     horizontalSpacer_4 = new QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum);
     horizontalLayout_10.AddItem(horizontalSpacer_4);
     verticalLayout_8.AddWidget(this.shoutHandlersBox);
     QHBoxLayout horizontalLayout_3;
     horizontalLayout_3 = new QHBoxLayout();
     verticalLayout_8.AddLayout(horizontalLayout_3);
     QSpacerItem horizontalSpacer;
     horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum);
     horizontalLayout_3.AddItem(horizontalSpacer);
     this.sendShoutButton = new QPushButton(this.shoutContainer);
     this.sendShoutButton.ObjectName = "sendShoutButton";
     this.sendShoutButton.Text = "Shout!";
     horizontalLayout_3.AddWidget(this.sendShoutButton);
     verticalLayout.AddWidget(this.shoutContainer);
     this.m_ActivityWebView = new QWebView(this.activityTab);
     this.m_ActivityWebView.ObjectName = "m_ActivityWebView";
     QSizePolicy m_ActivityWebView_sizePolicy;
     m_ActivityWebView_sizePolicy = new QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Expanding);
     m_ActivityWebView_sizePolicy.SetVerticalStretch(0);
     m_ActivityWebView_sizePolicy.SetHorizontalStretch(0);
     m_ActivityWebView_sizePolicy.SetHeightForWidth(this.m_ActivityWebView.SizePolicy.HasHeightForWidth());
     this.m_ActivityWebView.SizePolicy = m_ActivityWebView_sizePolicy;
     this.m_ActivityWebView.Url = new QUrl("about:blank");
     verticalLayout.AddWidget(this.m_ActivityWebView);
     this.tabWidget.AddTab(this.activityTab, "Activity");
     this.splitter.AddWidget(this.widget);
     QObject.Connect(m_ShoutButton, Qt.SIGNAL("toggled(bool)"), shoutContainer, Qt.SLOT("setShown(bool)"));
     QObject.Connect(mucRoomLineEdit, Qt.SIGNAL("returnPressed()"), m_JoinChatButton, Qt.SLOT("click()"));
     QObject.Connect(mucPasswordLineEdit, Qt.SIGNAL("returnPressed()"), m_JoinChatButton, Qt.SLOT("click()"));
     QObject.Connect(mucServerLineEdit, Qt.SIGNAL("returnPressed()"), m_JoinChatButton, Qt.SLOT("click()"));
     QObject.Connect(mucNicknameLineEdit, Qt.SIGNAL("returnPressed()"), m_JoinChatButton, Qt.SLOT("click()"));
     QMetaObject.ConnectSlotsByName(this);
     this.label_2.SetBuddy(mucRoomLineEdit);
     this.label_5.SetBuddy(mucServerLineEdit);
     this.label_6.SetBuddy(mucNicknameLineEdit);
     this.label.SetBuddy(mucPasswordLineEdit);
 }
Exemplo n.º 8
0
 public QSplitterHandle(Qt.Orientation o, QSplitter parent)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QSplitterHandle$#", "QSplitterHandle(Qt::Orientation, QSplitter*)", typeof(void), typeof(Qt.Orientation), o, typeof(QSplitter), parent);
 }
Exemplo n.º 9
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