added changes from GeneralDialog to GeneralPage

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1546 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-08-17 21:19:50 +00:00
parent 13d099702c
commit b91d9ab4b8
4 changed files with 89 additions and 63 deletions

View file

@ -20,47 +20,50 @@
* Boston, MA 02110-1301, USA.
****************************************************************/
#ifndef GENERALPAGE_H
# define GENERALPAGE_H
#ifndef _GENERALPAGE_H
#define _GENERALPAGE_H
#include <QStyleFactory>
#include <QtGui>
#include <QFileDialog>
#include <QLineEdit>
#include "gui/Preferences/rsharesettings.h"
#include "lang/languagesupport.h"
# include <QtGui/QWidget>
# include "ui_GeneralPage.h"
#include "ui_GeneralPage.h"
class GeneralPage: public QWidget
class GeneralPage : public QWidget
{
Q_OBJECT
public:
GeneralPage(QWidget * parent = 0, Qt::WFlags flags = 0);
~GeneralPage() {}
/** Saves the changes on this page */
bool save(QString &errmsg);
/** Loads the settings for this page */
void load();
bool startMinimized() const;
public:
/** Default Constructor */
GeneralPage(QWidget * parent = 0, Qt::WFlags flags = 0);
/** Default Destructor */
~GeneralPage() {}
private slots:
/** Saves the changes on this page */
bool save(QString &errmsg);
/** Loads the settings for this page */
void load();
bool startMinimized() const;
bool quit() const;
/** Called when the "show on startup" checkbox is toggled. */
void toggleShowOnStartup(bool checked);
private:
/** A VidaliaSettings object used for saving/loading settings */
RshareSettings* _settings;
void closeEvent (QCloseEvent * event);
Ui::GeneralPage ui;
private slots:
/** Called when the "show on startup" checkbox is toggled. */
void toggleShowOnStartup(bool checked);
private:
/** A RetroShare Settings object used for saving/loading settings */
RshareSettings *_settings;
/** Qt Designer generated object */
Ui::GeneralPage ui;
};
#endif // !GENERALPAGE_H
#endif