~ubuntu-branches/ubuntu/wily/psi/wily-proposed

« back to all changes in this revision

Viewing changes to src/mainwin_p.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-08-28 18:46:52 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080828184652-iiik12dl91nq7cdi
Tags: 0.12-2
Uploading to unstable (Closes: Bug#494352)

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        EventNotifierAction(QObject *parent, const char *name = 0);
70
70
        ~EventNotifierAction();
71
71
 
72
 
        void setText(const QString &);
 
72
        void setMessage(const QString &);
73
73
        bool addTo (QWidget *w);
74
74
 
75
75
        void hide();
76
76
        void show();
 
77
        void updateVisibility();
77
78
 
78
79
        virtual IconAction *copy() const;
79
80
        virtual EventNotifierAction &operator=( const EventNotifierAction & );
130
131
        void doubleClicked();
131
132
};
132
133
 
133
 
class MAction : public IconAction
 
134
class MAction : public IconActionGroup
134
135
{
135
136
        Q_OBJECT
136
137
 
138
139
        MAction(PsiIcon, const QString &, int id, PsiCon *, QObject *parent);
139
140
        MAction(const QString &, int id, PsiCon *, QObject *parent);
140
141
 
141
 
        bool addTo(QWidget *w);
 
142
        // reimplemented
 
143
        virtual bool addTo(QWidget *);
142
144
 
143
145
        virtual IconAction *copy() const;
144
146
        virtual MAction &operator=( const MAction & );
148
150
 
149
151
private slots:
150
152
        void numAccountsChanged();
151
 
        void itemActivated(int n);
 
153
        void actionActivated();
 
154
        void slotActivated();
152
155
 
153
156
protected:
154
 
        void addingToolButton(IconToolButton *);
 
157
        // reimplemented
 
158
        virtual void doSetMenu(QMenu* menu);
155
159
 
156
160
private:
157
 
        class Private;
158
 
        Private *d;
 
161
        int id_;
 
162
        PsiCon* controller_;
159
163
 
160
 
        void init (PsiIcon, int id, PsiCon *psi);
 
164
        void init(const QString& name, PsiIcon, int id, PsiCon* psi);
 
165
        QList<PsiAccount*> accounts() const;
161
166
};
162
167
 
163
168
#endif