execution-env.cpp revision 597994bcb1845cfdb124a40c4a5493be413b8432
/*
* Authors:
* Ted Gould <ted@gould.cx>
*
* Copyright (C) 2007 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <config.h>
#include "gtkmm/messagedialog.h"
#include "execution-env.h"
#include "prefdialog.h"
#include "implementation/implementation.h"
#include "selection.h"
#include "effect.h"
#include "document.h"
#include "sp-namedview.h"
#include "desktop-handles.h"
#include "util/glib-list-iterators.h"
namespace Inkscape {
namespace Extension {
ExecutionEnv::ExecutionEnv (Effect * effect, Inkscape::UI::View::View * doc, Gtk::Widget * controls) :
_prefsVisible(false),
_finished(false),
_humanWait(false),
_canceled(false),
_prefsChanged(false),
//std::cout << "Selected: " << selected_id << std::endl;
++selected;
}
}
} else {
}
return;
}
ExecutionEnv::~ExecutionEnv (void) {
if (_visibleDialog != NULL) {
delete _visibleDialog;
}
return;
}
void
ExecutionEnv::preferencesChange (void) {
//std::cout << "Preferences are a changin'" << std::endl;
_prefsChanged = true;
if (_humanWait) {
_humanWait = false;
} else {
}
return;
}
void
if (_visibleDialog != NULL) {
delete _visibleDialog;
}
_visibleDialog->show();
_prefsVisible = true;
return;
}
void
ExecutionEnv::createWorkingDialog (void) {
if (_visibleDialog != NULL) {
delete _visibleDialog;
}
false, // use markup
true); // modal
_visibleDialog->show();
_prefsVisible = false;
return;
}
void
_finished = true;
return;
}
void
if (_humanWait) {
_finished = true;
} else {
}
} else {
if (_humanWait) {
} else {
}
_finished = true;
}
return;
}
void
ExecutionEnv::processingComplete(void) {
//std::cout << "Processing Complete" << std::endl;
if (_prefsChanged) { return; } // do it all again
if (_prefsVisible) {
_humanWait = true;
} else {
_finished = true;
}
return;
}
void
ExecutionEnv::processingCancel (void) {
return;
}
void
ExecutionEnv::documentCancel (void) {
_canceled = true;
return;
}
void
ExecutionEnv::documentCommit (void) {
return;
}
void
ExecutionEnv::reselect (void) {
}
return;
}
void
ExecutionEnv::run (void) {
while (!_finished) {
_canceled = false;
if (_humanWait) {
} else {
_prefsChanged = false;
}
if (_canceled) {
reselect();
}
}
return;
}
} } /* namespace Inkscape, Extension */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :