List Info

Thread: kdev-model-and-api-experiments merge planned for Saturday




kdev-model-and-api-experiments merge planned for Saturday
user name
2006-09-16 03:52:06
Hi,

I plan on merging my kdev-model-and-api-experiments branch
back into trunk on 
Saturday, in about 12 hours from now.

Here's what's changed:

Nothing inherits from KDevProject anymore. This means that
if your project 
manager was inheriting from KDevProject like
KDevProjectManager was, then 
it'll need to be changed. Several methods in KDevProject
have also been 
renamed. Here is the list of conversions:

openProject -> open
closeProject -> close
projectDirectory -> folder
absoluteUrl -> urlRelativeToProject
projectName -> name

KDevProject::relativeUrl has been deprecated. a name
property has been added 
to KDevProject with the accompanying accessors setName and
name. This is so 
that the name of the project no longer depends on the name
of the project 
file.

KDevPluginController has been given a massive overhaul. It
is no longer 
managed by KDevCore. So code that used
KDevCore::pluginController should use 
KDevPluginController::self(). This is due, in part, to the
strict nature of 
the way KDevCore objects are cleaned up. 

!!! IMPORTANT !!! Plugins must have an X-KDE-PluginInfo-Name
key in their 
desktop file or they will not be found or loaded by the new
plugin 
controller! It is preferable to fill in the whole
X-KDE-PluginInfo structure, 
but X-KDE-PluginInfo-Name is the only key required. 

The project model is now based on QStandardItemModel and
QStandardItem. The 
project model is now populated by the KDevProject object
itself when open() 
is called and can be accessed using the model() function.

I'm really satisfied with this round of API changes and I
hope you will be 
too. As always, feedback is appreciated.

Thanks
-- 
Matt

_______________________________________________
KDevelop-devel mailing list
KDevelop-develbarney.cs.uni-potsdam.de
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel
kdev-model-and-api-experiments merge planned for Saturday
user name
2006-09-16 07:30:01
On Saturday 16 September 2006 06:52, Matt Rogers wrote:
> Nothing inherits from KDevProject anymore. This means
that if your
> project manager was inheriting from KDevProject like
> KDevProjectManager was, then it'll need to be changed.

Any hint what should be done instead of inheriting from
KDevProject?

Andras

-- 
Quanta Plus developer - http://quanta.kdewebdev.o
rg
K Desktop Environment - http://www.kde.org
_______________________________________________
KDevelop-devel mailing list
KDevelop-develbarney.cs.uni-potsdam.de
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel
kdev-model-and-api-experiments merge planned for Saturday
user name
2006-09-16 09:30:11
Hi Matt,


> Several methods in KDevProject have also been
> renamed. Here is the list of conversions:
>
> openProject -> open
> closeProject -> close
> projectDirectory -> folder
> absoluteUrl -> urlRelativeToProject

is this really a rename? 

And what does urlRelativeToProject return? Is it relative to
the project file 
or relative to a project root folder? 

Jens
_______________________________________________
KDevelop-devel mailing list
KDevelop-develbarney.cs.uni-potsdam.de
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel
kdev-model-and-api-experiments merge planned for Saturday
user name
2006-09-16 13:06:33
On Saturday 16 September 2006 02:30, Andras Mantia wrote:
> On Saturday 16 September 2006 06:52, Matt Rogers wrote:
> > Nothing inherits from KDevProject anymore. This
means that if your
> > project manager was inheriting from KDevProject
like
> > KDevProjectManager was, then it'll need to be
changed.
>
> Any hint what should be done instead of inheriting from
KDevProject?
>
> Andras

Inherit from QObject instead. KDevProjectController is in
charge of opening 
the project now, so if you want to customize that behavior,
you'll need to 
have your own project controller
-- 
Matt

_______________________________________________
KDevelop-devel mailing list
KDevelop-develbarney.cs.uni-potsdam.de
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel
kdev-model-and-api-experiments merge planned for Saturday
user name
2006-09-16 13:10:21
On Saturday 16 September 2006 04:30, Jens Herden wrote:
> Hi Matt,
>
> > Several methods in KDevProject have also been
> > renamed. Here is the list of conversions:
> >
> > openProject -> open
> > closeProject -> close
> > projectDirectory -> folder
> > absoluteUrl -> urlRelativeToProject
>
> is this really a rename?
>

Well, I did rename the function, so technically, yes. ;) I
didn't change the 
way the functions works

> And what does urlRelativeToProject return? Is it
relative to the project
> file or relative to a project root folder?
>
> Jens

project root folder. It works the same as
KDevProject::absoluteUrl worked 
before.
-- 
Matt

_______________________________________________
KDevelop-devel mailing list
KDevelop-develbarney.cs.uni-potsdam.de
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )