Subversion Repositories public

Rev

Rev 276 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 276 Rev 278
Line 69... Line 69...
69
	   edFontPath->setUrl(sh.readEntry("FontPath", QString("/usr/share/fonts/truetype/ttf-dejavu")));
69
	   edFontPath->setUrl(sh.readEntry("FontPath", QString("/usr/share/fonts/truetype/ttf-dejavu")));
70
	else
70
	else
71
	   edFontPath->setUrl(sh.readEntry("FontPath", QString("")));
71
	   edFontPath->setUrl(sh.readEntry("FontPath", QString("")));
72
#endif
72
#endif
73
	edXmlFile->setUrl(sh.readEntry("XmlFile", basePath + "/shapefiles/osm.xml"));
73
	edXmlFile->setUrl(sh.readEntry("XmlFile", basePath + "/shapefiles/osm.xml"));
-
 
74
	bool geo = sh.readEntry("Geographic", false);
-
 
75
	rbForward->setChecked(geo);
-
 
76
	rbInverse->setChecked(!geo);
74
}
77
}
75
 
78
 
76
shapeWidget::~shapeWidget()
79
shapeWidget::~shapeWidget()
77
{
80
{
78
}
81
}
Line 106... Line 109...
106
	KConfigGroup sh (&cfg, "ShapeFile");
109
	KConfigGroup sh (&cfg, "ShapeFile");
107
	ic.writeEntry("MAP", edShapeFileSet->lineEdit()->text());
110
	ic.writeEntry("MAP", edShapeFileSet->lineEdit()->text());
108
	sh.writeEntry("PluginPath", edPluginPath->lineEdit()->text());
111
	sh.writeEntry("PluginPath", edPluginPath->lineEdit()->text());
109
	sh.writeEntry("FontPath", edFontPath->lineEdit()->text());
112
	sh.writeEntry("FontPath", edFontPath->lineEdit()->text());
110
	sh.writeEntry("XmlFile", edXmlFile->lineEdit()->text());
113
	sh.writeEntry("XmlFile", edXmlFile->lineEdit()->text());
-
 
114
	sh.writeEntry("Geographic", rbForward->isChecked());
111
	cfg.sync();
115
	cfg.sync();
112
	done(QDialog::Accepted);
116
	done(QDialog::Accepted);
113
}
117
}
114
 
118
 
-
 
119
void shapeWidget::slotForwarded(bool stat)
-
 
120
{
-
 
121
	if (!stat)
-
 
122
	{
-
 
123
	   rbForward->setChecked(true);
-
 
124
	   rbInverse->setChecked(false);
-
 
125
	}
-
 
126
}
-
 
127
 
-
 
128
void shapeWidget::slotInversed(bool stat)
-
 
129
{
-
 
130
	if (!stat)
-
 
131
	{
-
 
132
	   rbForward->setChecked(false);
-
 
133
	   rbInverse->setChecked(true);
-
 
134
	}
-
 
135
}
-
 
136
 
115
#include "shapewidget.moc"
137
#include "shapewidget.moc"
116
 
138