\hypertarget{a10704}{}\section{V\+SI\+:\+:Base\+Widget Class Reference}
\label{a10704}\index{V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}}


{\ttfamily \#include $<$Plugin-\/\+V\+S\+I/base\+Widget.\+hh$>$}

Inheritance diagram for V\+SI\+:\+:Base\+Widget\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a10704}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{a10704_ad50ddc3c627d1c8126e532fef9fc96c2}{execute\+Code} ()
\begin{DoxyCompactList}\small\item\em executes current script \end{DoxyCompactList}\item 
void \hyperlink{a10704_af68d9d18bd489d7e888285d7a158bc51}{code\+To\+Script} ()
\begin{DoxyCompactList}\small\item\em converts visual script to textual script \end{DoxyCompactList}\item 
bool \hyperlink{a10704_a5b55c555a9ca6419246ff9a4193be002}{save} (bool \+\_\+new\+Name=false)
\begin{DoxyCompactList}\small\item\em save to file \end{DoxyCompactList}\item 
bool \hyperlink{a10704_a70f714259f8228338fb8120eb0a2eb7f}{save\+As} ()
\begin{DoxyCompactList}\small\item\em save to file \end{DoxyCompactList}\item 
void \hyperlink{a10704_a977258ec59c740c7f95baeb51cf4200f}{load} ()
\begin{DoxyCompactList}\small\item\em load file \end{DoxyCompactList}\item 
void \hyperlink{a10704_a9668762474f0a86d061524cdadf65be7}{new\+File} ()
\begin{DoxyCompactList}\small\item\em new empty file \end{DoxyCompactList}\item 
void \hyperlink{a10704_a7e130c8a2a7d575742b30f129c405503}{content\+Changed} ()
\begin{DoxyCompactList}\small\item\em used changed something \end{DoxyCompactList}\item 
void \hyperlink{a10704_a8421b83747ca78aa9d4f342868c250ed}{push\+Scene} (\hyperlink{a10796}{Graphics\+Scene} $\ast$\+\_\+scene)
\begin{DoxyCompactList}\small\item\em show a new scene (function) in editor \end{DoxyCompactList}\item 
void \hyperlink{a10704_a2e5102d824c854af466d5077f4eaed39}{pop\+Scene} ()
\begin{DoxyCompactList}\small\item\em go back to last scene (function) \end{DoxyCompactList}\item 
void \hyperlink{a10704_a4033e59c6062b449fbd27dfdb63c4c91}{add\+Scene} (\hyperlink{a10796}{Graphics\+Scene} $\ast$\+\_\+scene)
\begin{DoxyCompactList}\small\item\em add a new scene \end{DoxyCompactList}\item 
void \hyperlink{a10704_aa24179f1e4bf70cb70c53f461b796a34}{remove\+Scene} (\hyperlink{a10796}{Graphics\+Scene} $\ast$\+\_\+scene)
\begin{DoxyCompactList}\small\item\em remove a scene \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a10704_abf66cffe7ff38bc0585a24730889a4e2}\label{a10704_abf66cffe7ff38bc0585a24730889a4e2}} 
void {\bfseries code\+To\+Script\+Editor} (Q\+String \+\_\+code)
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a10704_a96c0c4a0d047c35738c2048fab6c2739}\label{a10704_a96c0c4a0d047c35738c2048fab6c2739}} 
\hyperlink{a10704_a96c0c4a0d047c35738c2048fab6c2739}{$\sim$\+Base\+Widget} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a10704_a49a769ecce78d81ba8a7380e8821193a}\label{a10704_a49a769ecce78d81ba8a7380e8821193a}} 
static \hyperlink{a10704}{Base\+Widget} $\ast$ \hyperlink{a10704_a49a769ecce78d81ba8a7380e8821193a}{create\+Base\+Widget} (\hyperlink{a10724}{Context} $\ast$\+\_\+ctx, Q\+Widget $\ast$\+\_\+parent=N\+U\+LL)
\begin{DoxyCompactList}\small\item\em Singleton constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10704_a084b29599ab6305f4fcb9d9fc1e31982}\label{a10704_a084b29599ab6305f4fcb9d9fc1e31982}} 
static \hyperlink{a10704}{Base\+Widget} $\ast$ \hyperlink{a10704_a084b29599ab6305f4fcb9d9fc1e31982}{get\+Base\+Widget} ()
\begin{DoxyCompactList}\small\item\em Returns singleton. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a10704_a59800926e086d104e47755fd1c10c111}\label{a10704_a59800926e086d104e47755fd1c10c111}} 
{\bfseries Base\+Widget} (\hyperlink{a10724}{Context} $\ast$\+\_\+ctx, Q\+Widget $\ast$\+\_\+parent)
\item 
\mbox{\Hypertarget{a10704_a3b1b5237661ecdbc0545ac2e2eef7f19}\label{a10704_a3b1b5237661ecdbc0545ac2e2eef7f19}} 
void \hyperlink{a10704_a3b1b5237661ecdbc0545ac2e2eef7f19}{setup\+Ui} ()
\begin{DoxyCompactList}\small\item\em Adds element widgets to toolbox. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10704_a7d9f3f728aba277da95d1dba5b59bb96}\label{a10704_a7d9f3f728aba277da95d1dba5b59bb96}} 
void \hyperlink{a10704_a7d9f3f728aba277da95d1dba5b59bb96}{update\+Title} ()
\begin{DoxyCompactList}\small\item\em Update window title. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10704_a7e06b29c2ab715805c1adf3ea472d77f}\label{a10704_a7e06b29c2ab715805c1adf3ea472d77f}} 
bool \hyperlink{a10704_a7e06b29c2ab715805c1adf3ea472d77f}{save\+If\+Changed} ()
\begin{DoxyCompactList}\small\item\em Asks the user if he want to save his changes. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10704_ab6e317dccdb99376d386d6ee9387a1b5}\label{a10704_ab6e317dccdb99376d386d6ee9387a1b5}} 
void \hyperlink{a10704_ab6e317dccdb99376d386d6ee9387a1b5}{close\+Event} (Q\+Close\+Event $\ast$\+\_\+event)
\begin{DoxyCompactList}\small\item\em Chatch close event. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a10704_a7128bdcad4314e812635eac6cad0da9c}\label{a10704_a7128bdcad4314e812635eac6cad0da9c}} 
\hyperlink{a10724}{Context} $\ast$ {\bfseries ctx\+\_\+}
\item 
\mbox{\Hypertarget{a10704_a087977a2b474420c0db0fea5f85563f0}\label{a10704_a087977a2b474420c0db0fea5f85563f0}} 
\hyperlink{a10796}{Graphics\+Scene} $\ast$ {\bfseries main\+Scene\+\_\+}
\item 
\mbox{\Hypertarget{a10704_a8b5bdbd91f908b43ce6451d486a1775c}\label{a10704_a8b5bdbd91f908b43ce6451d486a1775c}} 
Q\+Stack$<$ \hyperlink{a10796}{Graphics\+Scene} $\ast$ $>$ {\bfseries scenes\+\_\+}
\item 
\mbox{\Hypertarget{a10704_a96be6d85c785268ecaa419ba044fa4e7}\label{a10704_a96be6d85c785268ecaa419ba044fa4e7}} 
Q\+Splitter $\ast$ {\bfseries splitter\+\_\+}
\item 
\mbox{\Hypertarget{a10704_a3bc2b99b8f51132a19d5a98a919b75e6}\label{a10704_a3bc2b99b8f51132a19d5a98a919b75e6}} 
Q\+Tool\+Box $\ast$ {\bfseries toolbox\+\_\+}
\item 
\mbox{\Hypertarget{a10704_a71c1cd7b897bdea5c5b79d2f6c3e9ec6}\label{a10704_a71c1cd7b897bdea5c5b79d2f6c3e9ec6}} 
Q\+Stacked\+Widget $\ast$ {\bfseries views\+\_\+}
\item 
\mbox{\Hypertarget{a10704_a202266c0580e1e51639b1928f88c1cd9}\label{a10704_a202266c0580e1e51639b1928f88c1cd9}} 
Q\+String {\bfseries file\+Name\+\_\+}
\item 
\mbox{\Hypertarget{a10704_a57d4e8c0f2a591551c8b3be7fb9f2106}\label{a10704_a57d4e8c0f2a591551c8b3be7fb9f2106}} 
bool {\bfseries changed\+Content\+\_\+}
\end{DoxyCompactItemize}
\subsection*{Static Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a10704_aee4b0a5aa76ab9df62e7944a559e912a}\label{a10704_aee4b0a5aa76ab9df62e7944a559e912a}} 
static \hyperlink{a10704}{Base\+Widget} $\ast$ {\bfseries base\+\_\+} = N\+U\+LL
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Main widget for the visual scripting interface editor 

Definition at line 69 of file base\+Widget.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a10704_a4033e59c6062b449fbd27dfdb63c4c91}\label{a10704_a4033e59c6062b449fbd27dfdb63c4c91}} 
\index{V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}!add\+Scene@{add\+Scene}}
\index{add\+Scene@{add\+Scene}!V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}}
\subsubsection{\texorpdfstring{add\+Scene}{addScene}}
{\footnotesize\ttfamily void V\+S\+I\+::\+Base\+Widget\+::add\+Scene (\begin{DoxyParamCaption}\item[{\hyperlink{a10796}{Graphics\+Scene} $\ast$}]{\+\_\+scene }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}



add a new scene 

Add scene to stack widget. 

Definition at line 496 of file base\+Widget.\+cc.

\mbox{\Hypertarget{a10704_af68d9d18bd489d7e888285d7a158bc51}\label{a10704_af68d9d18bd489d7e888285d7a158bc51}} 
\index{V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}!code\+To\+Script@{code\+To\+Script}}
\index{code\+To\+Script@{code\+To\+Script}!V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}}
\subsubsection{\texorpdfstring{code\+To\+Script}{codeToScript}}
{\footnotesize\ttfamily void V\+S\+I\+::\+Base\+Widget\+::code\+To\+Script (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}



converts visual script to textual script 

signal to open textual script editor with current script 

Definition at line 222 of file base\+Widget.\+cc.

\mbox{\Hypertarget{a10704_a7e130c8a2a7d575742b30f129c405503}\label{a10704_a7e130c8a2a7d575742b30f129c405503}} 
\index{V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}!content\+Changed@{content\+Changed}}
\index{content\+Changed@{content\+Changed}!V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}}
\subsubsection{\texorpdfstring{content\+Changed}{contentChanged}}
{\footnotesize\ttfamily void V\+S\+I\+::\+Base\+Widget\+::content\+Changed (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}



used changed something 

Called if something it the scene has changed. 

Definition at line 396 of file base\+Widget.\+cc.

\mbox{\Hypertarget{a10704_ad50ddc3c627d1c8126e532fef9fc96c2}\label{a10704_ad50ddc3c627d1c8126e532fef9fc96c2}} 
\index{V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}!execute\+Code@{execute\+Code}}
\index{execute\+Code@{execute\+Code}!V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}}
\subsubsection{\texorpdfstring{execute\+Code}{executeCode}}
{\footnotesize\ttfamily void V\+S\+I\+::\+Base\+Widget\+::execute\+Code (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}



executes current script 

Executes current visual script. 

Definition at line 199 of file base\+Widget.\+cc.

\mbox{\Hypertarget{a10704_a977258ec59c740c7f95baeb51cf4200f}\label{a10704_a977258ec59c740c7f95baeb51cf4200f}} 
\index{V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}!load@{load}}
\index{load@{load}!V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}}
\subsubsection{\texorpdfstring{load}{load}}
{\footnotesize\ttfamily void V\+S\+I\+::\+Base\+Widget\+::load (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}



load file 

Load file. 

Definition at line 252 of file base\+Widget.\+cc.

\mbox{\Hypertarget{a10704_a9668762474f0a86d061524cdadf65be7}\label{a10704_a9668762474f0a86d061524cdadf65be7}} 
\index{V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}!new\+File@{new\+File}}
\index{new\+File@{new\+File}!V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}}
\subsubsection{\texorpdfstring{new\+File}{newFile}}
{\footnotesize\ttfamily void V\+S\+I\+::\+Base\+Widget\+::new\+File (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}



new empty file 

New empty scene. 

Definition at line 367 of file base\+Widget.\+cc.

\mbox{\Hypertarget{a10704_a2e5102d824c854af466d5077f4eaed39}\label{a10704_a2e5102d824c854af466d5077f4eaed39}} 
\index{V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}!pop\+Scene@{pop\+Scene}}
\index{pop\+Scene@{pop\+Scene}!V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}}
\subsubsection{\texorpdfstring{pop\+Scene}{popScene}}
{\footnotesize\ttfamily void V\+S\+I\+::\+Base\+Widget\+::pop\+Scene (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}



go back to last scene (function) 

Go back to previous scene (function) 

Definition at line 482 of file base\+Widget.\+cc.

\mbox{\Hypertarget{a10704_a8421b83747ca78aa9d4f342868c250ed}\label{a10704_a8421b83747ca78aa9d4f342868c250ed}} 
\index{V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}!push\+Scene@{push\+Scene}}
\index{push\+Scene@{push\+Scene}!V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}}
\subsubsection{\texorpdfstring{push\+Scene}{pushScene}}
{\footnotesize\ttfamily void V\+S\+I\+::\+Base\+Widget\+::push\+Scene (\begin{DoxyParamCaption}\item[{\hyperlink{a10796}{Graphics\+Scene} $\ast$}]{\+\_\+scene }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}



show a new scene (function) in editor 

Display a new scene (function) in editor. 

Definition at line 473 of file base\+Widget.\+cc.

\mbox{\Hypertarget{a10704_aa24179f1e4bf70cb70c53f461b796a34}\label{a10704_aa24179f1e4bf70cb70c53f461b796a34}} 
\index{V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}!remove\+Scene@{remove\+Scene}}
\index{remove\+Scene@{remove\+Scene}!V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}}
\subsubsection{\texorpdfstring{remove\+Scene}{removeScene}}
{\footnotesize\ttfamily void V\+S\+I\+::\+Base\+Widget\+::remove\+Scene (\begin{DoxyParamCaption}\item[{\hyperlink{a10796}{Graphics\+Scene} $\ast$}]{\+\_\+scene }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}



remove a scene 

Remove scene from stack widget. 

Definition at line 504 of file base\+Widget.\+cc.

\mbox{\Hypertarget{a10704_a5b55c555a9ca6419246ff9a4193be002}\label{a10704_a5b55c555a9ca6419246ff9a4193be002}} 
\index{V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}!save@{save}}
\index{save@{save}!V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}}
\subsubsection{\texorpdfstring{save}{save}}
{\footnotesize\ttfamily bool V\+S\+I\+::\+Base\+Widget\+::save (\begin{DoxyParamCaption}\item[{bool}]{\+\_\+new\+Name = {\ttfamily false} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}



save to file 

Save file. 

Definition at line 311 of file base\+Widget.\+cc.

\mbox{\Hypertarget{a10704_a70f714259f8228338fb8120eb0a2eb7f}\label{a10704_a70f714259f8228338fb8120eb0a2eb7f}} 
\index{V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}!save\+As@{save\+As}}
\index{save\+As@{save\+As}!V\+S\+I\+::\+Base\+Widget@{V\+S\+I\+::\+Base\+Widget}}
\subsubsection{\texorpdfstring{save\+As}{saveAs}}
{\footnotesize\ttfamily bool V\+S\+I\+::\+Base\+Widget\+::save\+As (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}



save to file 

Save to file. 

Definition at line 244 of file base\+Widget.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Plugin-\/\+V\+S\+I/base\+Widget.\+hh\item 
Plugin-\/\+V\+S\+I/base\+Widget.\+cc\end{DoxyCompactItemize}
