Subversion Repositories Projects

Rev

Rev 674 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
674 KeyOz 1
/***************************************************************************
2
 *   Copyright (C) 2008 by Manuel Schrape                                  *
3
 *   manuel.schrape@gmx.de                                                 *
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.        *
8
 *                                                                         *
9
 *   This program is distributed in the hope that it will be useful,       *
10
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12
 *   GNU General Public License for more details.                          *
13
 *                                                                         *
14
 *   You should have received a copy of the GNU General Public License     *
15
 *   along with this program; if not, write to the                         *
16
 *   Free Software Foundation, Inc.,                                       *
17
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
18
 ***************************************************************************/
19
#ifndef CSETTINGS_H
20
#define CSETTINGS_H
21
 
22
#include <QSize>
23
#include <QPoint>
24
#include <QString>
25
 
26
#include "../Defines.h"
27
 
28
struct set_GUI
29
{
30
    bool   isMax;
31
    QSize  Size;
32
    QPoint Point;
33
    bool   Toolbar;
34
};
35
 
36
struct set_CONFIG
37
{
38
    bool cb_Goto;
39
    bool cb_ShowRoute;
40
    bool cb_ShowWPs;
41
    bool cb_CenterPos;
42
};
43
 
44
struct set_NAVI
45
{
46
    int StayTime;
47
    double Latitude;
48
    double Longitude;
49
};
50
 
51
class cSettings
52
{
53
    public:
54
        cSettings();
55
        void read_Settings();
56
        void write_Settings();
57
 
58
        int Settings_ID;
59
 
60
        set_GUI       GUI;
61
        set_CONFIG    CONFIG;
62
        set_NAVI      NAVI;
63
};
64
 
65
#endif // CSETTINGS_H