Skip to content

Commit

Permalink
Updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jgehring committed May 24, 2010
1 parent 46bf3de commit f269bc7
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 10 deletions.
13 changes: 7 additions & 6 deletions Doxyfile
Expand Up @@ -9,10 +9,10 @@ PROJECT_NUMBER =
OUTPUT_DIRECTORY = doc
CREATE_SUBDIRS = NO
OUTPUT_LANGUAGE = English
BRIEF_MEMBER_DESC = YES
REPEAT_BRIEF = NO
BRIEF_MEMBER_DESC = NO
REPEAT_BRIEF = YES
ABBREVIATE_BRIEF =
ALWAYS_DETAILED_SEC = NO
ALWAYS_DETAILED_SEC = YES
INLINE_INHERITED_MEMB = NO
FULL_PATH_NAMES = YES
STRIP_FROM_PATH =
Expand Down Expand Up @@ -47,7 +47,7 @@ EXTRACT_STATIC = NO
EXTRACT_LOCAL_CLASSES = NO
EXTRACT_LOCAL_METHODS = NO
EXTRACT_ANON_NSPACES = NO
HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_MEMBERS = YES
HIDE_UNDOC_CLASSES = NO
HIDE_FRIEND_COMPOUNDS = NO
HIDE_IN_BODY_DOCS = NO
Expand All @@ -57,7 +57,7 @@ HIDE_SCOPE_NAMES = NO
SHOW_INCLUDE_FILES = YES
FORCE_LOCAL_INCLUDES = NO
INLINE_INFO = YES
SORT_MEMBER_DOCS = YES
SORT_MEMBER_DOCS = NO
SORT_BRIEF_DOCS = NO
SORT_MEMBERS_CTORS_1ST = NO
SORT_GROUP_NAMES = NO
Expand Down Expand Up @@ -219,7 +219,8 @@ EXPAND_ONLY_PREDEF = YES
SEARCH_INCLUDES = YES
INCLUDE_PATH =
INCLUDE_FILE_PATTERNS =
PREDEFINED = Q_ENUMS(x)=
PREDEFINED = Q_ENUMS(x)= \
Q_PROPERTY(x)= \
EXPAND_AS_DEFINED =
SKIP_FUNCTION_MACROS = YES
#---------------------------------------------------------------------------
Expand Down
85 changes: 81 additions & 4 deletions src/qmpwidget.cpp
Expand Up @@ -458,6 +458,7 @@ QMPwidget::MediaInfo::MediaInfo()

/*!
* \brief Constructor
*
* \param parent Parent widget
*/
QMPwidget::QMPwidget(QWidget *parent)
Expand Down Expand Up @@ -504,6 +505,7 @@ QMPwidget::~QMPwidget()

/*!
* \brief Returns the current MPlayer process state
*
* \returns The process state
*/
QMPwidget::State QMPwidget::state() const
Expand All @@ -516,6 +518,7 @@ QMPwidget::State QMPwidget::state() const
* \details
* Please check QMPwidget::MediaInfo::ok to make sure the media
* information has been fully parsed.
*
* \returns The media info object
*/
QMPwidget::MediaInfo QMPwidget::mediaInfo() const
Expand All @@ -525,7 +528,9 @@ QMPwidget::MediaInfo QMPwidget::mediaInfo() const

/*!
* \brief Returns the current playback position
*
* \returns The current playback position in seconds
* \sa seek()
*/
double QMPwidget::tell() const
{
Expand All @@ -536,7 +541,9 @@ double QMPwidget::tell() const
* \brief Sets the video playback mode
* \details
* Please see \ref playbackmodes for a discussion of the available modes.
* \param Mode The video playback mode
*
* \param mode The video playback mode
* \sa mode()
*/
void QMPwidget::setMode(Mode mode)
{
Expand All @@ -549,24 +556,72 @@ void QMPwidget::setMode(Mode mode)

/*!
* \brief Returns the current video playback mode
*
* \returns The current video playback mode
* \sa setMode()
*/
QMPwidget::Mode QMPwidget::mode() const
{
return m_process->m_mode;
}

/*!
* \brief Sets the video output mode
* \details
* The video output mode string will be passed to MPlayer using its \p -vo option.
* Please see http://www.mplayerhq.hu/DOCS/HTML/en/video.html for an overview of
* available video output modes.
*
* Per default, this string will have the following values:
* <table>
* <tr><th>System</th><th>Configuration</th><th>Value</th></tr>
* <tr>
* <td>Windows</td>
* <td></td>
* <td>\p "directx,directx:noaccel"</td>
* </tr>
* <tr>
* <td>X11</td>
* <td>Compiled without OpenGL support</td>
* <td>\p "xv"</td>
* </tr>
* <tr>
* <td>X11</td>
* <td>Compiled with OpenGL support</td>
* <td>\p "gl2,gl,xv"</td>
* </tr>
* <tr>
* <td>Mac OS X</td>
* <td>Compiled without OpenGL support</td>
* <td>\p "quartz"</td>
* </tr>
* <tr>
* <td>Mac OS X</td>
* <td>Compiled with OpenGL support</td>
* <td>\p "gl,quartz"</td>
* </tr>
* </table>
*
*
* \param output The video output mode string
* \sa videoOutput()
*/
void QMPwidget::setVideoOutput(const QString &output)
{
m_process->m_videoOutput = output;
}

/*!
* \brief Returns the current video output mode
*
* \returns The current video output mode
* \sa setVideoOutput()
*/
QString QMPwidget::videoOutput() const
{
return m_process->m_videoOutput;
}


/*!
* \brief Sets the path to the MPlayer executable
* \details
Expand All @@ -575,6 +630,7 @@ QString QMPwidget::videoOutput() const
* set to "mplayer".
*
* \param path Path to the MPlayer executable
* \sa mplayerPath()
*/
void QMPwidget::setMPlayerPath(const QString &path)
{
Expand All @@ -583,14 +639,22 @@ void QMPwidget::setMPlayerPath(const QString &path)

/*!
* \brief Returns the current path to the MPlayer executable
*
* \returns The path to the MPlayer executable
* \sa setMPlayerPath()
*/
QString QMPwidget::mplayerPath() const
{
return m_process->m_mplayerPath;
}

/*
* \brief Returns the version number of the MPlayer executable
/*!
* \brief Returns the version string of the MPlayer executable
* \details
* If the mplayer
*
*
* \returns The version string of the MPlayer executable
*/
QString QMPwidget::mplayerVersion()
{
Expand Down Expand Up @@ -699,6 +763,7 @@ void QMPwidget::stop()
* \param offset Seeking offset in seconds
* \param whence Seeking mode
* \returns \p true If the seeking mode is valid
* \sa tell()
*/
bool QMPwidget::seek(int offset, int whence)
{
Expand All @@ -711,6 +776,7 @@ bool QMPwidget::seek(int offset, int whence)
* \param offset Seeking offset in seconds
* \param whence Seeking mode
* \returns \p true If the seeking mode is valid
* \sa tell()
*/
bool QMPwidget::seek(double offset, int whence)
{
Expand Down Expand Up @@ -786,6 +852,8 @@ void QMPwidget::writeCommand(const QString &command)
* \brief Mouse double click event handler
* \details
* This implementation will toggle full screen and accept the event
*
* \param event Mouse event
*/
void QMPwidget::mouseDoubleClickEvent(QMouseEvent *event)
{
Expand All @@ -798,6 +866,8 @@ void QMPwidget::mouseDoubleClickEvent(QMouseEvent *event)
* \details
* This implementation tries to resemble the classic MPlayer interface. For a
* full list of supported key codes, see \ref shortcuts.
*
* \param event Key event
*/
void QMPwidget::keyPressEvent(QKeyEvent *event)
{
Expand Down Expand Up @@ -869,6 +939,13 @@ void QMPwidget::keyPressEvent(QKeyEvent *event)
event->setAccepted(accept);
}

/*!
* \brief Resize event handler
* \details
* If you reimplement this function, you need to call this handler, too.
*
* \param event Resize event
*/
void QMPwidget::resizeEvent(QResizeEvent *event)
{
Q_UNUSED(event);
Expand Down

0 comments on commit f269bc7

Please sign in to comment.