hegyi@161: // -*- C++ -*- // hegyi@161: hegyi@161: #ifndef DESWIN_H hegyi@161: #define DESWIN_H hegyi@161: hegyi@172: class DesignWin; hegyi@172: hegyi@161: #include hegyi@172: #include hegyi@161: #include hegyi@161: #include hegyi@161: hegyi@161: class DesignWin : public Gtk::Window hegyi@161: { hegyi@161: private: hegyi@172: ///\ref NoteBookTab to that the \ref MapWin belongs to. hegyi@172: NoteBookTab & mytab; hegyi@172: hegyi@161: Gtk::SpinButton * attraction; hegyi@161: Gtk::SpinButton * propulsation; hegyi@161: Gtk::SpinButton * iteration; hegyi@161: Gtk::Table table; hegyi@161: Gtk::Button * close_button; hegyi@161: hegyi@161: sigc::signal signal_attraction_ch; hegyi@161: sigc::signal signal_propulsation_ch; hegyi@161: sigc::signal signal_iteration_ch; hegyi@161: sigc::signal close_run_pr; hegyi@161: hegyi@161: void emit_attraction(); hegyi@161: void emit_propulsation(); hegyi@161: void emit_iteration(); hegyi@161: void emit_closerun(){close_run_pr.emit();}; hegyi@161: hegyi@161: public: hegyi@161: ///Close window if escape key is pressed. hegyi@161: bool closeIfEscapeIsPressed(GdkEventKey* e); hegyi@161: hegyi@161: ///Constructor hegyi@161: hegyi@161: ///It builds the window. hegyi@172: DesignWin(const std::string&, double, double, int, NoteBookTab & mw); hegyi@161: hegyi@161: sigc::signal signal_attraction(){return signal_attraction_ch;}; hegyi@161: sigc::signal signal_propulsation(){return signal_propulsation_ch;}; hegyi@161: sigc::signal signal_iteration(){return signal_iteration_ch;}; hegyi@161: sigc::signal close_run(){return close_run_pr;}; hegyi@172: hegyi@172: void set_title(std::string); hegyi@161: }; hegyi@161: #endif //DESWIN_H