Sun, 07 Dec 2025 15:50:20 +0100
rename tree.h to list.h
|
33
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
1 | /* |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
3 | * |
|
140
c03c338a7dcf
refactors value binding system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
129
diff
changeset
|
4 | * Copyright 2017 Olaf Wintermann. All rights reserved. |
|
33
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
5 | * |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
6 | * Redistribution and use in source and binary forms, with or without |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
7 | * modification, are permitted provided that the following conditions are met: |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
8 | * |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
9 | * 1. Redistributions of source code must retain the above copyright |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
10 | * notice, this list of conditions and the following disclaimer. |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
11 | * |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
12 | * 2. Redistributions in binary form must reproduce the above copyright |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
13 | * notice, this list of conditions and the following disclaimer in the |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
14 | * documentation and/or other materials provided with the distribution. |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
15 | * |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
17 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
18 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
20 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
26 | * POSSIBILITY OF SUCH DAMAGE. |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
27 | */ |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
28 | |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
29 | #ifndef UI_TREE_H |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
30 | #define UI_TREE_H |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
31 | |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
32 | #include "toolkit.h" |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
33 | |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
34 | #ifdef __cplusplus |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
35 | extern "C" { |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
36 | #endif |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
37 | |
|
411
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
38 | typedef struct UiModel UiModel; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
39 | typedef struct UiListCallbacks UiListCallbacks; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
40 | typedef struct UiListDnd UiListDnd; |
|
39
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
41 | |
|
411
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
42 | typedef struct UiListArgs UiListArgs; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
43 | typedef struct UiSourceListArgs UiSourceListArgs; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
44 | |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
45 | typedef struct UiSubList UiSubList; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
46 | typedef struct UiSubListItem UiSubListItem; |
|
196
320d85f3cd14
add listview (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
150
diff
changeset
|
47 | |
|
58
2b124f8ebd95
added table view (Qt)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
42
diff
changeset
|
48 | typedef enum UiModelType { |
|
39
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
49 | UI_STRING = 0, |
|
241
c51dd0e9ecb7
add support for table string values, that need to be freed
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
225
diff
changeset
|
50 | UI_STRING_FREE, |
|
129
5babf09f5f19
fixes stultus commit
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
128
diff
changeset
|
51 | UI_INTEGER, |
|
5babf09f5f19
fixes stultus commit
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
128
diff
changeset
|
52 | UI_ICON, |
|
5babf09f5f19
fixes stultus commit
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
128
diff
changeset
|
53 | UI_ICON_TEXT, |
|
777
622efebfab37
add UI_STRING_EDITABLE model type (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
739
diff
changeset
|
54 | UI_ICON_TEXT_FREE, |
|
820
7ce561f92632
add UI_BOOL_EDITABLE table model type (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
809
diff
changeset
|
55 | UI_STRING_EDITABLE, |
|
7ce561f92632
add UI_BOOL_EDITABLE table model type (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
809
diff
changeset
|
56 | UI_BOOL_EDITABLE |
|
58
2b124f8ebd95
added table view (Qt)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
42
diff
changeset
|
57 | } UiModelType; |
|
39
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
58 | |
|
779
b84cbe57e0bd
change UiCellValue from struct to union and pass it as pointer to the onsave function, for better compatibility with other languages
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
778
diff
changeset
|
59 | typedef struct UiCellValue { |
|
b84cbe57e0bd
change UiCellValue from struct to union and pass it as pointer to the onsave function, for better compatibility with other languages
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
778
diff
changeset
|
60 | union { |
|
b84cbe57e0bd
change UiCellValue from struct to union and pass it as pointer to the onsave function, for better compatibility with other languages
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
778
diff
changeset
|
61 | const char *string; |
|
b84cbe57e0bd
change UiCellValue from struct to union and pass it as pointer to the onsave function, for better compatibility with other languages
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
778
diff
changeset
|
62 | int64_t i; |
|
820
7ce561f92632
add UI_BOOL_EDITABLE table model type (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
809
diff
changeset
|
63 | UiBool b; |
|
779
b84cbe57e0bd
change UiCellValue from struct to union and pass it as pointer to the onsave function, for better compatibility with other languages
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
778
diff
changeset
|
64 | }; |
|
781
b15ada8bdd8f
add type to UiCellValue
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
779
diff
changeset
|
65 | UiModelType type; |
|
778
85b6cef7fcba
implement listview onsave handler (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
777
diff
changeset
|
66 | } UiCellValue; |
|
85b6cef7fcba
implement listview onsave handler (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
777
diff
changeset
|
67 | |
|
779
b84cbe57e0bd
change UiCellValue from struct to union and pass it as pointer to the onsave function, for better compatibility with other languages
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
778
diff
changeset
|
68 | typedef UiBool (*ui_list_savefunc)(UiList *list, int row, int col, UiCellValue *value, void *userdata); |
|
778
85b6cef7fcba
implement listview onsave handler (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
777
diff
changeset
|
69 | |
|
965
5d4419042d9b
implement dynamic table models (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
964
diff
changeset
|
70 | typedef void (*ui_model_update_func)(UiModel *model, void *userdata, int insert_index, int delete_index); |
|
5d4419042d9b
implement dynamic table models (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
964
diff
changeset
|
71 | |
|
5d4419042d9b
implement dynamic table models (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
964
diff
changeset
|
72 | typedef struct UiModelChangeObserver UiModelChangeObserver; |
|
5d4419042d9b
implement dynamic table models (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
964
diff
changeset
|
73 | struct UiModelChangeObserver { |
|
5d4419042d9b
implement dynamic table models (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
964
diff
changeset
|
74 | ui_model_update_func update; |
|
5d4419042d9b
implement dynamic table models (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
964
diff
changeset
|
75 | void *userdata; |
|
5d4419042d9b
implement dynamic table models (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
964
diff
changeset
|
76 | UiModelChangeObserver *next; |
|
5d4419042d9b
implement dynamic table models (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
964
diff
changeset
|
77 | }; |
|
5d4419042d9b
implement dynamic table models (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
964
diff
changeset
|
78 | |
|
142
46448d38885c
new checkbox and radionbutton features and more refactoring
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
140
diff
changeset
|
79 | struct UiModel { |
|
964
c563220d9aea
implement ui_listview_destroy (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
917
diff
changeset
|
80 | UiContext *ctx; |
|
c563220d9aea
implement ui_listview_destroy (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
917
diff
changeset
|
81 | |
|
39
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
82 | /* |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
83 | * number of columns |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
84 | */ |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
85 | int columns; |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
86 | |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
87 | /* |
|
728
011d236c4a05
add alternative UiModel creation functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
722
diff
changeset
|
88 | * current allocation size (internal) |
|
011d236c4a05
add alternative UiModel creation functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
722
diff
changeset
|
89 | */ |
|
011d236c4a05
add alternative UiModel creation functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
722
diff
changeset
|
90 | int alloc; |
|
011d236c4a05
add alternative UiModel creation functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
722
diff
changeset
|
91 | |
|
011d236c4a05
add alternative UiModel creation functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
722
diff
changeset
|
92 | /* |
|
39
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
93 | * array of column types |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
94 | * array length is the number of columns |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
95 | */ |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
96 | UiModelType *types; |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
97 | |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
98 | /* |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
99 | * array of column titles |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
100 | * array length is the number of columns |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
101 | */ |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
102 | char **titles; |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
103 | |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
104 | /* |
|
380
aad99285865c
make table column sizes adjustable (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
378
diff
changeset
|
105 | * array of column size hints |
|
aad99285865c
make table column sizes adjustable (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
378
diff
changeset
|
106 | */ |
|
aad99285865c
make table column sizes adjustable (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
378
diff
changeset
|
107 | int *columnsize; |
|
964
c563220d9aea
implement ui_listview_destroy (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
917
diff
changeset
|
108 | |
|
c563220d9aea
implement ui_listview_destroy (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
917
diff
changeset
|
109 | /* |
|
965
5d4419042d9b
implement dynamic table models (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
964
diff
changeset
|
110 | * Model change observers, that will be called when |
|
5d4419042d9b
implement dynamic table models (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
964
diff
changeset
|
111 | * columns are added or removed |
|
5d4419042d9b
implement dynamic table models (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
964
diff
changeset
|
112 | */ |
|
5d4419042d9b
implement dynamic table models (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
964
diff
changeset
|
113 | UiModelChangeObserver *observer; |
|
5d4419042d9b
implement dynamic table models (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
964
diff
changeset
|
114 | |
|
5d4419042d9b
implement dynamic table models (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
964
diff
changeset
|
115 | /* |
|
964
c563220d9aea
implement ui_listview_destroy (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
917
diff
changeset
|
116 | * reference counter |
|
c563220d9aea
implement ui_listview_destroy (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
917
diff
changeset
|
117 | */ |
|
c563220d9aea
implement ui_listview_destroy (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
917
diff
changeset
|
118 | int ref; |
|
142
46448d38885c
new checkbox and radionbutton features and more refactoring
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
140
diff
changeset
|
119 | }; |
|
46448d38885c
new checkbox and radionbutton features and more refactoring
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
140
diff
changeset
|
120 | |
|
46448d38885c
new checkbox and radionbutton features and more refactoring
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
140
diff
changeset
|
121 | struct UiListCallbacks { |
|
39
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
122 | /* |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
123 | * selection callback |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
124 | */ |
|
42
29b2821d1262
added table view events (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
39
diff
changeset
|
125 | ui_callback activate; |
|
29b2821d1262
added table view events (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
39
diff
changeset
|
126 | |
|
29b2821d1262
added table view events (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
39
diff
changeset
|
127 | /* |
|
29b2821d1262
added table view events (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
39
diff
changeset
|
128 | * cursor callback |
|
29b2821d1262
added table view events (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
39
diff
changeset
|
129 | */ |
|
29b2821d1262
added table view events (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
39
diff
changeset
|
130 | ui_callback selection; |
|
39
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
131 | |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
132 | /* |
|
147
2e384acc89a6
adds simple drag and drop support (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
146
diff
changeset
|
133 | * userdata for all callbacks |
|
39
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
134 | */ |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
135 | void *userdata; |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
136 | }; |
|
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
137 | |
|
196
320d85f3cd14
add listview (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
150
diff
changeset
|
138 | struct UiListArgs { |
|
670
d676b2c5e93b
replace UiTri with UiBool in Arg structs
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
657
diff
changeset
|
139 | UiBool fill; |
|
196
320d85f3cd14
add listview (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
150
diff
changeset
|
140 | UiBool hexpand; |
|
320d85f3cd14
add listview (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
150
diff
changeset
|
141 | UiBool vexpand; |
|
378
d41b1ffc5f77
implement some missing WinUI functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
356
diff
changeset
|
142 | UiBool hfill; |
|
d41b1ffc5f77
implement some missing WinUI functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
356
diff
changeset
|
143 | UiBool vfill; |
|
464
e06714e6fa12
add override_defaults layout arg
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
453
diff
changeset
|
144 | UiBool override_defaults; |
|
800
814d374fb689
add new margin widget args and implement margin in the cocoa gridlayout
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
781
diff
changeset
|
145 | int margin; |
|
814d374fb689
add new margin widget args and implement margin in the cocoa gridlayout
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
781
diff
changeset
|
146 | int margin_left; |
|
814d374fb689
add new margin widget args and implement margin in the cocoa gridlayout
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
781
diff
changeset
|
147 | int margin_right; |
|
814d374fb689
add new margin widget args and implement margin in the cocoa gridlayout
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
781
diff
changeset
|
148 | int margin_top; |
|
814d374fb689
add new margin widget args and implement margin in the cocoa gridlayout
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
781
diff
changeset
|
149 | int margin_bottom; |
|
196
320d85f3cd14
add listview (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
150
diff
changeset
|
150 | int colspan; |
|
320d85f3cd14
add listview (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
150
diff
changeset
|
151 | int rowspan; |
|
809
f5ddce392617
add width/height args to the textarea, listview and table (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
800
diff
changeset
|
152 | int width; |
|
f5ddce392617
add width/height args to the textarea, listview and table (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
800
diff
changeset
|
153 | int height; |
|
f5ddce392617
add width/height args to the textarea, listview and table (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
800
diff
changeset
|
154 | |
|
356
eae98e4f3f1f
add support for groups/states to text, list widgets (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
248
diff
changeset
|
155 | const char *name; |
|
eae98e4f3f1f
add support for groups/states to text, list widgets (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
248
diff
changeset
|
156 | const char *style_class; |
|
917
ca3918f9c96b
add first win32 listview/table code
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
861
diff
changeset
|
157 | UiList *list; |
|
196
320d85f3cd14
add listview (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
150
diff
changeset
|
158 | const char* varname; |
|
917
ca3918f9c96b
add first win32 listview/table code
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
861
diff
changeset
|
159 | UiModel *model; |
|
489
073a5e893050
add option for static listview/dropdown (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
466
diff
changeset
|
160 | char **static_elements; |
|
073a5e893050
add option for static listview/dropdown (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
466
diff
changeset
|
161 | size_t static_nelm; |
|
196
320d85f3cd14
add listview (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
150
diff
changeset
|
162 | ui_getvaluefunc getvalue; |
|
633
4c6ba81d319e
add ui_getvaluefunc2 (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
632
diff
changeset
|
163 | ui_getvaluefunc2 getvalue2; |
|
4c6ba81d319e
add ui_getvaluefunc2 (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
632
diff
changeset
|
164 | void *getvalue2data; |
|
739
3236d5ed3a95
extend UiListArgs wrapper functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
738
diff
changeset
|
165 | ui_getstylefunc getstyle; |
|
738
0dbf92544d4f
add stylefunc for table/listview for row and cell styling options (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
728
diff
changeset
|
166 | void *getstyledata; |
|
196
320d85f3cd14
add listview (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
150
diff
changeset
|
167 | ui_callback onactivate; |
|
917
ca3918f9c96b
add first win32 listview/table code
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
861
diff
changeset
|
168 | void *onactivatedata; |
|
196
320d85f3cd14
add listview (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
150
diff
changeset
|
169 | ui_callback onselection; |
|
917
ca3918f9c96b
add first win32 listview/table code
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
861
diff
changeset
|
170 | void *onselectiondata; |
|
221
a82d9beaa94a
add semi-functional pathbar (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
215
diff
changeset
|
171 | ui_callback ondragstart; |
|
917
ca3918f9c96b
add first win32 listview/table code
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
861
diff
changeset
|
172 | void *ondragstartdata; |
|
221
a82d9beaa94a
add semi-functional pathbar (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
215
diff
changeset
|
173 | ui_callback ondragcomplete; |
|
917
ca3918f9c96b
add first win32 listview/table code
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
861
diff
changeset
|
174 | void *ondragcompletedata; |
|
221
a82d9beaa94a
add semi-functional pathbar (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
215
diff
changeset
|
175 | ui_callback ondrop; |
|
917
ca3918f9c96b
add first win32 listview/table code
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
861
diff
changeset
|
176 | void *ondropdata; |
|
196
320d85f3cd14
add listview (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
150
diff
changeset
|
177 | UiBool multiselection; |
|
390
b130f80ec7f9
implement list/table contextmenu (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
380
diff
changeset
|
178 | UiMenuBuilder *contextmenu; |
|
778
85b6cef7fcba
implement listview onsave handler (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
777
diff
changeset
|
179 | ui_list_savefunc onsave; |
|
85b6cef7fcba
implement listview onsave handler (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
777
diff
changeset
|
180 | void *onsavedata; |
|
356
eae98e4f3f1f
add support for groups/states to text, list widgets (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
248
diff
changeset
|
181 | |
|
966
e411ed7c5f10
rename groups to states
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
965
diff
changeset
|
182 | const int *states; |
|
221
a82d9beaa94a
add semi-functional pathbar (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
215
diff
changeset
|
183 | }; |
|
a82d9beaa94a
add semi-functional pathbar (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
215
diff
changeset
|
184 | |
|
657
02bcdbc34f31
add UiList parameter to sublist getvalue func
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
654
diff
changeset
|
185 | typedef void (*ui_sublist_getvalue_func)(UiList *list, void *sublist_userdata, void *rowdata, int index, UiSubListItem *item, void *userdata); |
|
411
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
186 | |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
187 | struct UiSubList { |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
188 | UiList *value; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
189 | const char *varname; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
190 | const char *header; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
191 | UiBool separator; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
192 | void *userdata; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
193 | }; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
194 | |
|
453
abe2c7bf2246
add UiSubListEventData struct that contains all relevant data for sublist action events
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
411
diff
changeset
|
195 | typedef struct UiSubListEventData { |
|
abe2c7bf2246
add UiSubListEventData struct that contains all relevant data for sublist action events
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
411
diff
changeset
|
196 | UiList *list; |
|
abe2c7bf2246
add UiSubListEventData struct that contains all relevant data for sublist action events
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
411
diff
changeset
|
197 | int sublist_index; |
|
abe2c7bf2246
add UiSubListEventData struct that contains all relevant data for sublist action events
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
411
diff
changeset
|
198 | int row_index; |
|
abe2c7bf2246
add UiSubListEventData struct that contains all relevant data for sublist action events
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
411
diff
changeset
|
199 | void *row_data; |
|
abe2c7bf2246
add UiSubListEventData struct that contains all relevant data for sublist action events
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
411
diff
changeset
|
200 | void *sublist_userdata; |
|
abe2c7bf2246
add UiSubListEventData struct that contains all relevant data for sublist action events
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
411
diff
changeset
|
201 | void *event_data; |
|
abe2c7bf2246
add UiSubListEventData struct that contains all relevant data for sublist action events
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
411
diff
changeset
|
202 | } UiSubListEventData; |
|
abe2c7bf2246
add UiSubListEventData struct that contains all relevant data for sublist action events
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
411
diff
changeset
|
203 | |
|
411
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
204 | /* |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
205 | * list item members must be filled by the sublist getvalue func |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
206 | * all members must be allocated (by malloc, strdup, ...) the pointer |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
207 | * will be passed to free |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
208 | */ |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
209 | struct UiSubListItem { |
|
853
380ec881faa2
add support for selectable source list header rows (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
820
diff
changeset
|
210 | char *icon; |
|
380ec881faa2
add support for selectable source list header rows (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
820
diff
changeset
|
211 | char *label; |
|
380ec881faa2
add support for selectable source list header rows (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
820
diff
changeset
|
212 | char *button_icon; |
|
380ec881faa2
add support for selectable source list header rows (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
820
diff
changeset
|
213 | char *button_label; |
|
380ec881faa2
add support for selectable source list header rows (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
820
diff
changeset
|
214 | UiMenuBuilder *button_menu; |
|
380ec881faa2
add support for selectable source list header rows (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
820
diff
changeset
|
215 | char *badge; |
|
380ec881faa2
add support for selectable source list header rows (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
820
diff
changeset
|
216 | void *eventdata; |
|
411
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
217 | }; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
218 | |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
219 | struct UiSourceListArgs { |
|
670
d676b2c5e93b
replace UiTri with UiBool in Arg structs
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
657
diff
changeset
|
220 | UiBool fill; |
|
411
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
221 | UiBool hexpand; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
222 | UiBool vexpand; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
223 | UiBool hfill; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
224 | UiBool vfill; |
|
465
00735562b25b
implement hfill/vfill, def_hfill/def_vfill and override_defaults (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
464
diff
changeset
|
225 | UiBool override_defaults; |
|
800
814d374fb689
add new margin widget args and implement margin in the cocoa gridlayout
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
781
diff
changeset
|
226 | int margin; |
|
814d374fb689
add new margin widget args and implement margin in the cocoa gridlayout
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
781
diff
changeset
|
227 | int margin_left; |
|
814d374fb689
add new margin widget args and implement margin in the cocoa gridlayout
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
781
diff
changeset
|
228 | int margin_right; |
|
814d374fb689
add new margin widget args and implement margin in the cocoa gridlayout
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
781
diff
changeset
|
229 | int margin_top; |
|
814d374fb689
add new margin widget args and implement margin in the cocoa gridlayout
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
781
diff
changeset
|
230 | int margin_bottom; |
|
411
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
231 | int colspan; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
232 | int rowspan; |
|
809
f5ddce392617
add width/height args to the textarea, listview and table (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
800
diff
changeset
|
233 | int width; |
|
f5ddce392617
add width/height args to the textarea, listview and table (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
800
diff
changeset
|
234 | int height; |
|
411
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
235 | const char *name; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
236 | const char *style_class; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
237 | |
|
966
e411ed7c5f10
rename groups to states
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
965
diff
changeset
|
238 | const int *states; |
|
411
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
239 | |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
240 | /* |
|
466
7c78b0b8b77d
add support for dynamic sublists (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
465
diff
changeset
|
241 | * static list of sublists |
|
411
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
242 | * a sublist must have a varname or a value |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
243 | * |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
244 | * the last entry in the list must contain all NULL values or numsublists |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
245 | * must contain the number of sublists |
|
466
7c78b0b8b77d
add support for dynamic sublists (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
465
diff
changeset
|
246 | * |
|
7c78b0b8b77d
add support for dynamic sublists (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
465
diff
changeset
|
247 | * sublists can be NULL, in which case sublists are dynamically loaded |
|
7c78b0b8b77d
add support for dynamic sublists (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
465
diff
changeset
|
248 | * from dynamic_sublist/varname |
|
411
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
249 | */ |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
250 | UiSubList *sublists; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
251 | /* |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
252 | * optional number of sublists |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
253 | * if the value is 0, it is assumed, that sublists is null-terminated |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
254 | * (last item contains only NULL values) |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
255 | */ |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
256 | size_t numsublists; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
257 | |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
258 | /* |
|
466
7c78b0b8b77d
add support for dynamic sublists (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
465
diff
changeset
|
259 | * list value, that contains UiSubList* elements |
|
7c78b0b8b77d
add support for dynamic sublists (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
465
diff
changeset
|
260 | */ |
|
7c78b0b8b77d
add support for dynamic sublists (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
465
diff
changeset
|
261 | UiList *dynamic_sublist; |
|
7c78b0b8b77d
add support for dynamic sublists (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
465
diff
changeset
|
262 | |
|
7c78b0b8b77d
add support for dynamic sublists (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
465
diff
changeset
|
263 | /* |
|
7c78b0b8b77d
add support for dynamic sublists (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
465
diff
changeset
|
264 | * load sublists dynamically from a variable with the specified name |
|
7c78b0b8b77d
add support for dynamic sublists (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
465
diff
changeset
|
265 | */ |
|
7c78b0b8b77d
add support for dynamic sublists (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
465
diff
changeset
|
266 | const char *varname; |
|
7c78b0b8b77d
add support for dynamic sublists (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
465
diff
changeset
|
267 | |
|
7c78b0b8b77d
add support for dynamic sublists (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
465
diff
changeset
|
268 | |
|
7c78b0b8b77d
add support for dynamic sublists (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
465
diff
changeset
|
269 | /* |
|
411
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
270 | * callback for each list item, that should fill all necessary |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
271 | * UiSubListItem fields |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
272 | */ |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
273 | ui_sublist_getvalue_func getvalue; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
274 | |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
275 | /* |
|
653
dc0eb8151254
add additional userdata parameter to sourcelist getvalue func
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
633
diff
changeset
|
276 | * getvalue_func userdata |
|
dc0eb8151254
add additional userdata parameter to sourcelist getvalue func
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
633
diff
changeset
|
277 | */ |
|
dc0eb8151254
add additional userdata parameter to sourcelist getvalue func
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
633
diff
changeset
|
278 | void *getvaluedata; |
|
dc0eb8151254
add additional userdata parameter to sourcelist getvalue func
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
633
diff
changeset
|
279 | |
|
dc0eb8151254
add additional userdata parameter to sourcelist getvalue func
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
633
diff
changeset
|
280 | /* |
|
853
380ec881faa2
add support for selectable source list header rows (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
820
diff
changeset
|
281 | * is a sublist header a selectable item |
|
380ec881faa2
add support for selectable source list header rows (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
820
diff
changeset
|
282 | */ |
|
380ec881faa2
add support for selectable source list header rows (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
820
diff
changeset
|
283 | UiBool header_is_item; |
|
380ec881faa2
add support for selectable source list header rows (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
820
diff
changeset
|
284 | |
|
380ec881faa2
add support for selectable source list header rows (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
820
diff
changeset
|
285 | /* |
|
411
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
286 | * activated when a list item is selected |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
287 | */ |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
288 | ui_callback onactivate; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
289 | void *onactivatedata; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
290 | |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
291 | /* |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
292 | * activated, when the additional list item button is clicked |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
293 | */ |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
294 | ui_callback onbuttonclick; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
295 | void *onbuttonclickdata; |
|
684
3c9b430fb160
add contextmenu to sourcelist (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
670
diff
changeset
|
296 | |
|
3c9b430fb160
add contextmenu to sourcelist (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
670
diff
changeset
|
297 | UiMenuBuilder *contextmenu; |
|
411
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
298 | }; |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
299 | |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
300 | #define UI_SUBLIST(...) (UiSubList){ __VA_ARGS__ } |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
301 | #define UI_SUBLISTS(...) (UiSubList[]){ __VA_ARGS__, (UiSubList){NULL,NULL,NULL,0} } |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
302 | |
|
3e91b7aff6a1
add sourcelist widget (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
394
diff
changeset
|
303 | |
|
715
2082c80fb010
add table widget (Cocoa)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
684
diff
changeset
|
304 | /* |
|
2082c80fb010
add table widget (Cocoa)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
684
diff
changeset
|
305 | * Creates an UiModel, that specifies columns for a table widget. |
|
2082c80fb010
add table widget (Cocoa)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
684
diff
changeset
|
306 | * |
|
2082c80fb010
add table widget (Cocoa)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
684
diff
changeset
|
307 | * For each column a column type (UiModelType) and a title string |
|
2082c80fb010
add table widget (Cocoa)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
684
diff
changeset
|
308 | * (char*) must be specified. The column list must be terminated |
|
2082c80fb010
add table widget (Cocoa)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
684
diff
changeset
|
309 | * with -1. |
|
2082c80fb010
add table widget (Cocoa)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
684
diff
changeset
|
310 | * |
|
2082c80fb010
add table widget (Cocoa)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
684
diff
changeset
|
311 | * UiModel *model = ui_model(ctx, UI_STRING, "Column 1", UI_STRING, "Column 2", -1); |
|
2082c80fb010
add table widget (Cocoa)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
684
diff
changeset
|
312 | */ |
|
201
7f67ebbb0c1c
add UIEXPORT macro to create a dll
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
196
diff
changeset
|
313 | UIEXPORT UiModel* ui_model(UiContext *ctx, ...); |
|
728
011d236c4a05
add alternative UiModel creation functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
722
diff
changeset
|
314 | UIEXPORT UiModel* ui_model_new(UiContext *ctx); |
|
965
5d4419042d9b
implement dynamic table models (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
964
diff
changeset
|
315 | UIEXPORT void ui_model_add_column(UiModel *model, UiModelType type, const char *title, int width); |
|
215
1bd5534c395d
add support for icons in the table widget (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
204
diff
changeset
|
316 | UIEXPORT UiModel* ui_model_copy(UiContext *ctx, UiModel* model); |
|
964
c563220d9aea
implement ui_listview_destroy (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
917
diff
changeset
|
317 | UIEXPORT void ui_model_ref(UiModel *model); |
|
c563220d9aea
implement ui_listview_destroy (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
917
diff
changeset
|
318 | UIEXPORT void ui_model_unref(UiModel *model); |
|
965
5d4419042d9b
implement dynamic table models (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
964
diff
changeset
|
319 | UIEXPORT void ui_model_add_observer(UiModel *model, ui_model_update_func update, void *data); |
|
5d4419042d9b
implement dynamic table models (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
964
diff
changeset
|
320 | UIEXPORT void ui_model_remove_observer(UiModel *model, void *data); |
|
964
c563220d9aea
implement ui_listview_destroy (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
917
diff
changeset
|
321 | UIEXPORT void ui_model_free(UiModel *mi); |
|
39
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
322 | |
|
594
fc854e0ab924
pass Args structs per pointer (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
494
diff
changeset
|
323 | #define ui_listview(obj, ...) ui_listview_create(obj, &(UiListArgs) { __VA_ARGS__ } ) |
|
fc854e0ab924
pass Args structs per pointer (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
494
diff
changeset
|
324 | #define ui_table(obj, ...) ui_table_create(obj, &(UiListArgs) { __VA_ARGS__ } ) |
|
969
7385c26d998d
rename combobox to dropdown
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
966
diff
changeset
|
325 | #define ui_dropdown(obj, ...) ui_dropdown_create(obj, &(UiListArgs) { __VA_ARGS__ } ) |
|
594
fc854e0ab924
pass Args structs per pointer (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
494
diff
changeset
|
326 | #define ui_breadcrumbbar(obj, ...) ui_breadcrumbbar_create(obj, &(UiListArgs) { __VA_ARGS__ } ) |
|
fc854e0ab924
pass Args structs per pointer (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
494
diff
changeset
|
327 | #define ui_sourcelist(obj, ...) ui_sourcelist_create(obj, &(UiSourceListArgs) { __VA_ARGS__ } ) |
|
39
4e66271541e8
added table view (Motif)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
33
diff
changeset
|
328 | |
|
917
ca3918f9c96b
add first win32 listview/table code
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
861
diff
changeset
|
329 | UIEXPORT UIWIDGET ui_listview_create(UiObject *obj, UiListArgs *args); |
|
ca3918f9c96b
add first win32 listview/table code
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
861
diff
changeset
|
330 | UIEXPORT UIWIDGET ui_table_create(UiObject *obj, UiListArgs *args); |
|
969
7385c26d998d
rename combobox to dropdown
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
966
diff
changeset
|
331 | UIEXPORT UIWIDGET ui_dropdown_create(UiObject *obj, UiListArgs *args); |
|
917
ca3918f9c96b
add first win32 listview/table code
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
861
diff
changeset
|
332 | UIEXPORT UIWIDGET ui_breadcrumbbar_create(UiObject *obj, UiListArgs *args); |
|
196
320d85f3cd14
add listview (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
150
diff
changeset
|
333 | |
|
494
15a0cfe47595
add ui_listview_select/ui_combobox_select
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
489
diff
changeset
|
334 | UIEXPORT void ui_listview_select(UIWIDGET listview, int index); |
|
969
7385c26d998d
rename combobox to dropdown
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
966
diff
changeset
|
335 | UIEXPORT void ui_dropdown_select(UIWIDGET dropdown, int index); |
|
494
15a0cfe47595
add ui_listview_select/ui_combobox_select
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
489
diff
changeset
|
336 | |
|
594
fc854e0ab924
pass Args structs per pointer (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
494
diff
changeset
|
337 | UIEXPORT UIWIDGET ui_sourcelist_create(UiObject *obj, UiSourceListArgs *args); |
|
147
2e384acc89a6
adds simple drag and drop support (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
146
diff
changeset
|
338 | |
|
654
e379d2e3c1b3
add sublist item setter functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
653
diff
changeset
|
339 | UIEXPORT void ui_sublist_item_set_icon(UiSubListItem *item, const char *icon); |
|
e379d2e3c1b3
add sublist item setter functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
653
diff
changeset
|
340 | UIEXPORT void ui_sublist_item_set_label(UiSubListItem *item, const char *label); |
|
e379d2e3c1b3
add sublist item setter functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
653
diff
changeset
|
341 | UIEXPORT void ui_sublist_item_set_button_icon(UiSubListItem *item, const char *button_icon); |
|
e379d2e3c1b3
add sublist item setter functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
653
diff
changeset
|
342 | UIEXPORT void ui_sublist_item_set_button_label(UiSubListItem *item, const char *button_label); |
| 858 | 343 | UIEXPORT void ui_sublist_item_set_button_menu(UiSubListItem *item, UiMenuBuilder *menu); |
|
654
e379d2e3c1b3
add sublist item setter functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
653
diff
changeset
|
344 | UIEXPORT void ui_sublist_item_set_badge(UiSubListItem *item, const char *badge); |
|
e379d2e3c1b3
add sublist item setter functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
653
diff
changeset
|
345 | UIEXPORT void ui_sublist_item_set_eventdata(UiSubListItem *item, void *eventdata); |
|
e379d2e3c1b3
add sublist item setter functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
653
diff
changeset
|
346 | |
|
241
c51dd0e9ecb7
add support for table string values, that need to be freed
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
225
diff
changeset
|
347 | |
|
861
34b07b18b3e1
add sourcelist update callback
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
858
diff
changeset
|
348 | |
|
34b07b18b3e1
add sourcelist update callback
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
858
diff
changeset
|
349 | /* |
|
34b07b18b3e1
add sourcelist update callback
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
858
diff
changeset
|
350 | * Only relevant for some language bindings |
|
34b07b18b3e1
add sourcelist update callback
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
858
diff
changeset
|
351 | */ |
|
34b07b18b3e1
add sourcelist update callback
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
858
diff
changeset
|
352 | typedef void(*ui_sourcelist_update_func)(void); |
|
34b07b18b3e1
add sourcelist update callback
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
858
diff
changeset
|
353 | |
|
34b07b18b3e1
add sourcelist update callback
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
858
diff
changeset
|
354 | /* |
|
34b07b18b3e1
add sourcelist update callback
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
858
diff
changeset
|
355 | * The sourcelist update callback is called after any source list |
|
34b07b18b3e1
add sourcelist update callback
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
858
diff
changeset
|
356 | * sublist update is completed |
|
34b07b18b3e1
add sourcelist update callback
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
858
diff
changeset
|
357 | */ |
|
34b07b18b3e1
add sourcelist update callback
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
858
diff
changeset
|
358 | UIEXPORT void ui_sourcelist_set_update_callback(ui_sourcelist_update_func cb); |
|
34b07b18b3e1
add sourcelist update callback
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
858
diff
changeset
|
359 | |
|
33
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
360 | #ifdef __cplusplus |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
361 | } |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
362 | #endif |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
363 | |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
364 | #endif /* UI_TREE_H */ |
|
458831c574f4
added listview, sidebar and toolbar image button (GTK)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff
changeset
|
365 |