Last change
on this file since 76 was
76,
checked in by sven, 11 years ago
|
Reverted Visualisator to SVN Revision 21, with patches that make the
code compile with current Linuxes. See Ticket #45 and #44 for these issues.
This codebase will form the basis for the PaperTapeViewer in the
Paper Tape Project NG 2013.
|
File size:
1.1 KB
|
Line | |
---|
1 | #ifndef __GTK_PAPER_TAPE_EXPORTERL_H__ |
---|
2 | #define __GTK_PAPER_TAPE_EXPORTERL_H__ |
---|
3 | |
---|
4 | #include <gtkmm/filechooser.h> |
---|
5 | #include <gtkmm/filechooserdialog.h> |
---|
6 | |
---|
7 | |
---|
8 | #include <gtkmm/button.h> |
---|
9 | #include <gtkmm/viewport.h> |
---|
10 | #include <gtkmm/adjustment.h> |
---|
11 | #include <gtkmm/expander.h> |
---|
12 | #include <gtkmm/radiobutton.h> |
---|
13 | #include <gtkmm/radiobuttongroup.h> |
---|
14 | #include <gtkmm/progressbar.h> |
---|
15 | #include <gtkmm/main.h> |
---|
16 | |
---|
17 | |
---|
18 | namespace Gtk |
---|
19 | { class PaperTapeExporter; } |
---|
20 | #include "lochstreifen.h" |
---|
21 | #include "gtkpapertape.h" |
---|
22 | |
---|
23 | namespace Gtk { |
---|
24 | |
---|
25 | enum PaperTapeExporterType { |
---|
26 | SVG, |
---|
27 | PNG |
---|
28 | }; |
---|
29 | |
---|
30 | class PaperTapeExporter : public FileChooserDialog { |
---|
31 | //Window* parent; |
---|
32 | LOCHSTREIFEN* l; |
---|
33 | |
---|
34 | static void update_gui(const row_t* current_row, cairo_t* context, void* user_data); |
---|
35 | |
---|
36 | Button* cancel_button; |
---|
37 | ProgressBar progress; |
---|
38 | VBox extra_widget; |
---|
39 | bool cancel_export; |
---|
40 | |
---|
41 | RadioButton type_auto_select; |
---|
42 | RadioButton type_svg; |
---|
43 | RadioButton type_png; |
---|
44 | |
---|
45 | public: |
---|
46 | PaperTapeFile* file; |
---|
47 | LOCHSTREIFEN* lochstreifen; |
---|
48 | |
---|
49 | PaperTapeExporter(PaperTapeView& view); |
---|
50 | PaperTapeExporter(Window& parent, const LOCHSTREIFEN* l); |
---|
51 | bool run_export(); |
---|
52 | void cancel(); |
---|
53 | }; |
---|
54 | |
---|
55 | } // namespace Gtk |
---|
56 | |
---|
57 | #endif // EXPORTER_H |
---|
Note: See
TracBrowser
for help on using the repository browser.