Adding and Removing Files

There are various different types of file that Anjuta will manage for you in the project:

  1. Source files

  2. Document files

  3. Pixmap files

  4. Help files

  5. Data files

  6. PO files

Each of these different types exist in their own specific directories inside the project.

Adding Files

Choose the corresponding menu item from the Project->Import File submenu, or right-click on the project in the Project Listing and select the type of file from the Import File submenu on the Operations popup menu. Select the file you want to add in the dialog and click OK.

If the file you choose has already been added to the project, then Anjuta will not add it again. It will also give you a warning that the file is already added.

If the file you choose is not in the directory corresponding to the type you have selected, you will be asked to confirm that you wish to copy the file into that directory. Anjuta cannot add files which are outside of their correct directories.

Removing Files

To remove a file from the project, select the file you want to remove from the Project Listing, right-click to open the Operation popup menu and choose Remove.

A confirmation dialog will appear, and the file will be removed from the project.

ImportantThe file is not deleted!
 

The file is not deleted from the filesystem. It still exists, and you can add it back again later if you so wish. The file is only removed from the project listing, and will not take part in any of the project operations such as compiling, building, distribution etc..