OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
tablebottombox.hpp
Go to the documentation of this file.
1 #ifndef CSV_WORLD_BOTTOMBOX_H
2 #define CSV_WORLD_BOTTOMBOX_H
3 
4 #include <QWidget>
6 
8 
9 class QLabel;
10 class QStackedLayout;
11 class QStatusBar;
12 
13 namespace CSMDoc
14 {
15  class Document;
16 }
17 
18 namespace CSVWorld
19 {
20  class CreatorFactoryBase;
21  class Creator;
22 
23  class TableBottomBox : public QWidget
24  {
25  Q_OBJECT
26 
28 
30  QLabel *mStatus;
31  QStatusBar *mStatusBar;
32  int mStatusCount[4];
33 
37 
38  QStackedLayout *mLayout;
40  int mRow;
41  int mColumn;
42 
43  private:
44 
45  // not implemented
48 
49  void updateSize();
50 
51  void updateStatus();
52 
54  const std::vector<std::string> &selectedIds);
55 
56  public:
57 
58  TableBottomBox (const CreatorFactoryBase& creatorFactory,
59  CSMDoc::Document& document,
60  const CSMWorld::UniversalId& id,
61  QWidget *parent = 0);
62 
63  virtual ~TableBottomBox();
64 
65  virtual bool eventFilter(QObject *object, QEvent *event);
66 
67  void setEditLock (bool locked);
68 
69  void setStatusBar (bool show);
70 
71  bool canCreateAndDelete() const;
75 
76  signals:
77 
78  void requestFocus (const std::string& id);
81 
82  private slots:
83 
84  void requestDone();
86 
87  void currentWidgetChanged(int index);
88 
89  public slots:
90 
91  void selectionSizeChanged (int size);
92 
93  void tableSizeChanged (int size, int deleted, int modified);
97 
98  void positionChanged (int row, int column);
99 
100  void noMorePosition();
101 
102  void createRequest();
103  void cloneRequest(const std::string& id,
104  const CSMWorld::UniversalId::Type type);
105 
106  void extendedDeleteConfigRequest(const std::vector<std::string> &selectedIds);
107  void extendedRevertConfigRequest(const std::vector<std::string> &selectedIds);
108  };
109 }
110 
111 #endif
void requestFocus(const std::string &id)
Record creator UI base class.
Definition: creator.hpp:21
static const struct @2 signals[]
Definition: tablebottombox.hpp:27
void currentWidgetChanged(int index)
Definition: tablebottombox.cpp:176
virtual bool eventFilter(QObject *object, QEvent *event)
Definition: tablebottombox.cpp:133
void selectionSizeChanged(int size)
Definition: tablebottombox.cpp:181
Creator * mCreator
Definition: tablebottombox.hpp:35
ExtendedCommandConfigurator * mExtendedConfigurator
Definition: tablebottombox.hpp:36
bool canCreateAndDelete() const
Definition: tablebottombox.cpp:160
void updateSize()
Definition: tablebottombox.cpp:13
void extendedDeleteConfigRequest(const std::vector< std::string > &selectedIds)
Definition: tablebottombox.cpp:252
void tableSizeChanged(int size, int deleted, int modified)
Definition: tablebottombox.cpp:190
Type
Definition: universalid.hpp:40
void updateStatus()
Definition: tablebottombox.cpp:27
void extendedRevertConfigRequest(const std::vector< std::string > &selectedIds)
Definition: tablebottombox.cpp:257
void setStatusBar(bool show)
Definition: tablebottombox.cpp:147
void requestDone()
Definition: tablebottombox.cpp:165
Definition: tablebottombox.hpp:27
Definition: tablebottombox.hpp:27
QLabel * mStatus
Definition: tablebottombox.hpp:30
virtual ~TableBottomBox()
Definition: tablebottombox.cpp:128
Definition: tablebottombox.hpp:23
void positionChanged(int row, int column)
Definition: tablebottombox.cpp:216
Definition: extendedcommandconfigurator.hpp:29
bool mShowStatusBar
Definition: tablebottombox.hpp:29
Mode
Definition: extendedcommandconfigurator.hpp:34
int mColumn
Definition: tablebottombox.hpp:41
void createRequest()
Definition: tablebottombox.cpp:230
Base class for Creator factory.
Definition: creator.hpp:54
int mStatusCount[4]
Definition: tablebottombox.hpp:32
QStatusBar * mStatusBar
Definition: tablebottombox.hpp:31
EditMode mEditMode
Definition: tablebottombox.hpp:34
Definition: document.hpp:57
QStackedLayout * mLayout
Definition: tablebottombox.hpp:38
TableBottomBox & operator=(const TableBottomBox &)
void setEditLock(bool locked)
Definition: tablebottombox.cpp:121
void extendedConfigRequest(ExtendedCommandConfigurator::Mode mode, const std::vector< std::string > &selectedIds)
Definition: tablebottombox.cpp:65
void noMorePosition()
Definition: tablebottombox.cpp:224
bool mHasPosition
Definition: tablebottombox.hpp:39
void cloneRequest(const std::string &id, const CSMWorld::UniversalId::Type type)
Definition: tablebottombox.cpp:240
EditMode
Definition: tablebottombox.hpp:27
TableBottomBox(const TableBottomBox &)
int mRow
Definition: tablebottombox.hpp:40
Definition: universalid.hpp:12