alpar@174: /* -*- C++ -*- alpar@174: * alpar@174: * This file is a part of LEMON, a generic C++ optimization library alpar@174: * alpar@174: * Copyright (C) 2003-2006 alpar@174: * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport alpar@174: * (Egervary Research Group on Combinatorial Optimization, EGRES). alpar@174: * alpar@174: * Permission to use, modify and distribute this software is granted alpar@174: * provided that this copyright notice appears in all copies. For alpar@174: * precise terms see the accompanying LICENSE file. alpar@174: * alpar@174: * This software is provided "AS IS" with no warranty of any kind, alpar@174: * express or implied, and with no claim as to its suitability for any alpar@174: * purpose. alpar@174: * alpar@174: */ 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@177: hegyi@177: void set_data(double, double, int); hegyi@161: }; hegyi@161: #endif //DESWIN_H