Elaztek Developer Hub
Blamite Game Engine - Keystone  00313.05.23.21.2038.blamite
A library that enables the use of Qt in Blamite's editing tools.
treewidget.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <qtreewidget.h>
4 #include <Strings/editor/guerilla/projects/projects.h>
5 #include <string>
6 
7 #ifndef KEYSTONE
8 #define KEYSTONE
9 #endif
10 
11 class guerilla_window;
12 
13 class BlamExplorerBarTreeWidget : public QTreeWidgetItem
14 {
15 private:
16  BlamTagTreeNode* tag_node = nullptr;
17  BlamProject* project = nullptr;
18  bool is_root = false;
19  bool is_valid = false;
20  bool use_hierarchy_view = true;
21 
22  BlamPlugin* plugin = nullptr;
23  bool is_fake_container = false;
24 
25  guerilla_window* guerilla_main_window = nullptr;
26 
30  void GenerateTreeWidgets();
31 
35  void UpdateIcon();
36 
37 public:
48  BlamExplorerBarTreeWidget(guerilla_window* main_window, BlamProject* _project, bool hierarchy = true);
49 
60  BlamExplorerBarTreeWidget(guerilla_window* main_window, BlamTagTreeNode* node, bool hierarchy, BlamProject* _project = nullptr);
61 
70  BlamExplorerBarTreeWidget(guerilla_window* main_window, BlamPlugin* _plugin);
71 
76 
82  bool IsValid();
83 
87  void Refresh();
88 
92  void OpenTag();
93 };
BlamExplorerBarTreeWidget::IsValid
bool IsValid()
Checks whether the node is valid.
Definition: treewidget.cpp:245
BlamExplorerBarTreeWidget::OpenTag
void OpenTag()
This will open the tag associated with the node, if one is present.
Definition: treewidget.cpp:267
BlamExplorerBarTreeWidget::~BlamExplorerBarTreeWidget
~BlamExplorerBarTreeWidget()
Destructor which releases all pointers if they are still loaded.
Definition: treewidget.cpp:62
BlamExplorerBarTreeWidget::Refresh
void Refresh()
Refreshes all data relating to this node.
Definition: treewidget.cpp:250
BlamExplorerBarTreeWidget
Definition: treewidget.h:13
BlamExplorerBarTreeWidget::BlamExplorerBarTreeWidget
BlamExplorerBarTreeWidget(guerilla_window *main_window, BlamProject *_project, bool hierarchy=true)
Creates a new Tree Widget for the Guerilla Explorer Bar.
Definition: treewidget.cpp:13
guerilla_window
The main Guerilla window.
Definition: guerilla_window.h:20