nl:documentation:toolbox_editor
Verschillen
Dit geeft de verschillen weer tussen de geselecteerde revisie en de huidige revisie van de pagina.
| Volgende revisie | Vorige revisie | ||
| nl:documentation:toolbox_editor [2015/07/01 01:31] – aangemaakt marc_fokker | nl:documentation:toolbox_editor [2015/11/06 20:43] (huidige) – Externe bewerking 127.0.0.1 | ||
|---|---|---|---|
| Regel 1: | Regel 1: | ||
| - | FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// | + | ====== Gereedschapvenster bewerker ====== |
| - | ====== Tool box editor ====== | + | Dit venster wordt getoond wanneer je klikt op de Script |
| - | + | ||
| - | This window is show when you click the Script | + | |
| {{: | {{: | ||
| - | ===== Create the tool layout ===== | + | ===== Creëer de gereedschap |
| - | + | ||
| - | First set the title for your tool in the top text field. | + | |
| - | + | ||
| - | Then you need to add at least one Group: click the Group button, set the group title and the number of column element you want on each row. Then click the Add button. | + | |
| - | + | ||
| - | Then use the same principle to add the elements you want, for example a text Edit and a Button.\\ | + | |
| - | This elements can only be added to a group.\\ | + | |
| - | A name is automatically assigned to each element, for example Edit_1 . This is this name you need to use to access the element properties from your script.\\ | + | |
| - | For some elements you can select a title or a height in pixel.\\ | + | |
| - | To change the number of elements per row, create a new group with the required value but without title. | + | |
| - | Special elements are the Events. This not add anything visible on the screen but allow you to write the require script to process an event.\\ | + | Maak eerst een titel in het tekstveld bovenaan. |
| - | Event are : | + | |
| - | * Initialisation: | + | |
| - | * Activation: Run every time this tool box is show. | + | |
| - | * Timer: Run at periodic interval, enter the interval | + | |
| - | * Telescope move: Each time the telescope position change. | + | |
| - | * Chart refresh: Each time the chart redraw. | + | |
| - | * Object identification click: Each time and object is select by a click on the chart or as the result of a search. | + | |
| - | * Distance measurement: | + | |
| - | * Telescope connected: When the telescope is connected. | + | |
| - | * Telescope disconnected: | + | |
| - | * Translation: | + | |
| - | The events are normally inactive when the tool is not show on the screen. One exception is the Timer event you can always activate by checking the corresponding box. But be careful with the performance issue this option can imply.\\ | + | Dan moet je tenminste een groep toevoegen: klik de Groep knop, stel de groep titel en het aantal van kolom-elementen in die wilt voor iedere rij. klik dan op de Toevoegen knop. |
| - | Use the Activation event to update your tool with the change that can occur on the map when the tool was inactive. | + | |
| - | You can reorder the group or elements by using the vertical arrows or by drag and drop in the left tree. | + | Gebruik hetzelfde principe om de elementen toe te voegen die je wilt, bijvoorbeeld een tekst Bewerk en een knop.\\ |
| + | Deze elementen kunnen alleen aan een groep worden toegevoegd.\\ | ||
| + | Aan ieder element wordt automatisch een naam toegekend, bijvoorbeeld Edit_1. Het is deze naam die je nodig hebt om toegang te krijgen tot de eigenschappen van het element van je script.\\ | ||
| + | Voor sommige elementen kun je een titel selecteren of een hoogte | ||
| + | Om het aantal elementen per rij te veranderen, creëer een nieuwe groep met de vereiste waarde maar zonder een titel. | ||
| + | Speciale elementen zijn de Gebeurtenissen (" | ||
| + | Events zijn: | ||
| + | * Initialisation: | ||
| + | * Activation: Werkt iedere keer wanneer het gereedschapvenster wordt getoond. | ||
| + | * Timer: Werkt gedurende een periodieke interval, voer de interval-tijd in seconden in wanneer je deze gebeurtenis selecteert. | ||
| + | * Telescope move: Iedere keer dat de telescooppositie verandert. | ||
| + | * Chart refresh: Iedere keer dat de kaart opnieuw wordt afgebeeld. | ||
| + | * Object identification click: Iedere keer dat een object is geselecteerd via een klik op de kaart of als resultaat van een zoekactie. | ||
| + | * Distance measurement: | ||
| + | * Telescope connected: Wanneer de telescoop wordt verbonden. | ||
| + | * Telescope disconnected: | ||
| + | * Translation: | ||
| - | If you select an element | + | De gebeurtenissen zijn normaal gesproken inactief wanneer het gereedschap niet op het scherm is afgebeeld. Een uitzondering vormt de Timer Gebeurtenis die je altijd kunt activeren door een vinkje te zetten |
| + | Gebruik de Activation Gebeurtenis om de wijzigingen voor je gereedschap bij te werken wanneer het gereedschap inactief was. | ||
| + | Je kunt de groep of elementen herordenen door te klikken op de verticale pijltjes of door te slepen in de linker boomstructuur. | ||
| - | A script can be attached to following elements: Button, Combo box, Event.\\ | + | Als je een element selecteert in de boom en je wijzigt een eigenschap, klik dan op de Toepassen knop om de wijziging over te nemen. |
| - | When you select one of this elements in the tree the "Edit script" | + | |
| - | When you are ready click the Apply button to show your elements on the tool box and compile the scripts.\\ | + | Een script kun je koppelen aan de volgende elementen: Knop, Keuzelijst, Gebeurtenis.\\ |
| - | Don't forget to save your work to a file with the Save button (default file extension is .cdcps).\\ | + | Wanneer je een van deze elementen in de boom selecteert verschijnt er de " |
| - | Also save the program configuration to have you tool box automatically loaded the next time you start the program. | + | |
| + | Wanneer je klaar bent, klik de Toepassen knop om je elementen weer te geven in het gereedschapvenster en om de scripts te compileren.\\ | ||
| + | Vergeet ook niet je werk op te slaan met de knop Opslaan. (De standaard bestandsextensie is .cdcps).\\ | ||
| + | Sla ook de programma configuratie op om je gereedschapvenster automatisch geladen te krijgen bij de volgende keer dat je het programma start.. | ||
| - | ===== Script editor ===== | ||
| - | The editor allow to write the script | + | ===== Script bewerker ===== |
| + | De bewerker maakt het je mogelijk om zelf een script | ||
| {{: | {{: | ||
| - | The language to use is [[wp> | + | De te gerbuiken taal is [[wp> |
| - | Define first the global variables, then the procedure and function if any, then the private | + | Definïeer eerst de globale variabelen, dan de procedures en eventuele functies, daarna de private |
| - | Read the [[script_example|script | + | Lees de [[script_example|script |
| - | As the each script is specific to one event there is no possibility to have global variables across | + | Omdat ieder script |
| - | To solve this issue a number of global variables are predefined | + | Om dat op te lossen zijn er een aantal globale variabelen gedefinieerd in het hoofdprogramma en er zijn specifieke functies om deze in te stellen en uit te lezen. |
| - | This functions and other specific to the interface | + | Deze functies en andere specifiek voor de interface |
| - | Use the **Save** button to record your change and return to the main window. | + | Gebruik de **Opslaan** knop om je wijzigingen op te slaan en terug te keren naar het hoofdvenster. |
| - | The top button are related to the debugging function as describe below. | + | De knoppen op de bovenste rij zijn voor debuggingsfuncties zoals onderstaand is beschreven. |
| ===== Script debugger ===== | ===== Script debugger ===== | ||
| - | Simple debugging function are available to test your code. | + | Er zijn eenvoudige mogelijkheden beschikbaar om je code te debuggen. |
| {{: | {{: | ||
| - | To run the script in debug mode press the green arrow **Run** button. The program is first compiled. | + | Om je script in debug modus te draaien klik de groene pijl **Uitvoeren** knop. Het programma wordt eerst gecompileerd. |
| - | In case of compilation error, the corresponding row is highlighted | + | In geval van een compilatiefout, dan zul je de corresponderende rij gemarkeerd |
| - | If the compilation finish without error the program start to run and stop on the first code line of the main procedure. The current execution position | + | Als de compilatie zonder fout verloopt dan zal het programma beginnen met uitvoering en stopt direct op de eerste regel van de "main" procedere. De huidige uitvoeringspositie |
| - | You can now use the **Step over** | + | Je kunt nu de |
| - | The **Step into** button do the same, except if the current line is a call to one of your function. In this case **Step into** allow to run the function line by line, but **Step over** | + | De **Stap in** knop doet hetzelfde |
| - | You can also set a breakpoint | + | Je kunt ook een breakpoint |
| - | To set a breakpoint | + | Om een breakpoint |
| - | Use the Run button to jump to the next breakpoint. | + | Gebruik de **Uitvoeren** knop om naar een volgend |
| - | You can remove a breakpoint | + | Je kunt een breakpoint |
| - | You can display the value of variables when the program is in pause at a breakpoint or after a **Step over** | + | Je kunt de waarde van variabelen weergeven wanneer het programma pauzeert op een breakpoint |
| - | Just click on the variable name anywhere | + | Klick op de variabele naam waar dan ook in de programmacode om de waarde weer te geven in het berichtengebied.\\ |
| - | Note this work only for local variables, not for object | + | Dit werkt alleen voor lokale variabelen, niet voor object |
| - | You can use the **Pause** button to pause the program execution. This can be useful to examine the condition of an infinite loop for example. | + | Je kunt de **Pauze** knop gebruiken om programma-uitvoering te pauzeren. Dit is handig om de condities te controleren wanneer het programma in een oneindige lus terecht is gekomen. |
| - | The **Stop** | + | De **Stop** |
nl/documentation/toolbox_editor.1435707088.txt.gz · Laatst gewijzigd: 2015/11/06 20:36 (Externe bewerking)
