~ubuntu-branches/ubuntu/karmic/psi/karmic

« back to all changes in this revision

Viewing changes to src/groupchatdlg.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:
24
24
#include <QWidget>
25
25
#include <QDialog>
26
26
 
 
27
 
 
28
#include "advwidget.h"
 
29
#include "tabbablewidget.h"
 
30
 
27
31
#include "ui_groupchatdlg.h"
28
32
#include "mucmanager.h"
29
33
#include "advwidget.h"
56
60
        void keyPressEvent(QKeyEvent *);
57
61
};*/
58
62
 
59
 
class GCMainDlg : public AdvancedWidget<QWidget>
 
63
class GCMainDlg : public TabbableWidget
60
64
{
61
65
        Q_OBJECT
62
66
public:
63
 
        GCMainDlg(PsiAccount *, const Jid &);
 
67
        GCMainDlg(PsiAccount *, const Jid &, TabManager *tabManager);
64
68
        ~GCMainDlg();
65
69
 
66
 
        Jid jid() const;
67
70
        PsiAccount* account() const;
68
71
 
69
72
        void error(int, const QString &);
73
76
        void setPassword(const QString&);
74
77
        const QString& nick() const;
75
78
 
 
79
        // reimplemented
 
80
        virtual TabbableWidget::State state() const;
 
81
        virtual int unreadMessageCount() const;
 
82
        virtual QString desiredCaption() const;
 
83
 
76
84
protected:
77
85
        void setShortcuts();
78
86
 
79
87
        // reimplemented
80
 
        void keyPressEvent(QKeyEvent *);
81
88
        void dragEnterEvent(QDragEnterEvent *);
82
89
        void dropEvent(QDropEvent *);
83
90
        void closeEvent(QCloseEvent *);
84
91
        void resizeEvent(QResizeEvent*);
85
 
 
86
 
        void windowActivationChange(bool);
87
92
        void mucInfoDialog(const QString& title, const QString& message, const Jid& actor, const QString& reason);
88
93
 
89
94
signals:
90
95
        void aSend(const Message &);
91
96
 
92
97
public slots:
 
98
        // reimplemented
 
99
        virtual void deactivated();
 
100
        virtual void activated();
 
101
        virtual void ensureTabbedCorrectly();
 
102
 
93
103
        void optionsUpdate();
94
 
 
 
104
        
95
105
private slots:
96
106
        void scrollUp();
97
107
        void scrollDown();
100
110
        void openFind();
101
111
        void configureRoom();
102
112
        void doFind(const QString &);
103
 
        void flashAnimate();
104
113
        void pa_updatedActivity();
105
114
        void goDisc();
106
115
        void goConn();
125
134
        Private *d;
126
135
        Ui::GroupChatDlg ui_;
127
136
 
128
 
        void doFlash(bool);
129
137
        void doAlert();
130
 
        void updateCaption();
131
138
        void appendSysMsg(const QString &, bool, const QDateTime &ts=QDateTime());
132
139
        void appendMessage(const Message &, bool);
 
140
        void updateLastMsgTime(QDateTime t);
133
141
        void setLooks();
134
142
 
135
143
        void contextMenuEvent(QContextMenuEvent *);
138
146
        QMap<QString,int> nicks;
139
147
        int nicknumber;
140
148
        PsiOptions* options_;
 
149
        QDateTime lastMsgTime_;
141
150
};
142
151
 
143
152
class GCFindDlg : public QDialog