my log
[synfig.git] / synfig-studio / trunk / src / gtkmm / state_stroke.h
1 /* === S Y N F I G ========================================================= */
2 /*!     \file state_stroke.h
3 **      \brief Template Header
4 **
5 **      $Id: state_stroke.h,v 1.1.1.1 2005/01/07 03:34:37 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_STUDIO_STATE_STROKE_H
25 #define __SYNFIG_STUDIO_STATE_STROKE_H
26
27 /* === H E A D E R S ======================================================= */
28
29 #include "canvasview.h"
30 #include "workarea.h"
31 #include <sigc++/object.h>
32 #include "duckmatic.h"
33 #include <synfig/blinepoint.h>
34 #include <list>
35 #include <ETL/smart_ptr>
36 #include "eventkey.h"
37 #include <gdkmm/types.h>
38
39 /* === M A C R O S ========================================================= */
40
41 /* === T Y P E D E F S ===================================================== */
42
43 /* === C L A S S E S & S T R U C T S ======================================= */
44
45 namespace studio {
46
47 class StateStroke_Context;
48
49 class StateStroke : public Smach::state<StateStroke_Context>
50 {
51 public:
52         StateStroke();
53         ~StateStroke();
54 }; // END of class StateStroke
55
56 extern StateStroke state_stroke;
57
58 struct EventStroke : public Smach::event
59 {
60         etl::smart_ptr<std::list<synfig::Point> > stroke_data;
61         etl::smart_ptr<std::list<synfig::Real> > width_data;
62         Gdk::ModifierType modifier;
63         
64         EventStroke(etl::smart_ptr<std::list<synfig::Point> > stroke_data,
65                         etl::smart_ptr<std::list<synfig::Real> > width_data,
66                         Gdk::ModifierType modifier=Gdk::ModifierType(0)
67         ):
68                 Smach::event(EVENT_WORKAREA_STROKE),
69                 stroke_data(stroke_data),
70                 width_data(width_data),
71                 modifier(modifier)
72         { }
73 }; // END of EventStroke
74
75 }; // END of namespace studio
76
77 /* === E N D =============================================================== */
78
79 #endif