\doxysection{Window.\+hpp}
\hypertarget{Window_8hpp_source}{}\label{Window_8hpp_source}\index{/home/chr/devel/PhD/Environment/pub/PCBEnv/pcbenv/cxx/UI/Window.hpp@{/home/chr/devel/PhD/Environment/pub/PCBEnv/pcbenv/cxx/UI/Window.hpp}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ }
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#ifndef\ GYM\_PCB\_UI\_WINDOW\_H}}
\DoxyCodeLine{00003\ \textcolor{preprocessor}{\#define\ GYM\_PCB\_UI\_WINDOW\_H}}
\DoxyCodeLine{00004\ }
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#include\ "{}GLWidget.hpp"{}}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#include\ <QWidget>}}
\DoxyCodeLine{00007\ \textcolor{preprocessor}{\#include\ <QEvent>}}
\DoxyCodeLine{00008\ }
\DoxyCodeLine{00009\ \textcolor{keyword}{class\ }QTimer;}
\DoxyCodeLine{00010\ \textcolor{keyword}{class\ }QLabel;}
\DoxyCodeLine{00011\ \textcolor{keyword}{class\ }QTabWidget;}
\DoxyCodeLine{00012\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classActionTab}{ActionTab}};}
\DoxyCodeLine{00013\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classBrowserTab}{BrowserTab}};}
\DoxyCodeLine{00014\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classViewTab}{ViewTab}};}
\DoxyCodeLine{00015\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classParameterTab}{ParameterTab}};}
\DoxyCodeLine{00016\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classPCBoard}{PCBoard}};}
\DoxyCodeLine{00017\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classUIApplication}{UIApplication}};}
\DoxyCodeLine{00018\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classUIActions}{UIActions}};}
\DoxyCodeLine{00019\ }
\DoxyCodeLine{00020\ \textcolor{keyword}{class\ }Window\ :\ \textcolor{keyword}{public}\ QWidget}
\DoxyCodeLine{00021\ \{}
\DoxyCodeLine{00022\ \ \ \ \ Q\_OBJECT}
\DoxyCodeLine{00023\ }
\DoxyCodeLine{00024\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00025\ \ \ \ \ Window(\mbox{\hyperlink{classUIApplication}{UIApplication}}\&);}
\DoxyCodeLine{00026\ \ \ \ \ \string~Window();}
\DoxyCodeLine{00027\ }
\DoxyCodeLine{00028\ \ \ \ \ \mbox{\hyperlink{classActionTab}{ActionTab}}\ *getActionTab()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ mActionTab;\ \}}
\DoxyCodeLine{00029\ \ \ \ \ \mbox{\hyperlink{classParameterTab}{ParameterTab}}\ *getParameterTab()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ mParamTab;\ \}}
\DoxyCodeLine{00030\ }
\DoxyCodeLine{00031\ \ \ \ \ \mbox{\hyperlink{classGLWidget}{GLWidget}}\ *getGLWidget()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ GLWidget::getInstance();\ \}}
\DoxyCodeLine{00032\ }
\DoxyCodeLine{00033\ \ \ \ \ \textcolor{keywordtype}{void}\ setPCB(\textcolor{keyword}{const}\ std::shared\_ptr<PCBoard>\&);}
\DoxyCodeLine{00034\ }
\DoxyCodeLine{00035\ \ \ \ \ \mbox{\hyperlink{classUIApplication}{UIApplication}}\ *getApplication()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ \&mUIA;\ \}}
\DoxyCodeLine{00036\ }
\DoxyCodeLine{00037\ \ \ \ \ \textcolor{keywordtype}{void}\ keyPressEvent(QKeyEvent\ *)\ \textcolor{keyword}{override};}
\DoxyCodeLine{00038\ \ \ \ \ \textcolor{keywordtype}{void}\ keyReleaseEvent(QKeyEvent\ *)\ \textcolor{keyword}{override};}
\DoxyCodeLine{00039\ }
\DoxyCodeLine{00040\ \textcolor{keyword}{public}\ slots:}
\DoxyCodeLine{00041\ \ \ \ \ \textcolor{keywordtype}{void}\ terminate();}
\DoxyCodeLine{00042\ }
\DoxyCodeLine{00043\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00044\ \ \ \ \ \mbox{\hyperlink{classUIApplication}{UIApplication}}\ \&mUIA;}
\DoxyCodeLine{00045\ \ \ \ \ std::unique\_ptr<UIActions>\ mActions;}
\DoxyCodeLine{00046\ \ \ \ \ std::unique\_ptr<QTabWidget>\ mTabContainer;}
\DoxyCodeLine{00047\ \ \ \ \ \mbox{\hyperlink{classActionTab}{ActionTab}}\ *mActionTab;}
\DoxyCodeLine{00048\ \ \ \ \ \mbox{\hyperlink{classBrowserTab}{BrowserTab}}\ *mBrowserTab;}
\DoxyCodeLine{00049\ \ \ \ \ \mbox{\hyperlink{classViewTab}{ViewTab}}\ *mViewTab;}
\DoxyCodeLine{00050\ \ \ \ \ \mbox{\hyperlink{classParameterTab}{ParameterTab}}\ *mParamTab;}
\DoxyCodeLine{00051\ \ \ \ \ std::unique\_ptr<QTimer>\ mTimer;}
\DoxyCodeLine{00052\ \};}
\DoxyCodeLine{00053\ }
\DoxyCodeLine{00054\ \textcolor{keyword}{inline}\ \textcolor{keywordtype}{void}\ Window::terminate()}
\DoxyCodeLine{00055\ \{}
\DoxyCodeLine{00056\ \ \ \ \ std::exit(0);}
\DoxyCodeLine{00057\ \}}
\DoxyCodeLine{00058\ }
\DoxyCodeLine{00059\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ GYM\_PCB\_UI\_WINDOW\_H}}

\end{DoxyCode}
