source: trunk/examples/demo/frame.h@ 203

Last change on this file since 203 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: 1.1 KB
Line 
1/****************************************************************************
2** $Id: frame.h 160 2006-12-11 20:15:57Z dmik $
3**
4** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
5**
6** This file is part of an example program for Qt. This example
7** program may be used, distributed and modified without limitation.
8**
9*****************************************************************************/
10
11#include <qmainwindow.h>
12#include <qintdict.h>
13#include "categoryinterface.h"
14
15class QToolBox;
16class QStyle;
17class QWidgetStack;
18
19class Frame : public QMainWindow
20{
21 Q_OBJECT
22
23public:
24 Frame( QWidget *parent=0, const char *name=0 );
25 void setCategories( const QPtrList<CategoryInterface> &l );
26
27 static void updateTranslators();
28
29 QWidgetStack *widgetStack() const { return stack; }
30
31private slots:
32 void setStyle( const QString& );
33
34protected:
35 bool event( QEvent *e );
36
37private:
38 QWidget *createCategoryPage( CategoryInterface *c );
39
40private:
41 QToolBox *toolBox;
42 QWidgetStack *stack;
43 QIntDict<QWidget> categoryPages;
44 QPtrList<CategoryInterface> categories;
45
46};
Note: See TracBrowser for help on using the repository browser.