2026-04-17 19:42:14 +09:00
|
|
|
#ifndef __MWCXX_WIDGET_TREEVIEW_H__
|
|
|
|
|
#define __MWCXX_WIDGET_TREEVIEW_H__
|
|
|
|
|
|
|
|
|
|
#include <MwCXX/MachDep.h>
|
|
|
|
|
#include <MwCXX/Widget/Base.h>
|
|
|
|
|
|
|
|
|
|
#include <Mw/Widget/TreeView.h>
|
|
|
|
|
|
|
|
|
|
namespace MwCXX {
|
|
|
|
|
class TreeView : public MwCXX::Base {
|
2026-04-17 22:25:28 +09:00
|
|
|
protected:
|
|
|
|
|
virtual void RegisterHandlers();
|
|
|
|
|
|
2026-04-17 21:26:28 +09:00
|
|
|
public:
|
2026-04-18 01:05:20 +09:00
|
|
|
TreeView(MwWidget widget, MwCXX::Base* parent = NULL);
|
2026-04-17 21:26:28 +09:00
|
|
|
TreeView(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
2026-04-17 19:42:14 +09:00
|
|
|
|
2026-04-18 19:46:54 +09:00
|
|
|
int GetLeftPadding();
|
2026-04-17 21:26:28 +09:00
|
|
|
void SetLeftPadding(int value);
|
2026-04-18 19:46:54 +09:00
|
|
|
int GetSingleClickSelectable();
|
2026-04-17 21:26:28 +09:00
|
|
|
void SetSingleClickSelectable(int value);
|
2026-04-17 22:25:28 +09:00
|
|
|
|
|
|
|
|
virtual void OnTreeViewActivate(void* value) {};
|
2026-04-18 02:31:46 +09:00
|
|
|
|
|
|
|
|
void (*TreeViewActivateHandler)(MwCXX::TreeView* widget, void* value);
|
2026-04-20 05:29:42 +09:00
|
|
|
|
|
|
|
|
void Add(void* parent, MwLLPixmap pixmap, MwCXX::String item);
|
|
|
|
|
void Delete(void* item);
|
|
|
|
|
void Reset();
|
2026-04-17 19:42:14 +09:00
|
|
|
};
|
|
|
|
|
}; // namespace MwCXX
|
|
|
|
|
|
|
|
|
|
#endif
|