This commit is contained in:
jriegel
2012-12-20 19:10:29 +01:00
parent 92d4c0f612
commit b2930647b9
3 changed files with 43 additions and 1 deletions

View File

@@ -143,5 +143,30 @@ bool TaskWatcherCommandsEmptyDoc::shouldShow()
return doc && doc->countObjects() == 0;
}
//**************************************************************************
//**************************************************************************
// TaskWatcherCommandsEmptySelection
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
TaskWatcherCommandsEmptySelection::TaskWatcherCommandsEmptySelection(const char* commands[],
const char* name,
const char* pixmap )
: TaskWatcherCommands(0,commands,name,pixmap)
{
}
TaskWatcherCommandsEmptySelection::~TaskWatcherCommandsEmptySelection()
{
}
//==== implementer ===========================================================================
//==== calls from the TaskView ===============================================================
bool TaskWatcherCommandsEmptySelection::shouldShow()
{
return (App::GetApplication().getActiveDocument() && Gui::Selection().size() == 0);
}
#include "moc_TaskWatcher.cpp"