26#include <wx/srchctrl.h>
37 void OnScroll(wxScrollWinEvent &event);
38 void OnToggleHorizontalSync(wxCommandEvent &event);
39 void OnToggleVerticalSync(wxCommandEvent &event);
40 void OnSearch(wxCommandEvent &event);
41 void OnSearchCancel(wxCommandEvent &event);
42 void OnDiffNext(wxCommandEvent &event);
43 void OnDiffPrev(wxCommandEvent &event);
48 int CurrentScrollY(
size_t idx)
const;
52 void SyncScrollFrom(
int src_idx,
int y_new_src);
54 std::vector<Worksheet *> m_worksheets;
55 std::vector<std::unique_ptr<Configuration>> m_worksheetConfigurations;
57 wxSearchCtrl *m_searchCtrl =
nullptr;
58 wxRadioButton *m_searchDownRadio =
nullptr;
59 wxRadioButton *m_searchUpRadio =
nullptr;
60 int m_currentDiffIdx = -1;
61 bool m_syncing =
false;
62 bool m_syncHorizontal =
true;
63 bool m_syncVertical =
true;
64 bool m_searchDown =
true;
66 void LoadFiles(
const wxArrayString &files);
72 std::vector<DiffEntry> m_diffEntries;
73 std::vector<int> m_lastScrollY;
80 wxTimer m_resizeTimer;
81 void RelayoutWorksheets();
86 int m_lastLayoutWidth = -1;
This file defines the class Worksheet.
The configuration storage for the current worksheet.
Definition: Configuration.h:87
Definition: DiffFrame.h:31
A cell grouping input (and, if there is one, also the output) cell to a foldable item.
Definition: GroupCell.h:87