git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@755 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-19 03:47:01 +00:00
parent d722d9da58
commit 5b0a5235cc
8 changed files with 304 additions and 6 deletions

View File

@@ -49,5 +49,6 @@
#include <Mw/Widget/RadioBox.h>
#include <Mw/Widget/Separator.h>
#include <Mw/Widget/ComboBox.h>
#include <Mw/Widget/TreeView.h>
#endif

View File

@@ -19,7 +19,9 @@ typedef struct _MwEntry* MwEntry;
typedef struct _MwViewport* MwViewport;
typedef struct _MwListBox* MwListBox;
typedef struct _MwComboBox* MwComboBox;
typedef struct _MwTreeView* MwTreeView;
typedef struct _MwListBoxEntry MwListBoxEntry;
typedef struct _MwTreeViewEntry MwTreeViewEntry;
typedef struct _MwDirectoryEntry MwDirectoryEntry;
typedef struct _MwListBoxPacket MwListBoxPacket;
#ifdef _MILSKO
@@ -124,7 +126,7 @@ struct _MwListBox {
MwWidget vscroll;
MwWidget frame;
MwListBoxEntry* list;
int selected;
int selected;
unsigned long click_time;
int pressed;
int* width;
@@ -137,6 +139,19 @@ struct _MwComboBox {
MwWidget listbox;
};
struct _MwTreeViewEntry {
char* label;
MwLLPixmap pixmap;
MwTreeViewEntry* tree;
};
struct _MwTreeView {
MwWidget frame;
MwWidget vscroll;
int changed;
MwTreeViewEntry* tree;
};
struct _MwDirectoryEntry {
char* name;
int type;

View File

@@ -0,0 +1,26 @@
/* $Id$ */
/*!
* @file Mw/Widget/TreeView.h
* @brief TreeView widget
*/
#ifndef __MW_WIDGET_TREEVIEW_H__
#define __MW_WIDGET_TREEVIEW_H__
#include <Mw/MachDep.h>
#include <Mw/TypeDefs.h>
#include <Mw/Core.h>
#ifdef __cplusplus
extern "C" {
#endif
/*!
* @brief TreeView widget class
*/
MWDECL MwClass MwTreeViewClass;
#ifdef __cplusplus
}
#endif
#endif