blob: 7b43af33e2e3daa75daea5b0efea2cf25d605bc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
#ifndef _KVI_TOOLWINDOWS_CONTAINER_H_
#define _KVI_TOOLWINDOWS_CONTAINER_H_
#include "kvi_tal_widgetstack.h"
#include "kvi_tal_vbox.h"
#include <tqtoolbutton.h>
#include <tqobjectcleanuphandler.h>
#include <tqpushbutton.h>
#include "kvi_heapobject.h"
#include "kvi_styled_controls.h"
class KviWindowToolWidget;
class KviWindowToolPageButton;
// FIXME: these classes are probably useless now... no ?
// Pragma: KviWindowToolPageButton is actually used in kvi_window.h and others (need to fix the name and move
// it to its own file.
class KVIRC_API KviWindowToolWidget : public TQWidget
{
Q_OBJECT
TQ_OBJECT
public:
KviWindowToolWidget( TQWidget * tqparent,KviWindowToolPageButton* button/*, const char * name = 0, WFlags f = 0 */);
~KviWindowToolWidget();
void setAutoDelete(bool b) { m_bAutoDelete=b; };
bool autoDelete() { return m_bAutoDelete; };
virtual void registerSelf();
virtual void unregisterSelf();
/*public slots:
virtual void hide ();
virtual void show ();*/
protected:
// KviToolWindowsContainer *m_pContainer;
KviWindowToolPageButton *m_pButton;
bool m_bAutoDelete;
bool m_bHidden;
// TQObjectCleanupHandler m_ObjectHandler;
};
#ifdef COMPILE_USE_QT4
#define TOOL_PAGE_PARENT TQPushButton
#else
#define TOOL_PAGE_PARENT KviStyledToolButton
#endif
class KVIRC_API KviWindowToolPageButton : public TOOL_PAGE_PARENT
{
Q_OBJECT
TQ_OBJECT
public:
KviWindowToolPageButton ( int pixon,int pixoff, const TQString & text, TQWidget * tqparent,bool bOn=0,const char * name = 0 );
~KviWindowToolPageButton();
/*protected:
virtual void drawButton ( TQPainter * painter);*/
};
#endif //_KVI_TOOLWINDOWS_CONTAINER_H_
|