mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-14 03:52:39 -04:00
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:
parent
13d099702c
commit
b91d9ab4b8
4 changed files with 89 additions and 63 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue