mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-25 02:41:22 +00:00
caabb8dceb
* NOTE: Not included in the build chain - doesn't link * NOTE: iepair.h is not used at the moment git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@225 8a3a26a2-13c4-0310-b231-cf6edde360e5
41 lines
985 B
C++
41 lines
985 B
C++
// Tree.h: interface for the CTree class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_TREE_H__C0DDC824_48DF_4A80_B393_83FF736FCB98__INCLUDED_)
|
|
#define AFX_TREE_H__C0DDC824_48DF_4A80_B393_83FF736FCB98__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "stdafx.h"
|
|
#include <string>
|
|
|
|
void cb_select_child (GtkWidget *root_tree, GtkWidget *child, GtkWidget *subtree);
|
|
|
|
class CTree
|
|
{
|
|
public:
|
|
CTree();
|
|
virtual ~CTree();
|
|
|
|
GtkWidget *m_pMainWnd;
|
|
GtkWidget *m_Tree;
|
|
GtkWidget *m_Root;
|
|
|
|
void Init(GtkWidget *win);
|
|
void AddPath(const char *path);
|
|
void AddFile(const char *file,GtkWidget *node=NULL);
|
|
GtkWidget *AddFolder(const char *folder, GtkWidget *node=NULL);
|
|
void RemovePath(const char*path);
|
|
|
|
void SelectChild(GtkWidget *child);
|
|
std::string GetSelected();
|
|
std::string GetFullPath(GtkWidget *item);
|
|
|
|
void Clear();
|
|
|
|
};
|
|
|
|
#endif // !defined(AFX_TREE_H__C0DDC824_48DF_4A80_B393_83FF736FCB98__INCLUDED_)
|