Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/updater/src/gui/orxonox_gui_update.h @ 3259

Last change on this file since 3259 was 3259, checked in by bensch, 19 years ago

orxonox/branches/updater: ProgressBar works, just a funny play-thing…

File size: 1.9 KB
Line 
1/*!
2  \file orxonox_gui_update.h
3  \brief File that holds the class that creates the update-menu.
4*/
5
6#ifndef _ORXONOX_GUI_UPDATE_H
7#define _ORXONOX_GUI_UPDATE_H
8
9#include "orxonox_gui.h"
10#include <stdio.h>
11using namespace std;
12
13//! Class that creates the execute-Options.
14class OrxonoxGuiUpdate
15{
16 private:
17  Frame* updateFrame;          //!< The Frame that holds the updateOptions.
18  Box* updateBox;              //!< The Box that holds the updateOptions.
19 
20  Button* updateWindowButton;  //!< The Button that opens the update Window.
21  Window* updateWindow;        //!< A Window to update orxonox.
22  Box* updateWindowBox;        //!< A Box to hold the updateWindow-Optios.
23  Button* updateData;          //!< A Button to update the Data of orxonox.
24  Button* updateSource;        //!< A Button to update the Source of orxonox. \todo tricky
25  Button* updateWindowClose;   //!< A Button to Close the update Window
26  ProgressBar* updateDataBar;  //!< A Bar to display the progress of the download.
27  ProgressBar* updateSourceBar;//!< A Bar to display the progress of the download.
28  Window* updateDataWindow;    //!< A Window for the data-update.
29
30
31  Window* updateSourceWindow;  //!< A Window for the Source-update.
32  Box* updateSourceWindowBox;  //!< A Box for the Window for the Source-update.
33
34  Button* test;  //!< will be deleted soon.
35 
36#ifdef HAVE_GTK2
37  static gint updateDataFunc (GtkWidget* w, GdkEventKey* event, void* bar);
38  static gint updateSourceFunc (GtkWidget* w, GdkEventKey* event, void* bar);
39#endif /* HAVE_GTK2 */
40
41
42 public:
43  OrxonoxGuiUpdate ();
44  ~OrxonoxGuiUpdate ();
45 
46  Widget* getWidget ();
47 
48  void updateWindowCreate (void);
49  Button* updateWindowGetButton(void);
50
51  void updateDataWindowCreate (void);
52  Button* updateDataWindowGetButton(void);
53
54  void updateSourceWindowCreate (void);
55  Button* updateSourceWindowGetButton(void);
56};
57
58
59
60#endif /* _ORXONOX_GUI_UPDATE_H */
Note: See TracBrowser for help on using the repository browser.