~weinzh/qfm/devel

« back to all changes in this revision

Viewing changes to gui/qfmmainwindow.h

  • Committer: Heinrich Weinz
  • Date: 2008-01-29 20:40:46 UTC
  • Revision ID: weinzh@googlemail.com-20080129204046-bvadhg6o8ce7o67r
Gamestar creation moved to qfmgame. Class qfmMain renamed in QfmMainWindow. Turn over implemented.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2008 by Heinrich Weinz                                  *
 
3
 *   weinzh@googlemail.com                                                 *
 
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 3 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 QFMMAINWINDOW_H
 
22
#define QFMMAINWINDOW_H
 
23
 
 
24
#include <QtGui/QMainWindow>
 
25
#include <QtCore/QDir>
 
26
#include <QtCore/QList>
 
27
#include "ui_mainwindow.h"
 
28
#include "qfmgame.h"
 
29
// #include "qfmcountry.h"
 
30
 
 
31
/**
 
32
* @author Heinrich Weinz
 
33
* @class QfmMain
 
34
* @date 01-14-2008
 
35
*/
 
36
class QfmMainWindow : public QMainWindow, public Ui::MainWindow {
 
37
    Q_OBJECT
 
38
public:
 
39
    QfmMainWindow(QWidget *parent = 0);
 
40
    ~QfmMainWindow();
 
41
private slots:
 
42
    void createActions();
 
43
    void newGame();
 
44
    void openGame();
 
45
    void saveGame();
 
46
    void quitGame();
 
47
    void setMenuBarVisibility(int);
 
48
signals:
 
49
    void setMenuBarVisibility(bool);
 
50
    void setStackedWidgetIndex( int );
 
51
    void quitGameSignal();
 
52
    void setFS();
 
53
private:
 
54
    QDir qfmUserDir; //qfm user directory
 
55
//     QList<QfmCountry*> m_countryList;
 
56
    QfmGame *game; //game
 
57
    void saveConfig();
 
58
    void readConfig();
 
59
};
 
60
 
 
61
#endif