<filename>latex/class_t_palette_handle.tex<gh_stars>0
\hypertarget{class_t_palette_handle}{}\doxysection{TPalette\+Handle Class Reference}
\label{class_t_palette_handle}\index{TPaletteHandle@{TPaletteHandle}}
Inheritance diagram for TPalette\+Handle\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_t_palette_handle}
\end{center}
\end{figure}
\doxysubsection*{Signals}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_t_palette_handle_abdb2e66affd66bd661f3f289adbdd6f7}\label{class_t_palette_handle_abdb2e66affd66bd661f3f289adbdd6f7}} 
void {\bfseries palette\+Switched} ()
\item 
\mbox{\Hypertarget{class_t_palette_handle_a29f79e4cd0db78d1af4358abd4d22c2c}\label{class_t_palette_handle_a29f79e4cd0db78d1af4358abd4d22c2c}} 
void {\bfseries palette\+Changed} ()
\item 
\mbox{\Hypertarget{class_t_palette_handle_ad2a3e333713675fb91d0ee9ad54e4577}\label{class_t_palette_handle_ad2a3e333713675fb91d0ee9ad54e4577}} 
void {\bfseries palette\+Title\+Changed} ()
\item 
\mbox{\Hypertarget{class_t_palette_handle_a35dc97035f972ec0022f9ae096a3fc02}\label{class_t_palette_handle_a35dc97035f972ec0022f9ae096a3fc02}} 
void {\bfseries color\+Style\+Switched} ()
\item 
\mbox{\Hypertarget{class_t_palette_handle_a78c972ec2f5b9250389e6c56ee7f151d}\label{class_t_palette_handle_a78c972ec2f5b9250389e6c56ee7f151d}} 
void {\bfseries color\+Style\+Changed} (bool)
\item 
\mbox{\Hypertarget{class_t_palette_handle_a073940f5675c85ae2114b18f84d1d96f}\label{class_t_palette_handle_a073940f5675c85ae2114b18f84d1d96f}} 
void {\bfseries color\+Style\+Changed\+On\+Mouse\+Release} ()
\item 
\mbox{\Hypertarget{class_t_palette_handle_a18abe7743514fb7ddb60809a83578203}\label{class_t_palette_handle_a18abe7743514fb7ddb60809a83578203}} 
void {\bfseries palette\+Dirty\+Flag\+Changed} ()
\item 
\mbox{\Hypertarget{class_t_palette_handle_a960f1bd5e7ff229fadc23c0cc44937a1}\label{class_t_palette_handle_a960f1bd5e7ff229fadc23c0cc44937a1}} 
void {\bfseries palette\+Lock\+Changed} ()
\item 
\mbox{\Hypertarget{class_t_palette_handle_a6b2c1087ac08e20b6a51898c23c6918f}\label{class_t_palette_handle_a6b2c1087ac08e20b6a51898c23c6918f}} 
void {\bfseries broadcast\+Palette\+Changed} ()
\item 
\mbox{\Hypertarget{class_t_palette_handle_a7b0f98b15081afd1d39448f717c8ebae}\label{class_t_palette_handle_a7b0f98b15081afd1d39448f717c8ebae}} 
void {\bfseries broadcast\+Palette\+Title\+Changed} ()
\item 
\mbox{\Hypertarget{class_t_palette_handle_a1f16a172514b5cd8e80d6de0b9c2ca56}\label{class_t_palette_handle_a1f16a172514b5cd8e80d6de0b9c2ca56}} 
void {\bfseries broadcast\+Color\+Style\+Switched} ()
\item 
\mbox{\Hypertarget{class_t_palette_handle_a8cb059247287b78cc40c3eeb8cdd6ea8}\label{class_t_palette_handle_a8cb059247287b78cc40c3eeb8cdd6ea8}} 
void {\bfseries broadcast\+Color\+Style\+Changed} (bool)
\item 
\mbox{\Hypertarget{class_t_palette_handle_ad23b5af19c13d7c7fa40de2bc1dcd11c}\label{class_t_palette_handle_ad23b5af19c13d7c7fa40de2bc1dcd11c}} 
void {\bfseries broadcast\+Color\+Style\+Changed\+On\+Mouse\+Release} ()
\end{DoxyCompactItemize}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_t_palette}{TPalette}} $\ast$ \mbox{\hyperlink{class_t_palette_handle_a7d9e4873d5a659303b05d0e9c0ab3a58}{get\+Palette}} () const
\item 
int \mbox{\hyperlink{class_t_palette_handle_ad54440ff973b8a84681f5e752db6ffa1}{get\+Style\+Index}} () const
\item 
int \mbox{\hyperlink{class_t_palette_handle_a152d8b056934e589e229efeb8a4fed41}{get\+Style\+Param\+Index}} () const
\item 
\mbox{\hyperlink{class_t_color_style}{TColor\+Style}} $\ast$ \mbox{\hyperlink{class_t_palette_handle_afc24617f8553645fbc2a872fb57e0523}{get\+Style}} () const
\item 
void \mbox{\hyperlink{class_t_palette_handle_aa523451c1d78f7bb7464b7af523b58cd}{set\+Palette}} (\mbox{\hyperlink{class_t_palette}{TPalette}} $\ast$palette, int style\+Index=-\/1)
\item 
void \mbox{\hyperlink{class_t_palette_handle_a2ec4bdcc25510bc2ad479155099909ef}{set\+Style\+Index}} (int index, bool force\+Emit=false)
\item 
void \mbox{\hyperlink{class_t_palette_handle_a8bb261175c76930587759c195834cdc8}{set\+Style\+Param\+Index}} (int index)
\item 
void \mbox{\hyperlink{class_t_palette_handle_aaa5aaa371d20a024099baa863eebab56}{notify\+Palette\+Switched}} ()
\item 
void \mbox{\hyperlink{class_t_palette_handle_a3332d19b5c21727a69dd2aad4b67bfde}{notify\+Palette\+Changed}} ()
\item 
void \mbox{\hyperlink{class_t_palette_handle_acb9eaaa67724328882de1fc61246ddb2}{notify\+Palette\+Title\+Changed}} ()
\item 
void \mbox{\hyperlink{class_t_palette_handle_a313aeca632e71917c5618c0db4020c7a}{notify\+Color\+Style\+Switched}} ()
\item 
void \mbox{\hyperlink{class_t_palette_handle_aef85c674f8b47a4bfe39dff2f91216d3}{notify\+Color\+Style\+Changed}} (bool on\+Dragging=true, bool set\+Dirty\+Flag=true)
\item 
void \mbox{\hyperlink{class_t_palette_handle_a025261027770322b9f6a313e77dc2e7e}{notify\+Palette\+Dirty\+Flag\+Changed}} ()
\item 
void \mbox{\hyperlink{class_t_palette_handle_a2eb0017db59f6e798dbce0aefb7beae5}{notify\+Palette\+Lock\+Changed}} ()
\item 
void \mbox{\hyperlink{class_t_palette_handle_a152ba8e4c2539dbf0141233da898e24a}{toggle\+Autopaint}} ()
\end{DoxyCompactItemize}
\doxysubsection*{Friends}
\begin{DoxyCompactItemize}
\item 
class \mbox{\hyperlink{class_t_palette_handle_ab2c48a182ec07432c5d60d537ca084d0}{Palette\+Controller}}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}


\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_t_palette_handle_aae4e5eab8ada1625762d4d9fb2af6971}\label{class_t_palette_handle_aae4e5eab8ada1625762d4d9fb2af6971}} 
\index{TPaletteHandle@{TPaletteHandle}!TPaletteHandle@{TPaletteHandle}}
\index{TPaletteHandle@{TPaletteHandle}!TPaletteHandle@{TPaletteHandle}}
\doxysubsubsection{\texorpdfstring{TPaletteHandle()}{TPaletteHandle()}}
{\footnotesize\ttfamily TPalette\+Handle\+::\+TPalette\+Handle (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00055     : m\_palette(0), m\_styleIndex(-\/1), m\_styleParamIndex(-\/1) \{}
\DoxyCodeLine{00056   connectBroadcasts(\textcolor{keyword}{this});}
\DoxyCodeLine{00057 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_t_palette_handle_afb63536ac9a43aa4695d417148518659}\label{class_t_palette_handle_afb63536ac9a43aa4695d417148518659}} 
\index{TPaletteHandle@{TPaletteHandle}!````~TPaletteHandle@{$\sim$TPaletteHandle}}
\index{````~TPaletteHandle@{$\sim$TPaletteHandle}!TPaletteHandle@{TPaletteHandle}}
\doxysubsubsection{\texorpdfstring{$\sim$TPaletteHandle()}{~TPaletteHandle()}}
{\footnotesize\ttfamily TPalette\+Handle\+::$\sim$\+TPalette\+Handle (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00061 \{\}}

\end{DoxyCode}


\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_t_palette_handle_a7d9e4873d5a659303b05d0e9c0ab3a58}\label{class_t_palette_handle_a7d9e4873d5a659303b05d0e9c0ab3a58}} 
\index{TPaletteHandle@{TPaletteHandle}!getPalette@{getPalette}}
\index{getPalette@{getPalette}!TPaletteHandle@{TPaletteHandle}}
\doxysubsubsection{\texorpdfstring{getPalette()}{getPalette()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_t_palette}{TPalette}} $\ast$ TPalette\+Handle\+::get\+Palette (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}


\begin{DoxyCode}{0}
\DoxyCodeLine{00065 \{ \textcolor{keywordflow}{return} m\_palette; \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_t_palette_handle_afc24617f8553645fbc2a872fb57e0523}\label{class_t_palette_handle_afc24617f8553645fbc2a872fb57e0523}} 
\index{TPaletteHandle@{TPaletteHandle}!getStyle@{getStyle}}
\index{getStyle@{getStyle}!TPaletteHandle@{TPaletteHandle}}
\doxysubsubsection{\texorpdfstring{getStyle()}{getStyle()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_t_color_style}{TColor\+Style}} $\ast$ TPalette\+Handle\+::get\+Style (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}


\begin{DoxyCode}{0}
\DoxyCodeLine{00077                                             \{}
\DoxyCodeLine{00078   \textcolor{keywordflow}{if} (!m\_palette || m\_styleIndex == -\/1) \textcolor{keywordflow}{return} 0;}
\DoxyCodeLine{00079   \textcolor{keywordflow}{return} m\_palette-\/>\mbox{\hyperlink{class_t_palette_a0f6a4eda7dafb0a9f2b43160cfec81e4}{getStyle}}(m\_styleIndex);}
\DoxyCodeLine{00080 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_t_palette_handle_ad54440ff973b8a84681f5e752db6ffa1}\label{class_t_palette_handle_ad54440ff973b8a84681f5e752db6ffa1}} 
\index{TPaletteHandle@{TPaletteHandle}!getStyleIndex@{getStyleIndex}}
\index{getStyleIndex@{getStyleIndex}!TPaletteHandle@{TPaletteHandle}}
\doxysubsubsection{\texorpdfstring{getStyleIndex()}{getStyleIndex()}}
{\footnotesize\ttfamily int TPalette\+Handle\+::get\+Style\+Index (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}


\begin{DoxyCode}{0}
\DoxyCodeLine{00069 \{ \textcolor{keywordflow}{return} m\_styleIndex; \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_t_palette_handle_a152d8b056934e589e229efeb8a4fed41}\label{class_t_palette_handle_a152d8b056934e589e229efeb8a4fed41}} 
\index{TPaletteHandle@{TPaletteHandle}!getStyleParamIndex@{getStyleParamIndex}}
\index{getStyleParamIndex@{getStyleParamIndex}!TPaletteHandle@{TPaletteHandle}}
\doxysubsubsection{\texorpdfstring{getStyleParamIndex()}{getStyleParamIndex()}}
{\footnotesize\ttfamily int TPalette\+Handle\+::get\+Style\+Param\+Index (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}


\begin{DoxyCode}{0}
\DoxyCodeLine{00073 \{ \textcolor{keywordflow}{return} m\_styleParamIndex; \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_t_palette_handle_aef85c674f8b47a4bfe39dff2f91216d3}\label{class_t_palette_handle_aef85c674f8b47a4bfe39dff2f91216d3}} 
\index{TPaletteHandle@{TPaletteHandle}!notifyColorStyleChanged@{notifyColorStyleChanged}}
\index{notifyColorStyleChanged@{notifyColorStyleChanged}!TPaletteHandle@{TPaletteHandle}}
\doxysubsubsection{\texorpdfstring{notifyColorStyleChanged()}{notifyColorStyleChanged()}}
{\footnotesize\ttfamily void TPalette\+Handle\+::notify\+Color\+Style\+Changed (\begin{DoxyParamCaption}\item[{bool}]{on\+Dragging = {\ttfamily true},  }\item[{bool}]{set\+Dirty\+Flag = {\ttfamily true} }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00199                                                                 \{}
\DoxyCodeLine{00200   \textcolor{keywordflow}{if} (setDirtyFlag \&\& getPalette() \&\& !getPalette()-\/>getDirtyFlag())}
\DoxyCodeLine{00201     getPalette()-\/>\mbox{\hyperlink{class_t_palette_a382fa102abee4e69e386cb5a4d8d5184}{setDirtyFlag}}(\textcolor{keyword}{true});}
\DoxyCodeLine{00202 }
\DoxyCodeLine{00203   emit broadcastColorStyleChanged(onDragging);}
\DoxyCodeLine{00204 }
\DoxyCodeLine{00205   \textcolor{keywordflow}{if} (!onDragging) emit broadcastColorStyleChangedOnMouseRelease();}
\DoxyCodeLine{00206 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_t_palette_handle_a313aeca632e71917c5618c0db4020c7a}\label{class_t_palette_handle_a313aeca632e71917c5618c0db4020c7a}} 
\index{TPaletteHandle@{TPaletteHandle}!notifyColorStyleSwitched@{notifyColorStyleSwitched}}
\index{notifyColorStyleSwitched@{notifyColorStyleSwitched}!TPaletteHandle@{TPaletteHandle}}
\doxysubsubsection{\texorpdfstring{notifyColorStyleSwitched()}{notifyColorStyleSwitched()}}
{\footnotesize\ttfamily void TPalette\+Handle\+::notify\+Color\+Style\+Switched (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00192                                               \{}
\DoxyCodeLine{00193   emit broadcastColorStyleSwitched();}
\DoxyCodeLine{00194 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_t_palette_handle_a3332d19b5c21727a69dd2aad4b67bfde}\label{class_t_palette_handle_a3332d19b5c21727a69dd2aad4b67bfde}} 
\index{TPaletteHandle@{TPaletteHandle}!notifyPaletteChanged@{notifyPaletteChanged}}
\index{notifyPaletteChanged@{notifyPaletteChanged}!TPaletteHandle@{TPaletteHandle}}
\doxysubsubsection{\texorpdfstring{notifyPaletteChanged()}{notifyPaletteChanged()}}
{\footnotesize\ttfamily void TPalette\+Handle\+::notify\+Palette\+Changed (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00182 \{ emit broadcastPaletteChanged(); \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_t_palette_handle_a025261027770322b9f6a313e77dc2e7e}\label{class_t_palette_handle_a025261027770322b9f6a313e77dc2e7e}} 
\index{TPaletteHandle@{TPaletteHandle}!notifyPaletteDirtyFlagChanged@{notifyPaletteDirtyFlagChanged}}
\index{notifyPaletteDirtyFlagChanged@{notifyPaletteDirtyFlagChanged}!TPaletteHandle@{TPaletteHandle}}
\doxysubsubsection{\texorpdfstring{notifyPaletteDirtyFlagChanged()}{notifyPaletteDirtyFlagChanged()}}
{\footnotesize\ttfamily void TPalette\+Handle\+::notify\+Palette\+Dirty\+Flag\+Changed (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{00062 \{ emit paletteDirtyFlagChanged(); \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_t_palette_handle_a2eb0017db59f6e798dbce0aefb7beae5}\label{class_t_palette_handle_a2eb0017db59f6e798dbce0aefb7beae5}} 
\index{TPaletteHandle@{TPaletteHandle}!notifyPaletteLockChanged@{notifyPaletteLockChanged}}
\index{notifyPaletteLockChanged@{notifyPaletteLockChanged}!TPaletteHandle@{TPaletteHandle}}
\doxysubsubsection{\texorpdfstring{notifyPaletteLockChanged()}{notifyPaletteLockChanged()}}
{\footnotesize\ttfamily void TPalette\+Handle\+::notify\+Palette\+Lock\+Changed (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{00063 \{ emit paletteLockChanged(); \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_t_palette_handle_aaa5aaa371d20a024099baa863eebab56}\label{class_t_palette_handle_aaa5aaa371d20a024099baa863eebab56}} 
\index{TPaletteHandle@{TPaletteHandle}!notifyPaletteSwitched@{notifyPaletteSwitched}}
\index{notifyPaletteSwitched@{notifyPaletteSwitched}!TPaletteHandle@{TPaletteHandle}}
\doxysubsubsection{\texorpdfstring{notifyPaletteSwitched()}{notifyPaletteSwitched()}}
{\footnotesize\ttfamily void TPalette\+Handle\+::notify\+Palette\+Switched (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{00054 \{ emit paletteSwitched(); \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_t_palette_handle_acb9eaaa67724328882de1fc61246ddb2}\label{class_t_palette_handle_acb9eaaa67724328882de1fc61246ddb2}} 
\index{TPaletteHandle@{TPaletteHandle}!notifyPaletteTitleChanged@{notifyPaletteTitleChanged}}
\index{notifyPaletteTitleChanged@{notifyPaletteTitleChanged}!TPaletteHandle@{TPaletteHandle}}
\doxysubsubsection{\texorpdfstring{notifyPaletteTitleChanged()}{notifyPaletteTitleChanged()}}
{\footnotesize\ttfamily void TPalette\+Handle\+::notify\+Palette\+Title\+Changed (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00186                                                \{}
\DoxyCodeLine{00187   emit broadcastPaletteTitleChanged();}
\DoxyCodeLine{00188 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_t_palette_handle_aa523451c1d78f7bb7464b7af523b58cd}\label{class_t_palette_handle_aa523451c1d78f7bb7464b7af523b58cd}} 
\index{TPaletteHandle@{TPaletteHandle}!setPalette@{setPalette}}
\index{setPalette@{setPalette}!TPaletteHandle@{TPaletteHandle}}
\doxysubsubsection{\texorpdfstring{setPalette()}{setPalette()}}
{\footnotesize\ttfamily void TPalette\+Handle\+::set\+Palette (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_t_palette}{TPalette}} $\ast$}]{palette,  }\item[{int}]{style\+Index = {\ttfamily -\/1} }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00132                                                                  \{}
\DoxyCodeLine{00133   \textcolor{keywordflow}{if} (palette) \{}
\DoxyCodeLine{00134     \textcolor{keywordflow}{if} (styleIndex < 0) \{}
\DoxyCodeLine{00135       styleIndex = palette-\/>getCurrentStyleId();}
\DoxyCodeLine{00136       \textcolor{keywordflow}{if} (!palette-\/>getStylePage(styleIndex)) \{  \textcolor{comment}{// in case the style is deleted}}
\DoxyCodeLine{00137         styleIndex = 1;}
\DoxyCodeLine{00138         palette-\/>setCurrentStyleId(styleIndex);}
\DoxyCodeLine{00139       \}}
\DoxyCodeLine{00140     \} \textcolor{keywordflow}{else}}
\DoxyCodeLine{00141       palette-\/>setCurrentStyleId(styleIndex);}
\DoxyCodeLine{00142   \}}
\DoxyCodeLine{00143 }
\DoxyCodeLine{00144   \textcolor{keywordflow}{if} (m\_palette == palette)}
\DoxyCodeLine{00145     setStyleIndex(styleIndex);}
\DoxyCodeLine{00146   \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{00147     m\_palette         = palette;}
\DoxyCodeLine{00148     m\_styleIndex      = styleIndex;}
\DoxyCodeLine{00149     m\_styleParamIndex = 0;}
\DoxyCodeLine{00150 }
\DoxyCodeLine{00151     emit paletteSwitched();}
\DoxyCodeLine{00152     \textcolor{comment}{// to let ToonzCheck to update the current index}}
\DoxyCodeLine{00153     emit broadcastColorStyleSwitched();}
\DoxyCodeLine{00154   \}}
\DoxyCodeLine{00155 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_t_palette_handle_a2ec4bdcc25510bc2ad479155099909ef}\label{class_t_palette_handle_a2ec4bdcc25510bc2ad479155099909ef}} 
\index{TPaletteHandle@{TPaletteHandle}!setStyleIndex@{setStyleIndex}}
\index{setStyleIndex@{setStyleIndex}!TPaletteHandle@{TPaletteHandle}}
\doxysubsubsection{\texorpdfstring{setStyleIndex()}{setStyleIndex()}}
{\footnotesize\ttfamily void TPalette\+Handle\+::set\+Style\+Index (\begin{DoxyParamCaption}\item[{int}]{index,  }\item[{bool}]{force\+Emit = {\ttfamily false} }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00162                                                             \{}
\DoxyCodeLine{00163   \textcolor{keywordflow}{if} (m\_styleIndex != index || m\_styleParamIndex != 0 || forceEmit) \{}
\DoxyCodeLine{00164     \textcolor{keywordflow}{if} (m\_palette) m\_palette-\/>setCurrentStyleId(index);}
\DoxyCodeLine{00165     m\_styleIndex      = index;}
\DoxyCodeLine{00166     m\_styleParamIndex = 0;}
\DoxyCodeLine{00167     emit broadcastColorStyleSwitched();}
\DoxyCodeLine{00168   \}}
\DoxyCodeLine{00169 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_t_palette_handle_a8bb261175c76930587759c195834cdc8}\label{class_t_palette_handle_a8bb261175c76930587759c195834cdc8}} 
\index{TPaletteHandle@{TPaletteHandle}!setStyleParamIndex@{setStyleParamIndex}}
\index{setStyleParamIndex@{setStyleParamIndex}!TPaletteHandle@{TPaletteHandle}}
\doxysubsubsection{\texorpdfstring{setStyleParamIndex()}{setStyleParamIndex()}}
{\footnotesize\ttfamily void TPalette\+Handle\+::set\+Style\+Param\+Index (\begin{DoxyParamCaption}\item[{int}]{index }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00173                                                  \{}
\DoxyCodeLine{00174   \textcolor{keywordflow}{if} (m\_styleParamIndex != index) \{}
\DoxyCodeLine{00175     m\_styleParamIndex = index;}
\DoxyCodeLine{00176     emit broadcastColorStyleSwitched();}
\DoxyCodeLine{00177   \}}
\DoxyCodeLine{00178 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_t_palette_handle_a152ba8e4c2539dbf0141233da898e24a}\label{class_t_palette_handle_a152ba8e4c2539dbf0141233da898e24a}} 
\index{TPaletteHandle@{TPaletteHandle}!toggleAutopaint@{toggleAutopaint}}
\index{toggleAutopaint@{toggleAutopaint}!TPaletteHandle@{TPaletteHandle}}
\doxysubsubsection{\texorpdfstring{toggleAutopaint()}{toggleAutopaint()}}
{\footnotesize\ttfamily void TPalette\+Handle\+::toggle\+Autopaint (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00210                                      \{}
\DoxyCodeLine{00211   \textcolor{keywordtype}{int} index = getStyleIndex();}
\DoxyCodeLine{00212   \textcolor{keywordflow}{if} (index > 0) \{}
\DoxyCodeLine{00213     TUndoManager::manager()-\/>add(\textcolor{keyword}{new} AutopaintToggleUndo(\textcolor{keyword}{this}, index));}
\DoxyCodeLine{00214   \}}
\DoxyCodeLine{00215 \}}

\end{DoxyCode}


\doxysubsection{Friends And Related Function Documentation}
\mbox{\Hypertarget{class_t_palette_handle_ab2c48a182ec07432c5d60d537ca084d0}\label{class_t_palette_handle_ab2c48a182ec07432c5d60d537ca084d0}} 
\index{TPaletteHandle@{TPaletteHandle}!PaletteController@{PaletteController}}
\index{PaletteController@{PaletteController}!TPaletteHandle@{TPaletteHandle}}
\doxysubsubsection{\texorpdfstring{PaletteController}{PaletteController}}
{\footnotesize\ttfamily friend class \mbox{\hyperlink{class_palette_controller}{Palette\+Controller}}\hspace{0.3cm}{\ttfamily [friend]}}



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
E\+:/opentoonz/toonz/sources/include/toonz/tpalettehandle.\+h\item 
E\+:/opentoonz/toonz/sources/toonzlib/tpalettehandle.\+cpp\end{DoxyCompactItemize}
