summaryrefslogtreecommitdiff
path: root/src/screen/screen_analyze.c
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-08-16 21:00:29 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-08-16 21:00:29 +0000
commitc68df329f2483d8fc9b75488c695787cd18c20a4 (patch)
tree18e11cd70360c77606ecdeafe5dbd8f9ff0c12d7 /src/screen/screen_analyze.c
parent753fde16397b5943091aa1e9112cea1e5ded0ca5 (diff)
- vsetky widegety pouzivaju widget_t
( priparava na kontajner s widgetmi ) git-svn-id: http://opensvn.csie.org/tuxanci_ng@201 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/screen/screen_analyze.c')
-rw-r--r--src/screen/screen_analyze.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/screen/screen_analyze.c b/src/screen/screen_analyze.c
index 7723f94..ee42a90 100644
--- a/src/screen/screen_analyze.c
+++ b/src/screen/screen_analyze.c
@@ -17,18 +17,19 @@
#include "screen_mainMenu.h"
#include "screen_analyze.h"
+#include "widget.h"
#include "widget_label.h"
#include "widget_button.h"
#include "widget_image.h"
-static widget_image_t *image_backgorund;
+static widget_t *image_backgorund;
static list_t *listWidgetLabelName;
static list_t *listWidgetLabelScore;
static list_t *listAnalyze;
-static widget_label_t *widgetLabelMsg;
+static widget_t *widgetLabelMsg;
-static widget_button_t *button_ok;
+static widget_t *button_ok;
static analyze_t* newAnalyze(char *name, int score)
{
@@ -56,20 +57,20 @@ void startScreenAnalyze()
void drawScreenAnalyze()
{
- widget_label_t *this;
+ widget_t *this;
int i;
drawWidgetImage(image_backgorund);
for( i = 0 ; i < listWidgetLabelName->count ; i++ )
{
- this = (widget_label_t *)(listWidgetLabelName->list[i]);
+ this = (widget_t *)(listWidgetLabelName->list[i]);
drawWidgetLabel(this);
}
for( i = 0 ; i < listWidgetLabelScore->count ; i++ )
{
- this = (widget_label_t *)(listWidgetLabelScore->list[i]);
+ this = (widget_t *)(listWidgetLabelScore->list[i]);
drawWidgetLabel(this);
}
@@ -90,9 +91,9 @@ void stopScreenAnalyze()
static void eventWidget(void *p)
{
- widget_button_t *button;
+ widget_t *button;
- button = (widget_button_t *)(p);
+ button = (widget_t *)(p);
if( button == button_ok )
{