changeset 35688:6fd886ce32b9

Cosmetic: Rename wItem guiItem. Because that's what it is - a GUI item.
author ib
date Fri, 18 Jan 2013 17:35:07 +0000
parents 6996700b8d1f
children 411ae24eef28
files gui/app/app.c gui/app/app.h gui/skin/font.c gui/skin/font.h gui/skin/skin.c gui/ui/main.c gui/ui/playbar.c gui/ui/render.c gui/ui/render.h
diffstat 9 files changed, 32 insertions(+), 32 deletions(-) [+]
line wrap: on
line diff
--- a/gui/app/app.c	Fri Jan 18 17:24:54 2013 +0000
+++ b/gui/app/app.c	Fri Jan 18 17:35:07 2013 +0000
@@ -90,7 +90,7 @@
  *
  * @param item item to be freed
  */
-static void appClearItem(wItem *item)
+static void appClearItem(guiItem *item)
 {
     bpFree(&item->Bitmap);
     bpFree(&item->Mask);
@@ -157,9 +157,9 @@
  *
  * @return pointer to the item (ok) or NULL (not found)
  */
-wItem *appFindItem(int event)
+guiItem *appFindItem(int event)
 {
-    wItem *item;
+    guiItem *item;
     int i, n;
 
     if (guiApp.videoWindow.isFullScreen && guiApp.playbarIsPresent) {
--- a/gui/app/app.h	Fri Jan 18 17:24:54 2013 +0000
+++ b/gui/app/app.h	Fri Jan 18 17:35:07 2013 +0000
@@ -140,41 +140,41 @@
     int last_x;
 
     int pressed;
-} wItem;
+} guiItem;
 
 /// Maximum GUI items
 #define MAX_ITEMS 64
 
 typedef struct {
-    wItem main;
+    guiItem main;
     wsWindow mainWindow;
     int mainDecoration;
 
-    wItem video;
+    guiItem video;
     wsWindow videoWindow;
 
-    wItem playbar;
+    guiItem playbar;
     wsWindow playbarWindow;
     int playbarIsPresent;
 
-    wItem menu;
-    wItem menuSelected;
+    guiItem menu;
+    guiItem menuSelected;
     wsWindow menuWindow;
     int menuIsPresent;
 
     int IndexOfMainItems;
-    wItem mainItems[MAX_ITEMS];
+    guiItem mainItems[MAX_ITEMS];
 
     int IndexOfPlaybarItems;
-    wItem playbarItems[MAX_ITEMS];
+    guiItem playbarItems[MAX_ITEMS];
 
     int IndexOfMenuItems;
-    wItem menuItems[MAX_ITEMS];
+    guiItem menuItems[MAX_ITEMS];
 } guiItems;
 
 extern guiItems guiApp;
 
-wItem *appFindItem(int event);
+guiItem *appFindItem(int event);
 int appFindMessage(const char *name);
 void appFreeStruct(void);
 void btnModify(int event, float state);
--- a/gui/skin/font.c	Fri Jan 18 17:24:54 2013 +0000
+++ b/gui/skin/font.c	Fri Jan 18 17:35:07 2013 +0000
@@ -336,7 +336,7 @@
  *
  * @return image containing the rendered text
  */
-guiImage *fntTextRender(wItem *item, int px, char *txt)
+guiImage *fntTextRender(guiItem *item, int px, char *txt)
 {
     unsigned char *u;
     unsigned int i;
--- a/gui/skin/font.h	Fri Jan 18 17:24:54 2013 +0000
+++ b/gui/skin/font.h	Fri Jan 18 17:35:07 2013 +0000
@@ -43,7 +43,7 @@
 int fntFindID(char *name);
 void fntFreeFont(void);
 int fntRead(char *path, char *fname);
-guiImage *fntTextRender(wItem *item, int px, char *txt);
+guiImage *fntTextRender(guiItem *item, int px, char *txt);
 int fntTextWidth(int id, char *str);
 
 #endif /* MPLAYER_GUI_FONT_H */
--- a/gui/skin/skin.c	Fri Jan 18 17:24:54 2013 +0000
+++ b/gui/skin/skin.c	Fri Jan 18 17:35:07 2013 +0000
@@ -52,9 +52,9 @@
 static unsigned char path[512];
 
 static unsigned char currWinName[32];
-static wItem *currWin;
+static guiItem *currWin;
 static int *currWinItemIdx;
-static wItem *currWinItems;
+static guiItem *currWinItems;
 
 /**
  * @brief Display a skin error message.
@@ -130,9 +130,9 @@
  *
  * @return pointer to next free item (ok) or NULL (error)
  */
-static wItem *next_item(void)
+static guiItem *next_item(void)
 {
-    wItem *item = NULL;
+    guiItem *item = NULL;
 
     if (*currWinItemIdx < MAX_ITEMS - 1) {
         (*currWinItemIdx)++;
@@ -384,7 +384,7 @@
     unsigned char file[512];
     int x, y, w, h, message;
     char msg[32];
-    wItem *item;
+    guiItem *item;
 
     if (!window_item("button"))
         return 1;
@@ -455,7 +455,7 @@
 static int item_selected(char *in)
 {
     unsigned char file[512];
-    wItem *currItem;
+    guiItem *currItem;
 
     if (!window_item("selected"))
         return 1;
@@ -499,7 +499,7 @@
 {
     int x, y, w, h, message;
     char msg[32];
-    wItem *item;
+    guiItem *item;
 
     if (!window_item("menu"))
         return 1;
@@ -559,7 +559,7 @@
     unsigned char phfname[256];
     unsigned char buf[512];
     int pwidth, pheight, ph, d, x, y, w, h, message;
-    wItem *item;
+    guiItem *item;
 
     if (!window_item("h/v potmeter"))
         return 1;
@@ -649,7 +649,7 @@
 static int item_vpotmeter(char *in)
 {
     int r;
-    wItem *item;
+    guiItem *item;
 
     r = item_hpotmeter(in);
 
@@ -675,7 +675,7 @@
     unsigned char phfname[256];
     unsigned char buf[512];
     int ph, d, x, y, w, h, message;
-    wItem *item;
+    guiItem *item;
 
     if (!window_item("potmeter"))
         return 1;
@@ -794,7 +794,7 @@
     int x, y, id;
     char fnt[256];
     char txt[256];
-    wItem *item;
+    guiItem *item;
 
     if (!window_item("slabel"))
         return 1;
@@ -857,7 +857,7 @@
     int x, y, w, a, id;
     char fnt[256];
     char txt[256];
-    wItem *item;
+    guiItem *item;
 
     if (!window_item("dlabel"))
         return 1;
--- a/gui/ui/main.c	Fri Jan 18 17:24:54 2013 +0000
+++ b/gui/ui/main.c	Fri Jan 18 17:35:07 2013 +0000
@@ -423,7 +423,7 @@
 {
  static int     itemtype = 0;
         int     i;
-        wItem * item = NULL;
+        guiItem * item = NULL;
         float   value = 0.0f;
 
  static int     SelectedItem = -1;
--- a/gui/ui/playbar.c	Fri Jan 18 17:24:54 2013 +0000
+++ b/gui/ui/playbar.c	Fri Jan 18 17:35:07 2013 +0000
@@ -119,7 +119,7 @@
 {
  static int     itemtype = 0;
         int     i;
-        wItem * item = NULL;
+        guiItem * item = NULL;
 	float   value = 0.0f;
 
  static int     SelectedItem = -1;
--- a/gui/ui/render.c	Fri Jan 18 17:24:54 2013 +0000
+++ b/gui/ui/render.c	Fri Jan 18 17:35:07 2013 +0000
@@ -304,9 +304,9 @@
     }
 }
 
-void RenderAll(wsWindow *window, wItem *Items, int nrItems, char *db)
+void RenderAll(wsWindow *window, guiItem *Items, int nrItems, char *db)
 {
-    wItem *item;
+    guiItem *item;
     guiImage *image = NULL;
     int i, ofs;
 
--- a/gui/ui/render.h	Fri Jan 18 17:24:54 2013 +0000
+++ b/gui/ui/render.h	Fri Jan 18 17:35:07 2013 +0000
@@ -21,6 +21,6 @@
 
 #include "gui/app/app.h"
 
-void RenderAll(wsWindow *window, wItem *Items, int nrItems, char *db);
+void RenderAll(wsWindow *window, guiItem *Items, int nrItems, char *db);
 
 #endif /* MPLAYER_GUI_RENDER_H */