-fixed RWindow

-MainWindow uses now RWindow for storing size and position
-added stringlist header for GeneralDialog

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@688 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2008-08-15 20:07:54 +00:00
parent 2f30ee6b1d
commit 483118daec
8 changed files with 34 additions and 32 deletions

View file

@ -22,6 +22,7 @@
#include "rshare.h"
#include "GeneralDialog.h"
#include <util/stringutil.h>
#include <QSystemTrayIcon>
/** Constructor */
@ -60,9 +61,7 @@ GeneralDialog::~GeneralDialog()
/** Saves the changes on this page */
bool
GeneralDialog::save(QString &errmsg)
{
Q_UNUSED(errmsg);
{
_settings->setValue(QString::fromUtf8("StartMinimized"), startMinimized());
_settings->setRunRetroshareOnBoot(
@ -74,11 +73,9 @@ GeneralDialog::save(QString &errmsg)
/** Loads the settings for this page */
void
GeneralDialog::load()
{
{
ui.chkRunRetroshareAtSystemStartup->setChecked(
_settings->runRetroshareOnBoot());
ui.checkStartMinimized->setChecked(_settings->value(QString::fromUtf8("StartMinimized"), false).toBool());

View file

@ -22,6 +22,7 @@
#ifndef _GENERALDIALOG_H
#define _GENERALDIALOG_H
#include <QtGui>
#include <QFileDialog>
#include <QLineEdit>
@ -54,7 +55,7 @@ private slots:
private:
/** A RetroShare Settings object used for saving/loading settings */
RshareSettings* _settings;
RshareSettings *_settings;