[Uml-devel] Attributes and project

Lauri Ojantakanen lauri.ojantakanen at iki.fi
Thu Jan 16 01:13:01 UTC 2003


Hi

I have a couple of suggestions for umbrello. 

In 1.1 the directory for generated code can only be defined globally 
(Settings->Configure Umbrello->Code Generation) and every time by running 
code gen. wizard. The problem is that the settings from code generation 
wizard is not saved to optionState. I would suggest that there is a need for 
project object where the current settings for directories, classes to be 
generated etc. information could be stored and this configuration data could 
be saved to the project file. Working with this could be for example:
- start umbrello
- edit some diagrams
- Project->New would start Code Generation Wizard, settings from this could be 
stored into project's config object (instance of KConfig can be used for this 
purpose), if there already is project object then older one could be rolled 
back and deleted
- Project->SaveAs could be used to give the name project file and saving the 
project object to the file
- Project->Save could be used to save the project object to the file (if no 
name given for the project file then same as Project->SaveAs) 
- Project->Open would open dialog where to open project file to restore old 
project data
- Project->Close would rollback project configuration data and restore values 
from global settings
- Code->Generate All Code could obey these settings

Scope for attributes could be private by default - my opinion is that this 
would promote data encapsulation. At least for me it would leave out some 
mouse clicks per attribute.
Constructor for UMLAttribute could be: 
UMLAttribute(QObject * parent, QString name, int id, QString type = "int", 
Scope s = Private, QString iv = 0);

BRgrds,

//lauri




More information about the umbrello-devel mailing list