COIN-OR::LEMON - Graph Library

source: glemon-0.x/design_win.h @ 174:95872af46fc4

Last change on this file since 174:95872af46fc4 was 174:95872af46fc4, checked in by Alpar Juttner, 15 years ago

Add copyright headers

File size: 1.9 KB
RevLine 
[174]1/* -*- C++ -*-
2 *
3 * This file is a part of LEMON, a generic C++ optimization library
4 *
5 * Copyright (C) 2003-2006
6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
7 * (Egervary Research Group on Combinatorial Optimization, EGRES).
8 *
9 * Permission to use, modify and distribute this software is granted
10 * provided that this copyright notice appears in all copies. For
11 * precise terms see the accompanying LICENSE file.
12 *
13 * This software is provided "AS IS" with no warranty of any kind,
14 * express or implied, and with no claim as to its suitability for any
15 * purpose.
16 *
17 */
[161]18
19#ifndef DESWIN_H
20#define DESWIN_H
21
[172]22class DesignWin;
23
[161]24#include <all_include.h>
[172]25#include <nbtab.h>
[161]26#include <libgnomecanvasmm.h>
27#include <libgnomecanvasmm/polygon.h>
28
29class DesignWin : public Gtk::Window
30{
31private:
[172]32  ///\ref NoteBookTab to that the \ref MapWin belongs to.
33  NoteBookTab & mytab;
34
[161]35  Gtk::SpinButton * attraction;
36  Gtk::SpinButton * propulsation;
37  Gtk::SpinButton * iteration;
38  Gtk::Table table;
39  Gtk::Button * close_button;
40
41  sigc::signal<void, double> signal_attraction_ch;
42  sigc::signal<void, double> signal_propulsation_ch;
43  sigc::signal<void, int> signal_iteration_ch;
44  sigc::signal<void> close_run_pr;
45
46  void emit_attraction();
47  void emit_propulsation();
48  void emit_iteration();
49  void emit_closerun(){close_run_pr.emit();};
50
51public:
52  ///Close window if escape key is pressed.
53  bool closeIfEscapeIsPressed(GdkEventKey* e);
54
55  ///Constructor
56
57  ///It builds the window.
[172]58  DesignWin(const std::string&, double, double, int, NoteBookTab & mw);
[161]59
60  sigc::signal<void, double> signal_attraction(){return signal_attraction_ch;};
61  sigc::signal<void, double> signal_propulsation(){return signal_propulsation_ch;};
62  sigc::signal<void, int> signal_iteration(){return signal_iteration_ch;};
63  sigc::signal<void> close_run(){return close_run_pr;};
[172]64
65  void set_title(std::string);
[161]66};
67#endif //DESWIN_H
Note: See TracBrowser for help on using the repository browser.