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


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

Inheritance diagram for V\+S\+I\+:\+:Base\+Widget\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a00344}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{a00344_ad50ddc3c627d1c8126e532fef9fc96c2}{execute\+Code} ()
\begin{DoxyCompactList}\small\item\em executes current script \end{DoxyCompactList}\item 
void \hyperlink{a00344_af68d9d18bd489d7e888285d7a158bc51}{code\+To\+Script} ()
\begin{DoxyCompactList}\small\item\em converts visual script to textual script \end{DoxyCompactList}\item 
bool \hyperlink{a00344_a5b55c555a9ca6419246ff9a4193be002}{save} (bool \+\_\+new\+Name=false)
\begin{DoxyCompactList}\small\item\em save to file \end{DoxyCompactList}\item 
bool \hyperlink{a00344_a70f714259f8228338fb8120eb0a2eb7f}{save\+As} ()
\begin{DoxyCompactList}\small\item\em save to file \end{DoxyCompactList}\item 
void \hyperlink{a00344_a977258ec59c740c7f95baeb51cf4200f}{load} ()
\begin{DoxyCompactList}\small\item\em load file \end{DoxyCompactList}\item 
void \hyperlink{a00344_a9668762474f0a86d061524cdadf65be7}{new\+File} ()
\begin{DoxyCompactList}\small\item\em new empty file \end{DoxyCompactList}\item 
void \hyperlink{a00344_a7e130c8a2a7d575742b30f129c405503}{content\+Changed} ()
\begin{DoxyCompactList}\small\item\em used changed something \end{DoxyCompactList}\item 
void \hyperlink{a00344_a8421b83747ca78aa9d4f342868c250ed}{push\+Scene} (\hyperlink{a00658}{Graphics\+Scene} $\ast$\+\_\+scene)
\begin{DoxyCompactList}\small\item\em show a new scene (function) in editor \end{DoxyCompactList}\item 
void \hyperlink{a00344_a2e5102d824c854af466d5077f4eaed39}{pop\+Scene} ()
\begin{DoxyCompactList}\small\item\em go back to last scene (function) \end{DoxyCompactList}\item 
void \hyperlink{a00344_a4033e59c6062b449fbd27dfdb63c4c91}{add\+Scene} (\hyperlink{a00658}{Graphics\+Scene} $\ast$\+\_\+scene)
\begin{DoxyCompactList}\small\item\em add a new scene \end{DoxyCompactList}\item 
void \hyperlink{a00344_aa24179f1e4bf70cb70c53f461b796a34}{remove\+Scene} (\hyperlink{a00658}{Graphics\+Scene} $\ast$\+\_\+scene)
\begin{DoxyCompactList}\small\item\em remove a scene \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00344_abf66cffe7ff38bc0585a24730889a4e2}{void {\bfseries code\+To\+Script\+Editor} (Q\+String \+\_\+code)}\label{a00344_abf66cffe7ff38bc0585a24730889a4e2}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00344_a96c0c4a0d047c35738c2048fab6c2739}{\hyperlink{a00344_a96c0c4a0d047c35738c2048fab6c2739}{$\sim$\+Base\+Widget} ()}\label{a00344_a96c0c4a0d047c35738c2048fab6c2739}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00344_a49a769ecce78d81ba8a7380e8821193a}{static \hyperlink{a00344}{Base\+Widget} $\ast$ \hyperlink{a00344_a49a769ecce78d81ba8a7380e8821193a}{create\+Base\+Widget} (\hyperlink{a00459}{Context} $\ast$\+\_\+ctx, Q\+Widget $\ast$\+\_\+parent=N\+U\+L\+L)}\label{a00344_a49a769ecce78d81ba8a7380e8821193a}

\begin{DoxyCompactList}\small\item\em Singleton constructor. \end{DoxyCompactList}\item 
\hypertarget{a00344_a084b29599ab6305f4fcb9d9fc1e31982}{static \hyperlink{a00344}{Base\+Widget} $\ast$ \hyperlink{a00344_a084b29599ab6305f4fcb9d9fc1e31982}{get\+Base\+Widget} ()}\label{a00344_a084b29599ab6305f4fcb9d9fc1e31982}

\begin{DoxyCompactList}\small\item\em Returns singleton. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00344_a59800926e086d104e47755fd1c10c111}{{\bfseries Base\+Widget} (\hyperlink{a00459}{Context} $\ast$\+\_\+ctx, Q\+Widget $\ast$\+\_\+parent)}\label{a00344_a59800926e086d104e47755fd1c10c111}

\item 
\hypertarget{a00344_a3b1b5237661ecdbc0545ac2e2eef7f19}{void \hyperlink{a00344_a3b1b5237661ecdbc0545ac2e2eef7f19}{setup\+Ui} ()}\label{a00344_a3b1b5237661ecdbc0545ac2e2eef7f19}

\begin{DoxyCompactList}\small\item\em Adds element widgets to toolbox. \end{DoxyCompactList}\item 
\hypertarget{a00344_a7d9f3f728aba277da95d1dba5b59bb96}{void \hyperlink{a00344_a7d9f3f728aba277da95d1dba5b59bb96}{update\+Title} ()}\label{a00344_a7d9f3f728aba277da95d1dba5b59bb96}

\begin{DoxyCompactList}\small\item\em Update window title. \end{DoxyCompactList}\item 
\hypertarget{a00344_a7e06b29c2ab715805c1adf3ea472d77f}{bool \hyperlink{a00344_a7e06b29c2ab715805c1adf3ea472d77f}{save\+If\+Changed} ()}\label{a00344_a7e06b29c2ab715805c1adf3ea472d77f}

\begin{DoxyCompactList}\small\item\em Asks the user if he want to save his changes. \end{DoxyCompactList}\item 
\hypertarget{a00344_ab6e317dccdb99376d386d6ee9387a1b5}{void \hyperlink{a00344_ab6e317dccdb99376d386d6ee9387a1b5}{close\+Event} (Q\+Close\+Event $\ast$\+\_\+event)}\label{a00344_ab6e317dccdb99376d386d6ee9387a1b5}

\begin{DoxyCompactList}\small\item\em Chatch close event. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00344_a7128bdcad4314e812635eac6cad0da9c}{\hyperlink{a00459}{Context} $\ast$ {\bfseries ctx\+\_\+}}\label{a00344_a7128bdcad4314e812635eac6cad0da9c}

\item 
\hypertarget{a00344_a087977a2b474420c0db0fea5f85563f0}{\hyperlink{a00658}{Graphics\+Scene} $\ast$ {\bfseries main\+Scene\+\_\+}}\label{a00344_a087977a2b474420c0db0fea5f85563f0}

\item 
\hypertarget{a00344_a8b5bdbd91f908b43ce6451d486a1775c}{Q\+Stack$<$ \hyperlink{a00658}{Graphics\+Scene} $\ast$ $>$ {\bfseries scenes\+\_\+}}\label{a00344_a8b5bdbd91f908b43ce6451d486a1775c}

\item 
\hypertarget{a00344_a96be6d85c785268ecaa419ba044fa4e7}{Q\+Splitter $\ast$ {\bfseries splitter\+\_\+}}\label{a00344_a96be6d85c785268ecaa419ba044fa4e7}

\item 
\hypertarget{a00344_a3bc2b99b8f51132a19d5a98a919b75e6}{Q\+Tool\+Box $\ast$ {\bfseries toolbox\+\_\+}}\label{a00344_a3bc2b99b8f51132a19d5a98a919b75e6}

\item 
\hypertarget{a00344_a71c1cd7b897bdea5c5b79d2f6c3e9ec6}{Q\+Stacked\+Widget $\ast$ {\bfseries views\+\_\+}}\label{a00344_a71c1cd7b897bdea5c5b79d2f6c3e9ec6}

\item 
\hypertarget{a00344_a202266c0580e1e51639b1928f88c1cd9}{Q\+String {\bfseries file\+Name\+\_\+}}\label{a00344_a202266c0580e1e51639b1928f88c1cd9}

\item 
\hypertarget{a00344_a57d4e8c0f2a591551c8b3be7fb9f2106}{bool {\bfseries changed\+Content\+\_\+}}\label{a00344_a57d4e8c0f2a591551c8b3be7fb9f2106}

\end{DoxyCompactItemize}
\subsection*{Static Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00344_aee4b0a5aa76ab9df62e7944a559e912a}{static \hyperlink{a00344}{Base\+Widget} $\ast$ {\bfseries base\+\_\+} = N\+U\+L\+L}\label{a00344_aee4b0a5aa76ab9df62e7944a559e912a}

\end{DoxyCompactItemize}


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

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



\subsection{Member Function Documentation}
\hypertarget{a00344_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[{add\+Scene}]{\setlength{\rightskip}{0pt plus 5cm}void V\+S\+I\+::\+Base\+Widget\+::add\+Scene (
\begin{DoxyParamCaption}
\item[{{\bf Graphics\+Scene} $\ast$}]{\+\_\+scene}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [slot]}}}\label{a00344_a4033e59c6062b449fbd27dfdb63c4c91}


add a new scene 

Add scene to stack widget. 

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

\hypertarget{a00344_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[{code\+To\+Script}]{\setlength{\rightskip}{0pt plus 5cm}void V\+S\+I\+::\+Base\+Widget\+::code\+To\+Script (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [slot]}}}\label{a00344_af68d9d18bd489d7e888285d7a158bc51}


converts visual script to textual script 

signal to open textual script editor with current script 

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

\hypertarget{a00344_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[{content\+Changed}]{\setlength{\rightskip}{0pt plus 5cm}void V\+S\+I\+::\+Base\+Widget\+::content\+Changed (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [slot]}}}\label{a00344_a7e130c8a2a7d575742b30f129c405503}


used changed something 

Called if something it the scene has changed. 

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

\hypertarget{a00344_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[{execute\+Code}]{\setlength{\rightskip}{0pt plus 5cm}void V\+S\+I\+::\+Base\+Widget\+::execute\+Code (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [slot]}}}\label{a00344_ad50ddc3c627d1c8126e532fef9fc96c2}


executes current script 

Executes current visual script. 

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

\hypertarget{a00344_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[{load}]{\setlength{\rightskip}{0pt plus 5cm}void V\+S\+I\+::\+Base\+Widget\+::load (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [slot]}}}\label{a00344_a977258ec59c740c7f95baeb51cf4200f}


load file 

Load file. 

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

\hypertarget{a00344_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[{new\+File}]{\setlength{\rightskip}{0pt plus 5cm}void V\+S\+I\+::\+Base\+Widget\+::new\+File (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [slot]}}}\label{a00344_a9668762474f0a86d061524cdadf65be7}


new empty file 

New empty scene. 

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

\hypertarget{a00344_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[{pop\+Scene}]{\setlength{\rightskip}{0pt plus 5cm}void V\+S\+I\+::\+Base\+Widget\+::pop\+Scene (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [slot]}}}\label{a00344_a2e5102d824c854af466d5077f4eaed39}


go back to last scene (function) 

Go back to previous scene (function) 

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

\hypertarget{a00344_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[{push\+Scene}]{\setlength{\rightskip}{0pt plus 5cm}void V\+S\+I\+::\+Base\+Widget\+::push\+Scene (
\begin{DoxyParamCaption}
\item[{{\bf Graphics\+Scene} $\ast$}]{\+\_\+scene}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [slot]}}}\label{a00344_a8421b83747ca78aa9d4f342868c250ed}


show a new scene (function) in editor 

Display a new scene (function) in editor. 

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

\hypertarget{a00344_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[{remove\+Scene}]{\setlength{\rightskip}{0pt plus 5cm}void V\+S\+I\+::\+Base\+Widget\+::remove\+Scene (
\begin{DoxyParamCaption}
\item[{{\bf Graphics\+Scene} $\ast$}]{\+\_\+scene}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [slot]}}}\label{a00344_aa24179f1e4bf70cb70c53f461b796a34}


remove a scene 

Remove scene from stack widget. 

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

\hypertarget{a00344_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[{save}]{\setlength{\rightskip}{0pt plus 5cm}bool V\+S\+I\+::\+Base\+Widget\+::save (
\begin{DoxyParamCaption}
\item[{bool}]{\+\_\+new\+Name = {\ttfamily false}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [slot]}}}\label{a00344_a5b55c555a9ca6419246ff9a4193be002}


save to file 

Save file. 

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

\hypertarget{a00344_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[{save\+As}]{\setlength{\rightskip}{0pt plus 5cm}bool V\+S\+I\+::\+Base\+Widget\+::save\+As (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [slot]}}}\label{a00344_a70f714259f8228338fb8120eb0a2eb7f}


save to file 

Save to file. 

Definition at line 250 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}
