X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fsvg%2Fsvgwin.h;h=136a3ef78527f31af11565e0737c7c3489febba0;hp=47c73ab26a3eb19e0f90fb609dbba6e3da8637b2;hb=a19a685a46ddc630010788707d9e5b9d2342af46;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd diff --git a/cinelerra-5.1/plugins/svg/svgwin.h b/cinelerra-5.1/plugins/svg/svgwin.h index 47c73ab2..136a3ef7 100644 --- a/cinelerra-5.1/plugins/svg/svgwin.h +++ b/cinelerra-5.1/plugins/svg/svgwin.h @@ -2,21 +2,21 @@ /* * CINELERRA * Copyright (C) 2008 Adam Williams - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * 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 SVGWIN_H @@ -36,6 +36,8 @@ class SvgCoord; class NewSvgButton; class NewSvgWindow; class EditSvgButton; +class DpiValue; +class DpiButton; class SvgWin : public PluginClientWindow { @@ -45,10 +47,15 @@ public: 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; @@ -60,11 +67,8 @@ public: 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(); @@ -78,12 +82,14 @@ class NewSvgButton : public BC_GenericButton, public Thread { public: NewSvgButton(SvgMain *client, SvgWin *window, int x, int y); + ~NewSvgButton(); int handle_event(); void run(); - - int quit_now; + void stop(); + SvgMain *client; SvgWin *window; + NewSvgWindow *new_window; }; class EditSvgButton : public BC_GenericButton, public Thread @@ -92,12 +98,21 @@ public: 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 @@ -109,15 +124,29 @@ public: 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; };