You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdegames/atlantik/client/configdlg.h

145 lines
3.0 KiB

// Copyright (c) 2002-2004 Rob Kaper <cap@capsi.com>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// version 2 as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; see the file COPYING. If not, write to
// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
// Boston, MA 02110-1301, USA.
#ifndef ATLANTIK_CONFIGDLG_H
#define ATLANTIK_CONFIGDLG_H
#include <tqwidget.h>
#include <tqcheckbox.h>
#include <tqlineedit.h>
#include <kdialogbase.h>
class TQString;
class KPushButton;
class Atlantik;
class ConfigDialog;
struct AtlantikConfig;
class ConfigPlayer : public TQWidget
{
Q_OBJECT
TQ_OBJECT
public:
ConfigPlayer(ConfigDialog *configDialog, TQWidget *tqparent, const char *name=0);
TQString playerName();
TQString playerImage();
private slots:
void chooseImage();
private:
void setImage();
void reset();
ConfigDialog *m_configDialog;
TQLineEdit *m_playerName;
TQString m_playerImage;
KPushButton *m_playerIcon;
};
class ConfigBoard : public TQWidget
{
Q_OBJECT
TQ_OBJECT
public:
ConfigBoard(ConfigDialog *configDialog, TQWidget *tqparent, const char *name=0);
bool indicateUnowned();
bool highliteUnowned();
bool darkenMortgaged();
bool animateToken();
bool quartzEffects();
private:
void reset();
ConfigDialog *m_configDialog;
TQCheckBox *m_indicateUnowned, *m_highliteUnowned, *m_darkenMortgaged, *m_animateToken, *m_quartzEffects;
};
class ConfigMonopigator : public TQWidget
{
Q_OBJECT
TQ_OBJECT
public:
ConfigMonopigator(ConfigDialog *dialog, TQWidget *tqparent, const char *name = 0);
bool connectOnStart();
bool hideDevelopmentServers();
private:
void reset();
ConfigDialog *m_configDialog;
TQCheckBox *m_connectOnStart, *m_hideDevelopmentServers;
};
class ConfigGeneral : public TQWidget
{
Q_OBJECT
TQ_OBJECT
public:
ConfigGeneral(ConfigDialog *dialog, TQWidget *tqparent, const char *name = 0);
bool chatTimestamps();
private:
void reset();
ConfigDialog *m_configDialog;
TQCheckBox *m_chatTimestamps;
};
class ConfigDialog : public KDialogBase
{
Q_OBJECT
TQ_OBJECT
public:
ConfigDialog(Atlantik *tqparent, const char *name=0);
bool chatTimestamps();
bool indicateUnowned();
bool highliteUnowned();
bool darkenMortgaged();
bool animateToken();
bool quartzEffects();
AtlantikConfig config();
TQString playerName();
TQString playerImage();
bool connectOnStart();
bool hideDevelopmentServers();
private:
Atlantik *m_parent;
TQFrame *p_general, *p_p13n, *p_board, *p_monopigator;
ConfigPlayer *configPlayer;
ConfigBoard *configBoard;
ConfigMonopigator *configMonopigator;
ConfigGeneral *configGeneral;
};
#endif