Subversion Repositories public

Rev

Rev 153 | Rev 232 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 153 Rev 157
Line 27... Line 27...
27
#include "wmsbase.h"
27
#include "wmsbase.h"
28
 
28
 
29
wmsbase::wmsbase ( QWidget* parent, const char* name, bool modal, WFlags fl )
29
wmsbase::wmsbase ( QWidget* parent, const char* name, bool modal, WFlags fl )
30
		: wmswidgetbase ( parent,name, modal,fl )
30
		: wmswidgetbase ( parent,name, modal,fl )
31
{
31
{
32
KHistoryCombo *cb;
-
 
33
QDir dir = QDir::home();
32
QDir dir = QDir::home();
34
QString path = dir.absPath();
33
QString path = dir.absPath();
35
 
34
 
36
	// Load the config parameters
35
	// Load the config parameters
37
 
36
 
Line 46... Line 45...
46
	cbVersion->setCurrentItem (cfg->readNumEntry("Version", 0));
45
	cbVersion->setCurrentItem (cfg->readNumEntry("Version", 0));
47
	edStyles->setText (cfg->readEntry("Styles"));
46
	edStyles->setText (cfg->readEntry("Styles"));
48
	cbTile->setCurrentItem (cfg->readNumEntry("Tile", 2));
47
	cbTile->setCurrentItem (cfg->readNumEntry("Tile", 2));
49
	edDepth->setValue (cfg->readNumEntry("Depth", 2));
48
	edDepth->setValue (cfg->readNumEntry("Depth", 2));
50
	edOverview->setValue (cfg->readNumEntry("Overview", 10));
49
	edOverview->setValue (cfg->readNumEntry("Overview", 10));
-
 
50
	chSquare->setChecked (cfg->readBoolEntry("Square", false));
51
	chOffline->setChecked (cfg->readBoolEntry("Offline", false));
51
	chOffline->setChecked (cfg->readBoolEntry("Offline", false));
52
	chAdvice->setChecked (cfg->readBoolEntry("Advice", false));
52
	chAdvice->setChecked (cfg->readBoolEntry("Advice", false));
53
	chVerify->setChecked (cfg->readBoolEntry("Verify", true));
53
	chVerify->setChecked (cfg->readBoolEntry("Verify", true));
-
 
54
	edCorrX->setValue (cfg->readNumEntry("CorrX", 0));
-
 
55
	edCorrY->setValue (cfg->readNumEntry("CorrY", 0));
54
	delete cfg;
56
	delete cfg;
55
}
57
}
56
 
58
 
57
wmsbase::~wmsbase()
59
wmsbase::~wmsbase()
58
{
60
{
Line 78... Line 80...
78
	cfg->writeEntry("Version", cbVersion->currentItem());
80
	cfg->writeEntry("Version", cbVersion->currentItem());
79
	cfg->writeEntry("Styles", edStyles->text());
81
	cfg->writeEntry("Styles", edStyles->text());
80
	cfg->writeEntry("Tile", cbTile->currentItem());
82
	cfg->writeEntry("Tile", cbTile->currentItem());
81
	cfg->writeEntry("Depth", edDepth->value());
83
	cfg->writeEntry("Depth", edDepth->value());
82
	cfg->writeEntry("Overview", edOverview->value());
84
	cfg->writeEntry("Overview", edOverview->value());
-
 
85
	cfg->writeEntry("Square", chSquare->isChecked());
83
	cfg->writeEntry("Offline", chOffline->isChecked());
86
	cfg->writeEntry("Offline", chOffline->isChecked());
84
	cfg->writeEntry("Advice", chAdvice->isChecked());
87
	cfg->writeEntry("Advice", chAdvice->isChecked());
85
	cfg->writeEntry("Verify", chVerify->isChecked());
88
	cfg->writeEntry("Verify", chVerify->isChecked());
-
 
89
	cfg->writeEntry("CorrX", edCorrX->value());
-
 
90
	cfg->writeEntry("CorrY", edCorrY->value());
86
	cfg->sync();
91
	cfg->sync();
87
	delete cfg;
92
	delete cfg;
88
	done(QDialog::Accepted);
93
	done(QDialog::Accepted);
89
}
94
}
90
 
95