my log
[synfig.git] / synfig-studio / trunk / src / gtkmm / canvasoptions.h
1 /* === S Y N F I G ========================================================= */
2 /*!     \file canvasoptions.h
3 **      \brief Template Header
4 **
5 **      $Id: canvasoptions.h,v 1.1.1.1 2005/01/07 03:34:35 darco Exp $
6 **
7 **      \legal
8 **      Copyright (c) 2002 Robert B. Quattlebaum Jr.
9 **
10 **      This software and associated documentation
11 **      are CONFIDENTIAL and PROPRIETARY property of
12 **      the above-mentioned copyright holder.
13 **
14 **      You may not copy, print, publish, or in any
15 **      other way distribute this software without
16 **      a prior written agreement with
17 **      the copyright holder.
18 **      \endlegal
19 */
20 /* ========================================================================= */
21
22 /* === S T A R T =========================================================== */
23
24 #ifndef __SYNFIG_GTKMM_CANVASOPTIONS_H
25 #define __SYNFIG_GTKMM_CANVASOPTIONS_H
26
27 /* === H E A D E R S ======================================================= */
28
29 #include <gtkmm/dialog.h>
30 #include <gtkmm/tooltips.h>
31 #include <gtkmm/table.h>
32 #include <gtkmm/entry.h>
33 #include <gtkmm/tooltips.h>
34 #include "widget_value.h"
35 #include "widget_vector.h"
36
37 /* === M A C R O S ========================================================= */
38
39 /* === T Y P E D E F S ===================================================== */
40
41 /* === C L A S S E S & S T R U C T S ======================================= */
42
43 namespace studio
44 {
45
46 class CanvasView;
47         
48 class CanvasOptions  :  public Gtk::Dialog
49 {
50         Gtk::Tooltips tooltips;
51
52         etl::loose_handle<CanvasView> canvas_view_;
53
54         Gtk::CheckButton toggle_grid_snap;
55         Gtk::CheckButton toggle_grid_show;
56
57         Widget_Vector vector_grid_size;
58
59         Gtk::CheckButton toggle_time_snap;
60         
61 public:
62         CanvasOptions(etl::loose_handle<CanvasView> canvas_view);
63         ~CanvasOptions();
64
65         void refresh();
66         void update_title();
67 private:
68
69         void on_grid_snap_toggle();
70         void on_grid_show_toggle();
71
72         void on_ok_pressed();
73         void on_apply_pressed();
74         void on_cancel_pressed();
75 }; // END of class CanvasOptions
76
77 }; // END of namespace studio
78
79 /* === E N D =============================================================== */
80
81 #endif