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