Code::Blocks  SVN r11506
Public Types | Public Member Functions | Private Attributes | List of all members
FileTreeData Class Reference

#include <cbproject.h>

Inheritance diagram for FileTreeData:
Collaboration diagram for FileTreeData:

Public Types

enum  FileTreeDataKind {
  ftdkUndefined = 0, ftdkProject, ftdkFolder, ftdkFile,
  ftdkVirtualGroup, ftdkVirtualFolder
}
 The kind of tree node. More...
 

Public Member Functions

 FileTreeData (cbProject *project, FileTreeDataKind kind=ftdkUndefined)
 
FileTreeDataKind GetKind () const
 
cbProjectGetProject () const
 
int GetFileIndex () const
 
ProjectFileGetProjectFile () const
 
const wxStringGetFolder () const
 
void SetKind (FileTreeDataKind kind)
 
void SetProject (cbProject *project)
 
void SetFileIndex (int index)
 
void SetProjectFile (ProjectFile *file)
 
void SetFolder (const wxString &folder)
 
- Public Member Functions inherited from MiscTreeItemData
 MiscTreeItemData ()
 
wxEvtHandlerGetOwner ()
 
 ~MiscTreeItemData () override
 
- Public Member Functions inherited from wxTreeItemData
 wxTreeItemData ()
 
virtual ~wxTreeItemData ()
 
const wxTreeItemIdGetId () const
 
void SetId (const wxTreeItemId &id)
 
- Public Member Functions inherited from wxClientData
 wxClientData ()
 
virtual ~wxClientData ()
 

Private Attributes

int m_Index
 
cbProjectm_Project
 
ProjectFilem_file
 
wxString m_folder
 
FileTreeDataKind m_kind
 

Additional Inherited Members

- Static Public Member Functions inherited from MiscTreeItemData
static bool OwnerCheck (wxTreeEvent &event, wxTreeCtrl *tree, wxEvtHandler *handler, bool strict=false)
 
- Protected Member Functions inherited from MiscTreeItemData
void SetOwner (wxEvtHandler *owner)
 

Detailed Description

Definition at line 37 of file cbproject.h.

Member Enumeration Documentation

◆ FileTreeDataKind

The kind of tree node.

Enumerator
ftdkUndefined 
ftdkProject 
ftdkFolder 
ftdkFile 
ftdkVirtualGroup 
ftdkVirtualFolder 

Definition at line 41 of file cbproject.h.

Constructor & Destructor Documentation

◆ FileTreeData()

FileTreeData::FileTreeData ( cbProject project,
FileTreeDataKind  kind = ftdkUndefined 
)
inline

Definition at line 51 of file cbproject.h.

Member Function Documentation

◆ GetFileIndex()

int FileTreeData::GetFileIndex ( ) const
inline

Definition at line 60 of file cbproject.h.

Referenced by ProjectManagerUI::OnProperties(), and ScriptBindings::RegisterBindings().

◆ GetFolder()

const wxString& FileTreeData::GetFolder ( ) const
inline

◆ GetKind()

FileTreeDataKind FileTreeData::GetKind ( ) const
inline

◆ GetProject()

cbProject* FileTreeData::GetProject ( ) const
inline

◆ GetProjectFile()

ProjectFile* FileTreeData::GetProjectFile ( ) const
inline

◆ SetFileIndex()

void FileTreeData::SetFileIndex ( int  index)
inline

◆ SetFolder()

void FileTreeData::SetFolder ( const wxString folder)
inline

◆ SetKind()

void FileTreeData::SetKind ( FileTreeDataKind  kind)
inline

◆ SetProject()

void FileTreeData::SetProject ( cbProject project)
inline

Definition at line 65 of file cbproject.h.

Referenced by ScriptBindings::RegisterBindings().

◆ SetProjectFile()

void FileTreeData::SetProjectFile ( ProjectFile file)
inline

Member Data Documentation

◆ m_file

ProjectFile* FileTreeData::m_file
private

Definition at line 74 of file cbproject.h.

◆ m_folder

wxString FileTreeData::m_folder
private

Definition at line 75 of file cbproject.h.

◆ m_Index

int FileTreeData::m_Index
private

Definition at line 72 of file cbproject.h.

◆ m_kind

FileTreeDataKind FileTreeData::m_kind
private

Definition at line 76 of file cbproject.h.

◆ m_Project

cbProject* FileTreeData::m_Project
private

Definition at line 73 of file cbproject.h.


The documentation for this class was generated from the following file: