2016-06-30 21:39:04 +03:00
|
|
|
/************************************************************************
|
|
|
|
* file name : main_window.h
|
|
|
|
* ----------------- :
|
|
|
|
* creation time : 2016/06/26
|
|
|
|
* copyright : (c) 2016 Victor Zarubkin
|
|
|
|
* author : Victor Zarubkin
|
|
|
|
* email : v.s.zarubkin@gmail.com
|
|
|
|
* ----------------- :
|
|
|
|
* description : The file contains declaration of MainWindow for easy_profiler GUI.
|
|
|
|
* ----------------- :
|
|
|
|
* change log : * 2016/06/26 Victor Zarubkin: initial commit.
|
|
|
|
* : *
|
|
|
|
* ----------------- :
|
|
|
|
* license : TODO: add license text
|
2016-06-26 20:54:16 +03:00
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef EASY_PROFILER_GUI__MAIN_WINDOW__H
|
|
|
|
#define EASY_PROFILER_GUI__MAIN_WINDOW__H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include <string>
|
|
|
|
#include "profiler/reader.h"
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
class ProfTreeWidget;
|
|
|
|
class ProfGraphicsView;
|
|
|
|
class QDockWidget;
|
|
|
|
|
|
|
|
class ProfMainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
2016-06-30 02:57:57 +03:00
|
|
|
typedef ProfMainWindow This;
|
|
|
|
|
2016-08-03 23:00:04 +03:00
|
|
|
::std::string m_lastFile;
|
|
|
|
QDockWidget* m_treeWidget;
|
|
|
|
QDockWidget* m_graphicsView;
|
2016-06-26 20:54:16 +03:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
ProfMainWindow();
|
|
|
|
virtual ~ProfMainWindow();
|
|
|
|
|
2016-08-04 23:46:04 +03:00
|
|
|
// Public virtual methods
|
|
|
|
|
|
|
|
void closeEvent(QCloseEvent* close_event) override;
|
|
|
|
|
2016-06-26 20:54:16 +03:00
|
|
|
protected slots:
|
|
|
|
|
|
|
|
void onOpenFileClicked(bool);
|
|
|
|
void onReloadFileClicked(bool);
|
|
|
|
void onExitClicked(bool);
|
2016-06-30 02:57:57 +03:00
|
|
|
void onTestViewportClicked(bool);
|
2016-08-09 00:45:45 +03:00
|
|
|
void onEncodingChanged(bool);
|
2016-06-26 20:54:16 +03:00
|
|
|
|
2016-06-30 21:39:04 +03:00
|
|
|
private:
|
|
|
|
|
2016-08-04 23:46:04 +03:00
|
|
|
// Private non-virtual methods
|
|
|
|
|
2016-06-30 21:39:04 +03:00
|
|
|
void loadFile(const std::string& filename);
|
2016-08-04 23:12:41 +03:00
|
|
|
|
2016-08-07 19:35:58 +03:00
|
|
|
void loadSettings();
|
2016-08-04 23:12:41 +03:00
|
|
|
void saveSettings();
|
2016-06-30 21:39:04 +03:00
|
|
|
|
2016-06-26 20:54:16 +03:00
|
|
|
}; // END of class ProfMainWindow.
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#endif // EASY_PROFILER_GUI__MAIN_WINDOW__H
|