27 EVT_RIGHT_DOWN(cbTreeCtrl::OnRightClick)
81 if (flags & (wxTREE_HITTEST_ABOVE | wxTREE_HITTEST_BELOW | wxTREE_HITTEST_NOWHERE))
104 wxArrayTreeItemIds selections;
112 long keycode =
event.GetKeyCode();
115 if ( !itemId.
IsOk() )
virtual wxTreeItemId GetItemParent(const wxTreeItemId &item) const
void SetCompareFunction(const int ptvs)
wxFileName file
The full filename of this file.
virtual size_t GetSelections(wxArrayTreeItemIds &selection) const
int(* Compare)(const ProjectFile *arg1, const ProjectFile *arg2)
virtual wxTreeItemData * GetItemData(const wxTreeItemId &item) const
virtual bool IsExpanded(const wxTreeItemId &item) const
Represents a file in a Code::Blocks project.
wxTreeItemId GetPrevVisible(const wxTreeItemId &item) const override
If true, create folders as needed. If false, the list is flat (not compatible with "hie folder name")...
If true, the folder name will be hidden and only the file name will be shown (not compatible with "us...
void wxPostEvent(wxEvtHandler *dest, const wxEvent &event)
const wxSize wxDefaultSize
const wxPoint wxDefaultPosition
IMPLEMENT_DYNAMIC_CLASS(cbDummyEditor, wxPGEditor)
int OnCompareItems(const wxTreeItemId &item1, const wxTreeItemId &item2) override
virtual wxTreeItemId GetLastChild(const wxTreeItemId &item) const
static int filesSort(const ProjectFile *arg1, const ProjectFile *arg2)
static int filesSortNameOnly(const ProjectFile *arg1, const ProjectFile *arg2)
wxString GetFullName() const
wxEventType wxEVT_COMMAND_RIGHT_CLICK
virtual wxTreeItemId GetPrevSibling(const wxTreeItemId &item) const
wxString GetFullPath(wxPathFormat format=wxPATH_NATIVE) const
wxTreeItemId HitTest(const wxPoint &point, int &flags) const
virtual bool ItemHasChildren(const wxTreeItemId &item) const
void OnKeyDown(wxKeyEvent &event)