Special watcher class for showing commands dependene on the selection. More...
#include <TaskWatcher.h>
Public Member Functions | |
virtual bool | shouldShow (void) |
is called wenn the document or the Selection changes. | |
TaskWatcherCommands (const char *Filter, const char *commands[], const char *name, const char *pixmap) | |
~TaskWatcherCommands () |
Special watcher class for showing commands dependene on the selection.
Definition at line 69 of file Gui/TaskView/TaskWatcher.h.
TaskWatcherCommands::TaskWatcherCommands | ( | const char * | Filter, | |
const char * | commands[], | |||
const char * | name, | |||
const char * | pixmap | |||
) |
Definition at line 85 of file Gui/TaskView/TaskWatcher.cpp.
References Gui::Command::addTo(), Gui::BitmapFactory(), Gui::Application::commandManager(), Gui::TaskView::TaskWatcher::Content, Gui::CommandManager::getCommandByName(), and Gui::Application::Instance.
TaskWatcherCommands::~TaskWatcherCommands | ( | ) |
Definition at line 105 of file Gui/TaskView/TaskWatcher.cpp.
bool TaskWatcherCommands::shouldShow | ( | void | ) | [virtual] |
is called wenn the document or the Selection changes.
Reimplemented from Gui::TaskView::TaskWatcher.
Reimplemented in Gui::TaskView::TaskWatcherCommandsEmptyDoc.
Definition at line 114 of file Gui/TaskView/TaskWatcher.cpp.
References Gui::SelectionFilter::match().