Bug 65348 - Add "Add file to project" to "File" or "Project" mainwindow menu
Summary: Add "Add file to project" to "File" or "Project" mainwindow menu
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: Custom Makefiles (show other bugs)
Version: 3.0.0a7
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
: 67468 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-10-02 00:37 UTC by Robert Shideleff
Modified: 2007-03-21 00:35 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Shideleff 2003-10-02 00:37:01 UTC
Version:           3.0a7 (using KDE KDE 3.1.4)
Installed from:    Gentoo Packages
OS:          Linux

There is currently no way to add a file that was created outside of kdevelop into an existing kdevelop project, despite an ability to import a project wholesale. This seems like a useful item to have. (It exists in the dreaded competitor: VC++)
Comment 1 Amilcar do Carmo Lucas 2003-10-02 10:14:15 UTC
Yes there is. Do you really think that we would use such an IDE (one that 
wouldn't allow to add files) :) 
 
Just take a better look on the automake manager on the rigth side of your 
screen. 
 
Have fun :) 
 
PS: VC++ is not "the dreaded competitor"! We are better than VC++ :) 
 
Comment 2 Robert Shideleff 2003-10-02 18:03:08 UTC
Aha!!! There is the problem. I am not using automake!!!  
  
I am working on an embedded project for which I have my own makefiles. I  
imported it using the import project option, which worked excellently.  
  
However, any features which are located in the automake menu, like  
(apparently) project file management don't exist for me.  
  
I apparently have no way to re-open this bug. Should I open another? 
 
(No I am not a *complete* moron, although I often sound like one!;-)) 
Comment 3 Robert Shideleff 2003-10-02 18:05:09 UTC
This time I was able to re-open. (Figured out that I had to be logged in.) 
 
> Aha!!! There is the problem. I am not using automake!!!  
  
> I am working on an embedded project for which I have my own makefiles. I  
> imported it using the import project option, which worked excellently.  
  
> However, any features which are located in the automake menu, like  
> (apparently) project file management don't exist for me.  
  
> I apparently have no way to re-open this bug. Should I open another?  
  
> (No I am not a *complete* moron, although I often sound like one!;-)) 
Comment 4 Amilcar do Carmo Lucas 2003-10-03 19:45:40 UTC
Custom project needs a maintainer. Are you up to it? 
Comment 5 Robert Shideleff 2003-10-03 21:29:23 UTC
What are you asking?

By 'custom project', do you mean the embedded project I am working on? Well I
hope so, I am getting paid a fairly decent salary for it.

If by 'custom project' you mean the custom project portion of kdevelop. I'd have
to answer no for the short term since I am on some fairly heavy deadlines for
the aforementioned embedded project. However, in a couple of months I might be
able to get into it. Maybe before then I'll try and get the kdevelop build
envornment set up and see if I can figure out the code enough to implement some
feature additions.

Meantime, I can work around by just running 'find' to recreate the filelist file.
Comment 6 Amilcar do Carmo Lucas 2003-10-04 20:44:22 UTC
By 'custom project' I mean the custom project part of kdevelop.
Comment 7 Hendrik Kueck 2003-10-19 23:24:17 UTC
There are context menu entries in the file tree and file seclector popup menus that allow you to add/remove files to a custom makefile project.
I think this bug could be closed. 
Comment 8 Robert Shideleff 2003-10-21 21:18:20 UTC
Found it and it works. Thanks.
Comment 9 Robert Shideleff 2003-10-21 21:30:49 UTC
One additional comment: The menu item in question is slightly deceptive to me (which is probably why I missed it).

The menu item says:

	'Add to Project: $FileName$'

where $FileName$ is the filename. However, I took the text of this to mean "Add the file to a new project named '$FileName$'". Admittedly, I am sometimes a bit slow, but there are bound to be others who are just as slow.

The thing that got me was that the menu item takes the trouble to name the particular file that will be added in a menu where you can't select multiple files and which already implies that the filename in question is what you are acting on. This reminds me of the windows zip shortcuts that say things like 'add to zip' and 'add to new zip called $something_similar_to_the_filename$' I therefore expected a similar behavior.
Comment 10 Hendrik Kueck 2003-10-21 22:14:18 UTC
You have a point there. Given that its a context menu, "Add file to project" should be sufficient. 
(rewording it to 'Add $FileName$ to project' would be an option too)
Comment 11 Robert Shideleff 2003-10-21 22:18:24 UTC
should I re-open the bug? or open a new change request?
Comment 12 Amilcar do Carmo Lucas 2003-10-28 15:36:24 UTC
Subject: kdevelop/buildtools

CVS commit by aclu: 

Usability fix

CCMAIL: 65348@bugs.kde.org


  M +2 -2      ant/antprojectpart.cpp   1.19
  M +2 -2      custommakefiles/customprojectpart.cpp   1.65


--- kdevelop/buildtools/ant/antprojectpart.cpp  #1.18:1.19
@@ -554,5 +554,5 @@ void AntProjectPart::contextMenu(QPopupM
   if (inProject)
   {
-    int id = popup->insertItem( i18n("Remove From Project: %1").arg(popupstr),
+    int id = popup->insertItem( i18n("Remove %1 from project").arg(popupstr),
                        this, SLOT(slotRemoveFromProject()) );
     popup->setWhatsThis(id, i18n("<b>Remove from project</b><p>Removes current file from the project."));
@@ -560,5 +560,5 @@ void AntProjectPart::contextMenu(QPopupM
   else
   {
-    int id = popup->insertItem( i18n("Add to Project: %1").arg(popupstr),
+    int id = popup->insertItem( i18n("Add %1 to project").arg(popupstr),
                        this, SLOT(slotAddToProject()) );
     popup->setWhatsThis(id, i18n("<b>Add to project</b><p>Adds current file from the project."));

--- kdevelop/buildtools/custommakefiles/customprojectpart.cpp  #1.64:1.65
@@ -183,5 +183,5 @@ void CustomProjectPart::contextMenu(QPop
     if (inProject)
     {
-        int id = popup->insertItem( i18n("Remove From Project: %1").arg(popupstr),
+        int id = popup->insertItem( i18n("Remove %1 from project").arg(popupstr),
                            this, SLOT(slotRemoveFromProject()) );
         popup->setWhatsThis(id, i18n("<b>Remove from project</b><p>Removes current file from the list of files in project. "
@@ -190,5 +190,5 @@ void CustomProjectPart::contextMenu(QPop
     else
     {
-        int id = popup->insertItem( i18n("Add to Project: %1").arg(popupstr),
+        int id = popup->insertItem( i18n("Add %1 to project").arg(popupstr),
                            this, SLOT(slotAddToProject()) );
         popup->setWhatsThis(id, i18n("<b>Add to project</b><p>Adds current file to the list of files in project. "


Comment 13 Robert Shideleff 2003-10-28 17:25:41 UTC
You guys are the greatest!
Comment 14 Amilcar do Carmo Lucas 2003-11-07 10:33:11 UTC
*** Bug 67468 has been marked as a duplicate of this bug. ***
Comment 15 Georg Baum 2004-03-04 09:43:27 UTC
There are still problems with kdevelop 3.0.1:

The option "add file to project" is missing from the file context menu in the file tree (at least for the qmake manager, did not check others)

The manual does not say that one has to use some "manager" to add an existing file to the project. Deeply in the "automake manager" chapter, there is a screenshot from where you can guess a way to add existing files, but this is not where one expects it. I would rather expect it in chapter 8 (I guess this should be names "project mangement", given the fact that chapter 14 is also called "advanced project management")

Please consider readding the menu entry Project->add existing file(s). From a kdevelop users POV this seems natural. From a kdevelop developers POV the "manager" things may be convenient, but as a user I only want to think about build sytems when I create a project. Afterwards, I just want to use them, and they should not hide important functionality in a difficult to find place.

Last, but not least: Yes, I do read documentation, and yes, I do mean this seriously, and yes, I have spent a long time figuring out how to add files via the GUI. In the end, I added the files to the qmake .pro file by hand.

PS: How can I reopen this bug?
Comment 16 Simon Huerlimann 2004-12-21 10:14:43 UTC
Reopened, as demanded by last comment. See also http://lists.kde.org/?l=kde-devel&m=110361374410554&w=2 for some other guys requesting this. I myself was bitten by this too.
Comment 17 A T Somers 2004-12-21 11:54:50 UTC
*** This bug has been confirmed by popular vote. ***
Comment 18 Alexander Neundorf 2005-11-24 19:49:32 UTC
It seems its hard to find in the context menu of the file tree view.
Comment 19 Georg Baum 2005-11-24 21:33:14 UTC
Well, it is missing sometimes (see my comment 15). This is still true for kdevelop 3.2.0 (KDE 3.4.2).
Comment 20 Amilcar do Carmo Lucas 2005-11-24 22:02:51 UTC
Well the bug has been fixed in KDevelop 3.3.0 and the documentation has been much improved.

Nowadays we do not get e-mails or posts on the forum asking how to do it.
Comment 21 Maciej Pilichowski 2006-05-12 14:15:58 UTC
There should be such function in file or project menu indeed -- plus more:
* add current file to project
* remove current file from project
* add all opened files to project
* remove all opened files from project (makes sense if your project is pretty big)
Comment 22 kbugger 2006-10-19 15:59:31 UTC
v 3.3.5 

Still dont see this in any menu. File list, File selector ... none of the context menus have an "add to project" item.

Bottom line: why is this not on the Project menu? This must surely be the first place everyone would expect to find it.

Also could we please have some hints on the automake mangager icons. 

I should not have to click on everything to see what it does. This may even be distructive since I have no idea if it's dlg I can cancel or a button that has a direct action.

Maybe there is a need to increase visibility / accessability of the automake manager. I had never even noticed these tabs descretely tucked away of the right of the screen until I read this bug !

Adding an entry on the tools menu that opened up the auto-manage tab would be a good way of making this discoverable from the UI.

Saying RTFM is simply to admit a poorly designed interface.

I specifically went searching this for everwhere in the interface yesterday and concluded it was an omition in kdevelop.

Since this is such a fundemental function it should be a lot easier to find.
Thx.
Comment 23 Maciej Pilichowski 2006-10-19 16:27:30 UTC
> Also could we please have...

Is adding another report is so hard? Putting "and also this and this (losely related)" in one report is just making improvements to KDevelop more difficult for the developers (think: tracking requests).
Comment 24 Megan Webb 2006-11-03 08:56:57 UTC
Customer project does have context menu to add/remove files.
Automake, qmake, etc projects do not. They use the automake manager - hidden (till now) on the right.

As of revision 601417, there are:
- tool tips on the icons in the automake manager
- icons are disabled if they cannot be selected.
- project opens with automanager extended from right side - to make it clear that it is there.

This should help for now. This area is getting more work done on it.
Comment 25 Maciej Pilichowski 2006-11-03 09:04:02 UTC
> Customer project does have context menu to add/remove files.

Ok, but does this work? You are talking about released version or SVN?

I see such option in context menu but it failed silently (for external files for example) and it still fails now (it is a bug really, because it should work or provide some nice warning what is going on). So I see no change here.
Comment 26 Amilcar do Carmo Lucas 2006-11-03 10:46:39 UTC
Comment #24 is about obviously about KDevelop 3.4 from SVN.
http://www.kdevelop.org/index.html?filename=3.3/ChangeLog.html
http://www.kdevelop.org/index.html?filename=3.4/ChangeLog.html
Comment 27 Andreas Pakulat 2007-02-23 21:45:27 UTC
We do have add/remove files on custom, qmake and automake projects, closing as fixed.
Comment 28 Frank Niethardt 2007-03-20 23:36:31 UTC
I could state that it is still missing for PHP projects (and maybe other projects, too). Or am I just too blind to see it.
Comment 29 Andreas Pakulat 2007-03-21 00:01:57 UTC
No you're not blind. Script projects are not very well supported in KDevelop and thus the manager for script project doesn't offer this functionality. In fact I suggest to use more apropriate apps for PHP/HTML development, like Quanta.

If anybody demands it I will re-open the wishlist report, but its pretty sure that this will never happen for script projects in KDevelop3.
Comment 30 Alexander Dymo 2007-03-21 00:35:00 UTC
Shall I note that you don't need "add/remove to project" actions for scripting projects. The current implementation will load all files that comply with the pattern. And that's good. The problem is that the script manager doesn't get notified of new files. But that's a separate bug actually.