QTfrontend/gameuiconfig.h
author displacer
Sun, 20 Aug 2006 15:22:26 +0000
changeset 120 87264c35b09a
parent 97 e7c1df9cce2c
child 127 ca70467bd0a8
permissions -rw-r--r--
flat buttons
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
84
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
     1
/*
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
     2
 * Hedgewars, a worms-like game
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
     3
 * Copyright (c) 2006 Andrey Korotaev <unC0Rr@gmail.com>
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
     4
 *
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
     5
 * Distributed under the terms of the BSD-modified licence:
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
     6
 *
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
     7
 * Permission is hereby granted, free of charge, to any person obtaining a copy
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
     8
 * of this software and associated documentation files (the "Software"), to deal
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
     9
 * with the Software without restriction, including without limitation the
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    10
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    11
 * sell copies of the Software, and to permit persons to whom the Software is
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    12
 * furnished to do so, subject to the following conditions:
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    13
 *
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    14
 * 1. Redistributions of source code must retain the above copyright notice,
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    15
 *    this list of conditions and the following disclaimer.
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    16
 * 2. Redistributions in binary form must reproduce the above copyright notice,
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    17
 *    this list of conditions and the following disclaimer in the documentation
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    18
 *    and/or other materials provided with the distribution.
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    19
 * 3. The name of the author may not be used to endorse or promote products
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    20
 *    derived from this software without specific prior written permission.
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    21
 *
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    22
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    23
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    24
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    25
 * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    26
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    27
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    28
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    29
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    30
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    31
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    32
 */
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    33
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    34
#ifndef GAMECONFIG_H
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    35
#define GAMECONFIG_H
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    36
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    37
#include <QObject>
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    38
#include <QDir>
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    39
#include <QStringList>
87
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
    40
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
    41
class HWForm;
84
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    42
85
44d9045b26ff New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents: 84
diff changeset
    43
class GameUIConfig : public QObject
84
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    44
{
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    45
	Q_OBJECT
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    46
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    47
public:
85
44d9045b26ff New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents: 84
diff changeset
    48
	GameUIConfig(HWForm * FormWidgets);
84
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    49
	QStringList GetTeamsList();
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    50
	int vid_Resolution();
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    51
	bool vid_Fullscreen();
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    52
	bool isSoundEnabled();
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    53
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    54
private slots:
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    55
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    56
public slots:
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    57
	void SaveOptions();
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    58
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    59
private:
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    60
	HWForm * Form;
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    61
};
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    62
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    63
#endif