2011-07-02 23:03:18 +00:00
|
|
|
/*****************************************************************************
|
|
|
|
|
* 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/>. *
|
2011-07-03 19:45:08 +00:00
|
|
|
*****************************************************************************/
|
|
|
|
|
#ifndef SELECTAVATARDIALOGIMPL_H
|
2007-05-23 19:42:20 +00:00
|
|
|
#define SELECTAVATARDIALOGIMPL_H
|
|
|
|
|
|
2012-01-24 20:48:38 +00:00
|
|
|
#ifdef GUI_800x480
|
|
|
|
|
#include "ui_selectavatardialog_800x480.h"
|
|
|
|
|
#else
|
2007-05-23 19:42:20 +00:00
|
|
|
#include "ui_selectavatardialog.h"
|
2012-01-24 20:48:38 +00:00
|
|
|
#endif
|
2007-05-23 19:42:20 +00:00
|
|
|
|
|
|
|
|
#include <QtCore>
|
|
|
|
|
#include <QtGui>
|
|
|
|
|
|
|
|
|
|
class ConfigFile;
|
2007-05-24 20:32:09 +00:00
|
|
|
class selectAvatarDialogImpl;
|
2007-05-23 19:42:20 +00:00
|
|
|
|
2011-02-11 20:02:08 +00:00
|
|
|
class selectAvatarDialogImpl: public QDialog, public Ui::selectAvatarDialog
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2007-05-23 19:42:20 +00:00
|
|
|
public:
|
2011-02-11 20:02:08 +00:00
|
|
|
selectAvatarDialogImpl(QWidget *parent = 0, ConfigFile *c = 0);
|
|
|
|
|
|
2007-05-23 19:42:20 +00:00
|
|
|
void exec();
|
|
|
|
|
|
2011-02-11 20:02:08 +00:00
|
|
|
|
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();
|
2011-02-11 20:02:08 +00:00
|
|
|
|
2007-06-03 12:54:10 +00:00
|
|
|
QString getAvatarLink();
|
2007-06-03 21:27:02 +00:00
|
|
|
void setExternalAvatar();
|
|
|
|
|
|
2011-02-11 20:02:08 +00:00
|
|
|
bool getSettingsCorrect() const {
|
|
|
|
|
return settingsCorrect;
|
|
|
|
|
}
|
2007-09-11 09:32:49 +00:00
|
|
|
|
|
|
|
|
void refreshAvatarView();
|
2011-02-11 20:02:08 +00:00
|
|
|
|
2007-05-24 20:32:09 +00:00
|
|
|
|
2007-05-23 19:42:20 +00:00
|
|
|
private:
|
2011-02-11 20:02:08 +00:00
|
|
|
|
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;
|
2007-06-13 08:03:59 +00:00
|
|
|
QString avatarDir;
|
2007-09-08 22:01:30 +00:00
|
|
|
QString myAppDataPath;
|
2007-09-11 09:32:49 +00:00
|
|
|
QStringList miscAvatarList;
|
|
|
|
|
QStringList peopleAvatarList;
|
|
|
|
|
|
2007-05-23 19:42:20 +00:00
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|