Files
pokerth/src/gui/qt/settingsdialog/selectavatardialog/selectavatardialogimpl.h
T

67 lines
2.1 KiB
C++
Raw Normal View History

/*****************************************************************************
* PokerTH - The open source texas holdem engine *
* Copyright (C) 2006-2011 Felix Hammer, Florian Thauer, Lothar May *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Affero General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* 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 Affero General Public License for more details. *
* *
* You should have received a copy of the GNU Affero General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*****************************************************************************/ #ifndef SELECTAVATARDIALOGIMPL_H
2007-05-23 19:42:20 +00:00
#define SELECTAVATARDIALOGIMPL_H
#include "ui_selectavatardialog.h"
#include <QtCore>
#include <QtGui>
class ConfigFile;
2007-05-24 20:32:09 +00:00
class selectAvatarDialogImpl;
2007-05-23 19:42:20 +00:00
class selectAvatarDialogImpl: public QDialog, public Ui::selectAvatarDialog
{
Q_OBJECT
2007-05-23 19:42:20 +00:00
public:
selectAvatarDialogImpl(QWidget *parent = 0, ConfigFile *c = 0);
2007-05-23 19:42:20 +00:00
void exec();
2007-05-23 19:42:20 +00:00
public slots:
2007-05-25 11:22:51 +00:00
void toggleGroupBox1(bool);
void toggleGroupBox2(bool);
2007-06-03 21:27:02 +00:00
void isAccepted();
void isRejected();
2007-06-03 12:54:10 +00:00
QString getAvatarLink();
2007-06-03 21:27:02 +00:00
void setExternalAvatar();
bool getSettingsCorrect() const {
return settingsCorrect;
}
void refreshAvatarView();
2007-05-24 20:32:09 +00:00
2007-05-23 19:42:20 +00:00
private:
2007-05-23 19:42:20 +00:00
ConfigFile* myConfig;
2007-08-29 21:10:33 +00:00
2007-06-03 21:27:02 +00:00
bool settingsCorrect;
QString externalAvatar;
QString avatarDir;
2007-09-08 22:01:30 +00:00
QString myAppDataPath;
QStringList miscAvatarList;
QStringList peopleAvatarList;
2007-05-23 19:42:20 +00:00
};
#endif