Changeset View
Changeset View
Standalone View
Standalone View
kate/katemainwindow.h
Show First 20 Lines • Show All 548 Lines • ▼ Show 20 Line(s) | 506 | private: | |||
---|---|---|---|---|---|
549 | KToggleAction *m_paShowTabBar; | 549 | KToggleAction *m_paShowTabBar; | ||
550 | 550 | | |||
551 | QWidget *m_bottomViewBarContainer; | 551 | QWidget *m_bottomViewBarContainer; | ||
552 | KateContainerStackedLayout *m_bottomContainerStack; | 552 | KateContainerStackedLayout *m_bottomContainerStack; | ||
553 | 553 | | |||
554 | class BarState | 554 | class BarState | ||
555 | { | 555 | { | ||
556 | public: | 556 | public: | ||
557 | BarState(): m_bar(nullptr), m_state(false) {} | 557 | BarState() = default; | ||
558 | BarState(QWidget *bar): m_bar(bar), m_state(false) {} | 558 | BarState(QWidget *bar): m_bar(bar), m_state(false) {} | ||
559 | ~BarState() {} | 559 | ~BarState() {} | ||
560 | QWidget *bar() { | 560 | QWidget *bar() { | ||
561 | return m_bar; | 561 | return m_bar; | ||
562 | } | 562 | } | ||
563 | bool state() { | 563 | bool state() { | ||
564 | return m_state; | 564 | return m_state; | ||
565 | } | 565 | } | ||
566 | void setState(bool state) { | 566 | void setState(bool state) { | ||
567 | m_state = state; | 567 | m_state = state; | ||
568 | } | 568 | } | ||
569 | private: | 569 | private: | ||
570 | QWidget *m_bar; | 570 | QWidget *m_bar = nullptr; | ||
571 | bool m_state; | 571 | bool m_state = false; | ||
572 | }; | 572 | }; | ||
573 | QHash<KTextEditor::View *, BarState> m_bottomViewBarMapping; | 573 | QHash<KTextEditor::View *, BarState> m_bottomViewBarMapping; | ||
574 | 574 | | |||
575 | public: | 575 | public: | ||
576 | static void unsetModifiedOnDiscDialogIfIf(KateMwModOnHdDialog *diag) { | 576 | static void unsetModifiedOnDiscDialogIfIf(KateMwModOnHdDialog *diag) { | ||
577 | if (s_modOnHdDialog == diag) { | 577 | if (s_modOnHdDialog == diag) { | ||
578 | s_modOnHdDialog = nullptr; | 578 | s_modOnHdDialog = nullptr; | ||
579 | } | 579 | } | ||
Show All 21 Lines |