[3250] | 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> |
---|
| 11 | using namespace std; |
---|
| 12 | |
---|
| 13 | //! Class that creates the execute-Options. |
---|
| 14 | class OrxonoxGuiUpdate |
---|
| 15 | { |
---|
| 16 | private: |
---|
| 17 | Frame* updateFrame; //!< The Frame that holds the updateOptions. |
---|
| 18 | Box* updateBox; //!< The Box that holds the updateOptions. |
---|
[3261] | 19 | CheckButton* autoUpdate; //!< A Checkbutton to enable the automatic Updating. |
---|
| 20 | |
---|
[3259] | 21 | |
---|
[3261] | 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. |
---|
[3259] | 25 | ProgressBar* updateDataBar; //!< A Bar to display the progress of the download. |
---|
[3257] | 26 | |
---|
[3259] | 27 | |
---|
[3261] | 28 | Button* updateSourceWindowButton;//!< A Button to update the Source of orxonox. \todo tricky |
---|
[3259] | 29 | Window* updateSourceWindow; //!< A Window for the Source-update. |
---|
[3261] | 30 | Box* updateSourceBox; //!< A Box for the Window for the Source-update. |
---|
| 31 | ProgressBar* updateSourceBar;//!< A Bar to display the progress of the download. |
---|
[3259] | 32 | |
---|
| 33 | Button* test; //!< will be deleted soon. |
---|
| 34 | |
---|
[3256] | 35 | #ifdef HAVE_GTK2 |
---|
[3259] | 36 | static gint updateDataFunc (GtkWidget* w, GdkEventKey* event, void* bar); |
---|
| 37 | static gint updateSourceFunc (GtkWidget* w, GdkEventKey* event, void* bar); |
---|
[3256] | 38 | #endif /* HAVE_GTK2 */ |
---|
[3254] | 39 | |
---|
| 40 | |
---|
[3250] | 41 | public: |
---|
| 42 | OrxonoxGuiUpdate (); |
---|
| 43 | ~OrxonoxGuiUpdate (); |
---|
| 44 | |
---|
| 45 | Widget* getWidget (); |
---|
| 46 | |
---|
[3253] | 47 | void updateWindowCreate (void); |
---|
| 48 | Button* updateWindowGetButton(void); |
---|
[3250] | 49 | |
---|
[3259] | 50 | void updateDataWindowCreate (void); |
---|
| 51 | Button* updateDataWindowGetButton(void); |
---|
| 52 | |
---|
| 53 | void updateSourceWindowCreate (void); |
---|
| 54 | Button* updateSourceWindowGetButton(void); |
---|
[3250] | 55 | }; |
---|
| 56 | |
---|
| 57 | |
---|
[3254] | 58 | |
---|
[3250] | 59 | #endif /* _ORXONOX_GUI_UPDATE_H */ |
---|