Added SILC Thread Queue API
[crypto.git] / apps / silcer / src / SilcerMainDlg.hh
1 /*
2
3   SilcerMainDlg.hh
4
5   Author: Pekka Riikonen <priikone@silcnet.org>
6
7   Copyright (C) 2001 Pekka Riikonen
8
9   This program is free software; you can redistribute it and/or modify
10   it under the terms of the GNU General Public License as published by
11   the Free Software Foundation; version 2 of the License.
12
13   This program is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18 */
19
20 #ifndef SILCERMAINDLG_HH
21 #define SILCERMAINDLG_HH
22
23 #include "silcerbasewin.hh"
24 #include "silcerchatview.hh"
25 #include <gnome--/color-picker.h>
26 #include <gtk--/spinbutton.h>
27 #include <gtk--/notebook.h>
28 #include <gtk--/text.h>
29
30 class SilcerMainDlg : public SilcerBaseDialog
31 {
32 public:
33   SilcerMainDlg(void);
34   ~SilcerMainDlg(void);
35
36   // Print message to output box
37   void print(const string message);
38   void print(const string message, const string nickname);
39
40 protected:
41   // Events
42   gint InputBoxKeyPress(GdkEventKey *key);
43
44 private:
45   SilcerChatView *_ChatView;
46   GCompletion *_Completer;
47   Gtk::HBox *_OutputBox;
48   Gtk::Text *_InputBox;
49   Gtk::Notebook *_Tab;
50 };
51
52 #endif /* SILCERMAINDLG */