sketcher add scale/rotate, tweak mouse accel
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / sketcher / sketcherwindow.h
index 5b4d8ccedc4b58b3abb4c1b026b296eb86728c10..3353ffac845e1dfa1d3d734019931547f242e701 100644 (file)
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- *
  */
 
-#ifndef __CRIKEYWINDOW_H__
-#define __CRIKEYWINDOW_H__
+#ifndef __SKETCHERWINDOW_H__
+#define __SKETCHERWINDOW_H__
 
 #include "sketcher.h"
 #include "guicast.h"
@@ -38,6 +37,8 @@ class SketcherDelCurve;
 class SketcherCurveUp;
 class SketcherCurveDn;
 class SketcherCurveWidth;
+class SketcherAliasItem;
+class SketcherAliasing;
 class SketcherCurveList;
 class SketcherPointX;
 class SketcherPointY;
@@ -52,6 +53,7 @@ class SketcherPointUp;
 class SketcherPointDn;
 class SketcherResetCurves;
 class SketcherResetPoints;
+class SketcherHelp;
 class SketcherWindow;
 
 
@@ -168,6 +170,30 @@ public:
        int width;
 };
 
+class SketcherAliasItem : public BC_MenuItem
+{
+public:
+       SketcherAliasItem(SketcherAliasing *popup, int v);
+       int handle_event();
+
+       SketcherAliasing *popup;
+       int v;
+};
+
+class SketcherAliasing : public BC_PopupMenu
+{
+public:
+       SketcherAliasing(SketcherWindow *gui, Sketcher *plugin,
+                       int x, int y);
+       ~SketcherAliasing();
+
+       const char *alias_to_text(int alias);
+       void create_objects();
+
+       Sketcher *plugin;
+       SketcherWindow *gui;
+};
+
 class SketcherCurveList : public BC_ListBox
 {
 public:
@@ -348,6 +374,16 @@ public:
        SketcherWindow *gui;
 };
 
+class SketcherHelp : public BC_CheckBox
+{
+public:
+       SketcherHelp(SketcherWindow *gui, Sketcher *plugin, int x, int y);
+       ~SketcherHelp();
+       int handle_event();
+
+       Sketcher *plugin;
+       SketcherWindow *gui;
+};
 
 class SketcherWindow : public PluginClientWindow
 {
@@ -376,8 +412,10 @@ public:
        SketcherCurveUp *curve_up;
        SketcherCurveDn *curve_dn;
        SketcherCurveWidth *curve_width;
+       SketcherAliasing *aliasing;
        SketcherCurveList *curve_list;
        SketcherResetCurves *reset_curves;
+       SketcherHelp *help;
 
        SketcherResetPoints *reset_points;
        SketcherDrag *drag;
@@ -395,12 +433,15 @@ public:
        float projector_x, projector_y, projector_z;
        int track_w, track_h;
        int new_points;
-       float cursor_x, cursor_y;
+       int cursor_x, cursor_y;
        float output_x, output_y;
+       float track_x, track_y;
        int state, dragging;
        int pending_motion, pending_config;
+       int helped, help_y, help_h;
        XEvent motion_event;
        float last_x, last_y;
+       int64_t last_time;
        BC_Title *notes0, *notes1, *notes2, *notes3;
 };
 #endif