summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/Menu.h
diff options
context:
space:
mode:
Diffstat (limited to 'tikzit/src/gtk/Menu.h')
-rw-r--r--tikzit/src/gtk/Menu.h43
1 files changed, 14 insertions, 29 deletions
diff --git a/tikzit/src/gtk/Menu.h b/tikzit/src/gtk/Menu.h
index 5a364e4..e0f78d4 100644
--- a/tikzit/src/gtk/Menu.h
+++ b/tikzit/src/gtk/Menu.h
@@ -1,10 +1,6 @@
/*
* Copyright 2011 Alex Merry <alex.merry@kdemail.net>
*
- * Stuff stolen from glade-window.c in Glade:
- * Copyright (C) 2001 Ximian, Inc.
- * Copyright (C) 2007 Vincent Geddes.
- *
* 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
@@ -22,21 +18,19 @@
#import "TZFoundation.h"
#import <gtk/gtk.h>
-@class MainWindow;
+@class Window;
@class PickSupport;
/**
- * Manages the menu and toolbar for the main window.
+ * Manages the menu
*/
@interface Menu: NSObject {
- MainWindow *mainWindow;
- GtkUIManager *ui;
- GtkActionGroup *staticActions;
- GtkActionGroup *documentActions;
-// GtkActionGroup *documents_list_menu_actions;
- GtkAction *undoAction;
- GtkAction *redoAction;
- GtkAction *pasteAction;
+ GtkWidget *menubar;
+ GtkActionGroup *appActions;
+ GtkActionGroup *windowActions;
+ GtkAction *undoAction; // no ref
+ GtkAction *redoAction; // no ref
+ GtkAction *pasteAction; // no ref
GtkAction **nodeSelBasedActions;
guint nodeSelBasedActionCount;
GtkAction **edgeSelBasedActions;
@@ -46,25 +40,16 @@
}
/**
- * Constructs the menu and toolbar for @p window
- *
- * @param window the mainwindow that will be acted upon by the various
- * menu items and toolbar buttons.
+ * The menubar widget, to be inserted into the window
*/
-- (id) initForMainWindow:(MainWindow*)window;
+@property (readonly) GtkWidget *menubar;
/**
- * The menubar widget, to be inserted into the main window
- */
-- (GtkWidget*) menubar;
-/**
- * The toolbar widget, to be inserted into the main window
- */
-- (GtkWidget*) toolbar;
-/**
- * The main window object passed to initForMainWindow
+ * Constructs the menu for @p window
+ *
+ * @param window the window that will be acted upon
*/
-- (MainWindow*) mainWindow;
+- (id) initForWindow:(Window*)window;
/**
* Enables or disables the undo action