Choreonoid  1.8
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
cnoid::TaskView Class Reference

#include <TaskView.h>

Inheritance diagram for cnoid::TaskView:
cnoid::View cnoid::AbstractTaskSequencer cnoid::Widget

Public Member Functions

 TaskView ()
 
 ~TaskView ()
 
virtual void activate (bool on=true)
 
virtual bool isActive ()
 
virtual void addTask (Task *task)
 
virtual bool updateTask (Task *task)
 
virtual bool removeTask (Task *task)
 
virtual SignalProxy< void(Task *task)> sigTaskAdded ()
 
virtual SignalProxy< void(Task *task)> sigTaskRemoved ()
 
virtual void clearTasks ()
 
virtual int numTasks () const
 
virtual Tasktask (int index)
 
virtual int currentTaskIndex () const
 
virtual bool setCurrentTask (int taskIndex)
 
virtual SignalProxy< void()> sigCurrentTaskChanged ()
 
virtual int currentPhaseIndex () const
 
virtual void setCurrentPhase (int phaseIndex)
 
virtual SignalProxy< void()> sigCurrentPhaseChanged ()
 
virtual int currentCommandIndex () const
 
virtual void executeCommand (int commandIndex)
 
virtual SignalProxy< void()> sigCurrentCommandChanged ()
 
virtual bool isBusy () const
 
virtual SignalProxy< void()> sigBusyStateChanged ()
 
virtual void cancelCurrentCommand ()
 
virtual SignalProxy< void()> sigCurrentCommandCanceled ()
 
virtual bool isAutoMode () const
 
virtual void setAutoMode (bool on)
 
virtual SignalProxy< void(bool isAutoMode)> sigAutoModeToggled ()
 
virtual void serializeTasks (const std::vector< std::string > &tasks)
 
void setNoExecutionMode (bool on)
 
bool isNoExecutionMode () const
 
void setCurrentCommand (int commandIndex, bool doExecution)
 
void setBusyState (bool on)
 
void executeMenuItem (int index)
 
void checkMenuItem (int index, bool on)
 
std::vector< bool > menuItemCheckStates () const
 
SignalProxy< void()> sigMenuRequest ()
 
void showMenu (std::vector< bool > checkStates)
 
SignalProxy< void(int index)> sigMenuItemTriggered ()
 
SignalProxy< void(int index, bool on)> sigMenuItemToggled ()
 
- Public Member Functions inherited from cnoid::View
 View ()
 
virtual ~View ()
 
ViewClassviewClass () const
 
const std::string & name () const
 
virtual void setName (const std::string &name)
 
void setTitleFormat (const std::string &title)
 
void resetTitleFormat ()
 
const std::string & titleFormat () const
 
ViewAreaviewArea () const
 
bool isActive () const
 
bool hasFocus () const
 
void bringToFront ()
 
SignalProxy< void()> sigActivated ()
 
SignalProxy< void()> sigDeactivated ()
 
SignalProxy< void()> sigResized ()
 
SignalProxy< void()> sigRemoved ()
 
void setDefaultLayoutArea (LayoutArea area)
 
LayoutArea defaultLayoutArea () const
 
void setLayout (QLayout *layout, double marginRatio=0.0)
 
void setLayout (QLayout *layout, double leftMarginRatio, double topMarginRatio, double rightMarginRatio, double bottomMarginRatio)
 
QPoint viewAreaPos () const
 
virtual QWidget * indicatorOnInfoBar ()
 
void enableFontSizeZoomKeys (bool on)
 
- Public Member Functions inherited from cnoid::Widget
 Widget (QWidget *parent=0)
 
SignalProxy< void(std::string name)> sigObjectNameChanged ()
 
SignalProxy< void(std::string title)> sigWindowTitleChanged ()
 
- Public Member Functions inherited from cnoid::AbstractTaskSequencer
virtual ~AbstractTaskSequencer ()
 

Static Public Member Functions

static void initializeClass (ExtensionManager *ext)
 
static TaskViewinstance ()
 
- Static Public Member Functions inherited from cnoid::View
static ViewlastFocusView ()
 

Protected Member Functions

virtual bool storeState (Archive &archive)
 
virtual bool restoreState (const Archive &archive)
 
- Protected Member Functions inherited from cnoid::View
void setLayoutContentsMarginRatio (QLayout *layout, double leftMarginRatio, double topMarginRatio, double rightMarginRatio, double bottomMarginRatio)
 
void zoomFontSize (int zoom)
 
virtual void onActivated ()
 
virtual void onDeactivated ()
 
virtual void onFocusChanged (bool on)
 
virtual void onAttachedMenuRequest (MenuManager &menuManager)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void resizeEvent (QResizeEvent *event)
 

Additional Inherited Members

- Public Types inherited from cnoid::View
enum  LayoutArea {
  TopLeftArea = 0, MiddleLeftArea = 1, BottomLeftArea = 2, TopCenterArea = 3,
  CenterArea = 4, BottomCenterArea = 5, TopRightArea = 6, MiddleRightArea = 7,
  BottomRightArea = 8, NumLayoutAreas = 9, LEFT = TopLeftArea, LEFT_TOP = TopLeftArea,
  LEFT_BOTTOM = BottomLeftArea, CENTER = CenterArea, RIGHT = TopRightArea, BOTTOM = BottomCenterArea
}
 

Constructor & Destructor Documentation

◆ TaskView()

TaskView::TaskView ( )

◆ ~TaskView()

TaskView::~TaskView ( )

Member Function Documentation

◆ activate()

void TaskView::activate ( bool  on = true)
virtual

◆ addTask()

void TaskView::addTask ( Task task)
virtual

◆ cancelCurrentCommand()

void TaskView::cancelCurrentCommand ( )
virtual

◆ checkMenuItem()

void TaskView::checkMenuItem ( int  index,
bool  on 
)

◆ clearTasks()

void TaskView::clearTasks ( )
virtual

◆ currentCommandIndex()

int TaskView::currentCommandIndex ( ) const
virtual

◆ currentPhaseIndex()

int TaskView::currentPhaseIndex ( ) const
virtual

◆ currentTaskIndex()

int TaskView::currentTaskIndex ( ) const
virtual

◆ executeCommand()

void TaskView::executeCommand ( int  commandIndex)
virtual

◆ executeMenuItem()

void TaskView::executeMenuItem ( int  index)

◆ initializeClass()

void TaskView::initializeClass ( ExtensionManager ext)
static

◆ instance()

TaskView * TaskView::instance ( )
static

◆ isActive()

bool TaskView::isActive ( )
virtual

◆ isAutoMode()

bool TaskView::isAutoMode ( ) const
virtual

◆ isBusy()

bool TaskView::isBusy ( ) const
virtual

◆ isNoExecutionMode()

bool TaskView::isNoExecutionMode ( ) const

◆ menuItemCheckStates()

std::vector< bool > TaskView::menuItemCheckStates ( ) const

◆ numTasks()

int TaskView::numTasks ( ) const
virtual

◆ removeTask()

bool TaskView::removeTask ( Task task)
virtual
Note
This function is not implemented yet

Implements cnoid::AbstractTaskSequencer.

◆ restoreState()

bool TaskView::restoreState ( const Archive archive)
protectedvirtual

Reimplemented from cnoid::View.

◆ serializeTasks()

void TaskView::serializeTasks ( const std::vector< std::string > &  tasks)
virtual

◆ setAutoMode()

void TaskView::setAutoMode ( bool  on)
virtual

◆ setBusyState()

void TaskView::setBusyState ( bool  on)

◆ setCurrentCommand()

void TaskView::setCurrentCommand ( int  commandIndex,
bool  doExecution 
)

◆ setCurrentPhase()

void TaskView::setCurrentPhase ( int  phaseIndex)
virtual

◆ setCurrentTask()

bool TaskView::setCurrentTask ( int  taskIndex)
virtual

◆ setNoExecutionMode()

void TaskView::setNoExecutionMode ( bool  on)

◆ showMenu()

void TaskView::showMenu ( std::vector< bool >  checkStates)

◆ sigAutoModeToggled()

SignalProxy< void(bool isAutoMode)> TaskView::sigAutoModeToggled ( )
virtual

◆ sigBusyStateChanged()

SignalProxy< void()> TaskView::sigBusyStateChanged ( )
virtual

◆ sigCurrentCommandCanceled()

SignalProxy< void()> TaskView::sigCurrentCommandCanceled ( )
virtual

◆ sigCurrentCommandChanged()

SignalProxy< void()> TaskView::sigCurrentCommandChanged ( )
virtual

◆ sigCurrentPhaseChanged()

SignalProxy< void()> TaskView::sigCurrentPhaseChanged ( )
virtual

◆ sigCurrentTaskChanged()

SignalProxy< void()> TaskView::sigCurrentTaskChanged ( )
virtual

◆ sigMenuItemToggled()

SignalProxy< void(int index, bool on)> TaskView::sigMenuItemToggled ( )

◆ sigMenuItemTriggered()

SignalProxy< void(int index)> TaskView::sigMenuItemTriggered ( )

◆ sigMenuRequest()

SignalProxy< void()> TaskView::sigMenuRequest ( )

◆ sigTaskAdded()

SignalProxy< void(Task *task)> TaskView::sigTaskAdded ( )
virtual

◆ sigTaskRemoved()

SignalProxy< void(Task *task)> TaskView::sigTaskRemoved ( )
virtual

◆ storeState()

bool TaskView::storeState ( Archive archive)
protectedvirtual

Reimplemented from cnoid::View.

◆ task()

Task * TaskView::task ( int  index)
virtual

◆ updateTask()

bool TaskView::updateTask ( Task task)
virtual

The documentation for this class was generated from the following files: