| **Navigation:**  Application Generator >====== Application Generator Menu Commands ====== | [[application tree 1.htm|{{btn_prev_n.gif|Previous page}}]][[coming future.htm|{{btn_home_n.gif|Return to chapter overview}}]][[application generator toolbars.htm|{{btn_next_n.gif|Next page}}]] | | || The Application Generator generates your application's code based on the predefined templates you choose from the template registry. This topic lists the IDE menu commands available from the Application Generator. Many dialogs also have Help buttons which you can press to view a help topic specifically about that dialog (the F1 key calls the same topic when the dialog is open). **Application Menu** | **Import From Application** | Imports a procedure (or procedures) from another application (*.APP) file.First, select the application file to import from the //Select application to Import from// dialog.Next, choose procedures to import to the target application from the //Select for Export// dialog.You can select an item by double clicking on it, or. select the target procedure in the list and press the **Select** button. Items to be imported appear highlighted in red. Select additional items as needed.De-select an item by double clicking a previously selected item, or, select the target procedure in the list and press the **Clear** button.When ready to import, press the {{saveclose.jpg|SaveClose.jpg}} to process, or the {{cancelbutton.jpg|CancelButton.jpg}} to abort the process.{{notebox.jpg|NoteBox.jpg}}Both applications //must// use the same dictionary. | | | | | **Import TXA (Text)** | Imports the procedures defined in a .TXA (text) file. Create .TXA files with the Export Text or Selective Export commands. | | | {{notebox.jpg|NoteBox.jpg}}**DURING ANY OF THE IMPORT OR CONVERSION OPTIONS, IT IS ESSENTIAL THAT YOU HAVE THE OUTPUT PAD OPENED AND VISIBLE FOR ANY ERRORS THAT MIGHT BE POSTED. NOTE THE ERRORS AND THEN CANCEL THE APPLICATION (DO NOT SAVE) UNTIL THE ERRORS CAN BE CORRECTED.** | | **Export Application to Text** | Creates a .TXA (text) file from the current application. | | **Selective Export** | Creates a .TXA (text) file containing only selected procedures. | | | | | **Open Dictionary** | Lets you view the current dictionary for the application. | | | | | **Insert Module** | Specifies a new MODULE for generated source code. You can also specify an external .LIB or .OBJ file to add to the project | | **Synchronize Application with the Dictionary** | Applies the control attributes specified in the Data Dictionary to all the controls in the application. The attributes are applied as specified in the Synchronization tab of the Application Options dialog. | | | | | **Redistribute Procedures** | Lets you change the number of procedures per module. Specify the new number in the Select Procedures per Module dialog. The Application Generator then redistributes the procedures among the modules, according to the new procedures per module number. | | **Repopulate Modules** | Lets you change the number of procedures per module, but still keep related procedures together in the same module. Specify the new number in the Select Procedures per Module dialog. The Application Generator then redistributes the procedures among the modules, according to the new procedures per module number. Your application may execute slightly faster if you group procedures which commonly execute together in the same module | | **Renumber Modules** | Renumbers the modules created by the Application Generator. This is useful for large projects from which modules have been deleted. | | **Delete Empty Modules** | Removes empty generated source code modules from the project. This is useful for large projects from which procedures have been deleted. | | **Delete Empty Libraries** | Removes empty external source code modules, .LIB files, and .OBJ files from the project. This is useful for large projects from which procedures have been deleted.The Delete Modules and Delete Libraries commands do not delete disk files, they simply remove any reference to the files from your application (.app) and project (.prj) files. | | | | | **New Procedure** | Adds a procedure not connected to the procedure tree. | | **Delete Procedure** | Deletes the selected procedure, leaving it as a ToDo item in your Application Tree. To remove it completely, remove the reference or statement that calls the procedure. | | **Copy Procedure** | Copies the selected procedure to a new procedure, which you name. | | **Synchronize Procedure with the Dictionary** | Applies the control attributes specified in the Data Dictionary to all the controls in the selected procedure. The attributes are applied as specified in the Synchronization tab of the Application Options dialog. | | **Utility Template****(CTRL + U)** | Calls add-in utilities, including Clarion Wizards from the //Select Utility// dialog. See [[ utility utility execution section .htm|UTILITY]] for more information. | **Popup (right-click) Menu** | **Properties** | Calls the selected procedure's Procedure Properties dialog. | | **Window** | Calls the **[[windowdesignerwin32.htm|Window Designer]]** to visually design a window for the selected procedure. | | **Report** | Calls the **[[reportdesigner.htm|Report Designer]]** to visually design a report for the selected procedure. | | **Procedures** | Opens the Procedure **Calls** tab for the selected procedure. | | **Embeds** | Calls the **[[gen72.htm|Embedded Source]]** dialog to manage embedded source code for the selected procedure. | | **Extensions** | Calls the **Extension and Control Templates** dialog to manage template generated code added to the selected procedure. | | **Formulas** | Calls the **[[frm10.htm|Formulas]]** dialog or the **Formula Editor** dialog to manage formulas for the selected procedure. | | **Module** | Calls the **Text Editor** to edit or display the generated source for the selected procedure.{{tipbox.jpg|TipBox.jpg}}The source is as last //generated//. Any changes made directly to the generated source code are overwritten by subsequent source code generation.{{notebox.jpg|NoteBox.jpg}}When you right-click on any procedure and select **Module** from the pop up menu, the Editor stores certain information about the files you open to edit. This is a productivity aid; it remembers the line number you were last at, and so if a file is opened, positioned to a certain line number, closed, then reopened, you are now back at the line where you were last positioned. | | **Source** | Opens the Embeditor which lets you embed your own source code within the context of the surrounding generated code. | | | | | **Synchronize** | Applies the control attributes specified in the Data Dictionary to all the controls in the selected procedure. The attributes are applied as specified in the **[[application options dialog.htm#gen3 synchronization|Synchronization]] **tab of the **Application Options **dialog. | | **Delete** | Deletes the selected procedure, leaving it as a ToDo item in your Application Tree. To remove it completely, remove the reference or statement that calls the procedure. | | **Rename****(F2 Key)** | Renames the selected procedure to a name you specify. |