summaryrefslogtreecommitdiff
path: root/src/GsWidget.H
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-02-04 15:35:41 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-02-04 15:35:41 +0100
commit13278eaedfccf32ea897ef187d82d047af903557 (patch)
treedb07bb5f21d1967169aba8cd0e3e0777798250d7 /src/GsWidget.H
parent9d93fd766028f7930c9a6b6f15094ebccc36411f (diff)
initial version of load_page()
Diffstat (limited to 'src/GsWidget.H')
-rw-r--r--src/GsWidget.H10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/GsWidget.H b/src/GsWidget.H
index 99ef08a..0735607 100644
--- a/src/GsWidget.H
+++ b/src/GsWidget.H
@@ -34,8 +34,10 @@
#include <FL/Fl_Window.H>
#include <FL/x.H>
+#include "PostscriptDSC.H"
class GsWidget : public Fl_Widget {
+ PostscriptDSC *dsc;
int gs_win;
Atom atoms[5];
pid_t gs_pid;
@@ -61,6 +63,8 @@ public:
int load(int fd);
+ int load_page(int p);
+
int reload();
int next();
@@ -73,9 +77,15 @@ public:
private:
void setProps();
+
+ void exec_gs();
void kill_gs();
+ int fd_copy(int to, int from, size_t len);
+
+ int feed_page(int p);
+
bool gs_active();
};
#endif