97 void onMonitorChanged(
int index);
98 void onRestartClicked();
99 void onTerminalFinished();
104 void applyDarkTheme();
106 QTermWidget* terminal_ =
nullptr;
107 QToolBar* toolBar_ =
nullptr;
108 QComboBox* monitorCombo_ =
nullptr;
109 QAction* restartAction_ =
nullptr;
110 QVBoxLayout* layout_ =
nullptr;
112 QString currentCommand_;
113 bool isPaused_ =
false;
116 static QStringList cachedColorSchemes_;
117 static bool colorSchemesCached_;
void processFinished(int exitCode)
Emitted when the terminal process finishes.
void resumeProcess()
Resume the terminal process Call when panel becomes visible again.
void startBtop()
Start or restart the terminal with btop++.
void pauseProcess()
Pause the terminal process (suspends btop/htop to save CPU) Call when panel is hidden or window is mi...
static bool isBtopAvailable()
Check if btop++ is available on the system.
void startCommand(const QString &command)
Start the terminal with a custom command.
TerminalPanel(QWidget *parent=nullptr)
~TerminalPanel() override
bool isPaused() const
Check if the terminal process is currently paused.
static bool isHtopAvailable()
Check if htop is available as a fallback.
static QString getBestMonitorCommand()
Get the best available system monitor command.