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();
61
void WrapTreeToSize(int nSize);
62
void SetTreeLines(bool bTree);
63
bool IsPathInVisbleRange(GtkTreePath *path);
69
bool m_bDND; //is DND in progress
70
int m_nFirstDroppedIdx;
71
int m_nFirstDraggedIdx; //used for UNDO
72
bool m_bCellEdited; //is in progress
75
#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();
61
void WrapTreeToSize(int nSize);
62
void SetTreeLines(bool bTree);
63
bool IsPathInVisbleRange(GtkTreePath *path);
69
bool m_bDND; //is DND in progress
70
int m_nFirstDroppedIdx;
71
int m_nFirstDraggedIdx; //used for UNDO
72
bool m_bCellEdited; //is in progress
75
#endif // TREEVIEW_H__