diff options
author | Alex Merry <alex.merry@cs.ox.ac.uk> | 2012-12-14 15:03:33 +0000 |
---|---|---|
committer | Alex Merry <alex.merry@cs.ox.ac.uk> | 2012-12-14 15:03:33 +0000 |
commit | 2ab14c0fb8dbf8850423fbb2e38a24ea881a8e49 (patch) | |
tree | ca4f2b3c89b5326cb3b24cbb0290cb9d23e464ea /tikzit/src/gtk/EdgeStyleSelector.h | |
parent | da7ca216f1d79ee1d79ad5d0ba270b09247a87b7 (diff) |
Factor out the model for the edge style selector
This allows us to use it in other widgets.
Diffstat (limited to 'tikzit/src/gtk/EdgeStyleSelector.h')
-rw-r--r-- | tikzit/src/gtk/EdgeStyleSelector.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/tikzit/src/gtk/EdgeStyleSelector.h b/tikzit/src/gtk/EdgeStyleSelector.h index 1ae1f3c..904bd93 100644 --- a/tikzit/src/gtk/EdgeStyleSelector.h +++ b/tikzit/src/gtk/EdgeStyleSelector.h @@ -17,25 +17,27 @@ #import "TZFoundation.h" #import <gtk/gtk.h> -#import "StyleManager.h" + +@class EdgeStyle; +@class EdgeStylesModel; +@class StyleManager; @interface EdgeStyleSelector: NSObject { - GtkListStore *store; + EdgeStylesModel *model; GtkTreeView *view; - StyleManager *styleManager; } /*! @property widget @brief The GTK widget */ -@property (readonly) GtkWidget *widget; +@property (readonly) GtkWidget *widget; /*! - @property manager - @brief The StyleManager to use. Default is [StyleManager manager] + @property model + @brief The model to use. */ -@property (retain) StyleManager *styleManager; +@property (retain) EdgeStylesModel *model; /*! @property selectedStyle @@ -43,16 +45,16 @@ When this changes, a SelectedStyleChanged notification will be posted */ -@property (assign) EdgeStyle *selectedStyle; +@property (assign) EdgeStyle *selectedStyle; /*! - * Initialise with the default style manager + * Initialise with a new model for the given style manager */ -- (id) init; +- (id) initWithStyleManager:(StyleManager*)m; /*! - * Initialise with the given style manager + * Initialise with the given model */ -- (id) initWithStyleManager:(StyleManager*)m; +- (id) initWithModel:(EdgeStylesModel*)model; @end |