diff options
author | Alex Merry <alex.merry@cs.ox.ac.uk> | 2012-12-17 17:51:10 +0000 |
---|---|---|
committer | Alex Merry <alex.merry@cs.ox.ac.uk> | 2012-12-17 18:00:22 +0000 |
commit | 5ac1d383d2a89d22fbf54d688d64bf6a1036df6b (patch) | |
tree | 4633a52220e18eb0be7db5bae90d7b6e286c4d38 /tikzit/src/gtk/ContextWindow.h | |
parent | 410fdf146246e014f1598e1880b5326e75159c43 (diff) |
Factor out properties pane from properties window
PropertiesWindow is now ContextWindow.
Preparing for putting more stuff in this window.
Diffstat (limited to 'tikzit/src/gtk/ContextWindow.h')
-rw-r--r-- | tikzit/src/gtk/ContextWindow.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/tikzit/src/gtk/ContextWindow.h b/tikzit/src/gtk/ContextWindow.h new file mode 100644 index 0000000..7662fe4 --- /dev/null +++ b/tikzit/src/gtk/ContextWindow.h @@ -0,0 +1,48 @@ +/* + * Copyright 2011-2012 Alex Merry <dev@randomguy3.me.uk> + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#import "TZFoundation.h" +#import <gtk/gtk.h> + +@class Configuration; +@class EdgeStylesModel; +@class NodeStylesModel; +@class PropertiesPane; +@class StyleManager; +@class TikzDocument; + +@interface ContextWindow: NSObject { + GtkWidget *window; + GtkWidget *layout; + PropertiesPane *propsPane; +} + +@property (retain) TikzDocument *document; +@property (assign) BOOL visible; + +- (id) initWithStyleManager:(StyleManager*)mgr; +- (id) initWithNodeStylesModel:(NodeStylesModel*)nsm + andEdgeStylesModel:(EdgeStylesModel*)esm; + +- (void) present; + +- (void) loadConfiguration:(Configuration*)config; +- (void) saveConfiguration:(Configuration*)config; + +@end + +// vim:ft=objc:ts=8:et:sts=4:sw=4:foldmethod=marker |