From 5ac1d383d2a89d22fbf54d688d64bf6a1036df6b Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Mon, 17 Dec 2012 17:51:10 +0000 Subject: Factor out properties pane from properties window PropertiesWindow is now ContextWindow. Preparing for putting more stuff in this window. --- tikzit/src/gtk/ContextWindow.h | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 tikzit/src/gtk/ContextWindow.h (limited to 'tikzit/src/gtk/ContextWindow.h') 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 + * + * 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 . + */ + +#import "TZFoundation.h" +#import + +@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 -- cgit v1.2.3