\section{KMedia\-Player::View Class Reference}
\label{classKMediaPlayer_1_1View}\index{KMediaPlayer::View@{KMediaPlayer::View}}
{\bf View}{\rm (p.\,\pageref{classKMediaPlayer_1_1View})} is part of the user interface of a {\bf Player}{\rm (p.\,\pageref{classKMediaPlayer_1_1Player})}.  


{\tt \#include $<$view.h$>$}

Inheritance diagram for KMedia\-Player::View:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=70pt]{classKMediaPlayer_1_1View__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KMedia\-Player::View:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=70pt]{classKMediaPlayer_1_1View__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Button} \{ \par
{\bf Play} =  1, 
{\bf Stop} =  2, 
{\bf Pause} =  4, 
{\bf Seeker} =  8, 
\par
{\bf All} =  255
 \}
\end{CompactItemize}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
void {\bf set\-Buttons} (int)
\item 
bool {\bf button} (int)
\item 
void {\bf show\-Button} (int)
\item 
void {\bf hide\-Button} (int)
\item 
void {\bf toggle\-Button} (int)
\end{CompactItemize}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf buttons\-Changed} (int)
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf View} ({\bf QWidget} $\ast$parent, const char $\ast$name)
\item 
int {\bf buttons} (void)
\item 
{\bf QWidget} $\ast$ {\bf video\-Widget} ()
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf set\-Video\-Widget} ({\bf QWidget} $\ast$video\-Widget)
\end{CompactItemize}


\subsection{Detailed Description}
{\bf View}{\rm (p.\,\pageref{classKMediaPlayer_1_1View})} is part of the user interface of a {\bf Player}{\rm (p.\,\pageref{classKMediaPlayer_1_1Player})}. 



Definition at line 34 of file kmediaplayer/view.h.

\subsection{Member Enumeration Documentation}
\index{KMediaPlayer::View@{KMedia\-Player::View}!Button@{Button}}
\index{Button@{Button}!KMediaPlayer::View@{KMedia\-Player::View}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf enum} {\bf KMedia\-Player::View::Button}}\label{classKMediaPlayer_1_1View_w5}


The Possible buttons that can appear in the UI. 

\begin{Desc}
\item[Enumeration values: ]\par
\begin{description}
\index{Play@{Play}!KMediaPlayer::View@{KMediaPlayer::View}}\index{KMediaPlayer::View@{KMediaPlayer::View}!Play@{Play}}\item[{\em 
Play\label{classKMediaPlayer_1_1View_w5w0}
}]Button that connects to {\bf Player::play}{\rm (p.\,\pageref{classKMediaPlayer_1_1Player_i1})}. \index{Stop@{Stop}!KMediaPlayer::View@{KMediaPlayer::View}}\index{KMediaPlayer::View@{KMediaPlayer::View}!Stop@{Stop}}\item[{\em 
Stop\label{classKMediaPlayer_1_1View_w5w1}
}]Button that connects to {\bf Player::stop}{\rm (p.\,\pageref{classKMediaPlayer_1_1Player_i2})}. \index{Pause@{Pause}!KMediaPlayer::View@{KMediaPlayer::View}}\index{KMediaPlayer::View@{KMediaPlayer::View}!Pause@{Pause}}\item[{\em 
Pause\label{classKMediaPlayer_1_1View_w5w2}
}]Button that connects to {\bf Player::pause}{\rm (p.\,\pageref{classKMediaPlayer_1_1Player_i0})}. \index{Seeker@{Seeker}!KMediaPlayer::View@{KMediaPlayer::View}}\index{KMediaPlayer::View@{KMediaPlayer::View}!Seeker@{Seeker}}\item[{\em 
Seeker\label{classKMediaPlayer_1_1View_w5w3}
}]A seeker that interfaces with {\bf Player::seek}{\rm (p.\,\pageref{classKMediaPlayer_1_1Player_i3})}. \index{All@{All}!KMediaPlayer::View@{KMediaPlayer::View}}\index{KMediaPlayer::View@{KMediaPlayer::View}!All@{All}}\item[{\em 
All\label{classKMediaPlayer_1_1View_w5w4}
}]Show all buttons. \end{description}
\end{Desc}



Definition at line 44 of file kmediaplayer/view.h.

\subsection{Constructor \& Destructor Documentation}
\index{KMediaPlayer::View@{KMedia\-Player::View}!View@{View}}
\index{View@{View}!KMediaPlayer::View@{KMedia\-Player::View}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KMedia\-Player::View::View ({\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name})}\label{classKMediaPlayer_1_1View_a0}


Your typical {\bf QWidget} constructor. 



Definition at line 33 of file view.cpp.

References All.

\subsection{Member Function Documentation}
\index{KMediaPlayer::View@{KMedia\-Player::View}!buttons@{buttons}}
\index{buttons@{buttons}!KMediaPlayer::View@{KMedia\-Player::View}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KMedia\-Player::View::buttons (void)}\label{classKMediaPlayer_1_1View_a2}


Return which buttons are being displayed. 



Definition at line 45 of file view.cpp.\index{KMediaPlayer::View@{KMedia\-Player::View}!videoWidget@{videoWidget}}
\index{videoWidget@{videoWidget}!KMediaPlayer::View@{KMedia\-Player::View}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QWidget} $\ast$ KMedia\-Player::View::video\-Widget ()}\label{classKMediaPlayer_1_1View_a3}


Return the {\bf QWidget} in which video is displayed. 

May Return 0L if there is none. 

Definition at line 84 of file view.cpp.

Referenced by set\-Video\-Widget().\index{KMediaPlayer::View@{KMedia\-Player::View}!setButtons@{setButtons}}
\index{setButtons@{setButtons}!KMediaPlayer::View@{KMedia\-Player::View}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMedia\-Player::View::set\-Buttons (int)\hspace{0.3cm}{\tt  [slot]}}\label{classKMediaPlayer_1_1View_i0}


Set which buttons to display. 

\begin{Desc}
\item[See also:]{\bf Button}{\rm (p.\,\pageref{classKMediaPlayer_1_1View_w5})}. \end{Desc}


Definition at line 50 of file view.cpp.

References buttons\-Changed().

Referenced by hide\-Button(), show\-Button(), and toggle\-Button().\index{KMediaPlayer::View@{KMedia\-Player::View}!button@{button}}
\index{button@{button}!KMediaPlayer::View@{KMedia\-Player::View}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KMedia\-Player::View::button (int)\hspace{0.3cm}{\tt  [slot]}}\label{classKMediaPlayer_1_1View_i1}


Returns if a particular button is being displayed. 



Definition at line 59 of file view.cpp.\index{KMediaPlayer::View@{KMedia\-Player::View}!showButton@{showButton}}
\index{showButton@{showButton}!KMediaPlayer::View@{KMedia\-Player::View}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMedia\-Player::View::show\-Button (int)\hspace{0.3cm}{\tt  [slot]}}\label{classKMediaPlayer_1_1View_i2}


Display a particular button. 



Definition at line 64 of file view.cpp.

References set\-Buttons().\index{KMediaPlayer::View@{KMedia\-Player::View}!hideButton@{hideButton}}
\index{hideButton@{hideButton}!KMediaPlayer::View@{KMedia\-Player::View}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMedia\-Player::View::hide\-Button (int)\hspace{0.3cm}{\tt  [slot]}}\label{classKMediaPlayer_1_1View_i3}


Stop displaying a particular button. 



Definition at line 69 of file view.cpp.

References set\-Buttons().\index{KMediaPlayer::View@{KMedia\-Player::View}!toggleButton@{toggleButton}}
\index{toggleButton@{toggleButton}!KMediaPlayer::View@{KMedia\-Player::View}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMedia\-Player::View::toggle\-Button (int)\hspace{0.3cm}{\tt  [slot]}}\label{classKMediaPlayer_1_1View_i4}


Toggle the display of a particular button. 



Definition at line 74 of file view.cpp.

References set\-Buttons().\index{KMediaPlayer::View@{KMedia\-Player::View}!buttonsChanged@{buttonsChanged}}
\index{buttonsChanged@{buttonsChanged}!KMediaPlayer::View@{KMedia\-Player::View}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMedia\-Player::View::buttons\-Changed (int)\hspace{0.3cm}{\tt  [signal]}}\label{classKMediaPlayer_1_1View_l0}


Emitted when the set of displayed buttons changes. 



Referenced by set\-Buttons().\index{KMediaPlayer::View@{KMedia\-Player::View}!setVideoWidget@{setVideoWidget}}
\index{setVideoWidget@{setVideoWidget}!KMediaPlayer::View@{KMedia\-Player::View}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMedia\-Player::View::set\-Video\-Widget ({\bf QWidget} $\ast$ {\em video\-Widget})\hspace{0.3cm}{\tt  [protected]}}\label{classKMediaPlayer_1_1View_b0}


The implementing view should set the widget in which the video will be displayed. 

{\bf KMedia\-Player}{\rm (p.\,\pageref{namespaceKMediaPlayer})} users may {\bf reparent()} it to somewhere else, for example.

Definition at line 79 of file view.cpp.

References video\-Widget().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kmediaplayer/view.h\item 
view.cpp\end{CompactItemize}
