COIN-OR::LEMON - Graph Library

source: glemon-0.x/eps_win.h @ 195:125c56c1efda

Last change on this file since 195:125c56c1efda was 194:6b2b718420eb, checked in by Hegyi Péter, 17 years ago

Header reorganising

File size: 2.1 KB
Line 
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 */
18
19#ifndef EPS_WIN_H
20#define EPS_WIN_H
21
22class NoteBookTab;
23
24#include <all_include.h>
25#include <libgnomecanvasmm.h>
26#include <libgnomecanvasmm/polygon.h>
27
28///Graph visualization setup window.
29
30///This class is responsible for creating a window,
31///on which the visualization attributes can be
32///assigned to maps.
33class EpsWin : public Gtk::Dialog
34{
35protected:
36  ///\ref NoteBookTab to that the \ref EpsWin belongs to.
37  NoteBookTab & mytab;
38
39  ///Designing element
40  Gtk::Table * table;
41 
42  ///Information holder
43  Gtk::Label * label;
44
45  ///configuration
46  std::vector<Gtk::CheckButton *> options;
47
48  ///OK, Cancel
49  Gtk::Button * ok, * cancel;
50
51  ///Container in which filename entry are organized.
52  Gtk::HBox hbox;
53
54  ///Filename
55  Gtk::Entry name;
56
57public:
58  ///Constructor
59
60  ///It creates the widgets shown in \ref EpsWin and
61  ///binds the needed signal to the correct place.
62  ///\param title title of window
63  ///\param eml edgemap list
64  ///\param nml nodemap list
65  ///\param mw the owner \ref NoteBookTab (\ref mytab)
66  EpsWin(const std::string& title, NoteBookTab & mw);
67
68  ///Deregistrates \ref EpsWin in its \ref NoteBookTab (\ref mytab)
69  virtual bool on_delete_event(GdkEventAny *);
70
71  ///Close window if Esc key pressed.
72  virtual bool closeIfEscapeIsPressed(GdkEventKey*);
73
74  ///Callback function for OK button. It creates the map.
75 
76  ///If OK is pressed this function
77  ///transmits the collected data to
78  ///appropriate functions to be able
79  ///to create EPS
80  virtual void on_response(int response_id);
81
82};
83
84#endif //EPS_WIN_H
Note: See TracBrowser for help on using the repository browser.