Choreonoid  1.5
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
cnoid::ItemTreeView Class Reference

#include <ItemTreeView.h>

Inheritance diagram for cnoid::ItemTreeView:
cnoid::View

Public Member Functions

 ItemTreeView ()
 
 ItemTreeView (RootItem *rootItem, bool showRoot=false)
 
 ~ItemTreeView ()
 
RootItemrootItem ()
 
void showRoot (bool show)
 
template<class ItemType >
ItemList< ItemType > selectedItems ()
 
const ItemListselectedItems ()
 
template<class ItemType >
ItemType * selectedItem (bool fromMultiItems=false)
 
template<class ItemType >
ItemList< ItemType > selectedSubItems (ItemPtr topItem)
 
template<class ItemType >
ItemType * selectedSubItem (ItemPtr topItem, bool fromMultiItems=false)
 
bool isItemSelected (Item *item)
 
bool selectItem (Item *item, bool select=true)
 
void unselectItem (Item *item)
 
void selectAllItems ()
 
void clearSelection ()
 
int addCheckColumn ()
 
void setCheckColumnToolTip (int id, const QString &whatsThis)
 
void updateCheckColumnToolTip (int id)
 
void showCheckColumn (int id, bool on=true)
 
void storeCheckColumnState (int id, Archive &archive)
 
bool restoreCheckColumnState (int id, const Archive &archive)
 
void releaseCheckColumn (int id)
 
template<class ItemType >
ItemList< ItemType > checkedItems (int id=0)
 
bool isItemChecked (ItemPtr item, int id=0)
 
bool checkItem (ItemPtr item, bool check=true, int id=0)
 
SignalProxy< void(const ItemList<> &)> sigSelectionChanged ()
 
SignalProxy< void(const ItemList<> &)> sigSelectionOrTreeChanged ()
 
SignalProxy< void(Item *item, bool isChecked)> sigCheckToggled (int id=0)
 
SignalProxy< void(bool isChecked)> sigCheckToggled (Item *targetItem, int id=0)
 
void cutSelectedItems ()
 
- Public Member Functions inherited from cnoid::View
 View ()
 
virtual ~View ()
 
ViewClassviewClass () const
 
void setName (const std::string &name)
 
std::string name () const
 
ViewAreaviewArea () const
 
bool isActive () 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)
 
QPoint viewAreaPos () const
 
virtual QWidget * indicatorOnInfoBar ()
 
void enableFontSizeZoomKeys (bool on)
 

Static Public Member Functions

static void initializeClass (ExtensionManager *ext)
 
static ItemTreeViewinstance ()
 
static ItemTreeViewmainInstance ()
 
- Static Public Member Functions inherited from cnoid::View
static ViewlastFocusView ()
 
static SignalProxy< void(View *)> sigFocusChanged ()
 

Protected Member Functions

virtual bool storeState (Archive &archive)
 
virtual bool restoreState (const Archive &archive)
 
- Protected Member Functions inherited from cnoid::View
void zoomFontSize (int zoom)
 
virtual void onActivated ()
 
virtual void onDeactivated ()
 
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 {
  LEFT = 0, LEFT_TOP = 0, LEFT_BOTTOM = 1, CENTER = 2,
  RIGHT = 3, BOTTOM = 4, NUM_AREAS
}
 

Constructor & Destructor Documentation

ItemTreeView::ItemTreeView ( )
ItemTreeView::ItemTreeView ( RootItem rootItem,
bool  showRoot = false 
)
ItemTreeView::~ItemTreeView ( )

Member Function Documentation

int ItemTreeView::addCheckColumn ( )
Returns
The ID of the check column.
template<class ItemType >
ItemList<ItemType> cnoid::ItemTreeView::checkedItems ( int  id = 0)
inline
bool ItemTreeView::checkItem ( ItemPtr  item,
bool  check = true,
int  id = 0 
)
void ItemTreeView::clearSelection ( )
void ItemTreeView::cutSelectedItems ( )
void ItemTreeView::initializeClass ( ExtensionManager ext)
static
ItemTreeView * ItemTreeView::instance ( )
static
bool ItemTreeView::isItemChecked ( ItemPtr  item,
int  id = 0 
)
bool ItemTreeView::isItemSelected ( Item item)
ItemTreeView * ItemTreeView::mainInstance ( )
static
void ItemTreeView::releaseCheckColumn ( int  id)
bool ItemTreeView::restoreCheckColumnState ( int  id,
const Archive archive 
)
bool ItemTreeView::restoreState ( const Archive archive)
protectedvirtual

Reimplemented from cnoid::View.

RootItem * ItemTreeView::rootItem ( )
void ItemTreeView::selectAllItems ( )
template<class ItemType >
ItemType* cnoid::ItemTreeView::selectedItem ( bool  fromMultiItems = false)
inline
template<class ItemType >
ItemList<ItemType> cnoid::ItemTreeView::selectedItems ( )
inline
const ItemList& cnoid::ItemTreeView::selectedItems ( )
inline
template<class ItemType >
ItemType* cnoid::ItemTreeView::selectedSubItem ( ItemPtr  topItem,
bool  fromMultiItems = false 
)
inline
template<class ItemType >
ItemList<ItemType> cnoid::ItemTreeView::selectedSubItems ( ItemPtr  topItem)
inline
bool ItemTreeView::selectItem ( Item item,
bool  select = true 
)
void ItemTreeView::setCheckColumnToolTip ( int  id,
const QString &  whatsThis 
)
void ItemTreeView::showCheckColumn ( int  id,
bool  on = true 
)
void ItemTreeView::showRoot ( bool  show)
SignalProxy< void(Item *item, bool isChecked)> ItemTreeView::sigCheckToggled ( int  id = 0)
SignalProxy< void(bool isChecked)> ItemTreeView::sigCheckToggled ( Item targetItem,
int  id = 0 
)
SignalProxy< void(const ItemList<> &)> ItemTreeView::sigSelectionChanged ( )
SignalProxy< void(const ItemList<> &)> ItemTreeView::sigSelectionOrTreeChanged ( )
void ItemTreeView::storeCheckColumnState ( int  id,
Archive archive 
)
bool ItemTreeView::storeState ( Archive archive)
protectedvirtual

Reimplemented from cnoid::View.

void ItemTreeView::unselectItem ( Item item)
void ItemTreeView::updateCheckColumnToolTip ( int  id)

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