Changeset 7661 in orxonox.OLD for trunk/src/lib/gui
- Timestamp:
- May 18, 2006, 12:55:34 AM (19 years ago)
- Location:
- trunk/src/lib/gui
- Files:
-
- 5 edited
- 23 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/Makefile.am
r5315 r7661 1 SUBDIRS = gtk_gui \ 2 gl_gui 1 MAINSRCDIR=../.. 2 include $(MAINSRCDIR)/defs/include_paths.am 3 4 AM_LDFLAGS = 5 6 noinst_LIBRARIES = libORXbasegui.a 7 8 9 libORXbasegui_a_SOURCES = \ 10 gui_element.cc \ 11 gui_saveable.cc \ 12 gui.cc 13 14 15 noinst_HEADERS= \ 16 gui_element.h \ 17 gui_saveable.h \ 18 gui.h 19 20 21 EXTRA_DIST = 22 23 SUBDIRS = \ 24 . \ 25 gl_gui \ 26 qt_gui 27 28 # gtk_gui -
trunk/src/lib/gui/gtk_gui/Makefile.am
r5463 r7661 2 2 include $(MAINSRCDIR)/defs/include_paths.am 3 3 4 noinst_LIBRARIES = libORXg ui.a4 noinst_LIBRARIES = libORXgtkgui.a 5 5 6 libORXgui_a_CPPFLAGS = -DBUILD_ORXONOX \ 7 $(GTK2_CFLAGS) $(GTHREAD_CFLAGS) $(CURL_CFLAGS) $(MSBITFIELDS) 6 libORXgtkgui_a_CPPFLAGS = \ 7 -DBUILD_ORXONOX \ 8 $(GTK2_CFLAGS) $(GTHREAD_CFLAGS) $(CURL_CFLAGS) $(MSBITFIELDS) 8 9 9 libORXgui_a_SOURCES = gui.cc \ 10 gui_gtk.cc \ 11 gui_element.cc \ 12 gui_video.cc \ 13 gui_audio.cc \ 14 gui_exec.cc \ 15 gui_flags.cc \ 16 gui_banner.cc \ 17 gui_keys.cc \ 18 gui_update.cc 10 libORXgtkgui_a_SOURCES = \ 11 gui.cc \ 12 gui_gtk.cc \ 13 gui_element.cc \ 14 gui_video.cc \ 15 gui_audio.cc \ 16 gui_exec.cc \ 17 gui_flags.cc \ 18 gui_banner.cc \ 19 gui_keys.cc \ 20 gui_update.cc 19 21 20 22 noinst_HEADERS= gui.h \ 21 22 23 24 25 26 27 28 29 23 gui_gtk.h \ 24 gui_element.h \ 25 gui_video.h \ 26 gui_audio.h \ 27 gui_exec.h \ 28 gui_flags.h \ 29 gui_banner.h \ 30 gui_keys.h \ 31 gui_update.h 30 32 31 33 EXTRA_DIST = rc \ -
trunk/src/lib/gui/gtk_gui/gui_element.h
r5039 r7661 1 /*! 1 /*! 2 2 * @file gui_element.h 3 3 * Definition of ... 4 4 5 5 */ … … 16 16 GuiElement(); 17 17 virtual ~GuiElement(); 18 18 19 19 /** @returns the main Widget of this GuiElement. */ 20 Widget* getWidget() { return this->mainWidget;}20 Widget* getWidget() { return this->mainWidget; } 21 21 protected: 22 22 void setMainWidget(Widget* widget); 23 23 24 24 private: 25 25 Widget* mainWidget; -
trunk/src/lib/gui/gtk_gui/gui_exec.cc
r7221 r7661 26 26 #include "gui_exec.h" 27 27 28 #include "file.h" 28 29 #include "util/loading/resource_manager.h" 29 30 #include "parser/ini_parser/ini_parser.h" … … 33 34 #include <sys/stat.h> 34 35 #include <sys/types.h> 36 35 37 36 38 … … 147 149 void GuiExec::setConfDir(const char* confDir) 148 150 { 149 this->confDir = ResourceManager::homeDirCheck(confDir);151 this->confDir = File(confDir).name(); 150 152 151 153 PRINTF(5)("Config Directory is: %s.\n", this->confDir); … … 199 201 IniParser iniParser; 200 202 this->writeFileText(widget, &iniParser, 0); 201 std::string fileName = ResourceManager::homeDirCheck(confFile); 202 iniParser.writeFile(fileName); 203 iniParser.writeFile(File(confFile).name()); 203 204 } 204 205 … … 253 254 void GuiExec::readFromFile(Widget* widget) 254 255 { 255 std::string fileName = ResourceManager::homeDirCheck(confFile);256 std::string fileName = File(confFile).name(); 256 257 IniParser iniParser(fileName); 257 258 if (!iniParser.isOpen()) -
trunk/src/lib/gui/gtk_gui/gui_update.cc
r5766 r7661 51 51 52 52 this->updateFrame = new Frame("Update-Options:"); 53 this->updateFrame->setGroupName(CONFIG_SECTION_ DATA);53 this->updateFrame->setGroupName(CONFIG_SECTION_GENERAL); 54 54 this->updateBox = new Box('v'); 55 55
Note: See TracChangeset
for help on using the changeset viewer.