Beispiel #1
1
        public TrayIcon(QObject parent)
            : base(parent)
        {
            m_ShowMainWindowAction = new QAction("Show Synapse", this);
            m_ShowMainWindowAction.Checkable = true;
            QObject.Connect(m_ShowMainWindowAction, Qt.SIGNAL("triggered()"), HandleShowMainWindowActionTriggered);

            m_ShowDebugWindowAction = new QAction("Debug Window", this);
            m_ShowDebugWindowAction.Checkable = true;
            QObject.Connect(m_ShowDebugWindowAction, Qt.SIGNAL("triggered()"), HandleShowDebugWindowActionTriggered);

            m_Menu = new QMenu();
            m_Menu.AddAction(m_ShowMainWindowAction);
            m_Menu.AddAction(m_ShowDebugWindowAction);
            m_Menu.AddSeparator();
            m_Menu.AddAction(Gui.GlobalActions.NewMessageAction);
            m_Menu.AddAction(Gui.GlobalActions.JoinConferenceAction);
            m_Menu.AddAction(Gui.GlobalActions.ShowBrowserAction);
            m_Menu.AddAction(Gui.GlobalActions.EditProfileAction);
            m_Menu.AddAction(Gui.GlobalActions.ChangeStatusAction);
            m_Menu.AddSeparator();
            m_Menu.AddAction(Gui.GlobalActions.ShowPreferencesAction);
            m_Menu.AddSeparator();
            m_Menu.AddAction(Gui.GlobalActions.AboutAction);
            m_Menu.AddAction(Gui.GlobalActions.SendFeedbackAction);
            m_Menu.AddSeparator();
            m_Menu.AddAction(Gui.GlobalActions.QuitAction);
            QObject.Connect(m_Menu, Qt.SIGNAL("aboutToShow()"), HandleMenuAboutToShow);

            QPixmap pixmap = new QPixmap("resource:/octy-22.png");
            QIcon icon = new QIcon(pixmap);
            m_Icon = new QSystemTrayIcon(icon);
            m_Icon.SetContextMenu(m_Menu);

            QObject.Connect<QSystemTrayIcon.ActivationReason>(m_Icon, Qt.SIGNAL("activated(QSystemTrayIcon::ActivationReason)"), HandleTrayActivated);
        }
Beispiel #2
0
 public void InsertItem(int index, QIcon icon, string text)
 {
     interceptor.Invoke("insertItem$#$", "insertItem(int, const QIcon&, const QString&)", typeof(void), typeof(int), index, typeof(QIcon), icon, typeof(string), text);
 }
Beispiel #3
0
 public void AddItem(QIcon icon, string text)
 {
     interceptor.Invoke("addItem#$", "addItem(const QIcon&, const QString&)", typeof(void), typeof(QIcon), icon, typeof(string), text);
 }
Beispiel #4
0
 /// <remarks>
 ///  Sets an icon for a given tab
 ///  @arg index the index of the tab to modify
 ///  @arg icon the new icon for the given tab
 ///      </remarks>        <short>    Sets an icon for a given tab </short>
 public void SetTabIcon(int index, QIcon icon)
 {
     interceptor.Invoke("setTabIcon$#", "setTabIcon(int, const QIcon&)", typeof(void), typeof(int), index, typeof(QIcon), icon);
 }
Beispiel #5
0
 /// <remarks>
 ///  Adds a new tab in the last position
 ///  @arg icon  the icon for this tab
 ///  @arg label the text label of the tab
 ///  @arg content the page content that will be shown by this tab
 /// </remarks>        <return> the index of the inserted tab
 ///      </return>
 ///         <short>    Adds a new tab in the last position </short>
 public int AddTab(QIcon icon, string label, IQGraphicsLayoutItem content)
 {
     return (int) interceptor.Invoke("addTab#$#", "addTab(const QIcon&, const QString&, QGraphicsLayoutItem*)", typeof(int), typeof(QIcon), icon, typeof(string), label, typeof(IQGraphicsLayoutItem), content);
 }
Beispiel #6
0
 /// <remarks>
 ///  Same as above but allows one to define the icon by name that should
 ///  be used for the system tray icon.
 ///      </remarks>        <short>    Same as above but allows one to define the icon by name that should  be used for the system tray icon.</short>
 public KSystemTrayIcon(QIcon icon, QWidget parent)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("KSystemTrayIcon##", "KSystemTrayIcon(const QIcon&, QWidget*)", typeof(void), typeof(QIcon), icon, typeof(QWidget), parent);
 }
Beispiel #7
0
 public QSystemTrayIcon(QIcon icon) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QSystemTrayIcon#", "QSystemTrayIcon(const QIcon&)", typeof(void), typeof(QIcon), icon);
 }
Beispiel #8
0
 public int AddTab(QIcon icon, string text)
 {
     return((int)interceptor.Invoke("addTab#$", "addTab(const QIcon&, const QString&)", typeof(int), typeof(QIcon), icon, typeof(string), text));
 }
Beispiel #9
0
 public QAction AddAction(QIcon icon, string text, QObject receiver, string member)
 {
     return((QAction)interceptor.Invoke("addAction#$#$", "addAction(const QIcon&, const QString&, const QObject*, const char*)", typeof(QAction), typeof(QIcon), icon, typeof(string), text, typeof(QObject), receiver, typeof(string), member));
 }
Beispiel #10
0
 public QAction AddAction(QIcon icon, string text, QObject receiver, string member, QKeySequence shortcut)
 {
     return((QAction)interceptor.Invoke("addAction#$#$#", "addAction(const QIcon&, const QString&, const QObject*, const char*, const QKeySequence&)", typeof(QAction), typeof(QIcon), icon, typeof(string), text, typeof(QObject), receiver, typeof(string), member, typeof(QKeySequence), shortcut));
 }
Beispiel #11
0
 public QIcon(QIcon other) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QIcon#", "QIcon(const QIcon&)", typeof(void), typeof(QIcon), other);
 }
Beispiel #12
0
 public int AddItem(QWidget widget, QIcon icon, string text)
 {
     return((int)interceptor.Invoke("addItem##$", "addItem(QWidget*, const QIcon&, const QString&)", typeof(int), typeof(QWidget), widget, typeof(QIcon), icon, typeof(string), text));
 }
Beispiel #13
0
 public void InsertItem(int index, QIcon icon, string text)
 {
     interceptor.Invoke("insertItem$#$", "insertItem(int, const QIcon&, const QString&)", typeof(void), typeof(int), index, typeof(QIcon), icon, typeof(string), text);
 }
Beispiel #14
0
 public void InsertItem(int index, QIcon icon, string text, QVariant userData)
 {
     interceptor.Invoke("insertItem$#$#", "insertItem(int, const QIcon&, const QString&, const QVariant&)", typeof(void), typeof(int), index, typeof(QIcon), icon, typeof(string), text, typeof(QVariant), userData);
 }
Beispiel #15
0
 public QAction AddAction(QIcon icon, string text)
 {
     return (QAction) interceptor.Invoke("addAction#$", "addAction(const QIcon&, const QString&)", typeof(QAction), typeof(QIcon), icon, typeof(string), text);
 }
Beispiel #16
0
 /// <remarks>
 ///  Appends <code>url</code> with the icon &p icon to the combobox.
 ///  KUrl.PrettyUrl() is used so that the url is properly decoded
 ///  for displaying.
 ///      </remarks>        <short>    Appends <code>url</code> with the icon &p icon to the combobox.</short>
 public void AddUrl(QIcon icon, KUrl url)
 {
     interceptor.Invoke("addUrl##", "addUrl(const QIcon&, const KUrl&)", typeof(void), typeof(QIcon), icon, typeof(KUrl), url);
 }
Beispiel #17
0
 public QMenu AddMenu(QIcon icon, string title)
 {
     return((QMenu)interceptor.Invoke("addMenu#$", "addMenu(const QIcon&, const QString&)", typeof(QMenu), typeof(QIcon), icon, typeof(string), title));
 }
Beispiel #18
0
 public void SetTabIcon(int index, QIcon icon)
 {
     interceptor.Invoke("setTabIcon$#", "setTabIcon(int, const QIcon&)", typeof(void), typeof(int), index, typeof(QIcon), icon);
 }
Beispiel #19
0
 public void SetIcon(int column, QIcon icon)
 {
     interceptor.Invoke("setIcon$#", "setIcon(int, const QIcon&)", typeof(void), typeof(int), column, typeof(QIcon), icon);
 }
Beispiel #20
0
 public QPushButton(QIcon icon, string text) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QPushButton#$", "QPushButton(const QIcon&, const QString&)", typeof(void), typeof(QIcon), icon, typeof(string), text);
 }
Beispiel #21
0
 public QTableWidgetItem(QIcon icon, string text, int type) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QTableWidgetItem#$$", "QTableWidgetItem(const QIcon&, const QString&, int)", typeof(void), typeof(QIcon), icon, typeof(string), text, typeof(int), type);
 }
Beispiel #22
0
 public QAction AddAction(QIcon icon, string text)
 {
     return((QAction)interceptor.Invoke("addAction#$", "addAction(const QIcon&, const QString&)", typeof(QAction), typeof(QIcon), icon, typeof(string), text));
 }
Beispiel #23
0
 /// <remarks> Constructor that sets the common fields </remarks>        <short>   Constructor that sets the common fields </short>
 public ToolTipContent(string mainText, string subText, QIcon icon)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("ToolTipContent$$#", "ToolTipContent(const QString&, const QString&, const QIcon&)", typeof(void), typeof(string), mainText, typeof(string), subText, typeof(QIcon), icon);
 }
Beispiel #24
0
 /// <remarks>
 ///  Adds a new tab in the desired position
 ///  @arg index the position where to insert the new tab,
 ///             if index <=0 will be the first position,
 ///             if index >= count() will be the last
 ///  @arg icon  the icon for this tab
 ///  @arg label the text label of the tab
 ///  @arg content the page content that will be shown by this tab
 /// </remarks>        <return> the index of the inserted tab
 ///      </return>
 ///         <short>    Adds a new tab in the desired position </short>
 public int InsertTab(int index, QIcon icon, string label, IQGraphicsLayoutItem content)
 {
     return (int) interceptor.Invoke("insertTab$#$#", "insertTab(int, const QIcon&, const QString&, QGraphicsLayoutItem*)", typeof(int), typeof(int), index, typeof(QIcon), icon, typeof(string), label, typeof(IQGraphicsLayoutItem), content);
 }
Beispiel #25
0
 public QListWidgetItem(QIcon icon, string text, QListWidget view)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QListWidgetItem#$#", "QListWidgetItem(const QIcon&, const QString&, QListWidget*)", typeof(void), typeof(QIcon), icon, typeof(string), text, typeof(QListWidget), view);
 }
Beispiel #26
0
Datei: Qt.cs Projekt: KDE/qyoto
 public static QDataStream Read(QDataStream arg1, QIcon arg2)
 {
     return (QDataStream) staticInterceptor.Invoke("operator>>##", "operator>>(QDataStream&, QIcon&)", typeof(QDataStream), typeof(QDataStream), arg1, typeof(QIcon), arg2);
 }
Beispiel #27
0
        public RosterWidget(QWidget parent)
            : base(parent)
        {
            SetupUi();

            m_RosterModel = new RosterAvatarGridModel();
            rosterGrid.Model = m_RosterModel;
            rosterGrid.ItemActivated += HandleItemActivated;
            rosterGrid.ShowGroupCounts = true;
            rosterGrid.InstallEventFilter(new KeyPressEater(delegate (QKeyEvent evnt) {
                if (!String.IsNullOrEmpty(evnt.Text())) {
                    rosterSearchButton.Checked = true;
                    friendSearchLineEdit.Text += evnt.Text();
                    friendSearchLineEdit.SetFocus();
                    return true;
                }
                return false;
            }, this));

            var accountService = ServiceManager.Get<AccountService>();
            accountService.AccountAdded += HandleAccountAdded;
            accountService.AccountRemoved += HandleAccountRemoved;
            foreach (Account account in accountService.Accounts) {
                HandleAccountAdded(account);
            }

            m_ActivityFeedItems = new Dictionary<string, IActivityFeedItem>();

            rosterGrid.ContextMenuPolicy = Qt.ContextMenuPolicy.CustomContextMenu;

            m_RosterMenu = new QMenu(this);
            QObject.Connect<QAction>(m_RosterMenu, Qt.SIGNAL("triggered(QAction*)"), HandleRosterMenuTriggered);

            var rosterViewActionGroup = new QActionGroup(this);
            QObject.Connect<QAction>(rosterViewActionGroup, Qt.SIGNAL("triggered(QAction *)"), RosterViewActionGroupTriggered);

            m_GridModeAction = new QAction("View as Grid", this);
            m_GridModeAction.SetActionGroup(rosterViewActionGroup);
            m_GridModeAction.Checkable = true;
            m_GridModeAction.Checked = true;
            m_RosterMenu.AddAction(m_GridModeAction);

            m_ListModeAction = new QAction("View as List", this);
            m_ListModeAction.SetActionGroup(rosterViewActionGroup);
            m_ListModeAction.Checkable = true;
            m_RosterMenu.AddAction(m_ListModeAction);

            m_RosterMenu.AddSeparator();

            m_ShowOfflineAction = new QAction("Show Offline Friends", this);
            m_ShowOfflineAction.Checkable = true;
            m_RosterMenu.AddAction(m_ShowOfflineAction);

            m_ShowTransportsAction = new QAction("Show Transports", this);
            m_ShowTransportsAction.Checkable = true;
            m_RosterMenu.AddAction(m_ShowTransportsAction);

            m_RosterMenu.AddSeparator();

            var sliderAction = new AvatarGridZoomAction<Synapse.UI.RosterItem>(rosterGrid);
            m_RosterMenu.AddAction(sliderAction);

            m_InviteActions = new List<QAction>();

            m_InviteMenu = new QMenu(this);
            m_InviteMenu.MenuAction().Text = "Invite To";
            m_InviteMenu.AddAction("New Conference...");

            m_RosterItemMenu = new QMenu(this);
            QObject.Connect<QAction>(m_RosterItemMenu, Qt.SIGNAL("triggered(QAction*)"), HandleRosterItemMenuTriggered);
            QObject.Connect(m_RosterItemMenu, Qt.SIGNAL("aboutToShow()"), RosterItemMenuAboutToShow);
            QObject.Connect(m_RosterItemMenu, Qt.SIGNAL("aboutToHide()"), RosterItemMenuAboutToHide);

            m_ViewProfileAction = new QAction("View Profile", m_RosterItemMenu);
            m_RosterItemMenu.AddAction(m_ViewProfileAction);

            m_IMAction = new QAction("IM", m_RosterItemMenu);
            m_RosterItemMenu.AddAction(m_IMAction);

            m_RosterItemMenu.AddAction("Send File...");
            m_RosterItemMenu.AddMenu(m_InviteMenu);
            m_RosterItemMenu.AddAction("View History");

            foreach (IActionCodon node in AddinManager.GetExtensionNodes("/Synapse/QtClient/Roster/FriendActions")) {
                m_RosterItemMenu.AddAction((QAction)node.CreateInstance(this));
            }

            m_RosterItemMenu.AddSeparator();

            m_EditGroupsAction = new QAction("Edit Groups", m_RosterItemMenu);
            m_RosterItemMenu.AddAction(m_EditGroupsAction);

            m_RemoveAction = new QAction("Remove", m_RosterItemMenu);
            m_RosterItemMenu.AddAction(m_RemoveAction);

            friendSearchLineEdit.InstallEventFilter(new KeyPressEater(delegate (QKeyEvent evnt) {
                if (evnt.Key() == (int)Key.Key_Escape) {
                    friendSearchLineEdit.Clear();
                    rosterSearchButton.Checked = false;
                    rosterGrid.SetFocus();
                    return true;
                }
                return false;
            }, this));

            //QSizeGrip grip = new QSizeGrip(tabWidget);
            //tabWidget.SetCornerWidget(grip, Qt.Corner.BottomRightCorner);

            0.UpTo(9).ForEach(num => {
                QAction action = new QAction(this);
                action.Shortcut = new QKeySequence("Alt+" + num.ToString());
                QObject.Connect(action, Qt.SIGNAL("triggered(bool)"), delegate {
                    tabWidget.CurrentIndex = num - 1;
                });
                this.AddAction(action);
            });

            var jsWindowObject = new SynapseJSObject(this);
            m_ActivityWebView.Page().linkDelegationPolicy = QWebPage.LinkDelegationPolicy.DelegateAllLinks;
            QObject.Connect<QUrl>(m_ActivityWebView, Qt.SIGNAL("linkClicked(QUrl)"), HandleActivityLinkClicked);
            QObject.Connect<bool>(m_ActivityWebView.Page(), Qt.SIGNAL("loadFinished(bool)"), HandleActivityPageLoadFinished);
            QObject.Connect(m_ActivityWebView.Page().MainFrame(), Qt.SIGNAL("javaScriptWindowObjectCleared()"), delegate {
                m_ActivityWebView.Page().MainFrame().AddToJavaScriptWindowObject("Synapse", jsWindowObject);
            });
            m_ActivityWebView.Page().MainFrame().Load("resource:/feed.html");

            //friendMucListWebView.Page().MainFrame().Load("resource:/friend-muclist.html");

            //quickJoinMucContainer.Hide();
            shoutContainer.Hide();

            QObject.Connect(shoutLineEdit, Qt.SIGNAL("textChanged(const QString &)"), delegate {
                shoutCharsLabel.Text = (140 - shoutLineEdit.Text.Length).ToString();
            });

            QObject.Connect(shoutLineEdit, Qt.SIGNAL("returnPressed()"), delegate {
                SendShout();
            });

            QVBoxLayout layout = new QVBoxLayout(m_AccountsContainer);
            layout.Margin = 0;
            m_AccountsContainer.SetLayout(layout);

            m_MucModel = new BookmarkedMUCsModel();
            mucTree.SetModel(m_MucModel);

            friendSearchContainer.Hide();

            rosterViewButton.icon  = new QIcon(new QPixmap("resource:/view-grid.png"));
            rosterSearchButton.icon = new QIcon(new QPixmap("resource:/simple-search.png"));
            addFriendButton.icon = new QIcon(new QPixmap("resource:/simple-add.png"));
            addMucBookmarkButton.icon = new QIcon(new QPixmap("resource:/simple-add.png"));
            feedFilterButton.icon = new QIcon(new QPixmap("resource:/simple-search.png"));

            m_CollapseIcon = new QIcon(new QPixmap("resource:/collapse.png"));
            m_ExpandIcon = new QIcon(new QPixmap("resource:/expand.png"));
            toggleJoinMucButton.icon = m_CollapseIcon;

            UpdateOnlineCount();

            var shoutService = ServiceManager.Get<ShoutService>();
            shoutService.HandlerAdded += HandleShoutHandlerAdded;
            shoutService.HandlerRemoved += HandleShoutHandlerRemoved;
            if (shoutService.Handlers.Count() > 0) {
                foreach (IShoutHandler handler in shoutService.Handlers) {
                    HandleShoutHandlerAdded(handler);
                }
            } else {
                shoutHandlersBox.Hide();
            }

            m_FeedFilterMenu = new QMenu(this);

            QObject.Connect(m_FeedFilterMenu, Qt.SIGNAL("triggered(QAction*)"), delegate (QAction action) {
                string js = Util.CreateJavascriptCall("ActivityFeed.setCategoryVisibility", action.Text.ToLower().Replace(" ", "-"), action.Checked);
                m_ActivityWebView.Page().MainFrame().EvaluateJavaScript(js);
            });

            var feedService = ServiceManager.Get<ActivityFeedService>();
            feedService.NewItem += delegate (IActivityFeedItem item) {
                lock (m_FeedItemQueue) {
                    if (!m_FeedIsLoaded) {
                        m_FeedItemQueue.Enqueue(item);
                    } else {
                        AddActivityFeedItem(item);
                    }
                }
            };
            feedService.CategoryAdded += delegate (string category) {
                QApplication.Invoke(delegate {
                    HandleCategoryAdded(category);
                });
            };
            foreach (string category in feedService.Categories) {
                HandleCategoryAdded(category);
            }
        }
Beispiel #28
0
 public void InsertItem(int index, QIcon icon, string text, QVariant userData)
 {
     interceptor.Invoke("insertItem$#$#", "insertItem(int, const QIcon&, const QString&, const QVariant&)", typeof(void), typeof(int), index, typeof(QIcon), icon, typeof(string), text, typeof(QVariant), userData);
 }
Beispiel #29
0
 public QSystemTrayIcon(QIcon icon, QObject parent)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QSystemTrayIcon##", "QSystemTrayIcon(const QIcon&, QObject*)", typeof(void), typeof(QIcon), icon, typeof(QObject), parent);
 }
Beispiel #30
0
 public QAction(QIcon icon, string text, QObject parent)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QAction#$#", "QAction(const QIcon&, const QString&, QObject*)", typeof(void), typeof(QIcon), icon, typeof(string), text, typeof(QObject), parent);
 }
Beispiel #31
0
 public int AddTab(QWidget widget, QIcon icon, string label)
 {
     return((int)interceptor.Invoke("addTab##$", "addTab(QWidget*, const QIcon&, const QString&)", typeof(int), typeof(QWidget), widget, typeof(QIcon), icon, typeof(string), label));
 }
Beispiel #32
0
 /// <remarks>
 ///     Sets the iconset for button <code>button</code> to <code>iconset.</code>
 ///     You can use this method to et a costum icon set. Either
 ///     created by QIconSet, or use the application instance of
 ///     KIconLoader (recommended).
 ///   </remarks>        <short>       Sets the iconset for button <code>button</code> to <code>iconset.</code></short>
 public void SetButtonIconSet(QIcon iconset, KActionSelector.MoveButton button)
 {
     interceptor.Invoke("setButtonIconSet#$", "setButtonIconSet(const QIcon&, KActionSelector::MoveButton)", typeof(void), typeof(QIcon), iconset, typeof(KActionSelector.MoveButton), button);
 }
Beispiel #33
0
 public int InsertTab(int index, QWidget widget, QIcon icon, string label)
 {
     return((int)interceptor.Invoke("insertTab$##$", "insertTab(int, QWidget*, const QIcon&, const QString&)", typeof(int), typeof(int), index, typeof(QWidget), widget, typeof(QIcon), icon, typeof(string), label));
 }
Beispiel #34
0
 /// <remarks>
 ///  Inserts <code>url</code> with the pixmap &p pixmap at position <code>index</code> into
 ///  the combobox. KUrl.PrettyUrl() is used so that the url is
 ///  properly decoded for displaying.
 ///      </remarks>        <short>    Inserts <code>url</code> with the pixmap &p pixmap at position <code>index</code> into  the combobox.</short>
 public void InsertUrl(int index, QIcon icon, KUrl url)
 {
     interceptor.Invoke("insertUrl$##", "insertUrl(int, const QIcon&, const KUrl&)", typeof(void), typeof(int), index, typeof(QIcon), icon, typeof(KUrl), url);
 }
Beispiel #35
0
 public void SetIcon(QIcon icon)
 {
     interceptor.Invoke("setIcon#", "setIcon(const QIcon&)", typeof(void), typeof(QIcon), icon);
 }
Beispiel #36
0
 public int InsertTab(int index, QIcon icon, string text)
 {
     return((int)interceptor.Invoke("insertTab$#$", "insertTab(int, const QIcon&, const QString&)", typeof(int), typeof(int), index, typeof(QIcon), icon, typeof(string), text));
 }
Beispiel #37
0
 public QListWidgetItem(QIcon icon, string text, QListWidget view, int type) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QListWidgetItem#$#$", "QListWidgetItem(const QIcon&, const QString&, QListWidget*, int)", typeof(void), typeof(QIcon), icon, typeof(string), text, typeof(QListWidget), view, typeof(int), type);
 }
Beispiel #38
0
 public QSystemTrayIcon(QIcon icon, QObject parent) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QSystemTrayIcon##", "QSystemTrayIcon(const QIcon&, QObject*)", typeof(void), typeof(QIcon), icon, typeof(QObject), parent);
 }
Beispiel #39
0
 public QListWidgetItem(QIcon icon, string text) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QListWidgetItem#$", "QListWidgetItem(const QIcon&, const QString&)", typeof(void), typeof(QIcon), icon, typeof(string), text);
 }
Beispiel #40
0
 public QPushButton(QIcon icon, string text, QWidget parent) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QPushButton#$#", "QPushButton(const QIcon&, const QString&, QWidget*)", typeof(void), typeof(QIcon), icon, typeof(string), text, typeof(QWidget), parent);
 }
Beispiel #41
0
 /// <remarks>
 ///  Inserts a title item with the given icon and title.
 ///      </remarks>        <short>    Inserts a title item with the given icon and title.</short>
 public QAction AddTitle(QIcon icon, string text, QAction before)
 {
     return (QAction) interceptor.Invoke("addTitle#$#", "addTitle(const QIcon&, const QString&, QAction*)", typeof(QAction), typeof(QIcon), icon, typeof(string), text, typeof(QAction), before);
 }
Beispiel #42
0
 public QAction(QIcon icon, string text, QObject parent) : this((Type)null)
 {
     CreateProxy();
     interceptor.Invoke("QAction#$#", "QAction(const QIcon&, const QString&, QObject*)", typeof(void), typeof(QIcon), icon, typeof(string), text, typeof(QObject), parent);
 }
Beispiel #43
0
 /// <remarks>
 ///  Creates and then adds an action to the action registry.
 ///  AbstractRunner assumes ownership of the created action.
 /// <param> name="id" A unique identifier string
 /// </param><param> name="icon" The icon to display
 /// </param><param> name="text" The text to display
 /// </param></remarks>        <return> the created QAction
 ///          </return>
 ///         <short>    Creates and then adds an action to the action registry.</short>
 protected QAction AddAction(string id, QIcon icon, string text)
 {
     return (QAction) interceptor.Invoke("addAction$#$", "addAction(const QString&, const QIcon&, const QString&)", typeof(QAction), typeof(string), id, typeof(QIcon), icon, typeof(string), text);
 }
Beispiel #44
0
 public KSystemTrayIcon(QIcon icon)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("KSystemTrayIcon#", "KSystemTrayIcon(const QIcon&)", typeof(void), typeof(QIcon), icon);
 }
Beispiel #45
0
 public QStandardItem(QIcon icon, string text)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QStandardItem#$", "QStandardItem(const QIcon&, const QString&)", typeof(void), typeof(QIcon), icon, typeof(string), text);
 }
Beispiel #46
0
 /// <remarks>
 ///  Copy constructor which takes any QIcon.
 ///  \param copy the icon to copy.  This should have once been a KIcon,
 ///              if you want to preserve KDE icon effects.
 ///      </remarks>        <short>    Copy constructor which takes any QIcon.</short>
 public KIcon(QIcon copy)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("KIcon#", "KIcon(const QIcon&)", typeof(void), typeof(QIcon), copy);
 }
Beispiel #47
0
 /// <remarks>
 /// </remarks>        <short>   </short>
 ///         <see> Applet</see>
 protected void ShowMessage(QIcon icon, string message, uint buttons)
 {
     interceptor.Invoke("showMessage#$$", "showMessage(const QIcon&, const QString&, const Plasma::MessageButtons)", typeof(void), typeof(QIcon), icon, typeof(string), message, typeof(uint), buttons);
 }
Beispiel #48
0
 public int AddTab(QIcon icon, string label)
 {
     return (int) interceptor.Invoke("addTab#$", "addTab(const QIcon&, const QString&)", typeof(int), typeof(QIcon), icon, typeof(string), label);
 }
Beispiel #49
0
 public QAction AddAction(QIcon icon, string text, QObject receiver, string member)
 {
     return (QAction) interceptor.Invoke("addAction#$#$", "addAction(const QIcon&, const QString&, const QObject*, const char*)", typeof(QAction), typeof(QIcon), icon, typeof(string), text, typeof(QObject), receiver, typeof(string), member);
 }
Beispiel #50
0
 public int InsertTab(int index, QIcon icon, string label)
 {
     return (int) interceptor.Invoke("insertTab$#$", "insertTab(int, const QIcon&, const QString&)", typeof(int), typeof(int), index, typeof(QIcon), icon, typeof(string), label);
 }
Beispiel #51
0
 public void AddItem(QIcon icon, string text, QVariant userData)
 {
     interceptor.Invoke("addItem#$#", "addItem(const QIcon&, const QString&, const QVariant&)", typeof(void), typeof(QIcon), icon, typeof(string), text, typeof(QVariant), userData);
 }
Beispiel #52
0
 /// <remarks>
 ///  Sets the icon associated with this match
 /// <param> name="icon" the icon to show along with the match
 ///          </param></remarks>        <short>    Sets the icon associated with this match </short>
 public void SetIcon(QIcon icon)
 {
     interceptor.Invoke("setIcon#", "setIcon(const QIcon&)", typeof(void), typeof(QIcon), icon);
 }
Beispiel #53
0
 public void AddItem(QIcon icon, string text)
 {
     interceptor.Invoke("addItem#$", "addItem(const QIcon&, const QString&)", typeof(void), typeof(QIcon), icon, typeof(string), text);
 }
Beispiel #54
0
Datei: Qt.cs Projekt: KDE/qyoto
 public static QDataStream Write(QDataStream arg1, QIcon arg2)
 {
     return (QDataStream) staticInterceptor.Invoke("operator<<##", "operator<<(QDataStream&, const QIcon&)", typeof(QDataStream), typeof(QDataStream), arg1, typeof(QIcon), arg2);
 }
Beispiel #55
0
 public void AddItem(QIcon icon, string text, QVariant userData)
 {
     interceptor.Invoke("addItem#$#", "addItem(const QIcon&, const QString&, const QVariant&)", typeof(void), typeof(QIcon), icon, typeof(string), text, typeof(QVariant), userData);
 }