The Gnome Chemistry Utils  0.14.0
linesdlg.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  * Gnome Crystal
5  * linesdlg.h
6  *
7  * Copyright (C) 2002-2011 Jean Bréfort <jean.brefort@normalesup.org>
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License as
11  * published by the Free Software Foundation; either version 3 of the
12  * License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
22  * USA
23  */
24 
25 #ifndef GCR_LINESDLG_H
26 #define GCR_LINESDLG_H
27 
28 #include <gcugtk/dialog.h>
29 #include "grid.h"
30 #include <vector>
31 
33 namespace gcr {
34 
35 class Document;
36 class Application;
37 class Line;
38 
44 class LinesDlg: public gcugtk::Dialog
45 {
46 friend class LinesDlgPrivate;
47 public:
54  LinesDlg (Application *App, Document* pDoc);
58  virtual ~LinesDlg ();
59 
64  void ReloadData ();
65 
66 private:
67  void Closed ();
68 
69 private:
70  Document *m_pDoc;
71  GtkColorButton *LineColor, *EdgesColor, *MediansColor, *DiagsColor;
72  GtkEntry *LineR, *EdgesR, *MediansR, *DiagsR;
73  GtkCheckButton *EdgesBtn, *MediansBtn, *DiagsBtn;
74  GtkWidget *DeleteBtn, *DeleteAllBtn;
75  gint m_LineSelected;
76  GcrGrid *m_Grid;
77  std::vector < Line * > m_Lines;
78  Line *Edges, *Diagonals, *Medians;
79  bool m_Closing;
80  unsigned long m_EdgesFocusOutSignalID, m_DiagsFocusOutSignalID,
81  m_MediansFocusOutSignalID, m_LineFocusOutSignalID, m_ColorChangedID;
82  double m_Radius;
83  GdkRGBA m_rgba;
84 };
85 
86 } // namespace gcr
87 
88 #endif //GCR_LINESDLG_H