eps_win.h
changeset 198 d6cc0579b94b
parent 196 c220f9de6545
child 201 879e47e5b731
equal deleted inserted replaced
2:b7b05a4912df 3:54cc55418903
    16  *
    16  *
    17  */
    17  */
    18 
    18 
    19 #ifndef EPS_WIN_H
    19 #ifndef EPS_WIN_H
    20 #define EPS_WIN_H
    20 #define EPS_WIN_H
       
    21 
       
    22 class MapSelector;
    21 
    23 
    22 #include <all_include.h>
    24 #include <all_include.h>
    23 #include <libgnomecanvasmm.h>
    25 #include <libgnomecanvasmm.h>
    24 #include <libgnomecanvasmm/polygon.h>
    26 #include <libgnomecanvasmm/polygon.h>
    25 
    27 
    47   Gtk::HBox hbox;
    49   Gtk::HBox hbox;
    48 
    50 
    49   ///Filename
    51   ///Filename
    50   Gtk::Entry name;
    52   Gtk::Entry name;
    51 
    53 
       
    54   MapSelector * mapselector;
    52 public:
    55 public:
    53   ///Constructor
    56   ///Constructor
    54 
    57 
    55   ///It creates the widgets shown in \ref EpsWin and
    58   ///It creates the widgets shown in \ref EpsWin and
    56   ///binds the needed signal to the correct place.
    59   ///binds the needed signal to the correct place.
    57   ///\param title title of window
    60   ///\param title title of window
    58   ///\param eml edgemap list
    61   ///\param eml edgemap list
    59   ///\param nml nodemap list
    62   ///\param nml nodemap list
    60   ///\param mw the owner \ref NoteBookTab (\ref mytab)
    63   ///\param mw the owner \ref NoteBookTab (\ref mytab)
    61   EpsWin(const std::string& title);
    64   EpsWin(const std::string& title, std::vector<std::string>);
    62 
    65 
    63   ///Deregistrates \ref EpsWin in its \ref NoteBookTab (\ref mytab)
    66   ///Deregistrates \ref EpsWin in its \ref NoteBookTab (\ref mytab)
    64   virtual bool on_delete_event(GdkEventAny *);
    67   virtual bool on_delete_event(GdkEventAny *);
    65 
    68 
    66   ///Close window if Esc key pressed.
    69   ///Close window if Esc key pressed.
    73   ///appropriate functions to be able
    76   ///appropriate functions to be able
    74   ///to create EPS
    77   ///to create EPS
    75   virtual void on_response(int response_id);
    78   virtual void on_response(int response_id);
    76 
    79 
    77   ///indicates that user is ready to export EPS file
    80   ///indicates that user is ready to export EPS file
    78   sigc::signal<void, std::vector<bool>, std::string > signal_eps_details;
    81   sigc::signal<void, std::vector<bool>, std::string, std::string > signal_eps_details;
    79 
    82 
    80   ///returns \ref signal_eps_details
    83   ///returns \ref signal_eps_details
    81   sigc::signal<void, std::vector<bool>, std::string > signal_eps_details_ch(){return signal_eps_details;};
    84   sigc::signal<void, std::vector<bool>, std::string, std::string > signal_eps_details_ch(){return signal_eps_details;};
    82 
    85 
    83   ///indicates that the windows can be closed
    86   ///indicates that the windows can be closed
    84   sigc::signal<void> signal_eps_close;
    87   sigc::signal<void> signal_eps_close;
    85 
    88 
    86   ///returns \ref signal_eps_close
    89   ///returns \ref signal_eps_close
    87   sigc::signal<void> signal_eps_close_ch(){return signal_eps_close;};
    90   sigc::signal<void> signal_eps_close_ch(){return signal_eps_close;};
    88   
    91   
       
    92   ///indicates that the windows can be closed
       
    93   sigc::signal<void, bool> signal_new_map;
    89 
    94 
       
    95   ///returns \ref signal_eps_close
       
    96   sigc::signal<void, bool> signal_new_map_ch(){return signal_new_map;};
       
    97 
       
    98   ///Function is called when new map is required.
       
    99   void newMapWinNeeded(bool);
       
   100 
       
   101   ///This function inserts name of the new nodemap in the name list in \ref MapSelector s
       
   102 
       
   103   ///\param new_name
       
   104   ///name of new map
       
   105   void registerNewNodeMap(std::string new_name);
    90 };
   106 };
    91 
   107 
    92 #endif //EPS_WIN_H
   108 #endif //EPS_WIN_H