Changeset View
Changeset View
Standalone View
Standalone View
src/panels/terminal/terminalpanel.h
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 47 | public: | |||
---|---|---|---|---|---|
48 | explicit TerminalPanel(QWidget* parent = nullptr); | 48 | explicit TerminalPanel(QWidget* parent = nullptr); | ||
49 | ~TerminalPanel() override; | 49 | ~TerminalPanel() override; | ||
50 | 50 | | |||
51 | /** | 51 | /** | ||
52 | * @brief This function is used to set the terminal panels's cwd to | 52 | * @brief This function is used to set the terminal panels's cwd to | ||
53 | * home when an unmounting request is received. | 53 | * home when an unmounting request is received. | ||
54 | */ | 54 | */ | ||
55 | void goHome(); | 55 | void goHome(); | ||
56 | QString currentWorkingDirectory(); | 56 | QString currentWorkingDirectory() const; | ||
57 | bool isHiddenInVisibleWindow(); | 57 | bool isHiddenInVisibleWindow() const; | ||
elvisangelaccio: How about calling it `hasProgramRunning()` ? | |||||
58 | bool isAnyProgramRunning() const; | ||||
59 | QString runningProgramName() const; | ||||
58 | 60 | | |||
59 | public slots: | 61 | public slots: | ||
60 | void terminalExited(); | 62 | void terminalExited(); | ||
61 | void dockVisibilityChanged(); | 63 | void dockVisibilityChanged(); | ||
62 | 64 | | |||
63 | signals: | 65 | signals: | ||
64 | void hideTerminalPanel(); | 66 | void hideTerminalPanel(); | ||
65 | 67 | | |||
Show All 25 Lines | 91 | private: | |||
91 | KIO::StatJob* m_mostLocalUrlJob; | 93 | KIO::StatJob* m_mostLocalUrlJob; | ||
92 | 94 | | |||
93 | QVBoxLayout* m_layout; | 95 | QVBoxLayout* m_layout; | ||
94 | TerminalInterface* m_terminal; | 96 | TerminalInterface* m_terminal; | ||
95 | QWidget* m_terminalWidget; | 97 | QWidget* m_terminalWidget; | ||
96 | KParts::ReadOnlyPart* m_konsolePart; | 98 | KParts::ReadOnlyPart* m_konsolePart; | ||
97 | QString m_konsolePartCurrentDirectory; | 99 | QString m_konsolePartCurrentDirectory; | ||
98 | QQueue<QString> m_sendCdToTerminalHistory; | 100 | QQueue<QString> m_sendCdToTerminalHistory; | ||
101 | | ||||
elvisangelaccio: Unrelated whitespace change | |||||
99 | }; | 102 | }; | ||
100 | 103 | | |||
101 | #endif // TERMINALPANEL_H | 104 | #endif // TERMINALPANEL_H |
How about calling it hasProgramRunning() ?