summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d0c4206)
raw | patch | inline | side by side (parent: d0c4206)
author | ishmal <ishmal@users.sourceforge.net> | |
Sat, 25 Mar 2006 00:32:11 +0000 (00:32 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Sat, 25 Mar 2006 00:32:11 +0000 (00:32 +0000) |
src/ui/dialog/tracedialog.cpp | patch | blob | history |
index ad9e324bc056c277e08bcdeaf8c5e8392740beaa..3939205b95d7ac6056e86f7c7a7d88ef20681f0f 100644 (file)
Gtk::Notebook notebook;
Gtk::Tooltips tips;
+ //########## General items
+ Gtk::Frame sioxFrame;
+ Gtk::VBox sioxVBox;
+ Gtk::HBox sioxBox;
+ Gtk::RadioButton sioxRadioButton;
+
//########## Potrace items
Gtk::VBox potraceBox;
Gtk::RadioButtonGroup potraceGroup;
bool invert = potraceInvertButton.get_active();
pte.setInvert(invert);
- //##### Get the single-scan settings
- /* which one? */
+ //##### Get the preprocessor settings
+ /* siox -- performed by Tracer, and before any of the others */
+ if (sioxRadioButton.get_active())
+ tracer.enableSiox(true);
+ else
+ tracer.enableSiox(false);
+
+ /* one of the following */
if (potraceBrightnessRadioButton.get_active())
pte.setTraceType(Inkscape::Trace::Potrace::TRACE_BRIGHTNESS);
else if (potraceMultiScanBrightnessRadioButton.get_active())
pte.setInvert(false);
}
+ //##### Get the single-scan settings
/* brightness */
double brightnessThreshold = potraceBrightnessSpinner.get_value();
pte.setBrightnessThreshold(brightnessThreshold);
#define MARGIN 4
+ /*#### SIOX ####*/
+ //# for now, put at the top of the potrace box. something better later
+ sioxRadioButton.set_label(_("SIOX subimage selection"));
+ sioxBox.pack_start(sioxRadioButton, false, false, MARGIN);
+ tips.set_tip(sioxRadioButton, _("Subimage selection with the SIOX algorithm"));
+ sioxVBox.pack_start(sioxBox, false, false, MARGIN);
+ sioxFrame.set_label(_("SIOX (W.I.P.)"));
+ sioxFrame.add(sioxVBox);
+ potraceBox.pack_start(sioxFrame, false, false, 0);
+
+
//##Set up the Potrace panel
/*#### brightness ####*/