[rkward-cvs] rkward/rkward/core rkvariable.cpp,1.24,1.25
Thomas Friedrichsmeier
tfry at users.sourceforge.net
Fri Apr 15 17:24:58 UTC 2005
Update of /cvsroot/rkward/rkward/rkward/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24359/core
Modified Files:
rkvariable.cpp
Log Message:
Hidded objects (names starting with a dot) only get hidden in the ObjectListView, too(previously not generated at all)
Index: rkvariable.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/core/rkvariable.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** rkvariable.cpp 2 Apr 2005 08:48:09 -0000 1.24
--- rkvariable.cpp 15 Apr 2005 17:24:56 -0000 1.25
***************
*** 129,138 ****
if (new_var_type != var_type) RKGlobals::tracker ()->objectMetaChanged (this);
! parent->childUpdateComplete ();
!
! RCommand *command = new RCommand ("class (" + getFullName () + ")", RCommand::App | RCommand::Sync | RCommand::GetStringVector, "", this, UPDATE_CLASS_COMMAND);
! RKGlobals::rInterface ()->issueCommand (command, RKGlobals::rObjectList()->getUpdateCommandChain ());
-
} else if (command->getFlags () == GET_STORAGE_MODE_COMMAND) {
RK_ASSERT (command->intVectorLength () == 2);
--- 129,135 ----
if (new_var_type != var_type) RKGlobals::tracker ()->objectMetaChanged (this);
! RCommand *ncommand = new RCommand ("class (" + getFullName () + ")", RCommand::App | RCommand::Sync | RCommand::GetStringVector, "", this, UPDATE_CLASS_COMMAND);
! RKGlobals::rInterface ()->issueCommand (ncommand, RKGlobals::rObjectList()->getUpdateCommandChain ());
} else if (command->getFlags () == GET_STORAGE_MODE_COMMAND) {
RK_ASSERT (command->intVectorLength () == 2);
***************
*** 190,193 ****
--- 187,191 ----
} else if (command->getFlags () == UPDATE_CLASS_COMMAND) {
if (num_classes != command->stringVectorLength ()) {
+ // TODO: clean deletion of classnames. need to valgrind one day, anyway
num_classes = command->stringVectorLength ();
delete classname;
***************
*** 200,206 ****
--- 198,220 ----
}
if (properties_changed) RKGlobals::tracker ()->objectMetaChanged (this);
+
+ parent->childUpdateComplete ();
}
}
+ QString RKVariable::makeClassString (const QString &sep)
+ {
+ RK_TRACE (OBJECTS);
+ QString ret;
+ for (int i=0; i < num_classes; ++i) {
+ ret.append (classname[i]);
+ if (i < (num_classes - 1)) {
+ ret.append (sep);
+ }
+ }
+ return ret;
+
+ }
+
////////////////////// BEGIN: data-handling //////////////////////////////
#define ALLOC_STEP 100
***************
*** 946,962 ****
/////////////////// END: data-handling ///////////////////////////
-
-
- QString RKVariable::makeClassString (const QString &sep)
- {
- RK_TRACE (OBJECTS);
- QString ret;
- for (int i=0; i < num_classes; ++i) {
- ret.append (classname[i]);
- if (i < (num_classes - 1)) {
- ret.append (sep);
- }
- }
- return ret;
-
- }
--- 960,961 ----
More information about the rkward-tracker
mailing list