\hypertarget{a01311}{\section{Toolbox\+Interface Class Reference}
\label{a01311}\index{Toolbox\+Interface@{Toolbox\+Interface}}
}


Plugins can add its own toolbox to the main widget's toolbox area by using this interface.  




{\ttfamily \#include $<$Open\+Flipper/\+Base\+Plugin/\+Toolbox\+Interface.\+hh$>$}

Inheritance diagram for Toolbox\+Interface\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=12.000000cm]{a01311}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{a01311_a34f237c4b98d624ae7895e8f3dd4ed8d}{add\+Toolbox} (Q\+String \+\_\+name, Q\+Widget $\ast$\+\_\+widget)
\begin{DoxyCompactList}\small\item\em Add a toolbox widget to the gui with the given name. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01311_a0f2acdcde4c317977aa2a9930e7c34d6}{virtual \hyperlink{a01311_a0f2acdcde4c317977aa2a9930e7c34d6}{$\sim$\+Toolbox\+Interface} ()}\label{a01311_a0f2acdcde4c317977aa2a9930e7c34d6}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
virtual void \hyperlink{a01311_ad9401f3bc4ec8cd98205dc2cb733ec2a}{add\+Toolbox} (Q\+String \+\_\+name, Q\+Widget $\ast$\+\_\+widget, Q\+Icon $\ast$\+\_\+icon)
\begin{DoxyCompactList}\small\item\em Add a toolbox widget to the gui with the given name and an icon. \end{DoxyCompactList}\item 
virtual void \hyperlink{a01311_a26e69292aeb9170ae81e5bedbe971ea7}{add\+Toolbox} (Q\+String \+\_\+name, Q\+Widget $\ast$\+\_\+widget, Q\+Icon $\ast$\+\_\+icon, Q\+Widget $\ast$\+\_\+header\+Area\+Widget)
\begin{DoxyCompactList}\small\item\em Add a toolbox widget to the gui with the given name, icon and header area widget. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Plugins can add its own toolbox to the main widget's toolbox area by using this interface. 

\hyperlink{toolboxInterfacePage}{Detailed description} ~\newline
 This Interface can be used by plugins which will provide a toolbox widget. Each Plugin can create own Widgets in the toolbox area. Just create your widget and then add it with ~\newline
emit add\+Toolbox( Q\+String  \+\_\+name  , Q\+Widget$\ast$ \+\_\+widget ) ~\newline
to the user interface. You can create extra signals and slots in your Plugin. These can be connected between your toolbox and your plugin.~\newline
 See our tutorials \hyperlink{ex2}{Implementing a mesh smoother plugin} and \hyperlink{ex3}{Implementing mouse and keyboard interaction} for an example of to add custom toolboxes to Open\+Flipper. 

Definition at line 85 of file Toolbox\+Interface.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a01311_a34f237c4b98d624ae7895e8f3dd4ed8d}{\index{Toolbox\+Interface@{Toolbox\+Interface}!add\+Toolbox@{add\+Toolbox}}
\index{add\+Toolbox@{add\+Toolbox}!Toolbox\+Interface@{Toolbox\+Interface}}
\subsubsection[{add\+Toolbox}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Toolbox\+Interface\+::add\+Toolbox (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+name, }
\item[{Q\+Widget $\ast$}]{\+\_\+widget}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}, {\ttfamily [signal]}}}\label{a01311_a34f237c4b98d624ae7895e8f3dd4ed8d}


Add a toolbox widget to the gui with the given name. 

This signal adds a toolbox widget to the toolbox area on the right.


\begin{DoxyParams}{Parameters}
{\em \+\_\+name} & Visible name of the toolbox \\
\hline
{\em \+\_\+widget} & Pointer to the toolbox widget \\
\hline
\end{DoxyParams}


Definition at line 103 of file Toolbox\+Interface.\+hh.

\hypertarget{a01311_ad9401f3bc4ec8cd98205dc2cb733ec2a}{\index{Toolbox\+Interface@{Toolbox\+Interface}!add\+Toolbox@{add\+Toolbox}}
\index{add\+Toolbox@{add\+Toolbox}!Toolbox\+Interface@{Toolbox\+Interface}}
\subsubsection[{add\+Toolbox}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Toolbox\+Interface\+::add\+Toolbox (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+name, }
\item[{Q\+Widget $\ast$}]{\+\_\+widget, }
\item[{Q\+Icon $\ast$}]{\+\_\+icon}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01311_ad9401f3bc4ec8cd98205dc2cb733ec2a}


Add a toolbox widget to the gui with the given name and an icon. 

This signal adds a toolbox widget to the toolbox area on the right. And sets an icon for it


\begin{DoxyParams}{Parameters}
{\em \+\_\+name} & Visible name of the toolbox \\
\hline
{\em \+\_\+widget} & Pointer to the toolbox widget \\
\hline
{\em \+\_\+icon} & Icon for the toolbox \\
\hline
\end{DoxyParams}


Definition at line 113 of file Toolbox\+Interface.\+hh.

\hypertarget{a01311_a26e69292aeb9170ae81e5bedbe971ea7}{\index{Toolbox\+Interface@{Toolbox\+Interface}!add\+Toolbox@{add\+Toolbox}}
\index{add\+Toolbox@{add\+Toolbox}!Toolbox\+Interface@{Toolbox\+Interface}}
\subsubsection[{add\+Toolbox}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Toolbox\+Interface\+::add\+Toolbox (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+name, }
\item[{Q\+Widget $\ast$}]{\+\_\+widget, }
\item[{Q\+Icon $\ast$}]{\+\_\+icon, }
\item[{Q\+Widget $\ast$}]{\+\_\+header\+Area\+Widget}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01311_a26e69292aeb9170ae81e5bedbe971ea7}


Add a toolbox widget to the gui with the given name, icon and header area widget. 

This signal adds a toolbox widget to the toolbox area on the right. And sets an icon for it


\begin{DoxyParams}{Parameters}
{\em \+\_\+name} & Visible name of the toolbox \\
\hline
{\em \+\_\+widget} & Pointer to the toolbox widget \\
\hline
{\em \+\_\+icon} & Icon for the toolbox \\
\hline
{\em \+\_\+header\+Area\+Widget} & Widget displayed in the toolbox header between the title and the detach button. \\
\hline
\end{DoxyParams}


Definition at line 125 of file Toolbox\+Interface.\+hh.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/\+Base\+Plugin/\hyperlink{a02472}{Toolbox\+Interface.\+hh}\end{DoxyCompactItemize}
