eps_win.h
changeset 198 d6cc0579b94b
parent 196 c220f9de6545
child 201 879e47e5b731
     1.1 --- a/eps_win.h	Thu Mar 01 14:45:07 2007 +0000
     1.2 +++ b/eps_win.h	Thu Mar 01 16:28:13 2007 +0000
     1.3 @@ -19,6 +19,8 @@
     1.4  #ifndef EPS_WIN_H
     1.5  #define EPS_WIN_H
     1.6  
     1.7 +class MapSelector;
     1.8 +
     1.9  #include <all_include.h>
    1.10  #include <libgnomecanvasmm.h>
    1.11  #include <libgnomecanvasmm/polygon.h>
    1.12 @@ -49,6 +51,7 @@
    1.13    ///Filename
    1.14    Gtk::Entry name;
    1.15  
    1.16 +  MapSelector * mapselector;
    1.17  public:
    1.18    ///Constructor
    1.19  
    1.20 @@ -58,7 +61,7 @@
    1.21    ///\param eml edgemap list
    1.22    ///\param nml nodemap list
    1.23    ///\param mw the owner \ref NoteBookTab (\ref mytab)
    1.24 -  EpsWin(const std::string& title);
    1.25 +  EpsWin(const std::string& title, std::vector<std::string>);
    1.26  
    1.27    ///Deregistrates \ref EpsWin in its \ref NoteBookTab (\ref mytab)
    1.28    virtual bool on_delete_event(GdkEventAny *);
    1.29 @@ -75,10 +78,10 @@
    1.30    virtual void on_response(int response_id);
    1.31  
    1.32    ///indicates that user is ready to export EPS file
    1.33 -  sigc::signal<void, std::vector<bool>, std::string > signal_eps_details;
    1.34 +  sigc::signal<void, std::vector<bool>, std::string, std::string > signal_eps_details;
    1.35  
    1.36    ///returns \ref signal_eps_details
    1.37 -  sigc::signal<void, std::vector<bool>, std::string > signal_eps_details_ch(){return signal_eps_details;};
    1.38 +  sigc::signal<void, std::vector<bool>, std::string, std::string > signal_eps_details_ch(){return signal_eps_details;};
    1.39  
    1.40    ///indicates that the windows can be closed
    1.41    sigc::signal<void> signal_eps_close;
    1.42 @@ -86,7 +89,20 @@
    1.43    ///returns \ref signal_eps_close
    1.44    sigc::signal<void> signal_eps_close_ch(){return signal_eps_close;};
    1.45    
    1.46 +  ///indicates that the windows can be closed
    1.47 +  sigc::signal<void, bool> signal_new_map;
    1.48  
    1.49 +  ///returns \ref signal_eps_close
    1.50 +  sigc::signal<void, bool> signal_new_map_ch(){return signal_new_map;};
    1.51 +
    1.52 +  ///Function is called when new map is required.
    1.53 +  void newMapWinNeeded(bool);
    1.54 +
    1.55 +  ///This function inserts name of the new nodemap in the name list in \ref MapSelector s
    1.56 +
    1.57 +  ///\param new_name
    1.58 +  ///name of new map
    1.59 +  void registerNewNodeMap(std::string new_name);
    1.60  };
    1.61  
    1.62  #endif //EPS_WIN_H