]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/testprogs/examp/mainwindow.h
Change some icons around to make a little more senese with a status
[bacula/bacula] / bacula / src / qt-console / testprogs / examp / mainwindow.h
1  /****************************************************************************
2   *  **
3   *   ** Copyright (C) 2005-2007 Trolltech ASA. All rights reserved.
4   *    **
5   *     ** This file is part of the example classes of the Qt Toolkit.
6   *      **
7   *       ** This file may be used under the terms of the GNU General Public
8   *        ** License version 2.0 as published by the Free Software Foundation
9   *         ** and appearing in the file LICENSE.GPL included in the packaging of
10   *          ** this file.  Please review the following information to ensure GNU
11   *           ** General Public Licensing requirements will be met:
12   *            ** http://www.trolltech.com/products/qt/opensource.html
13   *             **
14   *              ** If you are unsure which license is appropriate for your use, please
15   *               ** review the following information:
16   *                ** http://www.trolltech.com/products/qt/licensing.html or contact the
17   *                 ** sales department at sales@trolltech.com.
18   *                  **
19   *                   ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20   *                    ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21   *                     **
22   *                      ****************************************************************************/
23
24  #ifndef MAINWINDOW_H
25  #define MAINWINDOW_H
26
27  #include <QMainWindow>
28
29  class QAction;
30  class QListWidget;
31  class QMenu;
32  class QTextEdit;
33
34  class MainWindow : public QMainWindow
35  {
36      Q_OBJECT
37
38  public:
39      MainWindow();
40
41  private slots:
42      void newLetter();
43      void save();
44      void print();
45      void undo();
46      void about();
47      void insertCustomer(const QString &customer);
48      void addParagraph(const QString &paragraph);
49
50  private:
51      void createActions();
52      void createMenus();
53      void createToolBars();
54      void createStatusBar();
55      void createDockWindows();
56
57      QTextEdit *textEdit;
58      QListWidget *customerList;
59      QListWidget *paragraphsList;
60
61      QMenu *fileMenu;
62      QMenu *editMenu;
63      QMenu *viewMenu;
64      QMenu *helpMenu;
65      QToolBar *fileToolBar;
66      QToolBar *editToolBar;
67      QAction *newLetterAct;
68      QAction *saveAct;
69      QAction *printAct;
70      QAction *undoAct;
71      QAction *aboutAct;
72      QAction *aboutQtAct;
73      QAction *quitAct;
74  };
75
76  #endif