Root/
Source at commit 647931addb12cce55a27deb479a271079646b511 created 13 years 11 months ago. By Mirko Lindner, test fcts | |
---|---|
1 | /*************************************************************************** |
2 | * Copyright (C) 2010 by Mirko Lindner * |
3 | * mirko@sharism.cc * |
4 | * * |
5 | * This program is free software; you can redistribute it and/or modify * |
6 | * it under the terms of the GNU General Public License as published by * |
7 | * the Free Software Foundation; either version 2 of the License, or * |
8 | * (at your option) any later version. * |
9 | * * |
10 | * This program is distributed in the hope that it will be useful, * |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
13 | * GNU General Public License for more details. * |
14 | * * |
15 | * You should have received a copy of the GNU General Public License * |
16 | * along with this program; if not, write to the * |
17 | * Free Software Foundation, Inc., * |
18 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
19 | ***************************************************************************/ |
20 | |
21 | #ifndef QMAIN_H |
22 | #define QMAIN_H |
23 | |
24 | #include <QMainWindow> |
25 | #include <string> |
26 | #include "htmlarea.h" |
27 | |
28 | |
29 | class QMain : public QMainWindow |
30 | { |
31 | Q_OBJECT |
32 | |
33 | public: |
34 | QMain(std::string); |
35 | std::string fileLocation; |
36 | ~QMain(); |
37 | |
38 | private: |
39 | void registerCommands(); |
40 | HtmlArea *centralWidget; |
41 | QAction *randomArticleAct; |
42 | QAction *searchArticleAct; |
43 | QAction *displayHelpAct; |
44 | QAction *quitAct; |
45 | QAction *goToTopAct; |
46 | |
47 | private Q_SLOTS: |
48 | void displayHelp(); |
49 | void searchDialog(); |
50 | }; |
51 | |
52 | #endif |
Branches:
master