COIN-OR::LEMON - Graph Library

source: glemon-0.x/eps_win.h @ 192:9d7489e8921e

Last change on this file since 192:9d7489e8921e was 192:9d7489e8921e, checked in by Hegyi Péter, 17 years ago

Forgot the meat.

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