Further New Class dialog improvements

Roberto Raggi roberto at kdevelop.org
Sat Feb 1 15:45:06 UTC 2003


On Sat, 2003-02-01 at 15:40, Alexander Dymo wrote:
> Hello!
> I've maked some further improvements to 
> "New Class" dialog  and tokenizer.l in parts/cppsupport.
> 
> They are:
> 
> tokenizer.l:
> 
> * class parser is now correctly recognizes multiple Q_ENUMS and
>   Q_PROPERTY in header files (for example qwidget.h) 
> 
> 
> cppnewclassdlg:
> 
> * interface is more consistent
> 	- correct tab order
> 	- some widgets are disabled/enabled automatically
> 	  (for example namespace edit is disabled when
> 	  objective-c is used)
> 
> * baseclass edit widget is now KLineEdit with completion
>   (classes are taken from classstores)
> 
> * "Class is Q_OBJECT" check box added for those classes
>   which need Q_OBJECT macro included in declaration
> 
> * "Generate GTK+ Class" check box added - the resulting
>   code will be GTK+ class (tempaltes are copied from Anjuta)
> 
> * "Move Up" and "Move Down" buttons added, they change
>   baseclass order in the list of base classes
> 
> * Advanced Inheritance 
>   This means three new features:
> 1) automated constructor creation
> If the base class is found in class store the dialog will prompt
> to implement base class constructors (see example on the
> screenshot for QListViewItem childclass).
> Interface also tries to support constructor implementing 
> when multiple inheritance is used.
> 
> 2) automated method overriding
> Methods from base classes could be overrided by a mouse click,
> they can also extend base class functionality
> (call something as baseclass::method(args)) or replace
> base class functionality.
> 
> 3) automated access control
> Access modifiers of methods and attributes can be upgraded,
> for example protected method could be declared as
> public:
> 	using baseclass::method;
> 
> 
> If there is no objections, I can commit.
WOW!!! i like it ;) 

ciao robe






More information about the KDevelop-devel mailing list