![]() |
![]() |
![]() |
DiaSCE manual |
---|
Here you'll find an example of the usage of DiaSCE.
Start DiaSCE by executing "diasce2" from the command line.
When the main screen comes up, you can start a new project by selecting "New Project" from the file menu. The project window will come up, where you must enter some information for the project:
WARNING: Don't use special characters (non-ascii) for project and file names. This is not supported yet.
Once filed this project windows, select Accept and the project files will be created.
Before you can start coding, you must create a new file or add an existing file to the project. Once the file is added to the project, you can select it in the File Tree, and the fille will be openned for editing in the Code Editor Window. Now you can start coding. :-)
If you want to add external files to the project, you can do it by selecting "Add existing file.." from the "Project Menu". This will show you a window where you can choose in which directory do you want the file to be added (source, docs, pixmaps...).
If you want to add a new file, you can do it by selecting "New File" from the "File Menu" or using the toolbar button.
Then, you can select a file from the File Tree. The file will be loaded in the first tab of the Code Editor Window, where you'll be able to edit it. If you want, you can move the file to a new tab, as new files allways open in the first tab.
If your project is going to have a GUI, you can build it by selecting "Glade" from the toolbar or the "Tools Menu". Glade will be launched, and when you finish editing your GUI, you save it and select "Write Source Code" from Glade. This will generate the interface files and the callbacks file, that will be added to your proyect. Once you exit from Glade and return to DiaSCE, you will see the list of your GUI windows in the GUI tab. Clicking on the name of the windows will display them, and you'll be able to see the names of widgets and callbacks, and have a quick access to callback code.
If you want to see the definition of a function, you can select it in the Function List of the toolbar, or you can place the cursor over the function call in the code, right click and select "Show Function". The function definition will be shown in the Functios Tab.
Once finishing with the code, you can save it selecting "Save" (current file) or "Save All" (all project files).
You can the compile the code, by selecting:
You'll see the results in the message window. If there is any warning or error, it'll be shown in this window, and you can go to the line of the warning or the error just by clicking over it in the message window.
To exit DiaSCE, you just have to select "Exit" from the "File Menu".