35 class QStringListModel;
38 namespace LogDecorators{
class Decorator; }
60 QWidget* parent=0, Qt::WindowFlags f=0);
74 virtual void done(
int r);
80 void kill(
bool force=
false);
119 void searchLog(QString filter,
int offset=0,
bool up=
false);
137 #endif // LOGDIALOG_H
class for logging display and communication with external processes
void saveSettings()
store config to settings
void on_checkDD_toggled(bool)
handle debug checkbox
void on_proc_finished(int=0)
setup close button and hide progress bar
void on_proc_error(QProcess::ProcessError)
handle errors running the process
log decorator base class to handle different kinds of log dialogs
QFile * _logFile
log content output
void reprint()
reparse log output
bool _errorLinesDetected
true if log contains error lines
Ui::LogDialog * _ui
designer ui
void printStatus(QString msg)
print status message
void searchLog(QString filter, int offset=0, bool up=false)
search for given string
void terminate(bool force=false)
terminate process
void loadSettings()
load config from settings
bool hasErrorLines()
query for possible error lines in logfile
void on_bSearchUp_clicked()
search up
void on_bSearchDown_clicked()
search down
void on_proc_readyReadStandardError()
update content by querying process (stderr)
QStringListModel * _log
log model
void helpRequested(QString)
request help on specified page
QProcess * _proc
tuchulcha-run process
void kill(bool force=false)
kill process
void on_sBufSize_valueChanged(int)
handle buf size changes
QMutex * _logMutex
avoid parallel writes to log window
void on_eFilter_textEdited(QString)
handle search filter changes
void on_proc_readyReadStandardOutput()
update content by querying process (stdout)
virtual void done(int r)
handle process termination
void on_buttonBox_helpRequested()
handle help request
LogDialog(LogDecorators::Decorator *decorator, QWidget *parent=0, Qt::WindowFlags f=0)
constructor
void on_bSaveLog_clicked()
save logfile
LogDecorators::Decorator * _decorator
decorator implementation
void on_proc_started()
setup abort button and show progress bar
bool waitForFinished(int msecs=1500)
wait for process to finish
LogViewProxyModel * _logProx
log model proxy
class for highlighting and handling filtering of log output