summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/tracedialog.cpp
diff options
context:
space:
mode:
authorBob Jamison <ishmalius@gmail.com>2006-07-05 21:37:13 +0000
committerishmal <ishmal@users.sourceforge.net>2006-07-05 21:37:13 +0000
commitdd7634180fb609e6be01eaf5b7ec712306369d1d (patch)
tree580031be846fc336f54c8e1eb8e7c83190243040 /src/ui/dialog/tracedialog.cpp
parentreplace single toggle button with less confusing pick-alpha and set-alpha opt... (diff)
downloadinkscape-dd7634180fb609e6be01eaf5b7ec712306369d1d.tar.gz
inkscape-dd7634180fb609e6be01eaf5b7ec712306369d1d.zip
refactoring, add background removal
(bzr r1360)
Diffstat (limited to 'src/ui/dialog/tracedialog.cpp')
-rw-r--r--src/ui/dialog/tracedialog.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/ui/dialog/tracedialog.cpp b/src/ui/dialog/tracedialog.cpp
index 967ed4327..6182954f6 100644
--- a/src/ui/dialog/tracedialog.cpp
+++ b/src/ui/dialog/tracedialog.cpp
@@ -136,13 +136,14 @@ class TraceDialogImpl : public TraceDialog
Gtk::HBox potraceMultiScanHBox2;
Gtk::RadioButton potraceMultiScanColorRadioButton;
- Gtk::CheckButton potraceMultiScanStackButton;
Gtk::HBox potraceMultiScanHBox3;
Gtk::RadioButton potraceMultiScanMonoRadioButton;
Gtk::Label potraceMultiScanNrColorLabel;
+ Gtk::CheckButton potraceMultiScanStackButton;
Gtk::CheckButton potraceMultiScanSmoothButton;
+ Gtk::CheckButton potraceMultiScanBackgroundButton;
//preview
@@ -230,6 +231,8 @@ void TraceDialogImpl::potraceProcess(bool do_i_trace)
pte.setMultiScanStack(do_i_stack);
bool do_i_smooth = potraceMultiScanSmoothButton.get_active();
pte.setMultiScanSmooth(do_i_smooth);
+ bool do_i_remove_background = potraceMultiScanBackgroundButton.get_active();
+ pte.setMultiScanRemoveBackground(do_i_remove_background);
//##### Get intermediate bitmap image
Glib::RefPtr<Gdk::Pixbuf> pixbuf = tracer.getSelectedImage();
@@ -342,7 +345,7 @@ TraceDialogImpl::TraceDialogImpl()
/*#### SIOX ####*/
//# for now, put at the top of the potrace box. something better later
- sioxButton.set_label(_("SIOX foreground selection (experimental)"));
+ sioxButton.set_label(_("SIOX foreground selection"));
sioxBox.pack_start(sioxButton, false, false, MARGIN);
tips.set_tip(sioxButton,
_("Cover the area you want to select as the foreground"));
@@ -461,6 +464,12 @@ TraceDialogImpl::TraceDialogImpl()
tips.set_tip(potraceMultiScanColorRadioButton, _("Trace the given number of reduced colors"));
+ // TRANSLATORS: "Layer" refers to one of the stacked paths in the multiscan
+ potraceMultiScanBackgroundButton.set_label(_("Remove background"));
+ potraceMultiScanBackgroundButton.set_active(false);
+ potraceMultiScanHBox2.pack_end(potraceMultiScanBackgroundButton, false, false, MARGIN);
+ tips.set_tip(potraceMultiScanBackgroundButton, _("Remove bottom (background) layer when done"));
+
potraceMultiScanVBox.pack_start(potraceMultiScanHBox2, false, false, MARGIN);
//---Hbox3
@@ -481,6 +490,7 @@ TraceDialogImpl::TraceDialogImpl()
potraceMultiScanHBox3.pack_end(potraceMultiScanSmoothButton, false, false, MARGIN);
tips.set_tip(potraceMultiScanSmoothButton, _("Apply Gaussian blur to the bitmap before tracing"));
+
potraceMultiScanVBox.pack_start(potraceMultiScanHBox3, false, false, MARGIN);
potraceMultiScanFrame.set_label(_("Multiple Scanning"));