Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
80 lines (60 sloc) 1.33 KB
#ifndef _MAIN_WINDOW_HPP_
#define _MAIN_WINDOW_HPP_
#include "settings_dialog.hpp"
#include <QMainWindow>
#include <QPrinter>
#include <QTime>
#include <QItemSelection>
#include <QTimer>
#include <QDir>
namespace Ui
{
class MainWindow;
}
class QProcess;
class QFileSystemModel;
class Heartbeat;
class ServerThread;
class ArchivesModel;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void print();
void saveToFile();
void copy();
void about();
void settings();
void openWorkingDir();
void vision();
void run(const QString &executable);
void processStarted();
void processFinished();
void terminateProcess();
void on_run_clicked();
void on_remove_clicked();
void currentChanged(const QModelIndex index);
private:
void killProcess();
void updateSettings();
void updateAdvert();
QString displayName();
QString tempPath() const;
QString cachePath(const QString& name) const;
QString programSavePath(const QString& name) const;
QMap<QString, QString> m_compileResults;
QDir m_workingDirectory;
SettingsDialog m_settingsDialog;
QProcess *m_process;
Ui::MainWindow *ui;
QByteArray m_hash;
QTime m_time;
QFileSystemModel *m_filesystemModel;
Heartbeat *m_heartbeat;
ServerThread *m_server;
ArchivesModel *m_archivesModel;
};
#endif