Last change
on this file was 160, checked in by dmik, 19 years ago |
Imported table and iconview modules and a bunch of dependent examples from the official release 3.3.1 from Trolltech.
|
-
Property svn:keywords
set to
Id
|
File size:
718 bytes
|
Line | |
---|
1 | #ifndef CATEGORYINTERFACE_H
|
---|
2 | #define CATEGORYINTERFACE_H
|
---|
3 |
|
---|
4 | #include <qstring.h>
|
---|
5 | #include <qiconset.h>
|
---|
6 | #include <qobject.h>
|
---|
7 |
|
---|
8 | class QWidgetStack;
|
---|
9 |
|
---|
10 | class CategoryInterface : public QObject
|
---|
11 | {
|
---|
12 | Q_OBJECT
|
---|
13 |
|
---|
14 | public:
|
---|
15 | CategoryInterface( QWidgetStack *s ) : stack( s ) {}
|
---|
16 | virtual ~CategoryInterface() {}
|
---|
17 | virtual QString name() const = 0;
|
---|
18 | virtual QIconSet icon() const = 0;
|
---|
19 | virtual int numCategories() const = 0;
|
---|
20 | virtual QString categoryName( int i ) const = 0;
|
---|
21 | virtual QIconSet categoryIcon( int i ) const = 0;
|
---|
22 | virtual int categoryOffset() const = 0;
|
---|
23 |
|
---|
24 | public slots:
|
---|
25 | virtual void setCurrentCategory( int i ) = 0;
|
---|
26 |
|
---|
27 | protected:
|
---|
28 | QWidgetStack *stack;
|
---|
29 |
|
---|
30 | };
|
---|
31 |
|
---|
32 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.