command line argument support

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@167 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-24 15:17:30 +00:00
parent ca3b7b91b4
commit 99867b0c0b
3 changed files with 34 additions and 13 deletions
+5 -2
View File
@@ -26,8 +26,11 @@ SymbolWindow::SymbolWindow(Window* parent) {
}
SymbolWindow::SymbolWindow(Window* parent, const String& filename) {
// TODO : open file
init(parent, default_symbol());
// open file
Reader reader(filename);
SymbolP symbol;
reader.handle(symbol);
init(parent, symbol);
}
SymbolWindow::SymbolWindow(Window* parent, const SymbolValueP& value, const SetP& set)
+1 -1
View File
@@ -27,7 +27,7 @@ class SymbolWindow : public Frame {
SymbolWindow(Window* parent);
/// Construct a SymbolWindow showing a symbol from a file
SymbolWindow(Window* parent, const String& filename);
// /// Construct a SymbolWindow showing a symbol value in a set
/// Construct a SymbolWindow showing a symbol value in a set
SymbolWindow(Window* parent, const SymbolValueP& value, const SetP& set);
private: