1
////////////////////////////////////////////////////////////////////////////
2
// NoteCase notes manager project <http://notecase.sf.net>
4
// This code is licensed under BSD license.See "license.txt" for more details.
6
// File: GTK+ TreeView wrapper class
7
////////////////////////////////////////////////////////////////////////////
14
#endif // _MSC_VER > 1000
17
#pragma warning(disable: 4786)
23
#define STORE_IDX_TEXT 0
24
#define STORE_IDX_ICON 1
26
#define SCREEN_IDX_TEXT 1
27
#define SCREEN_IDX_ICON 0
36
void Clear(); // remove tree contents
37
void EditLabel(); // enters edit mode for focused node
39
GtkTreePath *GetFirstVisibleNode();
40
bool GetNextVisibleNode(GtkTreePath **path1);
41
bool GetPreviousVisibleNode(GtkTreePath **path1);
42
bool IsTreePathValid(GtkTreePath *path);
43
void DumpPath(GtkTreePath *path, const char *szFile);
44
void EnableDragAndDrop(bool bEnable = true);
47
void SelectionPageDown();
48
void SelectionPageUp();
51
void SelectionLevelDown();
52
void SelectionLevelUp();
62
bool m_bDND; //is DND in progress
63
int m_nFirstDroppedIdx;
64
int m_nFirstDraggedIdx; //used for UNDO
67
#endif // TREEVIEW_H__
1
////////////////////////////////////////////////////////////////////////////
2
// NoteCase notes manager project <http://notecase.sf.net>
4
// This code is licensed under BSD license.See "license.txt" for more details.
6
// File: GTK+ TreeView wrapper class
7
////////////////////////////////////////////////////////////////////////////
14
#endif // _MSC_VER > 1000
17
#pragma warning(disable: 4786)
23
#define STORE_IDX_TEXT 0
24
#define STORE_IDX_ICON 1
25
#define STORE_IDX_STRIKE 2
26
#define STORE_IDX_UNDERLINE 3
27
#define STORE_IDX_COLOR 4
29
#define SCREEN_IDX_TEXT 1
30
#define SCREEN_IDX_ICON 0
39
void Clear(); // remove tree contents
40
void EditLabel(); // enters edit mode for focused node
42
GtkTreePath *GetFirstVisibleNode();
43
bool GetNextVisibleNode(GtkTreePath **path1);
44
bool GetPreviousVisibleNode(GtkTreePath **path1);
45
bool IsTreePathValid(GtkTreePath *path);
46
void DumpPath(GtkTreePath *path, const char *szFile);
47
void EnableDragAndDrop(bool bEnable = true);
50
void SelectionPageDown();
51
void SelectionPageUp();
54
void SelectionLevelDown();
55
void SelectionLevelUp();
65
bool m_bDND; //is DND in progress
66
int m_nFirstDroppedIdx;
67
int m_nFirstDraggedIdx; //used for UNDO
68
bool m_bCellEdited; //is in progress
71
#endif // TREEVIEW_H__