[Qt-creator] Qt Creator reference card for 2.1

2010-11-30 Thread Nicolas Arnaud-Cormos
I’m happy to announce an update of our Qt Creator reference card for Qt 
Creator 2.1 (not released yet, in for the moment RC):

http://www.kdab.com/qtcreator

You’ll find 4 different versions, pick the one you prefer: Windows/Linux or 
Mac, 
A4 or US Letter.
Feel free to share them, print them and enjoy Qt Creator.

If you find an error, send me a mail.

Happy coding!
Nicolas

-- 
Nicolas Arnaud-Cormos | nicolas.arnaud-cor...@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Per-project editor settings?

2010-11-20 Thread Nicolas Arnaud-Cormos
On Saturday 20 November 2010 19:41:08 Nikos Chantziaras wrote:
 Is there a way to have different editor settings for different projects?
   On one project I'm working on I'm required to use spaces for
 indentation, while on another I'm required to indent with tabs.

No it's not possible for the moment.
please vote on bug: http://bugreports.qt.nokia.com/browse/QTCREATORBUG-632 if 
you are interested in it.

Nicolas

-- 
Nicolas Arnaud-Cormos | nicolas.arnaud-cor...@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Project -insert cool name here-

2010-11-04 Thread Nicolas Arnaud-Cormos
Hi,

I would like to propose a community effort to enhance the API of Qt Creator.
I can see several areas where the community can help Nokia developers.

Coding style

I was a little frustrated with my first big merge request, when I had to make 
all those little changes to follow the coding style, whereas the existing code 
is not following it:
 * use of m_ for class members
 * use of d-pointer for exported classes
 * use class instead of struct

I can also see some inconsistency, I'm sure I can find 5 different way to 
create 
a d-pointer (private class inside the class, private class outside, append 
Private to the class name, just Private, struct, class...).

Documentation
==
The documentation of exported is sometimes missing, or incomplete.
I'm talking about the code documentation, for plugin developers, not the 
documentation of Qt Creator.

API
==
The API is sometime strange, I have two examples in mind I came across 
recently:
 * it looks like exporting the plugin class is a bad idea, but the 
ProjectExplorerPlugin is exported whereas other plugins are using 
handler/manager/whatever
 * the openEditorAt method is a static method in BaseTextEditor, whereas the 
EditorManager has openEditor and openEditorWithContents
Maybe there are good reason for those choices, it just feels strange.

There are also some lack for the plugin developers. I know that the policy is 
to not export anything until it's used, but some method seems so useful that 
they should be exported, so the developer can use them directly (changing the 
Qt Creator code can be discouraging). Some example:
 * there's no method to get the different panes
 * I'm biased here but I think switchHeaderSource can be really really useful 
(see my MR #188)


The goal of the project is to:
 * collect all these (I'm thinking of a wiki page on Qt DevNet)
 * discuss what should be done with the Nokia developers
 * propose some MR to enhance the code

I totally understand that Nokia developers don't have time to polish the API, 
and need more features (Meego target, QML integration...), but it can't 
succeed without your help.

What do you think?

Cheers,
Nicolas

-- 
Nicolas Arnaud-Cormos | nicolas.arnaud-cor...@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Cpp parser documentation

2010-11-01 Thread Nicolas Arnaud-Cormos
On Saturday 30 October 2010 13:03:23 Tim Beaulen wrote:
 I'm creating a plugin that performs some static code quality checks.
 To make the scripts more powerful, I would like to make use of the cpp
 parser that comes with Qt Creator.
 
 Is there some documentation that describes how to use the cpp parser?

Somebody pointed me to this video once:
http://chaos.troll.no/~aportale/screencasts/cppengine/

Not sure it's still accurate, the API changed a bit, but it can give you an 
idea.

Nicolas

-- 
Nicolas Arnaud-Cormos | nicolas.arnaud-cor...@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] margin

2010-10-27 Thread Nicolas Arnaud-Cormos
On Wednesday 27 October 2010 09:06:41 Max Waterman wrote:
 On Tue, 26 Oct 2010 17:22 +0200, André Pönitz
 
 andre.poen...@nokia.com wrote:
  On Tuesday 26 October 2010 16:50:11 ext Tamás Kiss wrote:
   You're right, this bothers me too. And the funny thing is that Qt
   Creator is not the only IDE that suffers from the same problem. Almost
   every IDE and editor I've tried so far behaves like this, and they are
   not even configurable to show that area in a different colour. After
   several hours of coding, when my eyes are exhausted, it becomes harder
   and harder to decide where the cursor really is: is it really in the
   beginning of the line or is there a space?!
   
   Of course this is not a major or important problem, but I'd be happy
   if you appended this to the end of the wishlist. Thanks!
   
I wonder if someone can make the margin between the source and the
line numbers more obvious.

At the moment, the margin - where the '-'/'+' to expand/collapse the
code blocks go, is the same white colour as the background to the
code, so it is not easy to tell when the cursor is in the first
column.

If the '-'/'+' background was a slightly different colour, it would
make it much easier to tell when the cursor is in the first column,
instead of hitting 'delete' to see if it moved back one line.

Max.
  
  Consider filing an issue on bugreports.qt.nokia.com
 
 I followed that link, but it seems like way too much effort just to
 report an issue like this.
 
 Aren't there people who follow these lists that can do this for us?

You are kidding, right?

 * go to the website
 * create an account
 * create a new issue
 * choose QtCreator and Task
 * add a title, copy paste your mail
 * click Ok

And here you have a bugreport in 5mins which won't get lost, where people can 
add comments, Nokia developers can integrate in their sprint...

It sounds like: I'm too lazy to do any efforts, can someone do them for me.

Nicolas

-- 
Nicolas Arnaud-Cormos | nicolas.arnaud-cor...@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] This week in Qt Creator

2010-09-27 Thread Nicolas Arnaud-Cormos
On Monday 27 September 2010 16:16:21 Tobias Hunger wrote:
 ---++ C++ Support
 * Support for snippets was ported over into the C++ text editor.
   This feature has been available in the QML editor for a while now.
   Note that snippet support  is not yet feature complete (E.g. it is
   currently not possible to edit the snippets inside creator!). See
 
 http://share.ovi.com/media/tobias.hunger.mymedia/tobias.hunger.10006
   for an idea of what it does already.

Snippets look really nice.

As far as I can tell, the snippets come from share/qtcreator/snippets/cpp.xml, 
what the *.snp files are for?

Also, would be nice to have the same name changed without the need to press 
tab, for example we know that the destructor/constructor and name of a class 
are the same. Maybe using tab id=className in the xml, and string with the 
same id will be changed automatically.
Or maybe using the rename action when pressing tab, this will do it 
automatically.

Cheers,
Nicolas

-- 
Nicolas Arnaud-Cormos | nicolas.arnaud-cor...@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] How to assign Layout to Tab widget

2010-09-17 Thread Nicolas Arnaud-Cormos
On Friday 17 September 2010 00:38:10 yogesh upreti wrote:
 Hallo Group,
 I want in my application to add horizontal layout in one of the tab (part
 of a QTabWidget).
 Qt-Creator is not letting me do that.
 Is there any tricks there?
 I can select all widgets and put them in a Layout, but when I want to
 assign a layout to the whole tab (one of the tab of the tab widget), It's
 not working

Hi,

You need to select the tab (either by clicking on an empty area or in the 
object panel), and then choose the layout you want.
You'll see the icon chnages in the object panel, with your new icon (instead 
of the missing layout icon).

Cheers,
Nicolas

-- 
Nicolas Arnaud-Cormos | nicolas.arnaud-cor...@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Experience using QtCreator in Cpp Course

2010-09-16 Thread Nicolas Arnaud-Cormos
On Thursday 16 September 2010 23:10:01 Matthias Pospiech wrote:
   I would like to share my experience in a workshop I have given lately.
 It was about c++ and a basic introduction of classes. It had nothing to
 do with Qt, though
 I used it in one example for plotting a function, and I created all
 example projects with QtCreator.
 
 No student taking the course (3 hours in one day) had any C++
 environment installed, so I gave the latest windows sdk and the
 QtCreator 2.0.1
 installation around. Unfortunately neither of the programs put any path
 into the PATH (why ?) . That meant that we had to add a Qt environment
 in Creator. Aport from being very confusing for all students none of
 them understood which path to add. I had displayed my path on the
 projector, but nevertheless most of the got it wrong.

Why don't you install Qt SDK instead of Windows SDK+Qt Creator? It has 
everything you need: compiler, debugger and creator and it's working out of 
the box.

I'm using it when doing a formation and didn't have any big issue so far.

Cheers,
Nicolas

-- 
Nicolas Arnaud-Cormos | nicolas.arnaud-cor...@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Experience using QtCreator in Cpp Course

2010-09-16 Thread Nicolas Arnaud-Cormos
On Thursday 16 September 2010 08:03:12 Nicolas Arnaud-Cormos wrote:
 On Thursday 16 September 2010 23:10:01 Matthias Pospiech wrote:
I would like to share my experience in a workshop I have given lately.
  
  It was about c++ and a basic introduction of classes. It had nothing to
  do with Qt, though
  I used it in one example for plotting a function, and I created all
  example projects with QtCreator.
  
  No student taking the course (3 hours in one day) had any C++
  environment installed, so I gave the latest windows sdk and the
  QtCreator 2.0.1
  installation around. Unfortunately neither of the programs put any path
  into the PATH (why ?) . That meant that we had to add a Qt environment
  in Creator. Aport from being very confusing for all students none of
  them understood which path to add. I had displayed my path on the
  projector, but nevertheless most of the got it wrong.
 
 Why don't you install Qt SDK instead of Windows SDK+Qt Creator? It has
 everything you need: compiler, debugger and creator and it's working out of
 the box.
 
 I'm using it when doing a formation and didn't have any big issue so far.

s/formation/training
Sometimes my french wins over my english, sorry ;)

-- 
Nicolas Arnaud-Cormos | nicolas.arnaud-cor...@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] project specific editor settings

2010-08-24 Thread Nicolas Arnaud-Cormos
On Tuesday 24 August 2010 20:10:38 Sebastian Held wrote:
 Hi,
 
 I did not found a possibility to specify Tabs and Indentation settings
 per project. Is this possible? May be s.th. simiilar to kate's document
 variables?
 
 Even a workaround with moving config/ini files around would help me.

It's not possible for the moment, see this bug:
http://bugreports.qt.nokia.com/browse/QTCREATORBUG-632

Cheers,
Nicolas 
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Is there a Try and Catch method in QT

2010-07-01 Thread Nicolas Arnaud-Cormos
On Thursday 01 July 2010 03:01:05 Diego Turcios wrote:
 Hi guys
 I thinks this is the right mailing list for my doubt.
 I am working on a small application in QT. But right now I have the
 following problem.
 I have a line edit, and I want to manipulate the values so only numbers
 (doubles) can be written on this line edit.

The right way to do this in Qt is to use a validator. Just write this line in 
the constructor of your dialog (after setting up the ui).
ui-LEPrecio-setValidator( new QDoubleValidator );

This way you are sure the user can only type a double. No need to do any 
check.

Nicolas

-- 
Nicolas Arnaud-Cormos | nicolas.arnaud-cor...@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] CppHelper and Macros plugin for Qt Creator 2.0.0

2010-06-27 Thread Nicolas Arnaud-Cormos
Hi all,

I'm pleased to announce the release of two plugins for Qt Creator 2.0.0:

CppHelper
--
New feature for writing C++ code (one for the moment, create definition).
Source code: http://gitorious.org/creator-plugins/cpphelper
Tag: 0.1-2.0.0
Documentation: http://gitorious.org/creator-plugins/pages/CppHelper

Macros
--
Let the user record and play macros.
Source code: http://gitorious.org/creator-plugins/macros
Tag: 1.0-2.0.0
Documentation: http://gitorious.org/creator-plugins/pages/Macros

To compile the plugin, you just need to define the env CREATORDIR (and 
SOURCEDIR if build!=src). I only tested them on Linux for the moment.

Thanks to all people involved in this release, particularly David Faure (my 
guinea pig for the macros plugin, his help and ideas) and Eike Ziller for his 
help on Qt Creator code and my merge request.

Note: I splitted the creator-plugins repository, for those following the 
creator plugins

Cheers,
Nicolas

-- 
Nicolas Arnaud-Cormos | nicolas.arnaud-cor...@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Platform for Independent plugins

2010-06-25 Thread Nicolas Arnaud-Cormos
On Friday 25 June 2010 16:13:53 Carter, Nathan wrote:
  We would definitely like to set up something that helps users find
  plugins and help developers distribute them.
  
  Such a platform currently doesn't exist, but we have started to collect
  a list of independent plugins on the wiki of the recently announced Qt
  Developer Network (currently in beta):
  
  http://developer.qt.nokia.com/wiki/Qt_Creator_Plug-in_Gallery
 
 I apologize for some basic questions, but I haven't written a Qt project
 that used plugins before, so...
 
 Is there documentation on how to add one of these plugins to my existing
 Creator? Do I have to recompile Creator from scratch or can I just compile
 the plugin?  Can plugin authors distribute binary versions of the plugin I
 can just drop someplace?

For the documentation, you should find it on the website of the different 
plugin. And unfortunately, for the moment you have to build the plugins.

I'm thinking of distributing some binary version of my plugins for the SDK, 
but the main issue I have is that Qt Creator is not compiled with the same 
compiler provided by the SDK on Windows, and I don't have any Mac. 
So the only binary I can do and test is a 64bits linux.

A web factory would be really nice to have, with an easy way to install the 
plugins (during installation of the SDK? with a different installer?).

Cheers,
Nicolas

-- 
Nicolas Arnaud-Cormos | nicolas.arnaud-cor...@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Build error

2010-05-03 Thread Nicolas Arnaud-Cormos
On Monday 03 May 2010 09:36:07 Eike Ziller wrote:
 On Apr 30, 2010, at 8:51 PM, ext Nicolas Arnaud-Cormos wrote:
  Hi,
  I've updated the source code of Qt Creator (master), and I have this
  build error:
  I../../../../dev/src/plugins/qmldesigner/components/resources
  -I.moc/debug-shared -I.uic -I. -o
  .obj/debug-shared/qmlgraphicsitemnodeinstance.o
  ../../../../dev/src/plugins/qmldesigner/core/instances/qmlgraphicsitemnod
 einstance.cpp
  ../../../../dev/src/plugins/qmldesigner/core/instances/qmlgraphicsitemnod
 einstance.cpp:440: error: ‘Anchor’ in class ‘QDeclarativeAnchors’ does not
  name a type
  ../../../../dev/src/plugins/qmldesigner/core/instances/qmlgraphicsitemnod
 einstance.cpp: In member function ‘virtual bool
  QmlDesigner::Internal::QmlGraphicsItemNodeInstance::hasAnchor(const
  QString) const’:
  ../../../../dev/src/plugins/qmldesigner/core/instances/qmlgraphicsitemnod
 einstance.cpp:562: error: ‘anchorLineFlagForName’ was not declared in this
  scope There's no QDeclarativeAnchors::Anchor in QDeclarativeAnchors in my
  Qt 4.7 checkout (4.7-stable).
 
 Hi,
 Qml/Declarative is still sort of a moving target.
 We decided to only make sure that Qt Creator (master  2.0) compiles
  against qt/4.7, avoiding madness with supporting intermediate QDeclarative
  states that even are not versioned. (I don't think that 4.7-stable
  serves any use anymore btw, but I might be wrong.)

Ok, thanks for the answer,
I'll use qt/4.7 branch now, and re-try the compilation.

Cheers,
Nicolas

-- 
Nicolas Arnaud-Cormos | nico...@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Build error

2010-04-30 Thread Nicolas Arnaud-Cormos
Hi,

I've updated the source code of Qt Creator (master), and I have this build 
error:
I../../../../dev/src/plugins/qmldesigner/components/resources -I.moc/debug-
shared -I.uic -I. -o .obj/debug-shared/qmlgraphicsitemnodeinstance.o 
../../../../dev/src/plugins/qmldesigner/core/instances/qmlgraphicsitemnodeinstance.cpp
 
../../../../dev/src/plugins/qmldesigner/core/instances/qmlgraphicsitemnodeinstance.cpp:440:
 
error: ‘Anchor’ in class ‘QDeclarativeAnchors’ does not name a type 
../../../../dev/src/plugins/qmldesigner/core/instances/qmlgraphicsitemnodeinstance.cpp:
 
In member function ‘virtual bool 
QmlDesigner::Internal::QmlGraphicsItemNodeInstance::hasAnchor(const QString) 
const’: 
../../../../dev/src/plugins/qmldesigner/core/instances/qmlgraphicsitemnodeinstance.cpp:562:
 
error: ‘anchorLineFlagForName’ was not declared in this scope 

There's no QDeclarativeAnchors::Anchor in QDeclarativeAnchors in my Qt 4.7 
checkout (4.7-stable).

Should I use a different version of Qt? not use Qt Creator master?

Thanks,
Nicolas

-- 
Nicolas Arnaud-Cormos | nico...@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Qt Creator Community

2010-03-07 Thread Nicolas Arnaud-Cormos
On Friday 05 March 2010 12:10:41 Peter Kümmel wrote:
 As Qt Creater beeing 'only' a plugin-collection,
 is there a overview where all Nokia and 3rd-party
 plugins are listet and described?

Not that I know. I know only 3 3rd party plugins:
I know at least 3 3rd party plugins:
 * CppSupport, plugin for C++ Class View, from visual fc:
http://code.google.com/p/visualfc/downloads/list
 * Doxygen, add doxygen tags, from kofee:
http://dev.kofee.org/QtCreator-Doxygen/
 * CppHelper (add create definition action) and Macro (create/save/execute 
macros), from me:
http://gitorious.org/creator-plugins

That would be nice to have them somewhere.

 
 Also, is there a wiki which could be used as entry point
 for starting developing plugins, with documentations,
 example plugins, links to other howtos, and so on?

Not that I know, you already have some documentation in the code you can 
generate (doxygen, maybe qdoc3).
There's an excellent document written by Prashanth:
http://prashanthudupa.livejournal.com/44069.html
It gives you all you the information you need to start your own plugin. Also I 
had some troubles to create a plugin that build outside the qt creator src 
directory, you can get mine and copy whatever you need.


 When the intension of Qt Creator is to also create a
 community around the creater like there is around Eclipse
 then Nokia should spend some resources to evangelize
 and support such a community.

I would love too, but don't forget that Qt Creator is young (a little more 
than one year now). For the moment, they are trying to make it awesome for Qt 
development, and working hard on the Qt Quick integration and also 
maemo/symbian/whatever new plateform needed by Nokia.
At least that's what I'm understanding from an outside pov.

But maybe it's at the community to create something, and not the other way 
around. I don't usually go visit Qt Centre, but they already have a wiki and a 
sub-forum for Qt tools (including Qt Creator).
At Qtfr.org, we already have a sub-forum specific to Qt Creator.

As a plugin developer, I would also love to see a plugin builder tools for 
Qt SDK. It's hard to create binaries for our plugins for a specific SDK (I 
don't have mac, I don't use any SDK, and on Windows you need VS2008 I think).

Hope they'll have some time after Qt 4.7 to work on the community building ;)

Cheers,
Nicolas

 (No, the gitorious wiki is not enough.)
 
 Peter
 
 ___
 Qt-creator mailing list
 Qt-creator@trolltech.com
 http://lists.trolltech.com/mailman/listinfo/qt-creator
 

-- 
Nicolas Arnaud-Cormos | nico...@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Macro plugin 0.2

2010-01-29 Thread Nicolas Arnaud-Cormos
On Friday 29 January 2010 15:14:45 Kuiper, Luuk wrote:
 Nicolas,
 
 How to use the search function within macros, as you mention in your
  announcement?

Ctrl+F, the normal shortcut, then type your text. You can then use F3 to 
search next.
I'm just filtering the events and using my own not so good search.

Unfortunately, for the moment I'm unable to use the search from Qt Creator (or 
if it's possible, I didn't find how yet). That's on my todo list (first item 
currently) for this plugin.

Nicolas


 
 Luuk kuiper
 
 - Original Message -
 From: Nicolas Arnaud-Cormos nico...@kdab.com
 To: qt-creator@trolltech.com
 Sent: Thursday, January 28, 2010 10:10:09 PM GMT +01:00 Amsterdam / Berlin
  / Bern / Rome / Stockholm / Vienna Subject: [Qt-creator] Macro plugin 0.2
 
 Hi,
 
 I'm pleased to announce a new version of the macro plugin, version 0.2 (aka
 the dfaure's version;):
  * you can now save macros, and re-use them later (macros are saved in a
 default directory)
  * saved macro can be executed using the locator (Ctrl+K, 'r' shortcut)
  * you can assign a shortcut to macro (shortcuts are persistent too)
  * there's a macro page in the tool dialog that lets you manage your macros
 (TextEditor-Macro).
 
 Macros can save a limited number of actions for the moment, all those which
 don't need a new a panel/dialog/...
 You can use the search when recording a macro, but it's not using the Qt
 Creator search for the moment.
 
 The code is available on gitorious:
   http://gitorious.org/creator-plugins
 
 Use the master branch for Qt Creator 1.3.80, and the 1.3 branch for 1.3.1
 (should also work for 1.3.0). Unfortunately, I don't have any package, so
 people interested have to build it.
 Also, the plugin has only been tested on Linux. Anyway, it should work on
 Windows and MacOSX.
 
 Enjoy,
 Nicolas
 

-- 
Nicolas Arnaud-Cormos | nico...@kdab.com | Software Ingeneer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] qt-creator plugins

2010-01-24 Thread Nicolas Arnaud-Cormos
On Saturday 23 January 2010 15:25:43 paulo wrote:
 Hi,
 
 is there a main location (url) for qt-creator plugins?
 I search a bit, but found no repo.

I'm not sure I understand the question, but all plugins from Nokia are 
provided with the source code of Qt Creator.

I know at least 3 3rd party plugins:
 * CppSupport, plugin for C++ Class View, from visual fc:
http://code.google.com/p/visualfc/downloads/list
 * Doxygen, add doxygen tags, from kofee:
http://dev.kofee.org/QtCreator-Doxygen/
 * CppHelper (add create definition action) and Macro (create/save/execute 
macros), from me:
http://gitorious.org/creator-plugins

Hope this help.

Cheers,
Nicolas

-- 
Nicolas Arnaud-Cormos | nico...@kdab.com | Software Ingeneer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Feature request: Project and Build panels auto-hide options

2010-01-20 Thread Nicolas Arnaud-Cormos
On Wednesday 20 January 2010 16:35:43 Ilyes Gouta wrote:
  PS: Are you aware of the Alt-0 (Zero) keyboard shortcut?
 
 Yes. It still requires me to push some buttons, Alt+0, Alt+1, Alt+2,
 etc. Sometimes I confuse one shortcut for another one, whereas using
 the mouse, it's just about hovering over a hot region (the edge of a
 minimized panel?) to get to the functionality: It's a lot easier and
 practical. It's about usability.

Funny, using the mouse in an IDE is for me not practical at all. Most of your 
time you are typing your code, and using the mouse makes you move your hand 
from the keyboard.
I find it way more easier to have shortcuts for all important things, and I can 
always navigate the menu with the keyboard for the rest.

And Qt Creator is the only IDE I know that lets me do everything with the 
keyboard (thank you locator).
It takes some time to learn the keyboard (easier with a reference card), but 
when it's done, you'll be more productive than using the mouse.

That's just my point of view.

Cheers,
Nicolas

 -Ilyes
 
 On Wed, Jan 20, 2010 at 2:21 PM, André Pönitz andre.poen...@nokia.com 
wrote:
  On Wednesday 20 January 2010 14:18:09 ext Ilyes Gouta wrote:
  Hi,
 
  Is it possible to consider the addition of this new feature request
  project and build panels auto-hide in the next iteration of
  QtCreator?
 
  Basically it's about adding a kind of a transition to the project tree
  panel and the build status panels where they slide-in to become
  visible once the mouse pointer hits a hot area to bring them in.
  Otherwise, those windows stay hidden. This is will enable the source
  code editor window to take entire screen estate which really increases
  the productivity when you're like working/editing once single file at
  once. It's really important, you know, for someone who spends like his
  entire computer-time editing code :) Is it possible to consider it?
 
  Consider adding it to bugreports.qt.nokia.com
 
  Regards,
  Andre'
 
  PS: Are you aware of the Alt-0 (Zero) keyboard shortcut?
 
 
 
  ___
  Qt-creator mailing list
  Qt-creator@trolltech.com
  http://lists.trolltech.com/mailman/listinfo/qt-creator
 
 ___
 Qt-creator mailing list
 Qt-creator@trolltech.com
 http://lists.trolltech.com/mailman/listinfo/qt-creator
 

-- 
Nicolas Arnaud-Cormos | nico...@kdab.com | Software Ingeneer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Script manager

2010-01-11 Thread Nicolas Arnaud-Cormos
Hi,

I would like to create some simple scripts to do some repetitive tasks for my 
daily work, and I was thinking of creating a script plugin (where the user can 
access the current editor and the actionmanager for example).

I'm seeing a script manager in the source code. Are you working on a script 
interface?
Also, it looks like it's not use at all, is it work in progress or something 
else?

Thanks,
Nicolas

-- 
Nicolas Arnaud-Cormos | nico...@kdab.com | Software Ingeneer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Feature Request

2009-11-22 Thread Nicolas Arnaud-Cormos
On Thursday 19 November 2009 08:37:56 Robert Caldecott wrote:
 I'll log this on the cool new Qt tracking system but before I do I
 wanted to know if it's possible...
 
 How cool would it be to add a new method declaration to a C++ header
 file and have Qt Creator add the method definition to the .cpp file
 automatically?  Taking this a step further, you could edit an existing
 method declaration and the definition would be changed automatically.
 It would be a big time saver IMHO.

I've coded a little plugin that does the 'almost automatic method definition 
creation' (not automatically, you need a shortcut : Ctrl+Shift+F2):
http://gitorious.org/creator-plugins

I just updated the code to the new RC (I just changed the dependency number), 
it's working for me but:
 * it doesn't detect using namespace foo;
 * it assumes that the C++ file exists
 * it puts the function definition at the end of the file, after the last one
 * it doesn't work with inline functions

I would like to enhance it, unfortunately I don't see me working on it anytime 
before next year.

Cheers,
Nicolas

-- 
Nicolas Arnaud-Cormos | nico...@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Qt Creator reference card

2009-11-02 Thread Nicolas Arnaud-Cormos
Hi all,

At KDAB, we are using Qt Creator for our trainings for different reasons:
* integrated in Qt SDK (easy to install)
* multi-platfomrs
* easy to use (in 5 mins people know how to use it)
* Qt documentation is integrated

The nice thing about Qt Creator is that you can do everything with the 
keyboard, no need to use the mouse. So we spent some time creating a reference 
card for our students (and for us too), and decided to make it available to 
everybody:
http://kdab.net/qtcreator

You'll find a reference card for Windows/Linux or Mac, in A4 or letter format.

The reference card is for the last stable version (1.2.1), so you won't find 
the shortcuts introduced in 1.3.

Enjoy,
Nicolas

-- 
Nicolas Arnaud-Cormos | nico...@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] How to get your favourite feature into Qt Creator

2009-10-07 Thread Nicolas Arnaud-Cormos
On Wednesday 07 October 2009 13:54:20 Daniel Molkentin wrote:
 Hi,
 
 I see rising frustration about the lack of subjectively pressing
 features. This is understandable. However, let us try to find a positive
 approach to solve the issues.
 
 Let me start out by explaining our view: In spite of being Nokia (more
 precisely: being part of it), a seemingly huge company, our team does
 not have infinite resources to spend on this project. While we gladly
 pick up feedback in an unbeaurocratic way if possible, there is a limit
 to what we can do in this respect, since we have to commit to our roadmap.
 
 This does, however, not mean that your features must remain
 unimplemented. You can always contribute, as numerous people have
 already done. And if you feel like you have any obstacles in your way
 while developing on Qt Creator, like a lack of class documentation
 (which probably is one of the most pressing problems right now for
 external contributions) or understanding general design principles,
 please talk about it.
 
 If you have a joint interest in a particular feature with other people
 on this list, please try and develop it together. Gitorious has awesome
 team functionality:
 
 http://blog.gitorious.org/2009/05/09/weve-made-a-few-changes/
 
 Enabling contributions from _everyone_ is one of the foremost reasons
 why Creator is Open Source instead of just closed-source Freeware:
 Giving you the power to get involved, no matter what our internal agenda
 looks like. So please make use of it. We will happily assist with any
 serious effort into either improving documentation or getting started
 with implementing your desired functionality into Qt Creator. If you
 have any questions, please follow up on this mail.

Hi Daniel,

Let me take this mail as a good starting point on how to contribute.
You said that everyone can contribute, and it's true:
* create an account on gitorious
* clone qt-creator
* do your change in your own clone, and then push on gitorious
* do a merge request

and after?

I personally did this, and my merge request is still waiting after 22 days, 
without any answer (not to say that now I need to update the code, because of 
conflicts).

I can understand that you don't have time, that my feature is only interesting 
for me, that my code is crap, I would be ok with an answer like: We don't add 
new feature untill 1.3 is released or this won't work, this is buggy as 
hell, but no answer _at all_ is really discouraging.

Another example: I found a bug in the code, asked on the mailing list, Daniel 
Teske sent a patch to test, I tested it... and that's all.
As far as I know, the patch is not applied and the bug is still here... 
discouraging.

All the enthusiasm I had when I started coding on Qt Creator vanished, and I 
prefer to spend my spare time on something else, Qt Creator isn't fun for me 
anymore. Or maybe I'll work on external plugin and won't waste my time trying 
to do merge request (sometimes difficult, everything is not available for 
plugin 
developer).

I know you all have a todo list longer that what you can handle in a life-
time, it's the same for me, I just ask for more communication (and saying we 
don't have time, wait until 1.3' is not really time consuming).
Also, it would be nice to have a view of your roadmap, even if things can 
change it would help us and avoid duplicating the work (/me needs scripts, is 
it planed or can I start to work on it?).

Nicolas

-- 
Nicolas Arnaud-Cormos | nico...@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Strange bug in Class Wizard

2009-10-01 Thread Nicolas Arnaud-Cormos
On Friday 18 September 2009 23:37:27 Nicolas Arnaud-Cormos wrote:
 Hi,
 
 With the last master source, I found a really strange bug in the class
  wizard. On the Project Management page, if you have many projects, you
  can't select the project using the keyboard.
 As soon as the last item is selected, and you press down, the slection go
  back on the first item...
 
 There's no way to select a project using the keyboard, I had to take the
 mouse.
 
 Tested with Qt 4.6 tp1, last Qt Creator master sources, on Linux. I tested
  the 4.5.2 version, and didn't see this bug.
 Also, I don't remember having this problem with a version from the start of
 this week.

I've updated Qt Creator code today, and still have the issue:
* create a new C++ Class
* on the Project Management page, open the Project combobox (tab+space on 
the keyboard, or click with the mouse)
* let the down key pressed
You'll see the selection doing a loop, going back to the first item when it is 
on the last item.
If I do it with pressing the down arrow several time, it scroll down one time 
and go back to the first item.

It's really annoying, and it's the only combobox where I see this behavior.

As a side note, I find the Projects configuration hard to read, it would be 
nice 
to have more obvious separation between sections.

Thanks,
Nicolas
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] How to call a command from another plugin?

2009-09-14 Thread Nicolas Arnaud-Cormos
On Monday 14 September 2009 13:52:31 Daniel Teske wrote:
 On Saturday 12 September 2009 22:33:30 ext Nicolas Arnaud-Cormos wrote:
  Hi,
 
  I want to switch header/source from another plugin, I was wondering what
  is the best way to do this.
  Right now, I'm doing this:
  Core::ActionManager *am = core-actionManager();
  am-command(CppTools::Constants::SWITCH_HEADER_SOURCE)-action()-
 
  trigger();
 
 What we usually do, is to make thus dependencies explicit.
 In your case, I would do:
 a) Adding a exported function to the cppplugin which gives you the
 header/source file corresponding to a source/header file.
 b) Add a explicit dependency on the cppplugin
 c) Call EditorManager::openEditor()
 
 That's all from memory, if anything seems wrong ask again. :)

Thank you, that's exactly what I wanted to know.
And it's working!
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] How to call a command from another plugin?

2009-09-12 Thread Nicolas Arnaud-Cormos
Hi,

I want to switch header/source from another plugin, I was wondering what is 
the best way to do this.
Right now, I'm doing this:
Core::ActionManager *am = core-actionManager();
am-command(CppTools::Constants::SWITCH_HEADER_SOURCE)-action()-
trigger();

But I didn't find such example in the code. Is there a better way to do this?

Thanks,
Nicolas

-- 
Nicolas Arnaud-Cormos | nico...@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Core::IFile::mimetype bug?

2009-09-11 Thread Nicolas Arnaud-Cormos
Hi,

I'm playing with the code, and I find something strange. I'm trying to get the 
type of the file in the current editor (header or source).
If I'm on a header file, and call the function file()-mimetype() in CPPEditor, 
it returns the string text/x-c++src.
I would have expected text/x-c++hdr.

If I do something like this:
Core::ICore *core = Core::ICore::instance();
QFileInfo fi(file()-fileName());
const Core::MimeDatabase *mimeDatase = core-mimeDatabase();
const Core::MimeType mimeType = mimeDatase-findByFile(fi);
const QString typeName = mimeType.type();
if (typeName == QLatin1String(CppTools::Constants::C_HEADER_MIMETYPE) ||
typeName == QLatin1String(CppTools::Constants::CPP_HEADER_MIMETYPE))
it's working.

Is it a bug?
What is the best way to know if a file open in an editor is a header or a 
source?

Thanks,
Nicolas

-- 
Nicolas Arnaud-Cormos | nico...@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator