Added dummy keyword panel; fixed directory finding; added more controls to style panel

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@86 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-11-21 16:26:22 +00:00
parent 7148d90bcb
commit 11a0276232
18 changed files with 204 additions and 32 deletions
+6 -2
View File
@@ -13,9 +13,10 @@
#include <util/reflect.hpp>
#include <util/io/reader.hpp>
#include <util/io/writer.hpp>
#include <script/value.hpp>
#include <wx/filename.h>
#include <wx/wfstream.h>
#include <script/value.hpp>
#include <wx/stdpaths.h>
// ----------------------------------------------------------------------------- : Extra types
@@ -131,8 +132,11 @@ StyleSheetSettings& Settings::stylesheetSettingsFor(const StyleSheet& stylesheet
return *ss;
}
/// Retrieve the directory to use for settings and other data files
String user_settings_dir() {
return _(""); // TODO
String dir = wxStandardPaths::Get().GetUserDataDir();
if (!wxDirExists(dir)) wxMkDir(dir);
return dir + _("/");
}
String Settings::settingsFile() {