Gebruikershulpmiddelen

Site-hulpmiddelen


nl:documentation:toolbox_editor

Verschillen

Dit geeft de verschillen weer tussen de geselecteerde revisie en de huidige revisie van de pagina.

Link naar deze vergelijking

Volgende revisie
Vorige revisie
nl:documentation:toolbox_editor [2015/07/01 01:31] – aangemaakt marc_fokkernl: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 bewerker knop onderaan een [[toolbox|gereedschapvenster]]. Het verschaft je de mogelijkheid om een gereedschapvenster te configureren en bijbehorende acties in te stellen.
- +
-This window is show when you click the Script button at the bottom of a [[toolbox|Tool box]]. It allow to configure and program the action for the tool box.+
  
 {{:en:screenshot:x008_toolbox_editor.jpg?400|}} {{:en:screenshot:x008_toolbox_editor.jpg?400|}}
  
-===== Create the tool layout ===== +===== Creëer de gereedschap layout =====
- +
-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: Run once after you click the Apply button, or when the program start. +
-  * Activation: Run every time this tool box is show. +
-  * Timer: Run at periodic interval, enter the interval in second when you select this event. +
-  * 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: When you measure a distance on the chart. +
-  * Telescope connected: When the telescope is connected. +
-  * Telescope disconnected: When the telescope is disconnected. +
-  * Translation: Run after initialisation or when you change the program language.+
  
-The events are normally inactive when the tool is not show on the screenOne 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 rijklik 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 in pixels..\\ 
 +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"). Dit voegt niets zichtbaars toe op het scherm, maar het stelt je in staat om een script te schrijven om een Gebeurtenis te verwerken.\\ 
 +Events zijn: 
 +  * Initialisation: Werkt eenmalig na een klik op de Toepassen knop, of bij het starten van het programma. 
 +  * 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: Wanneer je een hoekafstandsmeting doet op de kaart. 
 +  * Telescope connected: Wanneer de telescoop wordt verbonden. 
 +  * Telescope disconnected: Wanneer de telescoop wordt ontkoppeld. 
 +  * Translation: Werkt bij initialisatie of wanneer je te programma taalinstelling wijzigt.
  
-If you select an element in the tree and change one of it's property the Update button appear to allow to apply the change.+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 in de bijbehorende checkbox. Wees voorzichtig vanwege de performance issues die deze optie met zich mee kan brengen.\\ 
 +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: ButtonCombo box, Event.\\  +Als je een element selecteert in de boom en je wijzigt een eigenschapklik dan op de Toepassen knop om de wijziging over te nemen.
-When you select one of this elements in the tree the "Edit script" button appear. See below for the details.+
  
-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 "Script bewerken" knopZie onderstaande voor details.
-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 itself that execute on a button clicka combobox selectionor an event.+===== Script bewerker ===== 
 +De bewerker maakt het je mogelijk om zelf een script te schrijven dat uitgevoerd wordt met een klik op een knopeen keuzelijstof een gebeurtenis.
  
 {{:en:documentation:scripteditor.jpg?400|}} {{:en:documentation:scripteditor.jpg?400|}}
  
-The language to use is [[wp>Pascal_Script|Pascal Script]], based on [[wp>Object_Pascal|Object Pascal]].\\ +De te gerbuiken taal is [[wp>Pascal_Script|Pascal Script]], gebaseerd op [[wp>Object_Pascal|Object Pascal]].\\ 
-Define first the global variablesthen the procedure and function if anythen the private variableand finally the main code start with **begin** and end with **end.**\\ +Definïeer eerst de globale variabelendan de procedures en eventuele functiesdaarna de private variabelenuiteindelijk de main code die start met **begin** en eindigt met **end.**\\ 
-Read the [[script_example|script example]] page for a quick start.+Lees de [[script_example|script voorbeeld]] pagina voor een snelle start.
  
-As the each script is specific to one event there is no possibility to have global variables across scripts. For example you cannot set a variable when a button is pressed and later use this variable in another button click.\\ +Omdat ieder script specifiek is voor een gebeurtenis is er geen mogelijkheid om globale variabelen te hebben tussen scripts. Het is dus niet mogelijk een variabele in te stellen met een klik op een knop en later deze variabele aan te roepen met een andere klik op een knop.\\ 
-To solve this issue a number of global variables are predefined in the main program and specific functions allow to write and read them.+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 with Skychart, they are described in a separate [[script_reference|script reference]] page.+Deze functies en andere specifiek voor de interface zijn beschreven in een afzonderlijke  [[script_reference|script referentie]] pagina.
  
-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.
  
 {{:en:screenshot:x009_script_debug.jpg?400|}} {{:en:screenshot:x009_script_debug.jpg?400|}}
  
-To run the script in debug mode press the green arrow **Run** buttonThe program is first compiled.+Om je script in debug modus te draaien klik de groene pijl **Uitvoeren** knopHet programma wordt eerst gecompileerd.
  
-In case of compilation errorthe corresponding row is highlighted in yellow, and the error message is show in the bottom message area+In geval van een compilatiefoutdan zul je de corresponderende rij gemarkeerd in geel oplichten en het foutbericht zie je onderaan in het berichtengebied
  
-If the compilation finish without error the program start to run and stop on the first code line of the main procedureThe current execution position is highlighted in blue.+Als de compilatie zonder fout verloopt dan zal het programma beginnen met uitvoering en stopt direct op de eerste regel van de "main" procedereDe huidige uitvoeringspositie is gemarkeerd in blauw.
  
-You can now use the **Step over** button to execute your program line by line.\\ +Je kunt nu de  **Stap over** knop gebruiken om je code regel voor regel uit te voeren..\\ 
-The **Step into** button do the sameexcept if the current line is a call to one of your functionIn this case **Step into** allow to run the function line by line, but **Step over** execute the function and stop at the main program next line.+De **Stap in** knop doet hetzelfde behalve dat wanneer de de huidige regel een functie aanroeptDan wordt de functie ook regel voor regel uitgevoerd. Een **stap over** voert de functie dus geheel uit en stopr op de volgende regel in het hoofdprogramma.
  
-You can also set a breakpoint on a specific line to jump directly at this position.+Je kunt ook een breakpoint op een bepaalde regel zetten om direct naar die positie te springen.
  
-To set a breakpoint click on the leftmost column to show a red icon.\\ +Om een breakpoint te plaatsen, doe een linker muisklik op de linker kolom met de regelnummers om een rood icoontje te plaatsen.\\ 
-Use the Run button to jump to the next breakpoint. The current line is then highlighted in red.+Gebruik de **Uitvoeren** knop om naar een volgend breakpoint te springenDe huidige regel is rood gemarkeerd.
  
-You can remove a breakpoint by clicking on the red icon or all at at time with the **Remove all breakpoint** button.+Je kunt een breakpoint verwijderen door op het rode icoontje te klikken, je kunt ze ook allemaal ineens verwijderen door een klik op de knop  **Verwijder alle breakpoints**.
  
-You can display the value of variables when the program is in pause at a breakpoint or after a **Step over** click.\\ +Je kunt de waarde van variabelen weergeven wanneer het programma pauzeert op een breakpoint of na een **Stap over** klik.\\ 
-Just click on the variable name anywhere in the program source to display the value in the message area.\\ +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 variablesnot for object properties.+Dit werkt alleen voor lokale variabelenniet voor object eigenschappen.
  
-You can use the **Pause** button to pause the program executionThis can be useful to examine the condition of an infinite loop for example.+Je kunt de **Pauze** knop gebruiken om programma-uitvoering te pauzerenDit is handig om de condities te controleren wanneer het programma in een oneindige lus terecht is gekomen.
  
-The **Stop** button terminate the program execution immediately.+De **Stop** knop beëindigt het programma onmiddellijk.
    
  
nl/documentation/toolbox_editor.1435707088.txt.gz · Laatst gewijzigd: 2015/11/06 20:36 (Externe bewerking)