class NewSvgButton;
class NewSvgWindow;
class EditSvgButton;
+class DpiValue;
+class DpiButton;
class SvgWin : public PluginClientWindow
{
void create_objects();
int close_event();
+ void update_gui(SvgConfig &config);
+ int hide_window(int flush = 1);
- SvgCoord *in_x, *in_y, *in_w, *in_h, *out_x, *out_y, *out_w, *out_h;
+ SvgCoord *out_x, *out_y, *out_w, *out_h;
+ DpiValue *dpi;
+ DpiButton *dpi_button;
SvgMain *client;
BC_Title *svg_file_title;
+ BC_Title *svg_file_mstime;
NewSvgButton *new_svg_button;
NewSvgWindow *new_svg_thread;
EditSvgButton *edit_svg_button;
class SvgCoord : public BC_TumbleTextBox
{
public:
- SvgCoord(SvgWin *win,
- SvgMain *client,
- int x,
- int y,
- float *value);
+ SvgCoord(SvgWin *win, SvgMain *client,
+ int x, int y, float *value);
~SvgCoord();
int handle_event();
int handle_event();
void run();
- int quit_now;
SvgMain *client;
SvgWin *window;
};
EditSvgButton(SvgMain *client, SvgWin *window, int x, int y);
~EditSvgButton();
int handle_event();
+ void stop();
void run();
-
- int quit_now;
- int fh_fifo;
+
SvgMain *client;
SvgWin *window;
+ int fh_fifo;
+};
+
+class SvgInkscapeThread : public Thread
+{
+public:
+ SvgInkscapeThread(EditSvgButton *edit);
+ ~SvgInkscapeThread();
+ void run();
+ EditSvgButton *edit;
};
class NewSvgWindow : public BC_FileBox
SvgWin *window;
};
-class SvgInkscapeThread : public Thread
+class DpiValue : public BC_TumbleTextBox
{
public:
- SvgInkscapeThread(SvgMain *client, SvgWin *window);
- ~SvgInkscapeThread();
- void run();
+ DpiValue(SvgWin *win, SvgMain *client,
+ int x, int y, float *value);
+ ~DpiValue();
+ int handle_event();
+
+ SvgMain *client;
+ SvgWin *win;
+ float *value;
+
+};
+
+class DpiButton : public BC_GenericButton
+{
+public:
+ DpiButton( SvgWin *window, SvgMain *client, int x, int y);
+ ~DpiButton();
+ int handle_event();
+
SvgMain *client;
SvgWin *window;
- int fh_fifo;
};