Choreonoid  1.8
Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members
cnoid::ItemTreePanelDialog Class Reference

#include <ItemTreePanelDialog.h>

Inheritance diagram for cnoid::ItemTreePanelDialog:
cnoid::Dialog

Public Types

enum  ModeFlags { PanelOnlyDisplayMode = 1, LastValidPanelKeepingMode = 2, SinglePanelSyncMode = 4 }
 

Public Member Functions

 ItemTreePanelDialog ()
 
 ItemTreePanelDialog (QWidget *parent, Qt::WindowFlags f=Qt::WindowFlags())
 
 ~ItemTreePanelDialog ()
 
void setMode (int flags)
 
int mode () const
 
ItemTreeWidgetitemTreeWidget ()
 
template<class TargetItemType >
void registerPanel (ItemTreePanelBase *panel)
 
template<class TargetItemType >
void registerPanel (std::function< ItemTreePanelBase *(TargetItemType *item)> panelFunction, std::function< QSize()> minimumSizeHintFunction)
 
void addTopAreaWidget (QWidget *widget)
 
void updateTopAreaLayout ()
 
bool setTopItem (Item *topItem, bool isTopVisible=false)
 
void show ()
 
bool setCurrentItem (Item *item, bool isNewItem=false)
 
- Public Member Functions inherited from cnoid::Dialog
 Dialog ()
 
 Dialog (QWidget *parent, Qt::WindowFlags f=Qt::WindowFlags())
 
SignalProxy< void()> sigAccepted ()
 
SignalProxy< void(int)> sigFinished ()
 
SignalProxy< void()> sigRejected ()
 

Protected Member Functions

virtual void onCurrentItemChanged (Item *item)
 
virtual void keyPressEvent (QKeyEvent *event) override
 
virtual void hideEvent (QHideEvent *event) override
 
- Protected Member Functions inherited from cnoid::Dialog
virtual void onAccepted ()
 
virtual void onRejected ()
 

Friends

class ItemTreePanelBase
 

Member Enumeration Documentation

◆ ModeFlags

Enumerator
PanelOnlyDisplayMode 
LastValidPanelKeepingMode 
SinglePanelSyncMode 

Constructor & Destructor Documentation

◆ ItemTreePanelDialog() [1/2]

ItemTreePanelDialog::ItemTreePanelDialog ( )

◆ ItemTreePanelDialog() [2/2]

ItemTreePanelDialog::ItemTreePanelDialog ( QWidget *  parent,
Qt::WindowFlags  f = Qt::WindowFlags() 
)

◆ ~ItemTreePanelDialog()

ItemTreePanelDialog::~ItemTreePanelDialog ( )

Member Function Documentation

◆ addTopAreaWidget()

void ItemTreePanelDialog::addTopAreaWidget ( QWidget *  widget)

◆ hideEvent()

void ItemTreePanelDialog::hideEvent ( QHideEvent *  event)
overrideprotectedvirtual

◆ itemTreeWidget()

ItemTreeWidget * ItemTreePanelDialog::itemTreeWidget ( )

◆ keyPressEvent()

void ItemTreePanelDialog::keyPressEvent ( QKeyEvent *  event)
overrideprotectedvirtual

◆ mode()

int ItemTreePanelDialog::mode ( ) const

◆ onCurrentItemChanged()

void ItemTreePanelDialog::onCurrentItemChanged ( Item item)
protectedvirtual

◆ registerPanel() [1/2]

template<class TargetItemType >
void cnoid::ItemTreePanelDialog::registerPanel ( ItemTreePanelBase panel)

◆ registerPanel() [2/2]

template<class TargetItemType >
void cnoid::ItemTreePanelDialog::registerPanel ( std::function< ItemTreePanelBase *(TargetItemType *item)>  panelFunction,
std::function< QSize()>  minimumSizeHintFunction 
)
inline

◆ setCurrentItem()

bool ItemTreePanelDialog::setCurrentItem ( Item item,
bool  isNewItem = false 
)

◆ setMode()

void ItemTreePanelDialog::setMode ( int  flags)

◆ setTopItem()

bool ItemTreePanelDialog::setTopItem ( Item topItem,
bool  isTopVisible = false 
)

◆ show()

void ItemTreePanelDialog::show ( )

◆ updateTopAreaLayout()

void ItemTreePanelDialog::updateTopAreaLayout ( )

Friends And Related Function Documentation

◆ ItemTreePanelBase

friend class ItemTreePanelBase
friend

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