OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4ObjectListDlg.h
Go to the documentation of this file.
1 /*
2  * OpenClonk, http://www.openclonk.org
3  *
4  * Copyright (c) 2007-2009, RedWolf Design GmbH, http://www.clonk.de/
5  * Copyright (c) 2013-2016, The OpenClonk Team and contributors
6  *
7  * Distributed under the terms of the ISC license; see accompanying file
8  * "COPYING" for details.
9  *
10  * "Clonk" is a registered trademark of Matthes Bender, used with permission.
11  * See accompanying file "TRADEMARK" for details.
12  *
13  * To redistribute this file separately, substitute the full license texts
14  * for the above references.
15  */
16 
17 /* A window listing all objects in the game */
18 
19 #ifndef INC_C4ObjectListDlg
20 #define INC_C4ObjectListDlg
21 
22 
23 #include "object/C4ObjectList.h"
24 
26 {
27 #ifdef WITH_QT_EDITOR
28  class C4ConsoleQtObjectListModel *view_model; // forward into Qt object list model
29 #endif
30 public:
32  ~C4ObjectListDlg() override;
33 #ifdef WITH_QT_EDITOR
34  void SetModel(C4ConsoleQtObjectListModel *new_view_model) { view_model = new_view_model; }
35 #endif
36 
37  void Execute();
38  void Open();
39  void Update(class C4EditCursorSelection &rSelection);
40 
41  void OnObjectRemove(C4ObjectList * pList, C4ObjectLink * pLnk) override;
42  void OnObjectAdded(C4ObjectList * pList, C4ObjectLink * pLnk) override;
43  void OnObjectRename(C4ObjectList * pList, C4ObjectLink * pLnk) override;
44  void OnObjectContainerChanged(C4Object *obj, C4Object *old_container, C4Object *new_container) override;
45 };
46 
47 #endif //INC_C4ObjectListDlg
void OnObjectRename(C4ObjectList *pList, C4ObjectLink *pLnk) override
void OnObjectAdded(C4ObjectList *pList, C4ObjectLink *pLnk) override
~C4ObjectListDlg() override
void OnObjectRemove(C4ObjectList *pList, C4ObjectLink *pLnk) override
void OnObjectContainerChanged(C4Object *obj, C4Object *old_container, C4Object *new_container) override
void Update(class C4EditCursorSelection &rSelection)