aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/setup/SetupWizard.h
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2011-01-01 20:19:56 +0000
committerGravatar Szymon Tomasz Stefanek2011-01-01 20:19:56 +0000
commitc601b5a27f74b16158adafe429faefbe573e64a2 (patch)
treea3cde3206a45628f8ac86e8dfbdab70b20c3a831 /src/modules/setup/SetupWizard.h
parentprobable compilation fix for rijndaled/crypto++ (diff)
downloadKVIrc-c601b5a27f74b16158adafe429faefbe573e64a2.tar.gz
KVIrc-c601b5a27f74b16158adafe429faefbe573e64a2.tar.bz2
KVIrc-c601b5a27f74b16158adafe429faefbe573e64a2.zip
The big rename for modules. Still some details remaining.
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5284 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/setup/SetupWizard.h')
-rw-r--r--src/modules/setup/SetupWizard.h158
1 files changed, 158 insertions, 0 deletions
diff --git a/src/modules/setup/SetupWizard.h b/src/modules/setup/SetupWizard.h
new file mode 100644
index 000000000..88df3a4a5
--- /dev/null
+++ b/src/modules/setup/SetupWizard.h
@@ -0,0 +1,158 @@
+#ifndef _SETUPWIZARD_H_
+#define _SETUPWIZARD_H_
+//=============================================================================
+//
+// File : SetupWizard.h
+// Creation date : Sat Oct 6 02:06:51 2001 GMT by Szymon Stefanek
+//
+// This file is part of the KVIrc irc client distribution
+// Copyright (C) 2001-2010 Szymon Stefanek (pragma at kvirc dot net)
+//
+// This program is FREE software. You can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; either version 2
+// of the License, or (at your opinion) 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 General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, write to the Free Software Foundation,
+// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+//
+//=============================================================================
+
+#include "kvi_settings.h"
+#include "KviCString.h"
+#include "KviSelectors.h"
+#include "KviTalWizard.h"
+#include "KviTalVBox.h"
+#include "KviTalHBox.h"
+#include "KviTalGroupBox.h"
+
+#include <QLabel>
+#include <QPixmap>
+#include <QLineEdit>
+#include <QRadioButton>
+#include <QComboBox>
+#include <QCheckBox>
+#include <QGridLayout>
+
+class SetupWizard;
+
+
+class SetupPage : public QWidget
+{
+ Q_OBJECT
+public:
+ SetupPage(SetupWizard * w);
+ ~SetupPage();
+public:
+ KviTalVBox * m_pVBox;
+ QLabel * m_pPixmapLabel;
+ QLabel * m_pTextLabel;
+};
+
+
+#define THEME_APPLY_NONE 0
+#define THEME_APPLY_HIRES 1
+#define THEME_APPLY_LORES 2
+
+class SetupWizard : public KviTalWizard
+{
+ Q_OBJECT
+public:
+ SetupWizard();
+ ~SetupWizard();
+public:
+ QPixmap * m_pLabelPixmap;
+
+ SetupPage * m_pWelcome;
+ SetupPage * m_pLicense;
+ SetupPage * m_pDirectory;
+ SetupPage * m_pIdentity;
+ SetupPage * m_pTheme;
+ SetupPage * m_pDesktopIntegration;
+ SetupPage * m_pServers;
+
+ // Theme
+ QGroupBox * m_pThemeButtonGroup;
+
+ QRadioButton * m_pThemeHiRes;
+ QRadioButton * m_pThemeLoRes;
+ QRadioButton * m_pThemeNone;
+
+ // Welcome
+ QCheckBox * m_pCreateUrlHandlers;
+ QCheckBox * m_pCreateDesktopShortcut;
+
+ //Dir
+ QLineEdit * m_pDataPathEdit;
+ QLineEdit * m_pIncomingPathEdit;
+ KviTalGroupBox * m_pDirButtonGroup;
+ QRadioButton * m_pDirUsePrev;
+ QRadioButton * m_pDirUseNew;
+#if defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW)
+ QRadioButton * m_pDirMakePortable;
+#endif
+ //QRadioButton * m_pDirRestore;
+ QLineEdit * m_pOldDataPathEdit;
+ KviTalHBox * m_pOldPathBox;
+ KviTalHBox * m_pNewPathBox;
+ KviTalHBox * m_pNewIncomingBox;
+
+ //Identify
+ QComboBox * m_pAgeCombo;
+ QComboBox * m_pGenderCombo;
+
+ KviStringSelector * m_pNickSelector;
+ KviStringSelector * m_pRealNameSelector;
+ KviStringSelector * m_pLocationSelector;
+ KviStringSelector * m_pLanguagesSelector;
+ //KviStringSelector * m_pOtherInfoSelector;
+
+ //Servers
+ //KviTalGroupBox * m_pServersButtonGroup;
+ //QRadioButton * m_pServersChooseFromList;
+ //QRadioButton * m_pServersSpecifyManually;
+ //QRadioButton * m_pServersOpenIrcUrl;
+ //QRadioButton * m_pServersLoadConfig;
+#if defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW)
+ QString m_szMircServerIniFile;
+ QCheckBox * m_pUseMircServerList;
+#endif
+
+ QString m_szServerConfigFile;
+ QString m_szServerUrl;
+ QString m_szServerHost;
+ unsigned int m_uServerPort;
+
+ KviStringSelector * m_pServerHostSelector;
+ KviStringSelector * m_pServerUrlSelector;
+ //KviFileSelector * m_pServerConfigSelector;
+ KviUIntSelector *m_pServerPortSelector;
+
+protected:
+ void makeLink();
+ void setUrlHandlers();
+ virtual void showEvent(QShowEvent *e);
+public slots:
+ void chooseOldDataPath();
+ void chooseDataPath();
+ void chooseIncomingPath();
+ virtual void accept();
+ virtual void reject();
+
+ void oldDirClicked();
+ void newDirClicked();
+ void portableClicked();
+
+ void oldDataTextChanged ( const QString & );
+ void newDataTextChanged ( const QString & );
+ void newIncomingTextChanged ( const QString & );
+};
+
+
+#endif //_SETUPWIZARD_H_