This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

CModDocument.h

By: egor7 on Jul 12th, 2011  |  syntax: C++ (with Qt extensions)  |  size: 0.61 KB  |  views: 108  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #ifndef CMODDOCUMENT_H
  2. #define CMODDOCUMENT_H
  3.  
  4. #include <QWidget>
  5.  
  6. QT_BEGIN_NAMESPACE
  7. class QAction;
  8. class QToolBar;
  9. class QMainWindow;
  10. QT_END_NAMESPACE
  11.  
  12. class CModDocument: public QWidget
  13. {
  14.  
  15.         Q_OBJECT
  16.  
  17. public:
  18.         CModDocument(QWidget *parent = 0);
  19.  
  20.         QMainWindow *getMainWnd();
  21.  
  22. public slots:
  23.         void newFile();
  24.         void open();
  25.         bool save();
  26.         bool saveAs();
  27.  
  28. private:
  29.         void createActions();
  30.         void createToolBars();
  31.         void interCom();
  32.  
  33.         QMainWindow *mainWnd;
  34.  
  35.         QToolBar *fileToolBar;
  36.         QAction *newAct;
  37.         QAction *openAct;
  38.         QAction *saveAct;
  39.         QAction *saveAsAct;
  40. };
  41.  
  42. #endif // CMODDOCUMENT_H
clone this paste RAW Paste Data