<filename>latex/class_dv_item_viewer_panel.tex
\hypertarget{class_dv_item_viewer_panel}{}\doxysection{Dv\+Item\+Viewer\+Panel Class Reference}
\label{class_dv_item_viewer_panel}\index{DvItemViewerPanel@{DvItemViewerPanel}}
Inheritance diagram for Dv\+Item\+Viewer\+Panel\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_dv_item_viewer_panel}
\end{center}
\end{figure}
\doxysubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum {\bfseries View\+Type} \{ {\bfseries List\+View} = 0
, {\bfseries Table\+View}
, {\bfseries Thumbnail\+View}
 \}
\end{DoxyCompactItemize}
\doxysubsection*{Public Slots}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_a2901c3d8164bf52789d21f3fc63a7542}{set\+List\+View}} ()
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_a041425f9f25b97feb6029c9740cd6c9d}{set\+Table\+View}} ()
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_a4050114dc30919c1e8a1158f0b42de35}{set\+Thumbnails\+View}} ()
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_af2c64b92f71b9b3b4960bd2159210dc8}{rename}} ()
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_a0fb3c329d262f0cf2074c62a5cc8e991}{export\+File\+List}} ()
\end{DoxyCompactItemize}
\doxysubsection*{Signals}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_dv_item_viewer_panel_a5a222373c9ed1fc599042a26e0a60af6}\label{class_dv_item_viewer_panel_a5a222373c9ed1fc599042a26e0a60af6}} 
void {\bfseries view\+Type\+Change} (Dv\+Item\+Viewer\+Panel\+::\+View\+Type view\+Type)
\end{DoxyCompactItemize}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_a708ed1e7f0ef384bb20b5dd5435201e2}{set\+Alternate\+Background}} (const QColor \&color)
\item 
QColor \mbox{\hyperlink{class_dv_item_viewer_panel_abf9d327a1a75daa9ca0675c395afe1f2}{get\+Alternate\+Background}} () const
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_a3128b5dfda0a1daa6999dc527983dac7}{set\+Text\+Color}} (const QColor \&color)
\item 
QColor \mbox{\hyperlink{class_dv_item_viewer_panel_a4f8ffd69929f7fb966fb2e0b9c0fd7b5}{get\+Text\+Color}} () const
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_a51a65327a48ce86d18dce1d021b11527}{set\+Selected\+Text\+Color}} (const QColor \&color)
\item 
QColor \mbox{\hyperlink{class_dv_item_viewer_panel_ab8bd42508410f08e96648ae16e5de0ca}{get\+Selected\+Text\+Color}} () const
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_ae546d52141fb36936fa7ec2051c21a3d}{set\+Folder\+Text\+Color}} (const QColor \&color)
\item 
QColor \mbox{\hyperlink{class_dv_item_viewer_panel_af026d7ee612a9137edbb226900040bb5}{get\+Folder\+Text\+Color}} () const
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_a8d4764488427487eabd7051e052c4109}{set\+Selected\+Item\+Background}} (const QColor \&color)
\item 
QColor \mbox{\hyperlink{class_dv_item_viewer_panel_ad333eac2921619229910451b7d3af584}{get\+Selected\+Item\+Background}} () const
\item 
\mbox{\hyperlink{class_dv_item_viewer_panel_a19294aab62b7f33314df632f1e82453e}{Dv\+Item\+Viewer\+Panel}} (\mbox{\hyperlink{class_dv_item_viewer}{Dv\+Item\+Viewer}} $\ast$viewer, bool no\+Context\+Menu, bool multiselection\+Enabled, QWidget $\ast$parent)
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_a0aec0b96a84601e954e9827dc5698f77}{enable\+Global\+Selection}} (bool enabled)
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_a60ef95f47d40a3c3588a1df5b8f8e088}{set\+Item\+View\+Play\+Delegate}} (\mbox{\hyperlink{class_d_v_item_view_play_delegate}{DVItem\+View\+Play\+Delegate}} $\ast$play\+Delegate)
\item 
\mbox{\hyperlink{class_d_v_item_view_play_delegate}{DVItem\+View\+Play\+Delegate}} $\ast$ \mbox{\hyperlink{class_dv_item_viewer_panel_a773cdb99a838cd2c73617d857fe327e1}{get\+Item\+View\+Play\+Delegate}} ()
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_a98ee6b6968df70cb08eff371423c4122}{add\+Column}} (Dv\+Item\+List\+Model\+::\+Data\+Type data\+Type, int width)
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_ade970bd008b6addf4da92b12dc404a8d}{set\+Column\+Width}} (Dv\+Item\+List\+Model\+::\+Data\+Type data\+Type, int width)
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_a72e118cb897fcb49339dbd39834e477a}{get\+Columns}} (std\+::vector$<$ std\+::pair$<$ Dv\+Item\+List\+Model\+::\+Data\+Type, std\+::pair$<$ int, bool $>$ $>$ $>$ \&columns)
\item 
bool \mbox{\hyperlink{class_dv_item_viewer_panel_ac10d301caed0b41a4f5d5b2d485a3450}{get\+Visibility}} (Dv\+Item\+List\+Model\+::\+Data\+Type data\+Type)
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_a6e1eaf9592820ba812bc6b7d417c5391}{set\+Visibility}} (Dv\+Item\+List\+Model\+::\+Data\+Type data\+Type, bool value)
\item 
int \mbox{\hyperlink{class_dv_item_viewer_panel_a8e1f8f94f4fda4298465a8e5220271c7}{get\+Content\+Minimum\+Width}} ()
\item 
int \mbox{\hyperlink{class_dv_item_viewer_panel_ac112811ac106d40fd9f6faf9dadd8356}{get\+Content\+Height}} (int width)
\item 
\mbox{\Hypertarget{class_dv_item_viewer_panel_ad6dcfef51d0dce42d6c10ea440ff6683}\label{class_dv_item_viewer_panel_ad6dcfef51d0dce42d6c10ea440ff6683}} 
QSize {\bfseries get\+Item\+Size} () const
\item 
QSize \mbox{\hyperlink{class_dv_item_viewer_panel_ab700b96bc62e95a0307af3a70c50ebe0}{get\+Icon\+Size}} () const
\item 
int \mbox{\hyperlink{class_dv_item_viewer_panel_a9dbd523f0aebb662a754134f1f7153a0}{pos2index}} (const QPoint \&pos) const
\item 
QRect \mbox{\hyperlink{class_dv_item_viewer_panel_a33ec7a1fe81305c77c51554491371286}{index2pos}} (int index) const
\item 
QRect \mbox{\hyperlink{class_dv_item_viewer_panel_a577b64f2491d238ba5c50db49ed7b922}{get\+Caption\+Rect}} (int index) const
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_a92fbc3473a7e53b21a04dbe614e5982c}{paint\+Thumbnail\+Item}} (QPainter \&p, int index)
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_a6580774a9f946156fe5676b2fe0f06da}{paint\+List\+Item}} (QPainter \&p, int index)
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_ad91f14121ed3e2e697632132d85928da}{paint\+Table\+Item}} (QPainter \&p, int index)
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_af067d77732f0c96f5659eae9a9239d4d}{on\+Selection\+Changed}} () override
\item 
const std\+::set$<$ int $>$ \& \mbox{\hyperlink{class_dv_item_viewer_panel_ac1679e3d44056d0f267ccde141ac2d38}{get\+Selected\+Indices}} () const
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_a66d28d708916a4578ca324728a96ca1a}{enable\+Single\+Column}} (bool enabled)
\item 
bool \mbox{\hyperlink{class_dv_item_viewer_panel_ae0e97cf68eb605a42f72ae797da669e3}{is\+Single\+Column\+Enabled}} () const
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_a214cce3b032f95741a64d2e68ec4570a}{set\+Align\+Center}} ()
\item 
\mbox{\hyperlink{class_dv_item_selection}{Dv\+Item\+Selection}} $\ast$ \mbox{\hyperlink{class_dv_item_viewer_panel_a711ced227bf3a32768b418ff2f6fb4fa}{get\+Selection}} () const
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_af51fd258c322c12b8617d091959bedc5}{set\+Selection}} (\mbox{\hyperlink{class_dv_item_selection}{Dv\+Item\+Selection}} $\ast$selection)
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_af89aa6b1886e0f7982f7cf60132f2f9e}{set\+Missing\+Text\+Color}} (const QColor \&color)
\end{DoxyCompactItemize}
\doxysubsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_a4bc71cb34858fc6bfe4b539501eb6f5d}{paint\+Event}} (QPaint\+Event $\ast$) override
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_a07a8f9bd1a02ac9e769511bb87f2d94b}{mouse\+Press\+Event}} (QMouse\+Event $\ast$) override
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_ac00b53074679a42ced3e1a101dd725f7}{mouse\+Move\+Event}} (QMouse\+Event $\ast$) override
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_a3e70b1fbc7e8255a496e98c550f3120f}{mouse\+Release\+Event}} (QMouse\+Event $\ast$) override
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_a6e9929a18def34d4be631d7af7cf877e}{mouse\+Double\+Click\+Event}} (QMouse\+Event $\ast$) override
\item 
void \mbox{\hyperlink{class_dv_item_viewer_panel_acfd4f7c7aa39a99879072dd21fc28578}{context\+Menu\+Event}} (QContext\+Menu\+Event $\ast$) override
\item 
bool \mbox{\hyperlink{class_dv_item_viewer_panel_a8ef33cc8b666d101837363356d614042}{event}} (QEvent $\ast$event) override
\end{DoxyCompactItemize}
\doxysubsection*{Properties}
\begin{DoxyCompactItemize}
\item 
QColor \mbox{\hyperlink{class_dv_item_viewer_panel_a648154623c05478e186850c90099d30e}{Alternate\+Background}}
\item 
QColor \mbox{\hyperlink{class_dv_item_viewer_panel_aa239981fdffc96fc6202ba6d927e4b98}{Text\+Color}}
\item 
QColor \mbox{\hyperlink{class_dv_item_viewer_panel_a0d4d51491d4983adc5bd573a777fcaff}{Selected\+Text\+Color}}
\item 
QColor \mbox{\hyperlink{class_dv_item_viewer_panel_a61a90c26c81b2f6e9e28e03ba2c95b19}{Folder\+Text\+Color}}
\item 
QColor \mbox{\hyperlink{class_dv_item_viewer_panel_a1af04158c6acb349bd3f19d424118110}{Selected\+Item\+Background}}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}


\doxysubsection{Member Enumeration Documentation}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a9b542398f26aa3a557d3195276397602}\label{class_dv_item_viewer_panel_a9b542398f26aa3a557d3195276397602}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!ViewType@{ViewType}}
\index{ViewType@{ViewType}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{ViewType}{ViewType}}
{\footnotesize\ttfamily enum Dv\+Item\+Viewer\+Panel\+::\+View\+Type}


\begin{DoxyCode}{0}
\DoxyCodeLine{00240 \{ ListView = 0, TableView, ThumbnailView \};}

\end{DoxyCode}


\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a19294aab62b7f33314df632f1e82453e}\label{class_dv_item_viewer_panel_a19294aab62b7f33314df632f1e82453e}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!DvItemViewerPanel@{DvItemViewerPanel}}
\index{DvItemViewerPanel@{DvItemViewerPanel}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{DvItemViewerPanel()}{DvItemViewerPanel()}}
{\footnotesize\ttfamily Dv\+Item\+Viewer\+Panel\+::\+Dv\+Item\+Viewer\+Panel (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_dv_item_viewer}{Dv\+Item\+Viewer}} $\ast$}]{viewer,  }\item[{bool}]{no\+Context\+Menu,  }\item[{bool}]{multiselection\+Enabled,  }\item[{QWidget $\ast$}]{parent }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00683     : QFrame(parent)}
\DoxyCodeLine{00684     , m\_selection(0)}
\DoxyCodeLine{00685     , m\_viewer(viewer)}
\DoxyCodeLine{00686     , m\_viewType(viewer-\/>m\_windowType == DvItemViewer::Cast}
\DoxyCodeLine{00687                      ? to\_enum(CastView)}
\DoxyCodeLine{00688                      : to\_enum(BrowserView))}
\DoxyCodeLine{00689     , m\_xMargin(0)}
\DoxyCodeLine{00690     , m\_yMargin(0)}
\DoxyCodeLine{00691     , m\_itemSpacing(0)}
\DoxyCodeLine{00692     , m\_itemPerRow(0)}
\DoxyCodeLine{00693     , m\_itemSize(0, 0)}
\DoxyCodeLine{00694     , m\_iconSize(80, 60)}
\DoxyCodeLine{00695     , m\_currentIndex(-\/1)}
\DoxyCodeLine{00696     , m\_singleColumnEnabled(\textcolor{keyword}{false})}
\DoxyCodeLine{00697     , m\_centerAligned(\textcolor{keyword}{false})}
\DoxyCodeLine{00698     , m\_noContextMenu(noContextMenu)}
\DoxyCodeLine{00699     , m\_isPlayDelegateDisable(\textcolor{keyword}{true})}
\DoxyCodeLine{00700     , m\_globalSelectionEnabled(\textcolor{keyword}{true})}
\DoxyCodeLine{00701     , m\_multiSelectionEnabled(multiSelectionEnabled)}
\DoxyCodeLine{00702     , m\_missingColor(Qt::gray) \{}
\DoxyCodeLine{00703   setFrameStyle(QFrame::StyledPanel);}
\DoxyCodeLine{00704   setFocusPolicy(Qt::StrongFocus);}
\DoxyCodeLine{00705   \textcolor{comment}{// setSizePolicy(QSizePolicy::Ignored, QSizePolicy::MinimumExpanding);}}
\DoxyCodeLine{00706   QSizePolicy sizePolicy(QSizePolicy::Ignored, QSizePolicy::MinimumExpanding);}
\DoxyCodeLine{00707   sizePolicy.setHeightForWidth(\textcolor{keyword}{true});}
\DoxyCodeLine{00708   setSizePolicy(sizePolicy);}
\DoxyCodeLine{00709   m\_selection = \textcolor{keyword}{new} \mbox{\hyperlink{class_dv_item_selection}{DvItemSelection}}();}
\DoxyCodeLine{00710   m\_selection-\/>setView(\textcolor{keyword}{this});}
\DoxyCodeLine{00711   m\_selection-\/>setModel(m\_viewer-\/>getModel());}
\DoxyCodeLine{00712   connect(IconGenerator::instance(), SIGNAL(iconGenerated()), \textcolor{keyword}{this},}
\DoxyCodeLine{00713           SLOT(update()));}
\DoxyCodeLine{00714 }
\DoxyCodeLine{00715   m\_editFld = \textcolor{keyword}{new} \mbox{\hyperlink{class_d_v_gui_1_1_line_edit}{DVGui::LineEdit}}(\textcolor{keyword}{this});}
\DoxyCodeLine{00716   m\_editFld-\/>hide();}
\DoxyCodeLine{00717   connect(m\_editFld, SIGNAL(editingFinished()), \textcolor{keyword}{this}, SLOT(rename()));}
\DoxyCodeLine{00718 }
\DoxyCodeLine{00719   m\_columns.push\_back(}
\DoxyCodeLine{00720       std::make\_pair(DvItemListModel::Name, std::make\_pair(200, 1)));}
\DoxyCodeLine{00721 \}}

\end{DoxyCode}


\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a98ee6b6968df70cb08eff371423c4122}\label{class_dv_item_viewer_panel_a98ee6b6968df70cb08eff371423c4122}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!addColumn@{addColumn}}
\index{addColumn@{addColumn}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{addColumn()}{addColumn()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::add\+Column (\begin{DoxyParamCaption}\item[{Dv\+Item\+List\+Model\+::\+Data\+Type}]{data\+Type,  }\item[{int}]{width }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00741                                              \{}
\DoxyCodeLine{00742   \textcolor{keywordtype}{bool} val;}
\DoxyCodeLine{00743   \textcolor{keywordflow}{switch} (dataType) \{}
\DoxyCodeLine{00744   \textcolor{keywordflow}{case} DvItemListModel::FileSize:}
\DoxyCodeLine{00745     val = (bool)BrowserFileSizeisVisible;}
\DoxyCodeLine{00746     \textcolor{keywordflow}{break};}
\DoxyCodeLine{00747   \textcolor{keywordflow}{case} DvItemListModel::FrameCount:}
\DoxyCodeLine{00748     val = (bool)BrowserFrameCountisVisible;}
\DoxyCodeLine{00749     \textcolor{keywordflow}{break};}
\DoxyCodeLine{00750   \textcolor{keywordflow}{case} DvItemListModel::CreationDate:}
\DoxyCodeLine{00751     val = (bool)BrowserCreationDateisVisible;}
\DoxyCodeLine{00752     \textcolor{keywordflow}{break};}
\DoxyCodeLine{00753   \textcolor{keywordflow}{case} DvItemListModel::ModifiedDate:}
\DoxyCodeLine{00754     val = (bool)BrowserModifiedDateisVisible;}
\DoxyCodeLine{00755     \textcolor{keywordflow}{break};}
\DoxyCodeLine{00756   \textcolor{keywordflow}{case} DvItemListModel::FileType:}
\DoxyCodeLine{00757     val = (bool)BrowserFileTypeisVisible;}
\DoxyCodeLine{00758     \textcolor{keywordflow}{break};}
\DoxyCodeLine{00759   \textcolor{keywordflow}{case} DvItemListModel::VersionControlStatus:}
\DoxyCodeLine{00760     val = (bool)BrowserVersionControlStatusisVisible;}
\DoxyCodeLine{00761     \textcolor{keywordflow}{break};}
\DoxyCodeLine{00762   \textcolor{keywordflow}{default}:}
\DoxyCodeLine{00763     val = \textcolor{keyword}{true};}
\DoxyCodeLine{00764   \}}
\DoxyCodeLine{00765   m\_columns.push\_back(std::make\_pair(dataType, std::make\_pair(width, val)));}
\DoxyCodeLine{00766 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_acfd4f7c7aa39a99879072dd21fc28578}\label{class_dv_item_viewer_panel_acfd4f7c7aa39a99879072dd21fc28578}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!contextMenuEvent@{contextMenuEvent}}
\index{contextMenuEvent@{contextMenuEvent}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{contextMenuEvent()}{contextMenuEvent()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::context\+Menu\+Event (\begin{DoxyParamCaption}\item[{QContext\+Menu\+Event $\ast$}]{event }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [protected]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{01339                                                                  \{}
\DoxyCodeLine{01340   \textcolor{keywordflow}{if} (!getModel()) \textcolor{keywordflow}{return};}
\DoxyCodeLine{01341   \textcolor{keywordflow}{if} (m\_noContextMenu) \textcolor{keywordflow}{return};}
\DoxyCodeLine{01342 }
\DoxyCodeLine{01343   \textcolor{keywordtype}{int} index   = pos2index(event-\/>pos());}
\DoxyCodeLine{01344   QMenu *menu = getModel()-\/>getContextMenu(\textcolor{keyword}{this}, index);}
\DoxyCodeLine{01345   \textcolor{keywordflow}{if} (menu) \{}
\DoxyCodeLine{01346     menu-\/>exec(event-\/>globalPos());}
\DoxyCodeLine{01347     \textcolor{keyword}{delete} menu;}
\DoxyCodeLine{01348   \}}
\DoxyCodeLine{01349 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a0aec0b96a84601e954e9827dc5698f77}\label{class_dv_item_viewer_panel_a0aec0b96a84601e954e9827dc5698f77}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!enableGlobalSelection@{enableGlobalSelection}}
\index{enableGlobalSelection@{enableGlobalSelection}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{enableGlobalSelection()}{enableGlobalSelection()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::enable\+Global\+Selection (\begin{DoxyParamCaption}\item[{bool}]{enabled }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{00309                                            \{}
\DoxyCodeLine{00310     \textcolor{keywordflow}{if} (!enabled) m\_selection-\/>makeNotCurrent();}
\DoxyCodeLine{00311     m\_globalSelectionEnabled = enabled;}
\DoxyCodeLine{00312   \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a66d28d708916a4578ca324728a96ca1a}\label{class_dv_item_viewer_panel_a66d28d708916a4578ca324728a96ca1a}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!enableSingleColumn@{enableSingleColumn}}
\index{enableSingleColumn@{enableSingleColumn}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{enableSingleColumn()}{enableSingleColumn()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::enable\+Single\+Column (\begin{DoxyParamCaption}\item[{bool}]{enabled }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{00347 \{ m\_singleColumnEnabled = enabled; \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a8ef33cc8b666d101837363356d614042}\label{class_dv_item_viewer_panel_a8ef33cc8b666d101837363356d614042}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!event@{event}}
\index{event@{event}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{event()}{event()}}
{\footnotesize\ttfamily bool Dv\+Item\+Viewer\+Panel\+::event (\begin{DoxyParamCaption}\item[{QEvent $\ast$}]{event }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [protected]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{01353                                            \{}
\DoxyCodeLine{01354   \textcolor{keywordflow}{if} (event-\/>type() == QEvent::ToolTip) \{}
\DoxyCodeLine{01355     \textcolor{comment}{// getModel()-\/>refreshData();}}
\DoxyCodeLine{01356     QHelpEvent *helpEvent = \textcolor{keyword}{static\_cast<}QHelpEvent *\textcolor{keyword}{>}(event);}
\DoxyCodeLine{01357     \textcolor{keywordtype}{int} index             = pos2index(helpEvent-\/>pos());}
\DoxyCodeLine{01358     \textcolor{keywordflow}{if} (0 <= index \&\& index < getItemCount()) \{}
\DoxyCodeLine{01359       QRect rect      = index2pos(index);}
\DoxyCodeLine{01360       QPoint iconSize = QPoint(18, 18);}
\DoxyCodeLine{01361       QPoint point    = rect.topLeft() -\/ QPoint(1, 4);}
\DoxyCodeLine{01362       QRect pixmapRect(point.x(), point.y(), iconSize.x(), iconSize.y());}
\DoxyCodeLine{01363       \textcolor{keywordflow}{if} (pixmapRect.contains(helpEvent-\/>pos()))}
\DoxyCodeLine{01364         QToolTip::showText(helpEvent-\/>globalPos(),}
\DoxyCodeLine{01365                            getModel()-\/>getItemDataAsString(}
\DoxyCodeLine{01366                                index, DvItemListModel::VersionControlStatus));}
\DoxyCodeLine{01367       \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{01368         QVariant data =}
\DoxyCodeLine{01369             getModel()-\/>getItemData(index, DvItemListModel::ToolTip);}
\DoxyCodeLine{01370         \textcolor{keywordflow}{if} (data == QVariant())}
\DoxyCodeLine{01371           QToolTip::hideText();}
\DoxyCodeLine{01372         \textcolor{keywordflow}{else}}
\DoxyCodeLine{01373           QToolTip::showText(helpEvent-\/>globalPos(), data.toString());}
\DoxyCodeLine{01374       \}}
\DoxyCodeLine{01375     \} \textcolor{keywordflow}{else}}
\DoxyCodeLine{01376       QToolTip::hideText();}
\DoxyCodeLine{01377   \}}
\DoxyCodeLine{01378   \textcolor{keywordflow}{return} QWidget::event(event);}
\DoxyCodeLine{01379 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a0fb3c329d262f0cf2074c62a5cc8e991}\label{class_dv_item_viewer_panel_a0fb3c329d262f0cf2074c62a5cc8e991}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!exportFileList@{exportFileList}}
\index{exportFileList@{exportFileList}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{exportFileList}{exportFileList}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::export\+File\+List (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{01415                                        \{}
\DoxyCodeLine{01416   \mbox{\hyperlink{class_t_project}{TProject}} *project =}
\DoxyCodeLine{01417       \mbox{\hyperlink{class_t_project_manager_a150ca0d6e2eb171b8117b0c5f03dbfad}{TProjectManager::instance}}()-\/>\mbox{\hyperlink{class_t_project_manager_a5267cfeae48d4e7585c3fc56d8d5b0b3}{getCurrentProject}}().getPointer();}
\DoxyCodeLine{01418   \mbox{\hyperlink{class_toonz_scene}{ToonzScene}} *scene = \mbox{\hyperlink{class_t_app_a24088f8647d5d9447fcec6b9b9bbf9eb}{TApp::instance}}()-\/>\mbox{\hyperlink{class_t_app_abbbf1fae564e9e510826eda4f6637d20}{getCurrentScene}}()-\/>getScene();}
\DoxyCodeLine{01419   \mbox{\hyperlink{class_t_file_path}{TFilePath}} fp;}
\DoxyCodeLine{01420   \textcolor{keywordflow}{if} (scene) fp = scene-\/>\mbox{\hyperlink{class_toonz_scene_aa2ed57dfbae7f8cf02a4abe47ed533c6}{decodeFilePath}}(project-\/>\mbox{\hyperlink{class_t_project_ac0967db66b75e4cf0afe5b1df73a03c7}{getFolder}}(\mbox{\hyperlink{class_t_project_a78253a5cc9abd6373bfc51b560c5fce5}{TProject::Extras}}));}
\DoxyCodeLine{01421 }
\DoxyCodeLine{01422   QString initialPath;}
\DoxyCodeLine{01423   \textcolor{keywordflow}{if} (fp.isEmpty())}
\DoxyCodeLine{01424     initialPath = QString();}
\DoxyCodeLine{01425   \textcolor{keywordflow}{else}}
\DoxyCodeLine{01426     initialPath = toQString(fp);}
\DoxyCodeLine{01427 }
\DoxyCodeLine{01428   QString fileName = QFileDialog::getSaveFileName(}
\DoxyCodeLine{01429       0, tr(\textcolor{stringliteral}{"{}Save File List"{}}), initialPath, tr(\textcolor{stringliteral}{"{}File List (*.csv)"{}}));}
\DoxyCodeLine{01430 }
\DoxyCodeLine{01431   \textcolor{keywordflow}{if} (fileName.isEmpty()) \textcolor{keywordflow}{return};}
\DoxyCodeLine{01432 }
\DoxyCodeLine{01433   QFile data(fileName);}
\DoxyCodeLine{01434   \textcolor{keywordflow}{if} (data.open(QFile::WriteOnly)) \{}
\DoxyCodeLine{01435     QTextStream out(\&data);}
\DoxyCodeLine{01436 }
\DoxyCodeLine{01437     \textcolor{keywordflow}{for} (\textcolor{keywordtype}{int} index = 0; index < getItemCount(); index++) \{}
\DoxyCodeLine{01438       \textcolor{keywordflow}{if} (getModel()-\/>getItemData(index, DvItemListModel::IsFolder).toBool())}
\DoxyCodeLine{01439         \textcolor{keywordflow}{continue};}
\DoxyCodeLine{01440 }
\DoxyCodeLine{01441       \textcolor{keywordflow}{for} (\textcolor{keywordtype}{int} i = 0; i < (int)m\_columns.size(); i++) \{}
\DoxyCodeLine{01442         DvItemListModel::DataType dataType = m\_columns[i].first;}
\DoxyCodeLine{01443 }
\DoxyCodeLine{01444         \textcolor{keywordflow}{if} (dataType != DvItemListModel::Name \&\&}
\DoxyCodeLine{01445             dataType != DvItemListModel::FrameCount)}
\DoxyCodeLine{01446           \textcolor{keywordflow}{continue};}
\DoxyCodeLine{01447 }
\DoxyCodeLine{01448         QString value = getModel()-\/>getItemDataAsString(index, dataType);}
\DoxyCodeLine{01449 }
\DoxyCodeLine{01450         out << value;}
\DoxyCodeLine{01451         \textcolor{keywordflow}{if} (dataType == DvItemListModel::Name) out << \textcolor{stringliteral}{"{},"{}};}
\DoxyCodeLine{01452       \}}
\DoxyCodeLine{01453       out << (\textcolor{charliteral}{'\(\backslash\)n'});}
\DoxyCodeLine{01454     \}}
\DoxyCodeLine{01455   \}}
\DoxyCodeLine{01456   data.close();}
\DoxyCodeLine{01457 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_abf9d327a1a75daa9ca0675c395afe1f2}\label{class_dv_item_viewer_panel_abf9d327a1a75daa9ca0675c395afe1f2}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!getAlternateBackground@{getAlternateBackground}}
\index{getAlternateBackground@{getAlternateBackground}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{getAlternateBackground()}{getAlternateBackground()}}
{\footnotesize\ttfamily QColor Dv\+Item\+Viewer\+Panel\+::get\+Alternate\+Background (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{00244 \{ \textcolor{keywordflow}{return} m\_alternateBackground; \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a577b64f2491d238ba5c50db49ed7b922}\label{class_dv_item_viewer_panel_a577b64f2491d238ba5c50db49ed7b922}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!getCaptionRect@{getCaptionRect}}
\index{getCaptionRect@{getCaptionRect}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{getCaptionRect()}{getCaptionRect()}}
{\footnotesize\ttfamily QRect Dv\+Item\+Viewer\+Panel\+::get\+Caption\+Rect (\begin{DoxyParamCaption}\item[{int}]{index }\end{DoxyParamCaption}) const}


\begin{DoxyCode}{0}
\DoxyCodeLine{00917                                                        \{}
\DoxyCodeLine{00918   QRect itemRect = index2pos(index);}
\DoxyCodeLine{00919   \textcolor{comment}{//  TDimension m\_iconSize(80,60);// =}}
\DoxyCodeLine{00920   \textcolor{comment}{//  IconGenerator::instance()-\/>getIconSize();}}
\DoxyCodeLine{00921   \textcolor{keywordtype}{int} y = itemRect.top() + m\_iconSize.height();}
\DoxyCodeLine{00922   QRect textRect(itemRect.left(), y, itemRect.width(), itemRect.bottom() -\/ y);}
\DoxyCodeLine{00923 }
\DoxyCodeLine{00924   \textcolor{keywordflow}{return} textRect;}
\DoxyCodeLine{00925 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a72e118cb897fcb49339dbd39834e477a}\label{class_dv_item_viewer_panel_a72e118cb897fcb49339dbd39834e477a}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!getColumns@{getColumns}}
\index{getColumns@{getColumns}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{getColumns()}{getColumns()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::get\+Columns (\begin{DoxyParamCaption}\item[{std\+::vector$<$ std\+::pair$<$ Dv\+Item\+List\+Model\+::\+Data\+Type, std\+::pair$<$ int, bool $>$ $>$ $>$ \&}]{columns }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{00321                     \{}
\DoxyCodeLine{00322     columns = m\_columns;}
\DoxyCodeLine{00323   \};}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_ac112811ac106d40fd9f6faf9dadd8356}\label{class_dv_item_viewer_panel_ac112811ac106d40fd9f6faf9dadd8356}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!getContentHeight@{getContentHeight}}
\index{getContentHeight@{getContentHeight}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{getContentHeight()}{getContentHeight()}}
{\footnotesize\ttfamily int Dv\+Item\+Viewer\+Panel\+::get\+Content\+Height (\begin{DoxyParamCaption}\item[{int}]{width }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00948                                                  \{}
\DoxyCodeLine{00949   updateViewParameters(width);}
\DoxyCodeLine{00950   \textcolor{keywordtype}{int} itemCount = getItemCount();}
\DoxyCodeLine{00951   QRect rect    = index2pos(itemCount -\/ 1);}
\DoxyCodeLine{00952   \textcolor{keywordflow}{return} rect.bottom() + m\_yMargin;}
\DoxyCodeLine{00953 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a8e1f8f94f4fda4298465a8e5220271c7}\label{class_dv_item_viewer_panel_a8e1f8f94f4fda4298465a8e5220271c7}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!getContentMinimumWidth@{getContentMinimumWidth}}
\index{getContentMinimumWidth@{getContentMinimumWidth}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{getContentMinimumWidth()}{getContentMinimumWidth()}}
{\footnotesize\ttfamily int Dv\+Item\+Viewer\+Panel\+::get\+Content\+Minimum\+Width (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00929                                               \{}
\DoxyCodeLine{00930   \textcolor{keywordflow}{switch} (m\_viewType) \{}
\DoxyCodeLine{00931   \textcolor{keywordflow}{case} ListView:}
\DoxyCodeLine{00932     \textcolor{keywordflow}{return} 200;}
\DoxyCodeLine{00933     \textcolor{keywordflow}{break};}
\DoxyCodeLine{00934   \textcolor{keywordflow}{case} TableView:}
\DoxyCodeLine{00935     \textcolor{keywordflow}{return} 600;}
\DoxyCodeLine{00936     \textcolor{keywordflow}{break};}
\DoxyCodeLine{00937   \textcolor{keywordflow}{case} ThumbnailView:}
\DoxyCodeLine{00938     \textcolor{keywordflow}{return} 120;}
\DoxyCodeLine{00939     \textcolor{keywordflow}{break};}
\DoxyCodeLine{00940   \textcolor{keywordflow}{default}:}
\DoxyCodeLine{00941     \textcolor{keywordflow}{return} 120;}
\DoxyCodeLine{00942     \textcolor{keywordflow}{break};}
\DoxyCodeLine{00943   \}}
\DoxyCodeLine{00944 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_af026d7ee612a9137edbb226900040bb5}\label{class_dv_item_viewer_panel_af026d7ee612a9137edbb226900040bb5}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!getFolderTextColor@{getFolderTextColor}}
\index{getFolderTextColor@{getFolderTextColor}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{getFolderTextColor()}{getFolderTextColor()}}
{\footnotesize\ttfamily QColor Dv\+Item\+Viewer\+Panel\+::get\+Folder\+Text\+Color (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{00252 \{ \textcolor{keywordflow}{return} m\_folderTextColor; \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_ab700b96bc62e95a0307af3a70c50ebe0}\label{class_dv_item_viewer_panel_ab700b96bc62e95a0307af3a70c50ebe0}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!getIconSize@{getIconSize}}
\index{getIconSize@{getIconSize}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{getIconSize()}{getIconSize()}}
{\footnotesize\ttfamily QSize Dv\+Item\+Viewer\+Panel\+::get\+Icon\+Size (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{00331 \{ \textcolor{keywordflow}{return} m\_iconSize; \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a773cdb99a838cd2c73617d857fe327e1}\label{class_dv_item_viewer_panel_a773cdb99a838cd2c73617d857fe327e1}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!getItemViewPlayDelegate@{getItemViewPlayDelegate}}
\index{getItemViewPlayDelegate@{getItemViewPlayDelegate}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{getItemViewPlayDelegate()}{getItemViewPlayDelegate()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_d_v_item_view_play_delegate}{DVItem\+View\+Play\+Delegate}} $\ast$ Dv\+Item\+Viewer\+Panel\+::get\+Item\+View\+Play\+Delegate (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00733                                                                    \{}
\DoxyCodeLine{00734   \textcolor{keywordflow}{if} (m\_isPlayDelegateDisable) \textcolor{keywordflow}{return} 0;}
\DoxyCodeLine{00735   \textcolor{keywordflow}{return} m\_itemViewPlayDelegate;}
\DoxyCodeLine{00736 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_ac1679e3d44056d0f267ccde141ac2d38}\label{class_dv_item_viewer_panel_ac1679e3d44056d0f267ccde141ac2d38}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!getSelectedIndices@{getSelectedIndices}}
\index{getSelectedIndices@{getSelectedIndices}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{getSelectedIndices()}{getSelectedIndices()}}
{\footnotesize\ttfamily const std\+::set$<$ int $>$ \& Dv\+Item\+Viewer\+Panel\+::get\+Selected\+Indices (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}


\begin{DoxyCode}{0}
\DoxyCodeLine{00846                                                                \{}
\DoxyCodeLine{00847   \textcolor{keywordflow}{return} m\_selection-\/>getSelectedIndices();}
\DoxyCodeLine{00848 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_ad333eac2921619229910451b7d3af584}\label{class_dv_item_viewer_panel_ad333eac2921619229910451b7d3af584}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!getSelectedItemBackground@{getSelectedItemBackground}}
\index{getSelectedItemBackground@{getSelectedItemBackground}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{getSelectedItemBackground()}{getSelectedItemBackground()}}
{\footnotesize\ttfamily QColor Dv\+Item\+Viewer\+Panel\+::get\+Selected\+Item\+Background (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{00256 \{ \textcolor{keywordflow}{return} m\_selectedItemBackground; \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_ab8bd42508410f08e96648ae16e5de0ca}\label{class_dv_item_viewer_panel_ab8bd42508410f08e96648ae16e5de0ca}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!getSelectedTextColor@{getSelectedTextColor}}
\index{getSelectedTextColor@{getSelectedTextColor}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{getSelectedTextColor()}{getSelectedTextColor()}}
{\footnotesize\ttfamily QColor Dv\+Item\+Viewer\+Panel\+::get\+Selected\+Text\+Color (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{00250 \{ \textcolor{keywordflow}{return} m\_selectedTextColor; \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a711ced227bf3a32768b418ff2f6fb4fa}\label{class_dv_item_viewer_panel_a711ced227bf3a32768b418ff2f6fb4fa}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!getSelection@{getSelection}}
\index{getSelection@{getSelection}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{getSelection()}{getSelection()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_dv_item_selection}{Dv\+Item\+Selection}} $\ast$ Dv\+Item\+Viewer\+Panel\+::get\+Selection (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{00352 \{ \textcolor{keywordflow}{return} m\_selection; \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a4f8ffd69929f7fb966fb2e0b9c0fd7b5}\label{class_dv_item_viewer_panel_a4f8ffd69929f7fb966fb2e0b9c0fd7b5}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!getTextColor@{getTextColor}}
\index{getTextColor@{getTextColor}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{getTextColor()}{getTextColor()}}
{\footnotesize\ttfamily QColor Dv\+Item\+Viewer\+Panel\+::get\+Text\+Color (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{00246 \{ \textcolor{keywordflow}{return} m\_textColor; \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_ac10d301caed0b41a4f5d5b2d485a3450}\label{class_dv_item_viewer_panel_ac10d301caed0b41a4f5d5b2d485a3450}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!getVisibility@{getVisibility}}
\index{getVisibility@{getVisibility}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{getVisibility()}{getVisibility()}}
{\footnotesize\ttfamily bool Dv\+Item\+Viewer\+Panel\+::get\+Visibility (\begin{DoxyParamCaption}\item[{Dv\+Item\+List\+Model\+::\+Data\+Type}]{data\+Type }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00784                                                                       \{}
\DoxyCodeLine{00785   \textcolor{keywordtype}{int} i;}
\DoxyCodeLine{00786   \textcolor{keywordflow}{for} (i = 0; i < m\_columns.size(); i++) \{}
\DoxyCodeLine{00787     \textcolor{keywordflow}{if} (m\_columns[i].first != dataType)}
\DoxyCodeLine{00788       \textcolor{keywordflow}{continue};}
\DoxyCodeLine{00789     \textcolor{keywordflow}{else}}
\DoxyCodeLine{00790       \textcolor{keywordflow}{return} m\_columns[i].second.second;}
\DoxyCodeLine{00791   \}}
\DoxyCodeLine{00792   \textcolor{keywordflow}{return} 0;}
\DoxyCodeLine{00793 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a33ec7a1fe81305c77c51554491371286}\label{class_dv_item_viewer_panel_a33ec7a1fe81305c77c51554491371286}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!index2pos@{index2pos}}
\index{index2pos@{index2pos}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{index2pos()}{index2pos()}}
{\footnotesize\ttfamily QRect Dv\+Item\+Viewer\+Panel\+::index2pos (\begin{DoxyParamCaption}\item[{int}]{index }\end{DoxyParamCaption}) const}


\begin{DoxyCode}{0}
\DoxyCodeLine{00907                                                   \{}
\DoxyCodeLine{00908   \textcolor{keywordtype}{int} row = index / m\_itemPerRow;}
\DoxyCodeLine{00909   \textcolor{keywordtype}{int} col = index -\/ row * m\_itemPerRow;}
\DoxyCodeLine{00910   QPoint pos(m\_xMargin + (m\_itemSize.width() + m\_itemSpacing) * col,}
\DoxyCodeLine{00911              m\_yMargin + (m\_itemSize.height() + m\_itemSpacing) * row);}
\DoxyCodeLine{00912   \textcolor{keywordflow}{return} QRect(pos, m\_itemSize);}
\DoxyCodeLine{00913 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_ae0e97cf68eb605a42f72ae797da669e3}\label{class_dv_item_viewer_panel_ae0e97cf68eb605a42f72ae797da669e3}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!isSingleColumnEnabled@{isSingleColumnEnabled}}
\index{isSingleColumnEnabled@{isSingleColumnEnabled}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{isSingleColumnEnabled()}{isSingleColumnEnabled()}}
{\footnotesize\ttfamily bool Dv\+Item\+Viewer\+Panel\+::is\+Single\+Column\+Enabled (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{00348 \{ \textcolor{keywordflow}{return} m\_singleColumnEnabled; \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a6e9929a18def34d4be631d7af7cf877e}\label{class_dv_item_viewer_panel_a6e9929a18def34d4be631d7af7cf877e}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!mouseDoubleClickEvent@{mouseDoubleClickEvent}}
\index{mouseDoubleClickEvent@{mouseDoubleClickEvent}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{mouseDoubleClickEvent()}{mouseDoubleClickEvent()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::mouse\+Double\+Click\+Event (\begin{DoxyParamCaption}\item[{QMouse\+Event $\ast$}]{event }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [protected]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{01307                                                                 \{}
\DoxyCodeLine{01308   \textcolor{keywordtype}{int} index = pos2index(event-\/>pos());}
\DoxyCodeLine{01309   \textcolor{keywordflow}{if} (index < 0 || index >= getItemCount()) \textcolor{keywordflow}{return};}
\DoxyCodeLine{01310   \textcolor{keywordflow}{if} (m\_viewer) m\_viewer-\/>notifyDoubleClick(index);}
\DoxyCodeLine{01311   \textcolor{keywordflow}{if} (!getModel()-\/>canRenameItem(index)) \textcolor{keywordflow}{return};}
\DoxyCodeLine{01312   QRect captionRect = getCaptionRect(index);}
\DoxyCodeLine{01313   \textcolor{keywordflow}{if} (!captionRect.contains(event-\/>pos())) \textcolor{keywordflow}{return};}
\DoxyCodeLine{01314   m\_currentIndex = index;}
\DoxyCodeLine{01315 }
\DoxyCodeLine{01316   \mbox{\hyperlink{class_d_v_gui_1_1_line_edit}{DVGui::LineEdit}} *fld = m\_editFld;}
\DoxyCodeLine{01317   \textcolor{comment}{// getModel()-\/>refreshData();}}
\DoxyCodeLine{01318   QString name =}
\DoxyCodeLine{01319       getModel()-\/>getItemData(index, DvItemListModel::Name).toString();}
\DoxyCodeLine{01320   fld-\/>setText(name);}
\DoxyCodeLine{01321   fld-\/>setGeometry(captionRect);}
\DoxyCodeLine{01322   fld-\/>show();}
\DoxyCodeLine{01323   fld-\/>selectAll();}
\DoxyCodeLine{01324   fld-\/>setFocus(Qt::OtherFocusReason);}
\DoxyCodeLine{01325 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_ac00b53074679a42ced3e1a101dd725f7}\label{class_dv_item_viewer_panel_ac00b53074679a42ced3e1a101dd725f7}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!mouseMoveEvent@{mouseMoveEvent}}
\index{mouseMoveEvent@{mouseMoveEvent}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{mouseMoveEvent()}{mouseMoveEvent()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::mouse\+Move\+Event (\begin{DoxyParamCaption}\item[{QMouse\+Event $\ast$}]{event }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [protected]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{01260                                                          \{}
\DoxyCodeLine{01261   \textcolor{keywordflow}{if} (event-\/>buttons() == Qt::MidButton) \{}
\DoxyCodeLine{01262     QPoint d       = \textcolor{keyword}{event}-\/>globalPos() -\/ m\_lastMousePos;}
\DoxyCodeLine{01263     m\_lastMousePos = \textcolor{keyword}{event}-\/>globalPos();}
\DoxyCodeLine{01264     \textcolor{keywordflow}{if} (m\_viewer) \{}
\DoxyCodeLine{01265       QScrollBar *scb = m\_viewer-\/>verticalScrollBar();}
\DoxyCodeLine{01266       scb-\/>setValue(scb-\/>value() -\/ d.y());}
\DoxyCodeLine{01267     \}}
\DoxyCodeLine{01268     \textcolor{keywordflow}{return};}
\DoxyCodeLine{01269   \}}
\DoxyCodeLine{01270   \textcolor{comment}{// continuo solo se il bottone sinistro e' premuto.}}
\DoxyCodeLine{01271   \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (!(event-\/>buttons() \& Qt::LeftButton))}
\DoxyCodeLine{01272     \textcolor{keywordflow}{return};}
\DoxyCodeLine{01273 }
\DoxyCodeLine{01274   \textcolor{keywordflow}{if} (!m\_isPlayDelegateDisable) \{}
\DoxyCodeLine{01275     \textcolor{keywordtype}{int} index       = pos2index(event-\/>pos());}
\DoxyCodeLine{01276     \textcolor{keywordtype}{bool} isSelected = m\_selection-\/>isSelected(index);}
\DoxyCodeLine{01277     QRect rect      = index2pos(index);}
\DoxyCodeLine{01278     QRect iconRect(rect.left() + (rect.width() -\/ m\_iconSize.width()) / 2,}
\DoxyCodeLine{01279                    rect.top(), m\_iconSize.width(), m\_iconSize.height());}
\DoxyCodeLine{01280     \mbox{\hyperlink{class_dv_item_list_model}{DvItemListModel}} *model = getModel();}
\DoxyCodeLine{01281     \textcolor{keywordflow}{if} (model-\/>getItemData(index, DvItemListModel::PlayAvailable).toBool() \&\&}
\DoxyCodeLine{01282         isSelected) \{}
\DoxyCodeLine{01283       \textcolor{keywordflow}{if} (m\_itemViewPlayDelegate-\/>setPlayWidget(getModel(), index, iconRect,}
\DoxyCodeLine{01284                                                 event-\/>pos())) \{}
\DoxyCodeLine{01285         update();}
\DoxyCodeLine{01286         \textcolor{keywordflow}{return};}
\DoxyCodeLine{01287       \}}
\DoxyCodeLine{01288     \} \textcolor{keywordflow}{else}}
\DoxyCodeLine{01289       m\_itemViewPlayDelegate-\/>resetPlayWidget();}
\DoxyCodeLine{01290   \}}
\DoxyCodeLine{01291 }
\DoxyCodeLine{01292   \textcolor{comment}{// faccio partire il drag\&drop solo se mi sono mosso di una certa quantita'}}
\DoxyCodeLine{01293   \textcolor{keywordflow}{if} ((event-\/>pos() -\/ m\_startDragPosition).manhattanLength() < 20) \textcolor{keywordflow}{return};}
\DoxyCodeLine{01294   \textcolor{comment}{// e se c'e' una selezione non vuota}}
\DoxyCodeLine{01295   \textcolor{keywordflow}{if} (m\_currentIndex < 0 || m\_currentIndex >= getItemCount()) \textcolor{keywordflow}{return};}
\DoxyCodeLine{01296 }
\DoxyCodeLine{01297   assert(getModel());}
\DoxyCodeLine{01298   getModel()-\/>startDragDrop();}
\DoxyCodeLine{01299 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a07a8f9bd1a02ac9e769511bb87f2d94b}\label{class_dv_item_viewer_panel_a07a8f9bd1a02ac9e769511bb87f2d94b}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!mousePressEvent@{mousePressEvent}}
\index{mousePressEvent@{mousePressEvent}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{mousePressEvent()}{mousePressEvent()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::mouse\+Press\+Event (\begin{DoxyParamCaption}\item[{QMouse\+Event $\ast$}]{event }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [protected]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{01180                                                           \{}
\DoxyCodeLine{01181   updateViewParameters(width());}
\DoxyCodeLine{01182   \textcolor{keywordtype}{int} index       = pos2index(event-\/>pos());}
\DoxyCodeLine{01183   \textcolor{keywordtype}{bool} isSelected = m\_selection-\/>isSelected(index);}
\DoxyCodeLine{01184   \textcolor{keywordflow}{if} (event-\/>button() == Qt::RightButton) \{}
\DoxyCodeLine{01185     \textcolor{comment}{// when a folder item is right-\/clicked, do nothing}}
\DoxyCodeLine{01186     \textcolor{keywordflow}{if} (getModel()-\/>getItemData(index, DvItemListModel::IsFolder).toBool())}
\DoxyCodeLine{01187       \textcolor{keywordflow}{return};}
\DoxyCodeLine{01188 }
\DoxyCodeLine{01189     \textcolor{keywordflow}{if} (!isSelected) \{}
\DoxyCodeLine{01190       m\_selection-\/>selectNone();}
\DoxyCodeLine{01191       \textcolor{keywordflow}{if} (!m\_isPlayDelegateDisable) m\_itemViewPlayDelegate-\/>resetPlayWidget();}
\DoxyCodeLine{01192       \textcolor{keywordflow}{if} (0 <= index \&\& index < getItemCount()) m\_selection-\/>select(index);}
\DoxyCodeLine{01193       \textcolor{keywordflow}{if} (m\_globalSelectionEnabled) m\_selection-\/>makeCurrent();}
\DoxyCodeLine{01194       update();}
\DoxyCodeLine{01195     \}}
\DoxyCodeLine{01196     \textcolor{keywordflow}{return};}
\DoxyCodeLine{01197   \} \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (event-\/>button() == Qt::MidButton) \{}
\DoxyCodeLine{01198     m\_lastMousePos = \textcolor{keyword}{event}-\/>globalPos();}
\DoxyCodeLine{01199     \textcolor{keyword}{event}-\/>accept();}
\DoxyCodeLine{01200     \textcolor{keywordflow}{return};}
\DoxyCodeLine{01201   \}}
\DoxyCodeLine{01202   \textcolor{keywordflow}{if} (!m\_isPlayDelegateDisable) \{}
\DoxyCodeLine{01203     QRect rect = index2pos(index);}
\DoxyCodeLine{01204     QRect iconRect(rect.left() + (rect.width() -\/ m\_iconSize.width()) / 2,}
\DoxyCodeLine{01205                    rect.top(), m\_iconSize.width(), m\_iconSize.height());}
\DoxyCodeLine{01206     \mbox{\hyperlink{class_dv_item_list_model}{DvItemListModel}} *model = getModel();}
\DoxyCodeLine{01207     \textcolor{keywordflow}{if} (model-\/>getItemData(index, DvItemListModel::PlayAvailable).toBool() \&\&}
\DoxyCodeLine{01208         isSelected) \{}
\DoxyCodeLine{01209       \textcolor{keywordflow}{if} (m\_itemViewPlayDelegate-\/>setPlayWidget(getModel(), index, iconRect,}
\DoxyCodeLine{01210                                                 event-\/>pos())) \{}
\DoxyCodeLine{01211         update();}
\DoxyCodeLine{01212         \textcolor{keywordflow}{return};}
\DoxyCodeLine{01213       \}}
\DoxyCodeLine{01214     \} \textcolor{keywordflow}{else}}
\DoxyCodeLine{01215       m\_itemViewPlayDelegate-\/>resetPlayWidget();}
\DoxyCodeLine{01216   \}}
\DoxyCodeLine{01217 }
\DoxyCodeLine{01218   \textcolor{comment}{// without any modifier, clear the selection}}
\DoxyCodeLine{01219   \textcolor{keywordflow}{if} (!m\_multiSelectionEnabled ||}
\DoxyCodeLine{01220       (0 == (event-\/>modifiers() \& Qt::ControlModifier) \&\&}
\DoxyCodeLine{01221        0 == (event-\/>modifiers() \& Qt::ShiftModifier) \&\&}
\DoxyCodeLine{01222        !m\_selection-\/>isSelected(index)))}
\DoxyCodeLine{01223     m\_selection-\/>selectNone();}
\DoxyCodeLine{01224 }
\DoxyCodeLine{01225   \textcolor{comment}{// if click something}}
\DoxyCodeLine{01226   \textcolor{keywordflow}{if} (0 <= index \&\& index < getItemCount()) \{}
\DoxyCodeLine{01227     \textcolor{keywordflow}{if} (0 != (event-\/>modifiers() \& Qt::ControlModifier)) \{}
\DoxyCodeLine{01228       \textcolor{comment}{// ctrl-\/click}}
\DoxyCodeLine{01229       m\_selection-\/>select(index, !m\_selection-\/>isSelected(index));}
\DoxyCodeLine{01230     \} \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (0 != (event-\/>modifiers() \& Qt::ShiftModifier)) \{}
\DoxyCodeLine{01231       \textcolor{comment}{// shift-\/click}}
\DoxyCodeLine{01232       \textcolor{keywordflow}{if} (!isSelected) \{}
\DoxyCodeLine{01233         \textcolor{keywordtype}{int} a = index, b = index;}
\DoxyCodeLine{01234         \textcolor{keywordflow}{while} (a > 0 \&\& !m\_selection-\/>isSelected(a -\/ 1)) a-\/-\/;}
\DoxyCodeLine{01235         \textcolor{keywordflow}{if} (a == 0) a = index;}
\DoxyCodeLine{01236         \textcolor{keywordtype}{int} k         = getItemCount();}
\DoxyCodeLine{01237         \textcolor{keywordflow}{while} (b < k \&\& !m\_selection-\/>isSelected(b + 1)) b++;}
\DoxyCodeLine{01238         \textcolor{keywordflow}{if} (b == k) b = index;}
\DoxyCodeLine{01239         \textcolor{keywordtype}{int} i;}
\DoxyCodeLine{01240         \textcolor{keywordflow}{for} (i = a; i <= b; i++) \{}
\DoxyCodeLine{01241           \textcolor{comment}{// select except folder items}}
\DoxyCodeLine{01242           \textcolor{keywordflow}{if} (!getModel()-\/>getItemData(i, DvItemListModel::IsFolder).toBool())}
\DoxyCodeLine{01243             m\_selection-\/>select(i);}
\DoxyCodeLine{01244         \}}
\DoxyCodeLine{01245       \}}
\DoxyCodeLine{01246     \} \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{01247       m\_selection-\/>selectNone();}
\DoxyCodeLine{01248       m\_selection-\/>select(index);}
\DoxyCodeLine{01249     \}}
\DoxyCodeLine{01250   \}}
\DoxyCodeLine{01251   \textcolor{keywordflow}{if} (m\_globalSelectionEnabled) m\_selection-\/>makeCurrent();}
\DoxyCodeLine{01252   m\_currentIndex = index;}
\DoxyCodeLine{01253   \textcolor{keywordflow}{if} (m\_viewer) m\_viewer-\/>notifyClick(index);}
\DoxyCodeLine{01254   m\_startDragPosition = \textcolor{keyword}{event}-\/>pos();}
\DoxyCodeLine{01255   update();}
\DoxyCodeLine{01256 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a3e70b1fbc7e8255a496e98c550f3120f}\label{class_dv_item_viewer_panel_a3e70b1fbc7e8255a496e98c550f3120f}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!mouseReleaseEvent@{mouseReleaseEvent}}
\index{mouseReleaseEvent@{mouseReleaseEvent}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{mouseReleaseEvent()}{mouseReleaseEvent()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::mouse\+Release\+Event (\begin{DoxyParamCaption}\item[{QMouse\+Event $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [protected]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{01303 \{\}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_af067d77732f0c96f5659eae9a9239d4d}\label{class_dv_item_viewer_panel_af067d77732f0c96f5659eae9a9239d4d}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!onSelectionChanged@{onSelectionChanged}}
\index{onSelectionChanged@{onSelectionChanged}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{onSelectionChanged()}{onSelectionChanged()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::on\+Selection\+Changed (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [virtual]}}



Implements \mbox{\hyperlink{class_t_selection_1_1_view}{TSelection\+::\+View}}.


\begin{DoxyCode}{0}
\DoxyCodeLine{00343 \{ update(); \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a4bc71cb34858fc6bfe4b539501eb6f5d}\label{class_dv_item_viewer_panel_a4bc71cb34858fc6bfe4b539501eb6f5d}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!paintEvent@{paintEvent}}
\index{paintEvent@{paintEvent}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{paintEvent()}{paintEvent()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::paint\+Event (\begin{DoxyParamCaption}\item[{QPaint\+Event $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [protected]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{00957                                                 \{}
\DoxyCodeLine{00958   QPainter p(\textcolor{keyword}{this});}
\DoxyCodeLine{00959   \textcolor{keywordtype}{int} i, n = getItemCount();}
\DoxyCodeLine{00960   updateViewParameters(width());}
\DoxyCodeLine{00961   \textcolor{keywordflow}{switch} (m\_viewType) \{}
\DoxyCodeLine{00962   \textcolor{keywordflow}{case} ListView:}
\DoxyCodeLine{00963     \textcolor{keywordflow}{for} (i = 0; i < n; i++) paintListItem(p, i);}
\DoxyCodeLine{00964     \textcolor{keywordflow}{break};}
\DoxyCodeLine{00965   \textcolor{keywordflow}{case} TableView:}
\DoxyCodeLine{00966     \textcolor{keywordflow}{for} (i = 0; i < n; i++) paintTableItem(p, i);}
\DoxyCodeLine{00967     \textcolor{keywordflow}{break};}
\DoxyCodeLine{00968   \textcolor{keywordflow}{case} ThumbnailView:}
\DoxyCodeLine{00969     \textcolor{keywordflow}{for} (i = 0; i < n; i++) paintThumbnailItem(p, i);}
\DoxyCodeLine{00970     \textcolor{keywordflow}{break};}
\DoxyCodeLine{00971   \}}
\DoxyCodeLine{00972 }
\DoxyCodeLine{00973   \textcolor{comment}{/*}}
\DoxyCodeLine{00974 \textcolor{comment}{}}
\DoxyCodeLine{00975 \textcolor{comment}{p.setPen(Qt::green);}}
\DoxyCodeLine{00976 \textcolor{comment}{for(i=0;i<n;i++)}}
\DoxyCodeLine{00977 \textcolor{comment}{p.drawRect(index2pos(i));}}
\DoxyCodeLine{00978 \textcolor{comment}{}}
\DoxyCodeLine{00979 \textcolor{comment}{int y = getContentHeight(width());}}
\DoxyCodeLine{00980 \textcolor{comment}{p.drawLine(0,y,width(),y);}}
\DoxyCodeLine{00981 \textcolor{comment}{}}
\DoxyCodeLine{00982 \textcolor{comment}{p.setPen(Qt::magenta);}}
\DoxyCodeLine{00983 \textcolor{comment}{p.drawRect(0,0,width()-\/1,height()-\/1);}}
\DoxyCodeLine{00984 \textcolor{comment}{*/}}
\DoxyCodeLine{00985 }
\DoxyCodeLine{00986   m\_viewer-\/>draw(p);}
\DoxyCodeLine{00987 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a6580774a9f946156fe5676b2fe0f06da}\label{class_dv_item_viewer_panel_a6580774a9f946156fe5676b2fe0f06da}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!paintListItem@{paintListItem}}
\index{paintListItem@{paintListItem}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{paintListItem()}{paintListItem()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::paint\+List\+Item (\begin{DoxyParamCaption}\item[{QPainter \&}]{p,  }\item[{int}]{index }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{01092                                                             \{}
\DoxyCodeLine{01093   QRect rect = index2pos(index);}
\DoxyCodeLine{01094   \textcolor{keywordflow}{if} (!visibleRegion().intersects(rect)) \textcolor{keywordflow}{return};}
\DoxyCodeLine{01095   \textcolor{keywordflow}{if} (!getModel()) \textcolor{keywordflow}{return};}
\DoxyCodeLine{01096   QPixmap icon =}
\DoxyCodeLine{01097       getModel()-\/>getItemData(index, DvItemListModel::Icon).value<QPixmap>();}
\DoxyCodeLine{01098   QString name =}
\DoxyCodeLine{01099       getModel()-\/>getItemData(index, DvItemListModel::Name).toString();}
\DoxyCodeLine{01100   \textcolor{keywordtype}{bool} isSelected = m\_selection-\/>isSelected(index);}
\DoxyCodeLine{01101   \textcolor{keywordflow}{if} (isSelected) p.fillRect(rect, QColor(171, 206, 255));}
\DoxyCodeLine{01102   p.drawPixmap(rect.topLeft(), icon);}
\DoxyCodeLine{01103   rect.adjust(30, 0, 0, 0);}
\DoxyCodeLine{01104   p.setPen(Qt::black);}
\DoxyCodeLine{01105   p.drawText(rect, Qt::AlignLeft | Qt::AlignVCenter,}
\DoxyCodeLine{01106              elideText(name, p.font(), rect.width()));}
\DoxyCodeLine{01107 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_ad91f14121ed3e2e697632132d85928da}\label{class_dv_item_viewer_panel_ad91f14121ed3e2e697632132d85928da}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!paintTableItem@{paintTableItem}}
\index{paintTableItem@{paintTableItem}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{paintTableItem()}{paintTableItem()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::paint\+Table\+Item (\begin{DoxyParamCaption}\item[{QPainter \&}]{p,  }\item[{int}]{index }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{01111                                                              \{}
\DoxyCodeLine{01112   QRect rect = index2pos(index);}
\DoxyCodeLine{01113   \textcolor{keywordflow}{if} (!visibleRegion().intersects(rect)) \textcolor{keywordflow}{return};}
\DoxyCodeLine{01114   \textcolor{keywordflow}{if} (!getModel()) \textcolor{keywordflow}{return};}
\DoxyCodeLine{01115   \textcolor{keywordtype}{bool} isSelected = m\_selection-\/>isSelected(index);}
\DoxyCodeLine{01116   \textcolor{keywordflow}{if} (isSelected)}
\DoxyCodeLine{01117     p.fillRect(rect, getSelectedItemBackground());}
\DoxyCodeLine{01118   \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (index \% 2 == 0)}
\DoxyCodeLine{01119     p.fillRect(rect, getAlternateBackground());  \textcolor{comment}{// 160,160,160}}
\DoxyCodeLine{01120 }
\DoxyCodeLine{01121   DvItemListModel::Status status =}
\DoxyCodeLine{01122       (DvItemListModel::Status)getModel()}
\DoxyCodeLine{01123           -\/>getItemData(index, DvItemListModel::VersionControlStatus)}
\DoxyCodeLine{01124           .toInt();}
\DoxyCodeLine{01125 }
\DoxyCodeLine{01126   \textcolor{keywordflow}{if} (getModel()-\/>getItemData(index, DvItemListModel::IsFolder).toBool())}
\DoxyCodeLine{01127     p.setPen(getFolderTextColor());}
\DoxyCodeLine{01128   \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{01129     \textcolor{keywordflow}{if} (status == DvItemListModel::VC\_Missing)}
\DoxyCodeLine{01130       p.setPen(m\_missingColor);}
\DoxyCodeLine{01131     \textcolor{keywordflow}{else}}
\DoxyCodeLine{01132       p.setPen((isSelected) ? getSelectedTextColor() : getTextColor());}
\DoxyCodeLine{01133   \}}
\DoxyCodeLine{01134 }
\DoxyCodeLine{01135   \textcolor{keywordtype}{int} h  = 0;  \textcolor{comment}{// fontMetrics().descent();}}
\DoxyCodeLine{01136   \textcolor{keywordtype}{int} y  = rect.top();}
\DoxyCodeLine{01137   \textcolor{keywordtype}{int} ly = rect.height();}
\DoxyCodeLine{01138   \textcolor{keywordtype}{int} x  = rect.left();}
\DoxyCodeLine{01139 }
\DoxyCodeLine{01140   \textcolor{keywordtype}{int} i, n = (int)m\_columns.size();}
\DoxyCodeLine{01141 }
\DoxyCodeLine{01142   \textcolor{comment}{// Version Control status pixmap}}
\DoxyCodeLine{01143   QPixmap statusPixmap = getStatusPixmap(status);}
\DoxyCodeLine{01144   \textcolor{keywordflow}{if} (!statusPixmap.isNull()) \{}
\DoxyCodeLine{01145     p.drawPixmap(x + 1, y + 1, statusPixmap.scaled(15, 15, Qt::KeepAspectRatio,}
\DoxyCodeLine{01146                                                    Qt::SmoothTransformation));}
\DoxyCodeLine{01147     x += 15;}
\DoxyCodeLine{01148   \}}
\DoxyCodeLine{01149 }
\DoxyCodeLine{01150   \textcolor{keywordflow}{for} (i = 0; i < n; i++) \{}
\DoxyCodeLine{01151     \textcolor{keywordflow}{if} (!(m\_columns[i].second.second)) \textcolor{keywordflow}{continue};}
\DoxyCodeLine{01152     DvItemListModel::DataType dataType = m\_columns[i].first;}
\DoxyCodeLine{01153     QString value = getModel()-\/>getItemDataAsString(index, dataType);}
\DoxyCodeLine{01154     \textcolor{keywordtype}{int} lx        = m\_columns[i].second.first;}
\DoxyCodeLine{01155     p.drawText(QRect(x + 4, y + 1, lx -\/ 4, ly -\/ 1),}
\DoxyCodeLine{01156                Qt::AlignLeft | Qt::AlignVCenter,}
\DoxyCodeLine{01157                elideText(value, p.font(), lx));}
\DoxyCodeLine{01158     x += lx;}
\DoxyCodeLine{01159     \textcolor{comment}{// If status icon is show, shift the next column left by the width of the}}
\DoxyCodeLine{01160     \textcolor{comment}{// icon}}
\DoxyCodeLine{01161     \textcolor{keywordflow}{if} (i == 0 \&\& !statusPixmap.isNull()) x -\/= 15;}
\DoxyCodeLine{01162   \}}
\DoxyCodeLine{01163   \textcolor{keywordflow}{if} (n > 1) \{}
\DoxyCodeLine{01164     p.setPen(QColor(0, 0, 0, 100));  \textcolor{comment}{// column line}}
\DoxyCodeLine{01165     \textcolor{keywordflow}{if} ((m\_columns[0].second.second))}
\DoxyCodeLine{01166       x = rect.left() + m\_columns[0].second.first;}
\DoxyCodeLine{01167     \textcolor{keywordflow}{else}}
\DoxyCodeLine{01168       x = rect.left();}
\DoxyCodeLine{01169     \textcolor{keywordflow}{for} (i = 1; i < n; i++) \{}
\DoxyCodeLine{01170       \textcolor{keywordflow}{if} (!(m\_columns[i].second.second)) \textcolor{keywordflow}{continue};}
\DoxyCodeLine{01171       p.drawLine(x -\/ 1, y, x -\/ 1, y + ly);}
\DoxyCodeLine{01172       x += m\_columns[i].second.first;}
\DoxyCodeLine{01173     \}}
\DoxyCodeLine{01174     p.drawLine(x -\/ 1, y, x -\/ 1, y + ly);}
\DoxyCodeLine{01175   \}}
\DoxyCodeLine{01176 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a92fbc3473a7e53b21a04dbe614e5982c}\label{class_dv_item_viewer_panel_a92fbc3473a7e53b21a04dbe614e5982c}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!paintThumbnailItem@{paintThumbnailItem}}
\index{paintThumbnailItem@{paintThumbnailItem}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{paintThumbnailItem()}{paintThumbnailItem()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::paint\+Thumbnail\+Item (\begin{DoxyParamCaption}\item[{QPainter \&}]{p,  }\item[{int}]{index }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00997                                                                  \{}
\DoxyCodeLine{00998   \textcolor{comment}{// Get Version Control Status}}
\DoxyCodeLine{00999   \textcolor{keywordtype}{int} status = getModel()}
\DoxyCodeLine{01000                    -\/>getItemData(index, DvItemListModel::VersionControlStatus)}
\DoxyCodeLine{01001                    .toInt();}
\DoxyCodeLine{01002 }
\DoxyCodeLine{01003   \textcolor{keywordtype}{bool} isSelected = m\_selection-\/>isSelected(index);}
\DoxyCodeLine{01004   QRect rect      = index2pos(index);}
\DoxyCodeLine{01005   \textcolor{keywordflow}{if} (!visibleRegion().intersects(rect)) \textcolor{keywordflow}{return};}
\DoxyCodeLine{01006   \textcolor{keywordflow}{if} (!getModel()) \textcolor{keywordflow}{return};}
\DoxyCodeLine{01007 }
\DoxyCodeLine{01008   QRect iconRect(rect.left() + (rect.width() -\/ m\_iconSize.width()) / 2,}
\DoxyCodeLine{01009                  rect.top(), m\_iconSize.width(), m\_iconSize.height());}
\DoxyCodeLine{01010   QRect textRect(iconRect.left(), iconRect.bottom(), iconRect.width(),}
\DoxyCodeLine{01011                  rect.bottom() -\/ iconRect.bottom());}
\DoxyCodeLine{01012 }
\DoxyCodeLine{01013   \textcolor{comment}{// Draw Selection}}
\DoxyCodeLine{01014   \textcolor{keywordflow}{if} (isSelected) \{}
\DoxyCodeLine{01015     p.setPen(Qt::NoPen);}
\DoxyCodeLine{01016     p.fillRect(iconRect.adjusted(-\/2, -\/2, 2, 2), getSelectedItemBackground());}
\DoxyCodeLine{01017     p.fillRect(textRect.adjusted(-\/2, 3, 2, 0), getSelectedItemBackground());}
\DoxyCodeLine{01018   \}}
\DoxyCodeLine{01019 }
\DoxyCodeLine{01020   \textcolor{comment}{// Draw Pixmap}}
\DoxyCodeLine{01021   \textcolor{comment}{// if(status != DvItemListModel::VC\_Missing)}}
\DoxyCodeLine{01022   \textcolor{comment}{//\{}}
\DoxyCodeLine{01023 }
\DoxyCodeLine{01024   QPixmap thumbnail =}
\DoxyCodeLine{01025       getModel()}
\DoxyCodeLine{01026           -\/>getItemData(index, DvItemListModel::Thumbnail, isSelected)}
\DoxyCodeLine{01027           .value<QPixmap>();}
\DoxyCodeLine{01028   \textcolor{keywordflow}{if} (!thumbnail.isNull()) p.drawPixmap(iconRect.topLeft(), thumbnail);}
\DoxyCodeLine{01029   \textcolor{comment}{//\}}}
\DoxyCodeLine{01030   \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{01031     \textcolor{keyword}{static} QPixmap missingPixmap =}
\DoxyCodeLine{01032         QPixmap(getIconThemePath(\textcolor{stringliteral}{"{}mimetypes/60/missing\_icon.svg"{}}));}
\DoxyCodeLine{01033     QRect pixmapRect(rect.left() + (rect.width() -\/ missingPixmap.width()) / 2,}
\DoxyCodeLine{01034                      rect.top(), missingPixmap.width(), missingPixmap.height());}
\DoxyCodeLine{01035     p.drawPixmap(pixmapRect.topLeft(), missingPixmap);}
\DoxyCodeLine{01036   \}}
\DoxyCodeLine{01037 }
\DoxyCodeLine{01038   \textcolor{comment}{// Draw Text}}
\DoxyCodeLine{01039   \textcolor{keywordflow}{if} (status == DvItemListModel::VC\_Missing)}
\DoxyCodeLine{01040     p.setPen(m\_missingColor);}
\DoxyCodeLine{01041   \textcolor{keywordflow}{else}}
\DoxyCodeLine{01042     p.setPen((isSelected) ? getSelectedTextColor() : getTextColor());}
\DoxyCodeLine{01043 }
\DoxyCodeLine{01044   QString name =}
\DoxyCodeLine{01045       getModel()-\/>getItemData(index, DvItemListModel::Name).toString();}
\DoxyCodeLine{01046   \textcolor{keywordtype}{int} frameCount =}
\DoxyCodeLine{01047       getModel()-\/>getItemData(index, DvItemListModel::FrameCount).toInt();}
\DoxyCodeLine{01048   \textcolor{keywordflow}{if} (frameCount > 0) \{}
\DoxyCodeLine{01049     QString num;}
\DoxyCodeLine{01050     name += QString(\textcolor{stringliteral}{"{} ["{}}) + num.number(frameCount) + QString(\textcolor{stringliteral}{"{}]"{}});}
\DoxyCodeLine{01051   \}}
\DoxyCodeLine{01052   QString elideName = elideText(name, p.font(), 2 * textRect.width());}
\DoxyCodeLine{01053   p.drawText(textRect, Qt::AlignCenter,}
\DoxyCodeLine{01054              hyphenText(elideName, p.font(), textRect.width()));}
\DoxyCodeLine{01055 }
\DoxyCodeLine{01056   \textcolor{keywordflow}{if} (isSelected) \{}
\DoxyCodeLine{01057     \textcolor{keywordflow}{if} (!m\_isPlayDelegateDisable \&\&}
\DoxyCodeLine{01058         getModel()-\/>getItemData(index, DvItemListModel::PlayAvailable).toBool())}
\DoxyCodeLine{01059       m\_itemViewPlayDelegate-\/>paint(\&p, iconRect.adjusted(-\/2, -\/2, 1, 1), index);}
\DoxyCodeLine{01060   \}}
\DoxyCodeLine{01061 }
\DoxyCodeLine{01062   \textcolor{comment}{// Draw Scene rect}}
\DoxyCodeLine{01063   \textcolor{keywordflow}{if} (getModel()-\/>isSceneItem(index)) \{}
\DoxyCodeLine{01064     QRect r(iconRect.left(), iconRect.top(), iconRect.width(), 4);}
\DoxyCodeLine{01065     p.setPen(Qt::black);}
\DoxyCodeLine{01066     p.drawRect(r.adjusted(0, 0, -\/1, -\/1));}
\DoxyCodeLine{01067     p.fillRect(r.adjusted(1, 1, -\/1, -\/1), Qt::white);}
\DoxyCodeLine{01068     p.setPen(isSelected ? Qt::blue : Qt::black);}
\DoxyCodeLine{01069     \textcolor{keywordtype}{int} x;}
\DoxyCodeLine{01070     \textcolor{keywordflow}{for} (x = r.left() + 5; x + 5 < r.right(); x += 10) \{}
\DoxyCodeLine{01071       \textcolor{keywordtype}{int} y = r.top() + 1;}
\DoxyCodeLine{01072       p.drawLine(x, y, x + 4, y);}
\DoxyCodeLine{01073       y++;}
\DoxyCodeLine{01074       x++;}
\DoxyCodeLine{01075       p.drawLine(x, y, x + 4, y);}
\DoxyCodeLine{01076     \}}
\DoxyCodeLine{01077   \}}
\DoxyCodeLine{01078 }
\DoxyCodeLine{01079   \textcolor{keywordflow}{if} (status != DvItemListModel::VC\_None \&\&}
\DoxyCodeLine{01080       status != DvItemListModel::VC\_Missing) \{}
\DoxyCodeLine{01081     QPoint iconSize = QPoint(18, 18);}
\DoxyCodeLine{01082     QPoint point    = rect.topLeft() -\/ QPoint(1, 4);}
\DoxyCodeLine{01083     QRect pixmapRect(point.x(), point.y(), iconSize.x(), iconSize.y());}
\DoxyCodeLine{01084 }
\DoxyCodeLine{01085     QPixmap statusPixmap = getStatusPixmap(status);}
\DoxyCodeLine{01086     p.drawPixmap(pixmapRect, statusPixmap);}
\DoxyCodeLine{01087   \}}
\DoxyCodeLine{01088 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a9dbd523f0aebb662a754134f1f7153a0}\label{class_dv_item_viewer_panel_a9dbd523f0aebb662a754134f1f7153a0}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!pos2index@{pos2index}}
\index{pos2index@{pos2index}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{pos2index()}{pos2index()}}
{\footnotesize\ttfamily int Dv\+Item\+Viewer\+Panel\+::pos2index (\begin{DoxyParamCaption}\item[{const QPoint \&}]{pos }\end{DoxyParamCaption}) const}


\begin{DoxyCode}{0}
\DoxyCodeLine{00897                                                         \{}
\DoxyCodeLine{00898   \textcolor{keywordtype}{int} xDist = (pos.x() -\/ m\_xMargin);}
\DoxyCodeLine{00899   \textcolor{keywordtype}{int} col   = (xDist < 0) ? -\/1 : xDist / (m\_itemSize.width() + m\_itemSpacing);}
\DoxyCodeLine{00900   \textcolor{keywordtype}{int} yDist = (pos.y() -\/ m\_yMargin);}
\DoxyCodeLine{00901   \textcolor{keywordtype}{int} row   = (yDist < 0) ? -\/1 : yDist / (m\_itemSize.height() + m\_itemSpacing);}
\DoxyCodeLine{00902   \textcolor{keywordflow}{return} row * m\_itemPerRow + col;}
\DoxyCodeLine{00903 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_af2c64b92f71b9b3b4960bd2159210dc8}\label{class_dv_item_viewer_panel_af2c64b92f71b9b3b4960bd2159210dc8}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!rename@{rename}}
\index{rename@{rename}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{rename}{rename}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::rename (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{01329                                \{}
\DoxyCodeLine{01330   QString newName = m\_editFld-\/>text();}
\DoxyCodeLine{01331   m\_editFld-\/>hide();}
\DoxyCodeLine{01332   \textcolor{keywordflow}{if} (getModel() \&\& 0 <= m\_currentIndex \&\& m\_currentIndex < getItemCount()) \{}
\DoxyCodeLine{01333     getModel()-\/>renameItem(m\_currentIndex, newName);}
\DoxyCodeLine{01334   \}}
\DoxyCodeLine{01335 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a214cce3b032f95741a64d2e68ec4570a}\label{class_dv_item_viewer_panel_a214cce3b032f95741a64d2e68ec4570a}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!setAlignCenter@{setAlignCenter}}
\index{setAlignCenter@{setAlignCenter}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{setAlignCenter()}{setAlignCenter()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::set\+Align\+Center (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{00350 \{ m\_centerAligned = \textcolor{keyword}{true}; \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a708ed1e7f0ef384bb20b5dd5435201e2}\label{class_dv_item_viewer_panel_a708ed1e7f0ef384bb20b5dd5435201e2}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!setAlternateBackground@{setAlternateBackground}}
\index{setAlternateBackground@{setAlternateBackground}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{setAlternateBackground()}{setAlternateBackground()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::set\+Alternate\+Background (\begin{DoxyParamCaption}\item[{const QColor \&}]{color }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{00241                                                    \{}
\DoxyCodeLine{00242     m\_alternateBackground = color;}
\DoxyCodeLine{00243   \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_ade970bd008b6addf4da92b12dc404a8d}\label{class_dv_item_viewer_panel_ade970bd008b6addf4da92b12dc404a8d}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!setColumnWidth@{setColumnWidth}}
\index{setColumnWidth@{setColumnWidth}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{setColumnWidth()}{setColumnWidth()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::set\+Column\+Width (\begin{DoxyParamCaption}\item[{Dv\+Item\+List\+Model\+::\+Data\+Type}]{data\+Type,  }\item[{int}]{width }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00771                                                   \{}
\DoxyCodeLine{00772   \textcolor{keywordtype}{int} i;}
\DoxyCodeLine{00773   \textcolor{keywordflow}{for} (i = 0; i < m\_columns.size(); i++) \{}
\DoxyCodeLine{00774     \textcolor{keywordflow}{if} (m\_columns[i].first != dataType)}
\DoxyCodeLine{00775       \textcolor{keywordflow}{continue};}
\DoxyCodeLine{00776     \textcolor{keywordflow}{else}}
\DoxyCodeLine{00777       m\_columns[i].second.first = width;}
\DoxyCodeLine{00778   \}}
\DoxyCodeLine{00779   update();}
\DoxyCodeLine{00780 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_ae546d52141fb36936fa7ec2051c21a3d}\label{class_dv_item_viewer_panel_ae546d52141fb36936fa7ec2051c21a3d}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!setFolderTextColor@{setFolderTextColor}}
\index{setFolderTextColor@{setFolderTextColor}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{setFolderTextColor()}{setFolderTextColor()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::set\+Folder\+Text\+Color (\begin{DoxyParamCaption}\item[{const QColor \&}]{color }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{00251 \{ m\_folderTextColor = color; \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a60ef95f47d40a3c3588a1df5b8f8e088}\label{class_dv_item_viewer_panel_a60ef95f47d40a3c3588a1df5b8f8e088}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!setItemViewPlayDelegate@{setItemViewPlayDelegate}}
\index{setItemViewPlayDelegate@{setItemViewPlayDelegate}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{setItemViewPlayDelegate()}{setItemViewPlayDelegate()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::set\+Item\+View\+Play\+Delegate (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_d_v_item_view_play_delegate}{DVItem\+View\+Play\+Delegate}} $\ast$}]{play\+Delegate }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00726                                           \{}
\DoxyCodeLine{00727   m\_isPlayDelegateDisable = \textcolor{keyword}{false};}
\DoxyCodeLine{00728   m\_itemViewPlayDelegate  = playDelegate;}
\DoxyCodeLine{00729 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a2901c3d8164bf52789d21f3fc63a7542}\label{class_dv_item_viewer_panel_a2901c3d8164bf52789d21f3fc63a7542}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!setListView@{setListView}}
\index{setListView@{setListView}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{setListView}{setListView}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::set\+List\+View (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{01382                                     \{}
\DoxyCodeLine{01383   m\_viewType                                                 = ListView;}
\DoxyCodeLine{01384   m\_viewer-\/>m\_windowType == DvItemViewer::Cast ? CastView    = ListView}
\DoxyCodeLine{01385                                                : BrowserView = ListView;}
\DoxyCodeLine{01386   emit viewTypeChange(m\_viewType);}
\DoxyCodeLine{01387   m\_viewer-\/>updateContentSize();}
\DoxyCodeLine{01388   update();}
\DoxyCodeLine{01389 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_af89aa6b1886e0f7982f7cf60132f2f9e}\label{class_dv_item_viewer_panel_af89aa6b1886e0f7982f7cf60132f2f9e}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!setMissingTextColor@{setMissingTextColor}}
\index{setMissingTextColor@{setMissingTextColor}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{setMissingTextColor()}{setMissingTextColor()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::set\+Missing\+Text\+Color (\begin{DoxyParamCaption}\item[{const QColor \&}]{color }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00991                                                                \{}
\DoxyCodeLine{00992   m\_missingColor = color;}
\DoxyCodeLine{00993 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a8d4764488427487eabd7051e052c4109}\label{class_dv_item_viewer_panel_a8d4764488427487eabd7051e052c4109}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!setSelectedItemBackground@{setSelectedItemBackground}}
\index{setSelectedItemBackground@{setSelectedItemBackground}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{setSelectedItemBackground()}{setSelectedItemBackground()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::set\+Selected\+Item\+Background (\begin{DoxyParamCaption}\item[{const QColor \&}]{color }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{00253                                                       \{}
\DoxyCodeLine{00254     m\_selectedItemBackground = color;}
\DoxyCodeLine{00255   \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a51a65327a48ce86d18dce1d021b11527}\label{class_dv_item_viewer_panel_a51a65327a48ce86d18dce1d021b11527}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!setSelectedTextColor@{setSelectedTextColor}}
\index{setSelectedTextColor@{setSelectedTextColor}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{setSelectedTextColor()}{setSelectedTextColor()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::set\+Selected\+Text\+Color (\begin{DoxyParamCaption}\item[{const QColor \&}]{color }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{00247                                                  \{}
\DoxyCodeLine{00248     m\_selectedTextColor = color;}
\DoxyCodeLine{00249   \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_af51fd258c322c12b8617d091959bedc5}\label{class_dv_item_viewer_panel_af51fd258c322c12b8617d091959bedc5}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!setSelection@{setSelection}}
\index{setSelection@{setSelection}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{setSelection()}{setSelection()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::set\+Selection (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_dv_item_selection}{Dv\+Item\+Selection}} $\ast$}]{selection }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00837                                                                \{}
\DoxyCodeLine{00838   \textcolor{keywordflow}{if} (m\_selection == selection) \textcolor{keywordflow}{return};}
\DoxyCodeLine{00839   \textcolor{keyword}{delete} m\_selection;}
\DoxyCodeLine{00840   m\_selection = selection;}
\DoxyCodeLine{00841   m\_selection-\/>setModel(getModel());}
\DoxyCodeLine{00842 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a041425f9f25b97feb6029c9740cd6c9d}\label{class_dv_item_viewer_panel_a041425f9f25b97feb6029c9740cd6c9d}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!setTableView@{setTableView}}
\index{setTableView@{setTableView}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{setTableView}{setTableView}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::set\+Table\+View (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{01393                                      \{}
\DoxyCodeLine{01394   m\_viewType                                                 = TableView;}
\DoxyCodeLine{01395   m\_viewer-\/>m\_windowType == DvItemViewer::Cast ? CastView    = TableView}
\DoxyCodeLine{01396                                                : BrowserView = TableView;}
\DoxyCodeLine{01397   emit viewTypeChange(m\_viewType);}
\DoxyCodeLine{01398   m\_viewer-\/>updateContentSize();}
\DoxyCodeLine{01399   update();}
\DoxyCodeLine{01400 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a3128b5dfda0a1daa6999dc527983dac7}\label{class_dv_item_viewer_panel_a3128b5dfda0a1daa6999dc527983dac7}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!setTextColor@{setTextColor}}
\index{setTextColor@{setTextColor}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{setTextColor()}{setTextColor()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::set\+Text\+Color (\begin{DoxyParamCaption}\item[{const QColor \&}]{color }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{00245 \{ m\_textColor = color; \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a4050114dc30919c1e8a1158f0b42de35}\label{class_dv_item_viewer_panel_a4050114dc30919c1e8a1158f0b42de35}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!setThumbnailsView@{setThumbnailsView}}
\index{setThumbnailsView@{setThumbnailsView}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{setThumbnailsView}{setThumbnailsView}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::set\+Thumbnails\+View (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}


\begin{DoxyCode}{0}
\DoxyCodeLine{01404                                           \{}
\DoxyCodeLine{01405   m\_viewType                                                 = ThumbnailView;}
\DoxyCodeLine{01406   m\_viewer-\/>m\_windowType == DvItemViewer::Cast ? CastView    = ThumbnailView}
\DoxyCodeLine{01407                                                : BrowserView = ThumbnailView;}
\DoxyCodeLine{01408   emit viewTypeChange(m\_viewType);}
\DoxyCodeLine{01409   m\_viewer-\/>updateContentSize();}
\DoxyCodeLine{01410   update();}
\DoxyCodeLine{01411 \}}

\end{DoxyCode}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a6e1eaf9592820ba812bc6b7d417c5391}\label{class_dv_item_viewer_panel_a6e1eaf9592820ba812bc6b7d417c5391}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!setVisibility@{setVisibility}}
\index{setVisibility@{setVisibility}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{setVisibility()}{setVisibility()}}
{\footnotesize\ttfamily void Dv\+Item\+Viewer\+Panel\+::set\+Visibility (\begin{DoxyParamCaption}\item[{Dv\+Item\+List\+Model\+::\+Data\+Type}]{data\+Type,  }\item[{bool}]{value }\end{DoxyParamCaption})}


\begin{DoxyCode}{0}
\DoxyCodeLine{00797                                                   \{}
\DoxyCodeLine{00798   \textcolor{keywordtype}{int} i;}
\DoxyCodeLine{00799   \textcolor{keywordflow}{for} (i = 0; i < m\_columns.size(); i++) \{}
\DoxyCodeLine{00800     \textcolor{keywordflow}{if} (m\_columns[i].first != dataType)}
\DoxyCodeLine{00801       \textcolor{keywordflow}{continue};}
\DoxyCodeLine{00802     \textcolor{keywordflow}{else}}
\DoxyCodeLine{00803       m\_columns[i].second.second = value;}
\DoxyCodeLine{00804   \}}
\DoxyCodeLine{00805   \textcolor{keywordflow}{switch} (dataType) \{}
\DoxyCodeLine{00806   \textcolor{keywordflow}{case} DvItemListModel::FileSize:}
\DoxyCodeLine{00807     BrowserFileSizeisVisible = value;}
\DoxyCodeLine{00808     \textcolor{keywordflow}{break};}
\DoxyCodeLine{00809   \textcolor{keywordflow}{case} DvItemListModel::FrameCount:}
\DoxyCodeLine{00810     BrowserFrameCountisVisible = value;}
\DoxyCodeLine{00811     \textcolor{keywordflow}{break};}
\DoxyCodeLine{00812   \textcolor{keywordflow}{case} DvItemListModel::CreationDate:}
\DoxyCodeLine{00813     BrowserCreationDateisVisible = value;}
\DoxyCodeLine{00814     \textcolor{keywordflow}{break};}
\DoxyCodeLine{00815   \textcolor{keywordflow}{case} DvItemListModel::ModifiedDate:}
\DoxyCodeLine{00816     BrowserModifiedDateisVisible = value;}
\DoxyCodeLine{00817     \textcolor{keywordflow}{break};}
\DoxyCodeLine{00818   \textcolor{keywordflow}{case} DvItemListModel::FileType:}
\DoxyCodeLine{00819     BrowserFileTypeisVisible = value;}
\DoxyCodeLine{00820     \textcolor{keywordflow}{break};}
\DoxyCodeLine{00821   \textcolor{keywordflow}{case} DvItemListModel::VersionControlStatus:}
\DoxyCodeLine{00822     BrowserVersionControlStatusisVisible = value;}
\DoxyCodeLine{00823     \textcolor{keywordflow}{break};}
\DoxyCodeLine{00824   \textcolor{keywordflow}{default}:}
\DoxyCodeLine{00825     \textcolor{keywordflow}{break};}
\DoxyCodeLine{00826   \}}
\DoxyCodeLine{00827 \}}

\end{DoxyCode}


\doxysubsection{Property Documentation}
\mbox{\Hypertarget{class_dv_item_viewer_panel_a648154623c05478e186850c90099d30e}\label{class_dv_item_viewer_panel_a648154623c05478e186850c90099d30e}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!AlternateBackground@{AlternateBackground}}
\index{AlternateBackground@{AlternateBackground}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{AlternateBackground}{AlternateBackground}}
{\footnotesize\ttfamily QColor Dv\+Item\+Viewer\+Panel\+::\+Alternate\+Background\hspace{0.3cm}{\ttfamily [read]}}

\mbox{\Hypertarget{class_dv_item_viewer_panel_a61a90c26c81b2f6e9e28e03ba2c95b19}\label{class_dv_item_viewer_panel_a61a90c26c81b2f6e9e28e03ba2c95b19}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!FolderTextColor@{FolderTextColor}}
\index{FolderTextColor@{FolderTextColor}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{FolderTextColor}{FolderTextColor}}
{\footnotesize\ttfamily QColor Dv\+Item\+Viewer\+Panel\+::\+Folder\+Text\+Color\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}}

\mbox{\Hypertarget{class_dv_item_viewer_panel_a1af04158c6acb349bd3f19d424118110}\label{class_dv_item_viewer_panel_a1af04158c6acb349bd3f19d424118110}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!SelectedItemBackground@{SelectedItemBackground}}
\index{SelectedItemBackground@{SelectedItemBackground}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{SelectedItemBackground}{SelectedItemBackground}}
{\footnotesize\ttfamily QColor Dv\+Item\+Viewer\+Panel\+::\+Selected\+Item\+Background\hspace{0.3cm}{\ttfamily [read]}}

\mbox{\Hypertarget{class_dv_item_viewer_panel_a0d4d51491d4983adc5bd573a777fcaff}\label{class_dv_item_viewer_panel_a0d4d51491d4983adc5bd573a777fcaff}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!SelectedTextColor@{SelectedTextColor}}
\index{SelectedTextColor@{SelectedTextColor}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{SelectedTextColor}{SelectedTextColor}}
{\footnotesize\ttfamily QColor Dv\+Item\+Viewer\+Panel\+::\+Selected\+Text\+Color\hspace{0.3cm}{\ttfamily [read]}}

\mbox{\Hypertarget{class_dv_item_viewer_panel_aa239981fdffc96fc6202ba6d927e4b98}\label{class_dv_item_viewer_panel_aa239981fdffc96fc6202ba6d927e4b98}} 
\index{DvItemViewerPanel@{DvItemViewerPanel}!TextColor@{TextColor}}
\index{TextColor@{TextColor}!DvItemViewerPanel@{DvItemViewerPanel}}
\doxysubsubsection{\texorpdfstring{TextColor}{TextColor}}
{\footnotesize\ttfamily QColor Dv\+Item\+Viewer\+Panel\+::\+Text\+Color\hspace{0.3cm}{\ttfamily [read]}, {\ttfamily [write]}}



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