changeset 35437:f812dd8ae52b

Add doxygen comments to actions.c.
author ib
date Fri, 30 Nov 2012 13:58:16 +0000
parents d3b0d3f62d6f
children b3efe5e9f0bf
files gui/ui/actions.c
diffstat 1 files changed, 54 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/actions.c	Fri Nov 30 13:07:39 2012 +0000
+++ b/gui/ui/actions.c	Fri Nov 30 13:58:16 2012 +0000
@@ -16,6 +16,11 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+/**
+ * @file
+ * @brief User interface actions
+ */
+
 #include <stdlib.h>
 #include <string.h>
 
@@ -39,6 +44,11 @@
 #include "mp_msg.h"
 #include "mplayer.h"
 
+/**
+ * @brief Switch video window fullscreen mode.
+ *
+ *        Switch normal video to fullscreen and fullscreen video to normal.
+ */
 void uiFullScreen(void)
 {
     if (!guiInfo.VideoWindow)
@@ -59,6 +69,9 @@
         wsSetBackgroundRGB(&guiApp.videoWindow, guiApp.video.R, guiApp.video.G, guiApp.video.B);
 }
 
+/**
+ * @brief Switch to play mode.
+ */
 void uiPlay(void)
 {
     if (guiInfo.Playing == GUI_PLAY)
@@ -81,6 +94,9 @@
     wsClearWindow(&guiApp.videoWindow);
 }
 
+/**
+ * @brief Switch to pause mode.
+ */
 void uiPause(void)
 {
     if (!guiInfo.Playing)
@@ -98,6 +114,9 @@
         guiInfo.Playing = GUI_PLAY;
 }
 
+/**
+ * @brief Adjust GUI items to reflect current state (i.e. current playing mode).
+ */
 void uiState(void)
 {
     if (guiInfo.Playing == GUI_STOP || guiInfo.Playing == GUI_PAUSE) {
@@ -109,18 +128,37 @@
     }
 }
 
+/**
+ * @brief Seek new playback position.
+ *
+ *       The new position is a relative one.
+ *
+ * @param sec seconds to seek (either forward (> 0) or backward (< 0))
+ */
 void uiRelSeek(float sec)
 {
     rel_seek_secs = sec;
     abs_seek_pos  = 0;
 }
 
+/**
+ * @brief Seek new playback position.
+ *
+ *       The new position is an absolute one.
+ *
+ * @param percent percentage of playback time to position to
+ */
 void uiAbsSeek(float percent)
 {
     rel_seek_secs = percent / 100.0;
     abs_seek_pos  = SEEK_ABSOLUTE | SEEK_FACTOR;
 }
 
+/**
+ * @brief Change to a different skin.
+ *
+ * @param name name of the skin to change to
+ */
 void uiChangeSkin(char *name)
 {
     int prev, bprev;
@@ -221,6 +259,13 @@
     wsSetLayer(wsDisplay, guiApp.menuWindow.WindowID, guiApp.videoWindow.isFullScreen);
 }
 
+/**
+ * @brief Set the current file name to be played.
+ *
+ * @param dir directory (optional, else NULL)
+ * @param name filename
+ * @param type stream type of the file
+ */
 void uiSetFileName(char *dir, char *name, int type)
 {
     if (!dir)
@@ -237,6 +282,9 @@
     nfree(guiInfo.SubtitleFilename);
 }
 
+/**
+ * @brief Set file to be played to current playlist entry.
+ */
 void uiCurr(void)
 {
     plItem *curr;
@@ -268,6 +316,9 @@
         uiEventHandling(evPlay, 0);
 }
 
+/**
+ * @brief Switch to previous playback track.
+ */
 void uiPrev(void)
 {
     int stop = 0;
@@ -329,6 +380,9 @@
         uiEventHandling(evPlay, 0);
 }
 
+/**
+ * @brief Switch to next playback track.
+ */
 void uiNext(void)
 {
     int stop = 0;