31#include <wx/listctrl.h>
32#include <wx/dragimag.h>
35#include "Configuration.h"
39#ifndef TABLEOFCONTENTS_H
40#define TABLEOFCONTENTS_H
44 structure_ctrl_id = 4,
60 void OnMouseRightDown(wxListEvent &event);
79 {
return m_cellRightClickedOn; }
81 GroupCell *DNDStart() {
return m_dndStartCell;}
82 GroupCell *DNDEnd() {
return m_dndEndCell;}
84 void OnSize(wxSizeEvent &event);
85 void OnDragStart(wxListEvent &evt);
86 void OnMouseUp(wxMouseEvent &evt);
87 void OnMouseCaptureLost(wxMouseCaptureLostEvent &event);
88 void OnMouseMotion(wxMouseEvent &event);
89 void OnTimer(wxTimerEvent &event);
94 std::unique_ptr<GroupCell> *m_tree;
102 wxTimer m_scrollUpTimer;
103 wxTimer m_scrollDownTimer;
104 wxDragImage *m_dragImage = NULL;
109 std::vector<CellPtr<GroupCell>> m_displayedGroupCells;
111 std::size_t m_numberOfCaptionsDragged = 0;
114 long m_dragStart = -1;
115 long m_dragStop = -1;
116 signed long m_dragCurrentPos = -1;
118 int m_dragFeedback_Last = -1;
120 long m_lastSelection;
123 void UpdateDisplay();
125 wxListCtrl *m_displayedItems;
128 wxArrayString m_items_old;
132 std::vector<CellPtr<GroupCell>> m_structure;
This file defines the class GroupCell that bundles input and output in the worksheet.
A weak non-owning pointer that becomes null whenever the observed object is destroyed.
Definition: CellPtr.h:489
The configuration storage for the current worksheet.
Definition: Configuration.h:87
A cell grouping input (and, if there is one, also the output) cell to a foldable item.
Definition: GroupCell.h:87
A BTextCtrl that allows to input a regex.
Definition: RegexCtrl.h:36
This class generates a pane containing the table of contents.
Definition: TableOfContents.h:52
GroupCell * GetCell(std::size_t index)
Get the nth Cell in the table of contents.
Definition: TableOfContents.cpp:436
void OnRegExEvent(wxCommandEvent &ev)
What happens if someone changes the search box contents.
Definition: TableOfContents.cpp:484
GroupCell * RightClickedOn()
Returns the cell that was last right-clicked on.
Definition: TableOfContents.h:78
void UpdateTableOfContents(GroupCell *pos)
Update the structure information from the tree.
Definition: TableOfContents.cpp:249