<filename>latex/class_vector_to_vector_undo.tex
\hypertarget{class_vector_to_vector_undo}{}\doxysection{Vector\+To\+Vector\+Undo Class Reference}
\label{class_vector_to_vector_undo}\index{VectorToVectorUndo@{VectorToVectorUndo}}
Inheritance diagram for Vector\+To\+Vector\+Undo\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_vector_to_vector_undo}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_vector_to_vector_undo_a125133904707d02a4392bc6986d27691}{Vector\+To\+Vector\+Undo}} (\mbox{\hyperlink{class_t_smart_pointer_t}{TXsh\+Simple\+LevelP}} sl, std\+::vector$<$ \mbox{\hyperlink{class_t_frame_id}{TFrame\+Id}} $>$ frame\+Ids, std\+::vector$<$ \mbox{\hyperlink{class_t_smart_pointer_t}{TImageP}} $>$ old\+Images, std\+::vector$<$ \mbox{\hyperlink{class_t_smart_pointer_t}{TImageP}} $>$ new\+Images, \mbox{\hyperlink{class_hook_set}{Hook\+Set}} $\ast$old\+Level\+Hooks)
\item 
void \mbox{\hyperlink{class_vector_to_vector_undo_a8de2ad1e21ef265e5f9d3a6e9d00c186}{undo}} () const override
\item 
void \mbox{\hyperlink{class_vector_to_vector_undo_a3ff1b55e799f7985178cdbabb372b90a}{redo}} () const override
\item 
int \mbox{\hyperlink{class_vector_to_vector_undo_a0dba6d8b29f933983ad56204cdf27994}{get\+Size}} () const override
\item 
QString \mbox{\hyperlink{class_vector_to_vector_undo_a0afb16c31bc86a3ca20aa63332d43739}{get\+History\+String}} () override
\item 
int \mbox{\hyperlink{class_vector_to_vector_undo_ad391511ab42ebcf9d41e796cff1fabfd}{get\+History\+Type}} () override
\end{DoxyCompactItemize}
\doxysubsection*{Additional Inherited Members}


\doxysubsection{Detailed Description}


\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_vector_to_vector_undo_a125133904707d02a4392bc6986d27691}\label{class_vector_to_vector_undo_a125133904707d02a4392bc6986d27691}} 
\index{VectorToVectorUndo@{VectorToVectorUndo}!VectorToVectorUndo@{VectorToVectorUndo}}
\index{VectorToVectorUndo@{VectorToVectorUndo}!VectorToVectorUndo@{VectorToVectorUndo}}
\doxysubsubsection{\texorpdfstring{VectorToVectorUndo()}{VectorToVectorUndo()}}
{\footnotesize\ttfamily Vector\+To\+Vector\+Undo\+::\+Vector\+To\+Vector\+Undo (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_t_smart_pointer_t}{TXsh\+Simple\+LevelP}}}]{sl,  }\item[{std\+::vector$<$ \mbox{\hyperlink{class_t_frame_id}{TFrame\+Id}} $>$}]{frame\+Ids,  }\item[{std\+::vector$<$ \mbox{\hyperlink{class_t_smart_pointer_t}{TImageP}} $>$}]{old\+Images,  }\item[{std\+::vector$<$ \mbox{\hyperlink{class_t_smart_pointer_t}{TImageP}} $>$}]{new\+Images,  }\item[{\mbox{\hyperlink{class_hook_set}{Hook\+Set}} $\ast$}]{old\+Level\+Hooks }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{03385       : m\_sl(sl)}
\DoxyCodeLine{03386       , m\_frameIds(frameIds)}
\DoxyCodeLine{03387       , m\_oldImages(oldImages)}
\DoxyCodeLine{03388       , m\_newImages(newImages)}
\DoxyCodeLine{03389       , m\_oldLevelHooks(oldLevelHooks) \{\}}

\end{DoxyCode}
\mbox{\Hypertarget{class_vector_to_vector_undo_a3735af9a1f38c42550e1c13dd8aaeba1}\label{class_vector_to_vector_undo_a3735af9a1f38c42550e1c13dd8aaeba1}} 
\index{VectorToVectorUndo@{VectorToVectorUndo}!````~VectorToVectorUndo@{$\sim$VectorToVectorUndo}}
\index{````~VectorToVectorUndo@{$\sim$VectorToVectorUndo}!VectorToVectorUndo@{VectorToVectorUndo}}
\doxysubsubsection{\texorpdfstring{$\sim$VectorToVectorUndo()}{~VectorToVectorUndo()}}
{\footnotesize\ttfamily Vector\+To\+Vector\+Undo\+::$\sim$\+Vector\+To\+Vector\+Undo (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{03391 \{\}}

\end{DoxyCode}


\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_vector_to_vector_undo_a0afb16c31bc86a3ca20aa63332d43739}\label{class_vector_to_vector_undo_a0afb16c31bc86a3ca20aa63332d43739}} 
\index{VectorToVectorUndo@{VectorToVectorUndo}!getHistoryString@{getHistoryString}}
\index{getHistoryString@{getHistoryString}!VectorToVectorUndo@{VectorToVectorUndo}}
\doxysubsubsection{\texorpdfstring{getHistoryString()}{getHistoryString()}}
{\footnotesize\ttfamily QString Vector\+To\+Vector\+Undo\+::get\+History\+String (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [virtual]}}



Reimplemented from \mbox{\hyperlink{class_t_undo}{TUndo}}.


\begin{DoxyCode}{0}
\DoxyCodeLine{03423                                       \{}
\DoxyCodeLine{03424     QString str = QObject::tr(\textcolor{stringliteral}{"{}Simplify Vectors : Level \%1"{}})}
\DoxyCodeLine{03425                       .arg(QString::fromStdWString(m\_sl-\/>\mbox{\hyperlink{class_t_xsh_level_a3a59fb1bd3261baee4e889a9edbf0ae8}{getName}}()));}
\DoxyCodeLine{03426     \textcolor{keywordflow}{return} str;}
\DoxyCodeLine{03427   \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_vector_to_vector_undo_ad391511ab42ebcf9d41e796cff1fabfd}\label{class_vector_to_vector_undo_ad391511ab42ebcf9d41e796cff1fabfd}} 
\index{VectorToVectorUndo@{VectorToVectorUndo}!getHistoryType@{getHistoryType}}
\index{getHistoryType@{getHistoryType}!VectorToVectorUndo@{VectorToVectorUndo}}
\doxysubsubsection{\texorpdfstring{getHistoryType()}{getHistoryType()}}
{\footnotesize\ttfamily int Vector\+To\+Vector\+Undo\+::get\+History\+Type (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [virtual]}}



Reimplemented from \mbox{\hyperlink{class_t_undo}{TUndo}}.


\begin{DoxyCode}{0}
\DoxyCodeLine{03428 \{ \textcolor{keywordflow}{return} HistoryType::Xsheet; \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_vector_to_vector_undo_a0dba6d8b29f933983ad56204cdf27994}\label{class_vector_to_vector_undo_a0dba6d8b29f933983ad56204cdf27994}} 
\index{VectorToVectorUndo@{VectorToVectorUndo}!getSize@{getSize}}
\index{getSize@{getSize}!VectorToVectorUndo@{VectorToVectorUndo}}
\doxysubsubsection{\texorpdfstring{getSize()}{getSize()}}
{\footnotesize\ttfamily int Vector\+To\+Vector\+Undo\+::get\+Size (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [virtual]}}



Implements \mbox{\hyperlink{class_t_undo}{TUndo}}.


\begin{DoxyCode}{0}
\DoxyCodeLine{03421 \{ \textcolor{keywordflow}{return} \textcolor{keyword}{sizeof}(*this); \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_vector_to_vector_undo_a3ff1b55e799f7985178cdbabb372b90a}\label{class_vector_to_vector_undo_a3ff1b55e799f7985178cdbabb372b90a}} 
\index{VectorToVectorUndo@{VectorToVectorUndo}!redo@{redo}}
\index{redo@{redo}!VectorToVectorUndo@{VectorToVectorUndo}}
\doxysubsubsection{\texorpdfstring{redo()}{redo()}}
{\footnotesize\ttfamily void Vector\+To\+Vector\+Undo\+::redo (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [virtual]}}



Implements \mbox{\hyperlink{class_t_undo}{TUndo}}.


\begin{DoxyCode}{0}
\DoxyCodeLine{03407                              \{}
\DoxyCodeLine{03408     \textcolor{keywordflow}{for} (\textcolor{keywordtype}{int} i = 0; i < m\_frameIds.size(); i++) \{}
\DoxyCodeLine{03409       m\_sl-\/>\mbox{\hyperlink{class_t_xsh_simple_level_aac1fd1d3ecf0778b8ee139c9119fcdef}{getSimpleLevel}}()-\/>setFrame(m\_frameIds[i], m\_newImages[i]);}
\DoxyCodeLine{03410     \}}
\DoxyCodeLine{03411     \mbox{\hyperlink{class_t_app_a24088f8647d5d9447fcec6b9b9bbf9eb}{TApp::instance}}()-\/>\mbox{\hyperlink{class_t_app_ad2923c9feaaa44ecd9cdd0fa029aa8aa}{getCurrentLevel}}()-\/>notifyLevelChange();}
\DoxyCodeLine{03412 }
\DoxyCodeLine{03413     \textcolor{comment}{// update all icons}}
\DoxyCodeLine{03414     std::vector<TFrameId> sl\_fids;}
\DoxyCodeLine{03415     m\_sl.getPointer()-\/>\mbox{\hyperlink{class_t_xsh_simple_level_a567daee4ca12a0e92445bcf98a6541f1}{getFids}}(sl\_fids);}
\DoxyCodeLine{03416     invalidateIcons(m\_sl.getPointer(), m\_frameIds);}
\DoxyCodeLine{03417 }
\DoxyCodeLine{03418     *m\_sl-\/>\mbox{\hyperlink{class_t_xsh_level_a6e1f2998c39699adbe9133f87109a104}{getHookSet}}() = *m\_oldLevelHooks;}
\DoxyCodeLine{03419   \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_vector_to_vector_undo_a8de2ad1e21ef265e5f9d3a6e9d00c186}\label{class_vector_to_vector_undo_a8de2ad1e21ef265e5f9d3a6e9d00c186}} 
\index{VectorToVectorUndo@{VectorToVectorUndo}!undo@{undo}}
\index{undo@{undo}!VectorToVectorUndo@{VectorToVectorUndo}}
\doxysubsubsection{\texorpdfstring{undo()}{undo()}}
{\footnotesize\ttfamily void Vector\+To\+Vector\+Undo\+::undo (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [virtual]}}



Implements \mbox{\hyperlink{class_t_undo}{TUndo}}.


\begin{DoxyCode}{0}
\DoxyCodeLine{03393                              \{}
\DoxyCodeLine{03394     \textcolor{keywordflow}{for} (\textcolor{keywordtype}{int} i = 0; i < m\_frameIds.size(); i++) \{}
\DoxyCodeLine{03395       m\_sl-\/>\mbox{\hyperlink{class_t_xsh_simple_level_aac1fd1d3ecf0778b8ee139c9119fcdef}{getSimpleLevel}}()-\/>setFrame(m\_frameIds[i], m\_oldImages[i]);}
\DoxyCodeLine{03396     \}}
\DoxyCodeLine{03397     \mbox{\hyperlink{class_t_app_a24088f8647d5d9447fcec6b9b9bbf9eb}{TApp::instance}}()-\/>\mbox{\hyperlink{class_t_app_ad2923c9feaaa44ecd9cdd0fa029aa8aa}{getCurrentLevel}}()-\/>notifyLevelChange();}
\DoxyCodeLine{03398 }
\DoxyCodeLine{03399     \textcolor{comment}{// update all icons}}
\DoxyCodeLine{03400     std::vector<TFrameId> sl\_fids;}
\DoxyCodeLine{03401     m\_sl.getPointer()-\/>\mbox{\hyperlink{class_t_xsh_simple_level_a567daee4ca12a0e92445bcf98a6541f1}{getFids}}(sl\_fids);}
\DoxyCodeLine{03402     invalidateIcons(m\_sl.getPointer(), sl\_fids);}
\DoxyCodeLine{03403 }
\DoxyCodeLine{03404     *m\_sl-\/>\mbox{\hyperlink{class_t_xsh_level_a6e1f2998c39699adbe9133f87109a104}{getHookSet}}() = *m\_oldLevelHooks;}
\DoxyCodeLine{03405   \}}

\end{DoxyCode}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
E\+:/opentoonz/toonz/sources/toonz/cellselection.\+cpp\end{DoxyCompactItemize}
