linesdlg.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef GCR_LINESDLG_H
00026 #define GCR_LINESDLG_H
00027
00028 #include <gcu/dialog.h>
00029
00030 namespace gcr {
00031
00032 class Document;
00033 class Application;
00034
00035 class LinesDlg: public gcu::Dialog
00036 {
00037 public:
00038 LinesDlg (Application *App, Document* pDoc);
00039 virtual ~LinesDlg ();
00040
00041 virtual bool Apply ();
00042 void LineAdd ();
00043 void LineDelete ();
00044 void LineDeleteAll ();
00045 void LineSelect (GtkTreeSelection *Selection);
00046 void OnEdited (GtkCellRendererText *cell, const gchar *path_string, const gchar *new_text);
00047 void OnToggled (GtkCellRendererToggle *cell, const gchar *path_string);
00048 void OnToggledSpecial (int Type);
00049
00050 private:
00051 char m_buf[64];
00052 Document *m_pDoc;
00053 GtkListStore *LineList;
00054 GtkTreeSelection *Selection;
00055 GtkColorButton *LineColor, *EdgesColor, *MediansColor, *DiagsColor;
00056 GtkEntry *LineR, *EdgesR, *MediansR, *DiagsR;
00057 GtkCheckButton *Edges, *Medians, *Diags;
00058 GtkWidget *DeleteBtn, *DeleteAllBtn;
00059 GArray *m_Lines;
00060 gint m_LineSelected;
00061 GtkTreeIter m_Iter;
00062 };
00063
00064 }
00065
00066 #endif //GCR_LINESDLG_H