Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/branches/updater: better update presentation. only one sub-window

File size: 1.7 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  CheckButton* autoUpdate;     //!< A Checkbutton to enable the automatic Updating.
20
21 
22  Button* updateDataWindowButton;//!< A Button to update the Data of orxonox.
23  Window* updateDataWindow;    //!< A Window for the data-update.
24  Box* updateDataBox;          //!< A Box for the Window for the Data-update.
25  ProgressBar* updateDataBar;  //!< A Bar to display the progress of the download.
26
27
28  Button* updateSourceWindowButton;//!< A Button to update the Source of orxonox. \todo tricky
29  Window* updateSourceWindow;  //!< A Window for the Source-update.
30  Box* updateSourceBox;  //!< A Box for the Window for the Source-update.
31  ProgressBar* updateSourceBar;//!< A Bar to display the progress of the download.
32
33  Button* test;  //!< will be deleted soon.
34 
35#ifdef HAVE_GTK2
36  static gint updateDataFunc (GtkWidget* w, GdkEventKey* event, void* bar);
37  static gint updateSourceFunc (GtkWidget* w, GdkEventKey* event, void* bar);
38#endif /* HAVE_GTK2 */
39
40
41 public:
42  OrxonoxGuiUpdate ();
43  ~OrxonoxGuiUpdate ();
44 
45  Widget* getWidget ();
46 
47  void updateWindowCreate (void);
48  Button* updateWindowGetButton(void);
49
50  void updateDataWindowCreate (void);
51  Button* updateDataWindowGetButton(void);
52
53  void updateSourceWindowCreate (void);
54  Button* updateSourceWindowGetButton(void);
55};
56
57
58
59#endif /* _ORXONOX_GUI_UPDATE_H */
Note: See TracBrowser for help on using the repository browser.