Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

mainmenubar.hh

Go to the documentation of this file.
00001 /*
00002  * RolLerCoaster Linear Networks Solver
00003  *
00004  * RolLerCoaster is the legal property of its developers, whose names are 
00005  * listed in the COPYRIGHT file distributed with this source distribution.
00006  * 
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the free software foundation; either version 2 of the license, or
00010  * (at your option) any later version.
00011  *
00012  * this program is distributed in the hope that it will be useful,
00013  * but without any warranty; without even the implied warranty of
00014  * merchantability or fitness for a particular purpose.  see the
00015  * gnu general public license for more details.
00016  *
00017  * you should have received a copy of the gnu general public license
00018  * along with this program; if not, write to the free software
00019  * foundation, inc., 59 temple place, suite 330, boston, ma  02111-1307  usa
00020  *
00021  */
00022  
00023 #ifndef MAINMENUBAR_HH
00024 #define MAINMENUBAR_HH
00025 
00026 #include <gtkmm/menubar.h>
00027 #include <gtkmm/menu.h>
00028 
00033 namespace RLC
00034 {
00035   class CMainWindow;
00036 
00040   class CMainMenuBar : public Gtk::MenuBar
00041   {
00042     public:
00043       CMainMenuBar();
00044       ~CMainMenuBar();
00052       void setParent(RLC::CMainWindow* parent);
00053 
00054       
00055     protected:
00056       // Menu elements signal handlers
00057       virtual void on_menu_file_new();
00058       virtual void on_menu_file_open();
00059       virtual void on_menu_file_quit();
00060       virtual void on_menu_edit_preferences();
00061       virtual void on_menu_network_solve();
00062       virtual void on_menu_help_about();
00063       
00064       // Widget for each menu (or submenu)
00065       Gtk::Menu m_Menu_File, m_Menu_Edit, m_Menu_Network, m_Menu_Help;
00066 
00071       RLC::CMainWindow* m_parent;
00072 
00073   };
00074   
00075 }
00076 
00077 
00078 #endif // MAINMENUBAR_HH
00079 

Generated on Sun Jan 16 11:05:56 2005 for RolLerCoaster by  doxygen 1.3.9.1