summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 678a61f)
raw | patch | inline | side by side (parent: 678a61f)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 18 Apr 2008 03:25:42 +0000 (03:25 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 18 Apr 2008 03:25:42 +0000 (03:25 +0000) |
src/extension/effect.cpp | patch | blob | history | |
src/extension/effect.h | patch | blob | history | |
src/extension/prefdialog.cpp | patch | blob | history |
index b4eeb9c9a5aa88f5c029f1ede2ebd8a817f9dbb1..2010e253a6429d0e3831edd256b8a53615cd3f81 100644 (file)
--- a/src/extension/effect.cpp
+++ b/src/extension/effect.cpp
bool hidden = false;
no_doc = false;
+ no_live_preview = false;
if (repr != NULL) {
if (child->attribute("needs-document") && !strcmp(child->attribute("needs-document"), "false")) {
no_doc = true;
}
+ if (child->attribute("needs-live-preview") && !strcmp(child->attribute("needs-live-preview"), "false")) {
+ no_live_preview = true;
+ }
for (Inkscape::XML::Node *effect_child = sp_repr_children(child); effect_child != NULL; effect_child = effect_child->next()) {
if (!strcmp(effect_child->name(), "effects-menu")) {
// printf("Found local effects menu in %s\n", this->get_name());
diff --git a/src/extension/effect.h b/src/extension/effect.h
index 58e39c63dc084804efe07da2b3da87a1cb096604..0724bd9610bb1ad597ab7d633db6aaecf7e6eb7a 100644 (file)
--- a/src/extension/effect.h
+++ b/src/extension/effect.h
Gtk::VBox * get_info_widget(void);
bool no_doc; // if true, the effect does not process SVG document at all, so no need to save, read, and watch for errors
+ bool no_live_preview; // if true, the effect does not need "live preview" checkbox in its dialog
void set_pref_dialog (PrefDialog * prefdialog);
private:
index 9cfa39bd57b89e8fa10f14ac7d70db1597a61e72..10249049f17aa2e6ab68a211cbc257a0589be914 100644 (file)
set_default_response(Gtk::RESPONSE_OK);
_button_ok->grab_focus();
- if (_effect != NULL) {
+ if (_effect != NULL && !_effect->no_live_preview) {
if (_param_preview == NULL) {
XML::Document * doc = sp_repr_read_mem(live_param_xml, strlen(live_param_xml), NULL);
_param_preview = Parameter::make(doc->root(), _effect);