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;
97 wxTimer m_scrollUpTimer;
98 wxTimer m_scrollDownTimer;
99 wxDragImage *m_dragImage = NULL;
100 std::vector<GroupCell *> m_displayedGroupCells;
102 std::size_t m_numberOfCaptionsDragged = 0;
105 long m_dragStart = -1;
106 long m_dragStop = -1;
107 signed long m_dragCurrentPos = -1;
109 int m_dragFeedback_Last = -1;
111 long m_lastSelection;
114 void UpdateDisplay();
116 wxListCtrl *m_displayedItems;
119 wxArrayString m_items_old;
122 std::vector<GroupCell *> m_structure;
This file defines the class GroupCell that bundles input and output in the worksheet.
The configuration storage for the current worksheet.
Definition: Configuration.h:85
A cell grouping input (and, if there is one, also the output) cell to a foldable item.
Definition: GroupCell.h:74
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:409
void OnRegExEvent(wxCommandEvent &ev)
What happens if someone changes the search box contents.
Definition: TableOfContents.cpp:453
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:238