Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7635 in orxonox.OLD for branches/qt_gui/src/lib


Ignore:
Timestamp:
May 17, 2006, 10:12:33 AM (19 years ago)
Author:
bensch
Message:

orxonox/qt_gui: less debug

Location:
branches/qt_gui/src/lib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/lib/event/key_mapper.cc

    r7256 r7635  
    7171 * and you do not have to care about The namings, as they might change
    7272 */
    73 orxKeyMapping map[] = {
     73KeyMapper::KeyMapping KeyMapper::map[] = {
    7474  {&KeyMapper::PEV_FORWARD,              CONFIG_NAME_PLAYER_FORWARD},
    7575  {&KeyMapper::PEV_BACKWARD,             CONFIG_NAME_PLAYER_BACKWARD},
     
    104104  {&KeyMapper::PEV_PAUSE,                CONFIG_NAME_PAUSE},
    105105  {&KeyMapper::PEV_QUIT,                 CONFIG_NAME_QUIT},
    106   {NULL, NULL}
     106  {NULL, ""}
    107107};
    108108
     
    266266  for(int i = 0; map[i].pValue != NULL; ++i)
    267267    {
    268       PRINT(0)("%s = %i\n",map[i].pName, *map[i].pValue);
     268      PRINT(0)("%s = %i\n",map[i].pName.c_str(), *map[i].pValue);
    269269    }
    270270  PRINT(0)("=======================================================\n");
  • branches/qt_gui/src/lib/event/key_mapper.h

    r7256 r7635  
    1010
    1111#include "base_object.h"
    12 //#include "event_def.h"
    13 
     12#include <string>
    1413class IniParser;
    1514
    16 //! A mapping from key-name to key-id
    17 typedef struct orxKeyMapping
     15//! The map class functionalities
     16class KeyMapper : public BaseObject
    1817{
    19   int* pValue;
    20   char* pName;
    21 };
     18public:
     19  //! A mapping from key-name to key-id
     20  typedef struct KeyMapping
     21  {
     22    int* pValue;
     23    const std::string pName;
     24  };
    2225
    23 
    24 //! The map class functionalities
    25 class KeyMapper : public BaseObject {
    26 
    27  public:
     26public:
    2827  KeyMapper();
    2928  virtual ~KeyMapper();
     
    3332  void loadKeyBindings(IniParser* iniParser);
    3433
     34  static const KeyMapping* const getKeyMapping() { return KeyMapper::map; };
     35
    3536  void debug();
    3637
    37  private:
     38private:
    3839  int* nameToIndex (const std::string& name);
    3940  void mapKeys(const std::string& name, int* index);
    4041
    41  public:
     42public:
    4243  static int PEV_FORWARD;           //!< forward button
    4344  static int PEV_BACKWARD;          //!< backward buttton
     
    7374  static int PEV_QUIT;              //!< quit button
    7475
    75  private:
    76   int         coord[2];              //!< temp place to save variables in nameToIndex() function
     76private:
     77  int                coord[2];      //!< temp place to save variables in nameToIndex() function
     78  static KeyMapping  map[];         //!< The KeyMapping that maps strings to ID's and Vice Versa
    7779};
    7880
  • branches/qt_gui/src/lib/gui/gui_saveable.cc

    r7633 r7635  
    1414*/
    1515
    16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
     16#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GUI
    1717
    1818#include "gui_saveable.h"
  • branches/qt_gui/src/lib/util/preferences.cc

    r7630 r7635  
    274274    }
    275275  }
    276 
     276  /// HACK DO WE HAVE TO CHECK THIS??
    277277  //if ( didChanges )
    278278  {
    279     iniParser.debug();
    280279    iniParser.writeFile( this->fileName );
    281280  }
Note: See TracChangeset for help on using the changeset viewer.