mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
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:
@@ -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)
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user