summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b8e3889)
raw | patch | inline | side by side (parent: b8e3889)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 2 Feb 2009 15:52:53 +0000 (15:52 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 2 Feb 2009 15:52:53 +0000 (15:52 +0000) |
src/ui/dialog/tracedialog.cpp | patch | blob | history |
index 6ec2da5de08ae19772076c08d2a469359feb1b2d..74404c2f804e00da48325b4e064944e1fd5226dd 100644 (file)
#include <gtk/gtkdialog.h> //for GTK_RESPONSE* types
#include <glibmm/i18n.h>
-
+#include "desktop.h"
#include "tracedialog.h"
#include "trace/potrace/inkscape-potrace.h"
//#### Credits
- Gtk::Frame potraceCreditsFrame;
Gtk::VBox potraceCreditsVBox;
Gtk::Label potraceCreditsLabel;
*/
void TraceDialogImpl::potraceProcess(bool do_i_trace)
{
+ SPDesktop *desktop = SP_ACTIVE_DESKTOP;
+ if (desktop)
+ desktop->setWaitingCursor();
+
//##### Get the tracer and engine
Inkscape::Trace::Potrace::PotraceTracingEngine pte;
mainOkButton->set_sensitive(true);
}
+ if (desktop)
+ desktop->clearWaitingCursor();
}
*/
void TraceDialogImpl::abort()
{
- //### Do some GUI thing
+ SPDesktop *desktop = SP_ACTIVE_DESKTOP;
+ if (desktop)
+ desktop->setWaitingCursor();
+
+ if (mainCancelButton)
+ mainCancelButton->set_sensitive(false);
+ if (mainOkButton)
+ mainOkButton->set_sensitive(true);
//### Make the abort() call to the tracer
tracer.abort();
-
}
notebook.append_page(optionsPageBox, _("Options"));
- //### end notebook
-
- leftVBox.pack_start(notebook, true, true, MARGIN);
-
//### credits
- potraceCreditsLabel.set_text(_("Thanks to Peter Selinger, http://potrace.sourceforge.net"));
+ potraceCreditsLabel.set_text(_("Inkscape bitmap tracing\nis based on Potrace,\ncreated by Peter Selinger\n\nhttp://potrace.sourceforge.net"));
potraceCreditsVBox.pack_start(potraceCreditsLabel, false, false, MARGIN);
- potraceCreditsFrame.set_label(_("Credits"));
- potraceCreditsFrame.set_shadow_type(Gtk::SHADOW_NONE);
- potraceCreditsFrame.add(potraceCreditsVBox);
- leftVBox.pack_start(potraceCreditsFrame, false, false, 0);
+ notebook.append_page(potraceCreditsVBox, _("Credits"));
+
+ //### end notebook
+
+ leftVBox.pack_start(notebook, true, true, MARGIN);
//#### end left panel