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  QString mStatusMessage;
43 
44  private:
45 
46  // not implemented
49 
50  void updateSize();
51 
52  void updateStatus();
53 
55  const std::vector<std::string> &selectedIds);
56 
57  public:
58 
59  TableBottomBox (const CreatorFactoryBase& creatorFactory,
60  CSMDoc::Document& document,
61  const CSMWorld::UniversalId& id,
62  QWidget *parent = 0);
63 
64  virtual ~TableBottomBox();
65 
66  virtual bool eventFilter(QObject *object, QEvent *event);
67 
68  void setEditLock (bool locked);
69 
70  void setStatusBar (bool show);
71 
72  bool canCreateAndDelete() const;
76 
77  void setStatusMessage (const QString& message);
78 
79  signals:
80 
81  void requestFocus (const std::string& id);
84 
85  private slots:
86 
87  void requestDone();
89 
90  void currentWidgetChanged(int index);
91 
92  public slots:
93 
94  void selectionSizeChanged (int size);
95 
96  void tableSizeChanged (int size, int deleted, int modified);
100 
101  void positionChanged (int row, int column);
102 
103  void noMorePosition();
104 
105  void createRequest();
106  void cloneRequest(const std::string& id,
107  const CSMWorld::UniversalId::Type type);
108  void touchRequest(const std::vector<CSMWorld::UniversalId>&);
109 
110  void extendedDeleteConfigRequest(const std::vector<std::string> &selectedIds);
111  void extendedRevertConfigRequest(const std::vector<std::string> &selectedIds);
112  };
113 }
114 
115 #endif
void requestFocus(const std::string &id)
Record creator UI base class.
Definition: creator.hpp:21
void message(CodeContainer &code, Literals &literals, const std::string &message, int buttons)
Definition: generator.cpp:537
Definition: tablebottombox.hpp:27
void currentWidgetChanged(int index)
Definition: tablebottombox.cpp:182
virtual bool eventFilter(QObject *object, QEvent *event)
Definition: tablebottombox.cpp:139
void selectionSizeChanged(int size)
Definition: tablebottombox.cpp:193
Creator * mCreator
Definition: tablebottombox.hpp:35
ExtendedCommandConfigurator * mExtendedConfigurator
Definition: tablebottombox.hpp:36
bool canCreateAndDelete() const
Definition: tablebottombox.cpp:166
void updateSize()
Definition: tablebottombox.cpp:13
void extendedDeleteConfigRequest(const std::vector< std::string > &selectedIds)
Definition: tablebottombox.cpp:273
static const struct @8 signals[]
void tableSizeChanged(int size, int deleted, int modified)
Definition: tablebottombox.cpp:203
Type
Definition: universalid.hpp:40
void updateStatus()
Definition: tablebottombox.cpp:27
void extendedRevertConfigRequest(const std::vector< std::string > &selectedIds)
Definition: tablebottombox.cpp:278
void setStatusBar(bool show)
Definition: tablebottombox.cpp:153
void requestDone()
Definition: tablebottombox.cpp:171
Definition: tablebottombox.hpp:27
Definition: tablebottombox.hpp:27
QLabel * mStatus
Definition: tablebottombox.hpp:30
QString mStatusMessage
Definition: tablebottombox.hpp:42
virtual ~TableBottomBox()
Definition: tablebottombox.cpp:134
Definition: tablebottombox.hpp:23
void positionChanged(int row, int column)
Definition: tablebottombox.cpp:232
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:246
Base class for Creator factory.
Definition: creator.hpp:57
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:127
void extendedConfigRequest(ExtendedCommandConfigurator::Mode mode, const std::vector< std::string > &selectedIds)
Definition: tablebottombox.cpp:71
void noMorePosition()
Definition: tablebottombox.cpp:240
bool mHasPosition
Definition: tablebottombox.hpp:39
void cloneRequest(const std::string &id, const CSMWorld::UniversalId::Type type)
Definition: tablebottombox.cpp:256
EditMode
Definition: tablebottombox.hpp:27
TableBottomBox(const TableBottomBox &)
void touchRequest(const std::vector< CSMWorld::UniversalId > &)
Definition: tablebottombox.cpp:268
void setStatusMessage(const QString &message)
Definition: tablebottombox.cpp:187
int mRow
Definition: tablebottombox.hpp:40
Definition: universalid.hpp:12