COIN-OR::LEMON - Graph Library

Changeset 96:e664d8aa3f72 in glemon-0.x for main_win.h


Ignore:
Timestamp:
12/06/05 11:53:38 (18 years ago)
Author:
Hegyi Péter
Branch:
gui
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@2414
Message:

Notebook style is provided. Without opportunity to close tabs. :-) But with all other necessary things (I think).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main_win.h

    r95 r96  
    44#define MAIN_WIN_H
    55
    6 class MainWin;
    7 
    86#include "all_include.h"
    9 #include "mapstorage.h"
    107#include "map_win.h"
    118#include "new_map_win.h"
    12 #include "graph_displayer_canvas.h"
     9#include "nbtab.h"
    1310#include <libgnomecanvasmm.h>
    1411#include <libgnomecanvasmm/polygon.h>
     12
    1513
    1614///This class is the main window of GUI.
     
    1816class MainWin : public Gtk::Window
    1917{
     18  ///Container
     19  Gtk::VBox vbox;
     20
     21  Gtk::Notebook notebook;
     22
     23  int active_tool;
     24
     25  int active_tab;
     26  std::vector<NoteBookTab *> tabs;
     27  std::vector<std::string> tabnames;
     28
    2029public:
    21   ///Constructor of the \ref MainWin. It creates the menu and the \ref GraphDisplayerCanvas on which the graph will be drawn.
     30 
     31  ///Constructor of the \ref NoteBookTab. It creates the menu and the \ref GraphDisplayerCanvas on which the graph will be drawn.
    2232  ///\param title is the title of the window
    2333  MainWin();
    2434
    25   MapStorage mapstorage;
    26 
    27   void readFile(const std::string &);
    28 
    29 protected:
    30   MapWin * mapwin;
    31   bool mapwinexists;
    32 
    33   ///The graph will be drawn on this \ref GraphDisplayerCanvas
    34   GraphDisplayerCanvas * gd_canvas;
     35  void set_tabtitle(std::string);
    3536
    3637  ///ActionGroup for menu
     
    4041  Glib::RefPtr<Gtk::UIManager> uim;
    4142
    42   ///Container
    43   Gtk::VBox vbox;
     43  void readFile(const std::string &);
    4444
    4545  ///Tooltips
    4646  Gtk::Tooltips tooltips;
     47
     48  //Call-backs of buttons
    4749
    4850  ///Callback for 'FileNew' action.
     
    5759  virtual void close();
    5860
    59 public:
    60   void propertyChange(bool, int, std::string);
    61   void popupNewMapWin(bool, int);
     61  //Toolbar
     62  virtual void zoomIn();
     63  virtual void zoomOut();
     64  virtual void zoomFit();
     65  virtual void zoom100();
    6266
    63   std::string getActiveEdgeMap(int);
    64   std::string getActiveNodeMap(int);
     67  virtual void createMapWin();
    6568
    66   void registerNewEdgeMap(std::string);
    67   void registerNewNodeMap(std::string);
     69  virtual void changeEditorialTool(int);
    6870
    69   void createMapWin();
    70   void closeMapWin();
     71  virtual void createNewMapWinAfterSignal(NoteBookTab *, bool);
     72  virtual void createNewMapWin();
     73
     74  //Notebook handlers
     75  ///Callback for 'FileNewTab' action.
     76  virtual void newTab();
     77  virtual void onChangeTab(GtkNotebookPage*, guint);
     78  virtual void onCloseTab();
     79
     80
    7181};
    7282
Note: See TracChangeset for help on using the changeset viewer.