NONAUTOTOGGLES_TITLES,
NONAUTOTOGGLES_TRANSITIONS,
NONAUTOTOGGLES_PLUGIN_AUTOS,
+ NONAUTOTOGGLES_HARD_EDGES,
NONAUTOTOGGLES_CAMERA_XYZ,
NONAUTOTOGGLES_PROJECTOR_XYZ,
NONAUTOTOGGLES_BAR1,
int translation_event();
int close_event();
int keypress_event();
- void start_color_thread(GWindowColorButton *color_button);
void update_toggles(int use_lock);
void toggle_camera_xyz();
void toggle_projector_xyz();
static const char *non_auto_text[];
static const char *auto_text[];
+ static const char *non_auto_help[];
+ static const char *auto_help[];
static const char *xyz_group[];
static const char *xyz_accel[];
static int auto_colors[];
static const char *toggle_text(toggleinfo *tp);
+ static const char *toggle_help(toggleinfo *tp);
MWindow *mwindow;
GWindowToggle *toggles[NONAUTOTOGGLES_COUNT + AUTOMATION_TOTAL];
- GWindowColorThread *color_thread;
- GWindowToggle *camera_xyz, *projector_xyz;
+ GWindowToggle *camera_xyz, *projector_xyz, *hard_edges;
};
class GWindowToggle : public BC_CheckBox
GWindowColorButton *color_button;
};
-class GWindowColorButton : public BC_Button
+class GWindowColorButton : public ColorCircleButton
{
public:
- GWindowColorButton(GWindowToggle *auto_toggle, int x, int y, int w);
+ GWindowColorButton(GWindowToggle *auto_toggle,
+ int x, int y, int w, int color);
~GWindowColorButton();
-
- void set_color(int color);
- void update_gui(int color);
- int handle_event();
-
- int color;
- VFrame *vframes[3];
- GWindowToggle *auto_toggle;
-};
-
-class GWindowColorThread : public ColorPicker
-{
-public:
- GWindowColorThread(GWindowGUI *gui, GWindowColorButton *color_button);
- ~GWindowColorThread();
- void start(int color);
int handle_new_color(int color, int alpha);
- void update_gui();
void handle_done_event(int result);
- GWindowGUI *gui;
- int color;
- GWindowColorButton *color_button;
- GWindowColorUpdate *color_update;
-};
-
-class GWindowColorUpdate : public Thread
-{
-public:
- GWindowColorUpdate(GWindowColorThread *color_thread);
- ~GWindowColorUpdate();
-
- void start();
- void stop();
- void run();
-
- int done;
- Condition *update_lock;
- GWindowColorThread *color_thread;
+ GWindowToggle *auto_toggle;
};
#endif