map_win.h
changeset 201 879e47e5b731
parent 194 6b2b718420eb
equal deleted inserted replaced
20:65b512b6fd0c 21:be586f78733f
    23 class MapSelector;
    23 class MapSelector;
    24 
    24 
    25 #include <all_include.h>
    25 #include <all_include.h>
    26 #include <libgnomecanvasmm.h>
    26 #include <libgnomecanvasmm.h>
    27 #include <libgnomecanvasmm/polygon.h>
    27 #include <libgnomecanvasmm/polygon.h>
       
    28 #include "map_value.h"
    28 
    29 
    29 ///Graph visualization setup window.
    30 ///Graph visualization setup window.
    30 
    31 
    31 ///This class is responsible for creating a window,
    32 ///This class is responsible for creating a window,
    32 ///on which the visualization attributes can be
    33 ///on which the visualization attributes can be
    62   ///Constructor
    63   ///Constructor
    63 
    64 
    64   ///It creates the widgets shown in \ref MapWin and
    65   ///It creates the widgets shown in \ref MapWin and
    65   ///binds the needed signal to the correct place.
    66   ///binds the needed signal to the correct place.
    66   ///\param title title of window
    67   ///\param title title of window
    67   ///\param eml edgemap list
       
    68   ///\param nml nodemap list
       
    69   ///\param mw the owner \ref NoteBookTab (\ref mytab)
    68   ///\param mw the owner \ref NoteBookTab (\ref mytab)
    70   MapWin(const std::string& title, std::vector<std::string> eml, std::vector<std::string> nml, NoteBookTab & mw);
    69   MapWin(const std::string& title, 
       
    70       std::vector<std::string> n_eml,
       
    71       std::vector<std::string> s_eml,
       
    72       std::vector<std::string> n_nml,
       
    73       std::vector<std::string> s_nml,
       
    74       NoteBookTab & mw);
    71 
    75 
    72   ///Deregistrates \ref MapWin in its \ref NoteBookTab (\ref mytab)
    76   ///Deregistrates \ref MapWin in its \ref NoteBookTab (\ref mytab)
    73   virtual bool on_delete_event(GdkEventAny *);
    77   virtual bool on_delete_event(GdkEventAny *);
    74 
    78 
    75   ///Handles changement in nodemap selection
    79   ///Handles changement in nodemap selection
   104 
   108 
   105   ///This function inserts name of the new edgemap in the name list in \ref MapSelector s
   109   ///This function inserts name of the new edgemap in the name list in \ref MapSelector s
   106 
   110 
   107   ///\param new_name
   111   ///\param new_name
   108   ///name of new map
   112   ///name of new map
   109   void registerNewEdgeMap(std::string new_name);
   113   void registerNewEdgeMap(std::string new_name, MapValue::Type type);
   110 
   114 
   111   ///This function inserts name of the new nodemap in the name list in \ref MapSelector s
   115   ///This function inserts name of the new nodemap in the name list in \ref MapSelector s
   112 
   116 
   113   ///\param new_name
   117   ///\param new_name
   114   ///name of new map
   118   ///name of new map
   115   void registerNewNodeMap(std::string new_name);
   119   void registerNewNodeMap(std::string new_name, MapValue::Type type);
   116 
   120 
   117   ///Close window if Esc key pressed.
   121   ///Close window if Esc key pressed.
   118   virtual bool closeIfEscapeIsPressed(GdkEventKey*);
   122   virtual bool closeIfEscapeIsPressed(GdkEventKey*);
   119 
   123 
   120   ///Updates list of maps in all \ref MapSelector
   124   ///Updates list of maps in all \ref MapSelector
   122   ///This function is called by \ref NoteBookTab, when the file
   126   ///This function is called by \ref NoteBookTab, when the file
   123   ///showed in it has changed, therefore the contained maps
   127   ///showed in it has changed, therefore the contained maps
   124   ///have changed as well. \ref NoteBookTab knows, whether it
   128   ///have changed as well. \ref NoteBookTab knows, whether it
   125   ///has to call this function or not from the \ref NoteBookTab::mapwinexists
   129   ///has to call this function or not from the \ref NoteBookTab::mapwinexists
   126   ///variable.
   130   ///variable.
   127   ///\param eml edge map list
   131   void update(
   128   ///\param nml node map list
   132     std::vector<std::string> n_eml,
   129   void update(std::vector<std::string> eml, std::vector<std::string> nml);
   133     std::vector<std::string> s_eml,
       
   134     std::vector<std::string> n_nml,
       
   135     std::vector<std::string> s_nml);
   130 
   136 
   131   void changeEntry(bool, int, std::string);
   137   void changeEntry(bool, int, std::string);
   132 
   138 
   133   void set_title(std::string);
   139   void set_title(std::string);
   134 };
   140 };