Difference between revisions of "Configure tools"

From Code::Blocks
Line 10: Line 10:
 
I'll not be making a long introduction, but I want to explain to you why I first got into this, and since I found nothing on the wiki about it, I decided to make the page myself.
 
I'll not be making a long introduction, but I want to explain to you why I first got into this, and since I found nothing on the wiki about it, I decided to make the page myself.
 
Have you ever worked with Code::Blocks and makefiles? If so, havn't you often had to go into the teminal and then had to type ''cd <path to project>'' and then ''make'', for every work-session? Well I'll be using this example in my explanatory.
 
Have you ever worked with Code::Blocks and makefiles? If so, havn't you often had to go into the teminal and then had to type ''cd <path to project>'' and then ''make'', for every work-session? Well I'll be using this example in my explanatory.
 +
I'm going to talk about the windows in ''Tools -> Configure tools...'', which you should find on the Code::Blocks Menu Strip.
  
== The ''User-defined tools'' window ==
+
== The input fields ==
  
[[Media:Slice_0_0.png]]
+
[[Media:Slice_0_0.png]] : ''Fig. 1''
[[Media:Slice_0_2.png]]
+
 
 +
[[Media:Slice_0_2.png]] : ''Fig. 2''
 +
 
 +
So, as you can see in Fig. 2, I named mine ''cd_shell'', and I did this simply by pressing ''Add'' and then Fig. 1 pops up. Now Fig. 1 is the interesting one and the one I'll try to explain in detail.
 +
 
 +
'''The Name input field'''
 +
This is simply where you write the desired name for your tool. The name will show up when you press ''Tools'', on the Code::Blocks Menu Strip.
 +
 
 +
'''The Executable input field'''
 +
This is where you put the application you want executed by your tool. You can either enter the location to the application, by either browsing or typing it in, or you can enter a command in there, like I just add ''xterm'' which is a Shell for Linux. You can also add arguments/parameters supported by the executed application, which means you could put ''xterm -bg red'' into the Executable input field, and the background of the executed xterm would be red. This should be put in the Parameters input field though, see below.
 +
 
 +
'''The Parameters input field'''
 +
This is where you put the parameters you want passed to the executed application, as explained above. This is very useful if you want to make more advanced tools than I'll be explaining. You can use the macros in here, which will be explained later on.
 +
 
 +
'''The Working directory input field'''
 +
This

Revision as of 00:43, 3 December 2009


!WORK IN PROGRESS!

Introduction

I'll not be making a long introduction, but I want to explain to you why I first got into this, and since I found nothing on the wiki about it, I decided to make the page myself. Have you ever worked with Code::Blocks and makefiles? If so, havn't you often had to go into the teminal and then had to type cd <path to project> and then make, for every work-session? Well I'll be using this example in my explanatory. I'm going to talk about the windows in Tools -> Configure tools..., which you should find on the Code::Blocks Menu Strip.

The input fields

Media:Slice_0_0.png : Fig. 1

Media:Slice_0_2.png : Fig. 2

So, as you can see in Fig. 2, I named mine cd_shell, and I did this simply by pressing Add and then Fig. 1 pops up. Now Fig. 1 is the interesting one and the one I'll try to explain in detail.

The Name input field This is simply where you write the desired name for your tool. The name will show up when you press Tools, on the Code::Blocks Menu Strip.

The Executable input field This is where you put the application you want executed by your tool. You can either enter the location to the application, by either browsing or typing it in, or you can enter a command in there, like I just add xterm which is a Shell for Linux. You can also add arguments/parameters supported by the executed application, which means you could put xterm -bg red into the Executable input field, and the background of the executed xterm would be red. This should be put in the Parameters input field though, see below.

The Parameters input field This is where you put the parameters you want passed to the executed application, as explained above. This is very useful if you want to make more advanced tools than I'll be explaining. You can use the macros in here, which will be explained later on.

The Working directory input field This