Choreonoid  1.8
MultiSeqItemCreationPanel.h
Go to the documentation of this file.
1 #ifndef CNOID_BASE_MULTI_SEQ_ITEM_CREATION_PANEL_H
2 #define CNOID_BASE_MULTI_SEQ_ITEM_CREATION_PANEL_H
3 
4 #include "AbstractSeqItem.h"
5 #include "SpinBox.h"
6 #include <cnoid/ItemManager>
7 #include <QLineEdit>
8 #include "exportdecl.h"
9 
10 namespace cnoid {
11 
12 class CNOID_EXPORT MultiSeqItemCreationPanel : public ItemCreationPanelBase<AbstractSeqItem>
13 {
14 public:
15  MultiSeqItemCreationPanel(const char* numSeqsCaption);
16 
17  virtual bool initializeCreation(AbstractSeqItem* protoItem, Item* parentItem) override;
18  virtual bool updateItem(AbstractSeqItem* protoItem, Item* parentItem) override;
19 
20  virtual void doExtraInitialization(AbstractSeqItem* protoItem, Item* parentItem);
21  virtual void doExtraItemUpdate(AbstractSeqItem* protoItem, Item* parentItem);
22 
23 private:
24  QLineEdit* nameEntry;
25  const char* numSeqsCaption;
26  SpinBox* numSeqsSpin;
27  DoubleSpinBox* timeLengthSpin;
28  DoubleSpinBox* frameRateSpin;
29 
30  void createPanel();
31 };
32 
33 }
34 
35 #endif
AbstractSeqItem.h
cnoid::DoubleSpinBox
Definition: DoubleSpinBox.h:11
cnoid::SpinBox
Definition: SpinBox.h:12
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Item
Definition: Item.h:29
cnoid::MultiSeqItemCreationPanel
Definition: MultiSeqItemCreationPanel.h:12
cnoid::AbstractSeqItem
Definition: AbstractSeqItem.h:15
cnoid::ItemCreationPanelBase
Definition: ItemManager.h:34
SpinBox.h