mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
Reduce coupling between ValueEditors/Viewers and Set and StyleSheet.
- Adding of actions is done with an addAction function
- Files are read from
- getStylePackage for styling stuff (this is stylesheet)
- getLocalPackage for symbol and image values (this was the set)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@970 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
#include <gui/value/editor.hpp>
|
||||
#include <render/value/symbol.hpp>
|
||||
|
||||
class ValueActionPerformer;
|
||||
|
||||
// ----------------------------------------------------------------------------- : SymbolValueEditor
|
||||
|
||||
/// An editor 'control' for editing SymbolValues
|
||||
@@ -31,6 +33,10 @@ class SymbolValueEditor : public SymbolValueViewer, public ValueEditor {
|
||||
void drawButton(RotatedDC& dc, int button, const String& text);
|
||||
/// Is there a button at the given position? returns the button index, or -1 if there is no button
|
||||
int findButton(const RealPoint& pos);
|
||||
/// Show the symbol editor
|
||||
void editSymbol();
|
||||
/// Get an object to perform actions for us
|
||||
ValueActionPerformer* getActionPerformer();
|
||||
|
||||
// button, or -1 for mouse down, but not on button, or -2 for mouse not down
|
||||
int button_down;
|
||||
|
||||
Reference in New Issue
Block a user