Changeset 2188
- Timestamp:
- 07/23/08 12:44:56 (1 month ago)
- Location:
- v2/branches/dev/monkey/src/variablesmanager
- Files:
-
- 2 modified
-
VariablesManager.cpp (modified) (5 diffs)
-
VariablesManager.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
v2/branches/dev/monkey/src/variablesmanager/VariablesManager.cpp
r1860 r2188 27 27 ** 28 28 ****************************************************************************/ 29 /*! 30 \file VariablesManager.cpp 31 \date 2008-01-14T00:37:18 32 \author Andrei KOPATS 33 \brief Implementation of VariablesManager class 34 */ 35 29 36 #include "VariablesManager.h" 30 37 … … 34 41 #include <QDateTime> 35 42 43 /*! 44 Class constructor 45 \param o Parent object. Passing to QObject constructor 46 */ 36 47 VariablesManager::VariablesManager( QObject* o ) 37 48 : QObject( o ) 38 49 {} 39 50 51 /*! 52 Get value of variable 53 \param locals Local dictionary of variables 54 \return Value of variable. Empty string, if variable is unknown 55 */ 40 56 QString VariablesManager::getVariable (QString name, Dictionary locals) 41 57 { … … 58 74 } 59 75 76 /*! 77 Check, if variable is set localy or globaly 78 \param name Name of variable 79 \param locals Local dictionary 80 \retval true Variable is set 81 \retval false Variable is not set 82 */ 60 83 bool VariablesManager::isSet (QString name, Dictionary& locals) 61 84 { … … 67 90 } 68 91 69 #include <QDebug> 92 /*! 93 Replace all variables in the text by it's values 94 \param text Text for processing 95 \param locals Local dictionary of variables 96 return New string 97 */ 70 98 QString VariablesManager::replaceAllVariables (QString text, Dictionary locals) 71 99 { … … 81 109 findedVariables.append (s); 82 110 p += rex.matchedLength(); 83 qWarning() << "var: " << s;84 111 } 85 112 // replace occurences -
v2/branches/dev/monkey/src/variablesmanager/VariablesManager.h
r1712 r2188 2 2 ** 3 3 ** Created using Monkey Studio v1.8.1.0 4 ** Authors : Filipe AZEVEDO aka Nox P@sNox <pasnox@gmail.com>4 ** Authors : Andrei KOPATS aka hlamer <hlamer@tut.by> 5 5 ** Project : Monkey Studio IDE 6 6 ** FileName : VariablesManager.h … … 27 27 ** 28 28 ****************************************************************************/ 29 /*! 30 \file VariablesManager.h 31 \date 2008-01-14T00:37:18 32 \author Andrei KOPATS 33 \brief Header for VariablesManager class 34 */ 35 29 36 #ifndef VARIABLESMANAGER_H 30 37 #define VARIABLESMANAGER_H … … 35 42 #include <QHash> 36 43 44 /*! 45 \brief Implementation of Variables Manager 46 Variables Manager allowing you to replace names of some variables 47 in the string with according values. 48 */ 37 49 class Q_MONKEY_EXPORT VariablesManager : public QObject, public QSingleton<VariablesManager> 38 50 {
