1 /*
2  *      dccdialog.h
3  *
4  *      Copyright 2009 David Vachulka <arch_dvx@users.sourceforge.net>
5  *
6  *      This program is free software; you can redistribute it and/or modify
7  *      it under the terms of the GNU General Public License as published by
8  *      the Free Software Foundation; either version 2 of the License, or
9  *      (at your option) any later version.
10  *
11  *      This program is distributed in the hope that it will be useful,
12  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *      GNU General Public License for more details.
15  *
16  *      You should have received a copy of the GNU General Public License
17  *      along with this program; if not, write to the Free Software
18  *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  *      MA 02110-1301, USA.
20  */
21 
22 
23 #ifndef DCCDIALOG_H
24 #define DCCDIALOG_H
25 
26 #include "defs.h"
27 #include "fxext.h"
28 
29 class DccDialog: public FXTopWindow
30 {
31     FXDECLARE(DccDialog)
32     public:
33         DccDialog(FXApp *app);
34         virtual ~DccDialog();
35 
36         virtual void create();
37 
38         long onClose(FXObject*,FXSelector,void*);
39         long onKeyPress(FXObject*,FXSelector,void*);
40         long onTimeout(FXObject*,FXSelector,void*);
41         long onClear(FXObject*,FXSelector,void*);
42         long onCanceled(FXObject*,FXSelector,void*);
43         long onRightClick(FXObject*,FXSelector,void*);
44         long onPopupCancel(FXObject*,FXSelector,void*);
45         long onTableChanged(FXObject*,FXSelector,void*);
46 
47     private:
DccDialog()48         DccDialog():m_contents(NULL),m_tableframe(NULL),m_matrix(NULL),m_buttonframe(NULL)
49         ,m_buttonClose(NULL),m_buttonClear(NULL),m_buttonCanceled(NULL),m_table(NULL)
50         ,m_path(NULL),m_ip(NULL),m_port(NULL),m_nick(NULL),m_group(NULL),m_indexOnRight(0)
51         {}
52         DccDialog(const DccDialog&);
53 
54         FXVerticalFrame *m_contents, *m_tableframe;
55         FXMatrix *m_matrix;
56         FXHorizontalFrame *m_buttonframe;
57         dxEXButton *m_buttonClose, *m_buttonClear, *m_buttonCanceled;
58         FXTable *m_table;
59         FXLabel *m_path, *m_ip, *m_port, *m_nick;
60         FXGroupBox *m_group;
61         FXint m_indexOnRight;
62 
63         void updateTable();
64 };
65 
66 #endif // DCCDIALOG_H
67