CPP   20

frame.h

Guest on 19th August 2021 01:24:52 AM

  1. /****************************************************************************
  2. ** $Id: qt/frame.h   3.3.6   edited Aug  $
  3. **
  4. ** Copyright (C)  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.  
  15. class QToolBox;
  16. class QStyle;
  17. class QWidgetStack;
  18.  
  19. class Frame : public QMainWindow
  20. {
  21.     Q_OBJECT
  22.  
  23. public:
  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.  
  31. private slots:
  32.     void setStyle( const QString& );
  33.  
  34. protected:
  35.     bool event( QEvent *e );
  36.  
  37. private:
  38.     QWidget *createCategoryPage( CategoryInterface *c );
  39.  
  40. private:
  41.     QToolBox *toolBox;
  42.     QWidgetStack *stack;
  43.     QIntDict<QWidget> categoryPages;
  44.     QPtrList<CategoryInterface> categories;
  45.  
  46. };

Raw Paste


Login or Register to edit or fork this paste. It's free.