1 /* === S Y N F I G ========================================================= */
2 /*! \file canvasoptions.h
3 ** \brief Template Header
5 ** $Id: canvasoptions.h,v 1.1.1.1 2005/01/07 03:34:35 darco Exp $
8 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
10 ** This software and associated documentation
11 ** are CONFIDENTIAL and PROPRIETARY property of
12 ** the above-mentioned copyright holder.
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.
20 /* ========================================================================= */
22 /* === S T A R T =========================================================== */
24 #ifndef __SYNFIG_GTKMM_CANVASOPTIONS_H
25 #define __SYNFIG_GTKMM_CANVASOPTIONS_H
27 /* === H E A D E R S ======================================================= */
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"
37 /* === M A C R O S ========================================================= */
39 /* === T Y P E D E F S ===================================================== */
41 /* === C L A S S E S & S T R U C T S ======================================= */
48 class CanvasOptions : public Gtk::Dialog
50 Gtk::Tooltips tooltips;
52 etl::loose_handle<CanvasView> canvas_view_;
54 Gtk::CheckButton toggle_grid_snap;
55 Gtk::CheckButton toggle_grid_show;
57 Widget_Vector vector_grid_size;
59 Gtk::CheckButton toggle_time_snap;
62 CanvasOptions(etl::loose_handle<CanvasView> canvas_view);
69 void on_grid_snap_toggle();
70 void on_grid_show_toggle();
73 void on_apply_pressed();
74 void on_cancel_pressed();
75 }; // END of class CanvasOptions
77 }; // END of namespace studio
79 /* === E N D =============================================================== */