diff options
Diffstat (limited to 'src/mainwindow.h')
| -rw-r--r-- | src/mainwindow.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h index 4fb19e4..e965de2 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -76,6 +76,7 @@ class NotmuchWorker; class QueryCompleter; class TagRulesDialog; class ComposeWindow; +class CalendarWindow; class MainWindow : public QMainWindow { @@ -888,6 +889,15 @@ private: /// that populates. void showMaildirOverview(); + /// Opens the calendar window (item 206), or raises the one already open. + /// + /// A single instance: the window is parentless, like a composer, so it + /// gets its own task-switcher entry, and WA_DeleteOnClose frees it when the + /// user closes it. Does nothing but hint when no calendars_dir is + /// configured, rather than opening an empty window over a feature that is + /// off. + void openCalendar(); + /// Opens a composer on a blank message (item 123). void composeNew(); @@ -1948,6 +1958,10 @@ private: /// signal leaks entries; removing the QPointer crashes. QList<QPointer<ComposeWindow>> m_composers; + /// The open calendar window, or null. Parentless and WA_DeleteOnClose, like + /// a composer, so the QPointer is what nulls it when the user closes it. + QPointer<CalendarWindow> m_calendar; + /// Confirmed tag mutations not yet known to have reached the mail store. /// /// A count of its own rather than QUndoStack::isClean(), which cannot serve |
