|Home | Tutorial | Classes | Functions | QSA Workbench | Language | Qt API | QSA Articles | Qt Script for Applications |

[Prev: Reference: Toolbar Buttons] [Home] [Next: Reference: Windows]

## Reference: Dialogs

### Introduction

This chapter describes and explains every QSA Workbench dialog.

### The Menu Dialogs

#### New Script Dialog

> New Script Name

Click File|New Script to invoke the Input Script Name dialog. Use this dialog to name the script file that you want to include in your project.

#### Export Script Dialog

> Export Script Dialog

Click File|Export Script As to invoke the Save AS dialog. Use this dialog to save the script file in your project.

#### Import Script Dialog

> Import Script Dialog

Click File|Export Script As to invoke the Save AS dialog. Use this dialog to save the script file in your project.

### The Edit Dialogs

#### Preferences Dialog

> Preferences Dialog

Click Edit|Preferences to invoke the Preferences dialog.

The 'Syntax Highlighting' section lets you change the way the syntax is viewed in the editor. Click the 'Element' listbox and choose an element. Click the 'Family' listbox to change the font style for that element. Click the 'Size' spinbox to choose a font size. You can change the font to Bold, Italic, or Underline by clicking the corresponding checkbox. Note, that all the fonts used derive from the 'Standard' element, so if you want to change the font used for everything, change the 'Standard' element. Click the Change Color button to invoke the Select Color Dialog. As you make changes to each element, you can view the changes in the 'Preview' line edit.

The 'Options' section has the Wordwrap, Completion, and Parentheses Matching checkboxes checked by default. Click the checkboxes to de-select them.

The Indentation section enables you to set the code intentation on the Qt Script Editor. Select your preferences by clicking the spinboxes for Tab Size and Indent Size. Check the Keep Tabs checkbox so that tabs are used for indentation otherwise, spaces will be used. Check Auto Indent to enable automatic indentation.

### The Search Dialogs

#### Find Text Dialog

> Find Text

Click Search|Find (or press Ctrl+F) to invoke the Find Text Dialog. Use this dialog to find specific text in a project file.

To find the text you want in a file, type the text in the 'Find' combobox. You can make the search more specific by checking any or all of the checkboxes in the 'Options' section. Click the 'Whole words only' checkbox to narrow the search to whole words. Click 'Case Sensitive' to search for text that is identical to the text typed in the combobox. Click 'Start at Beginning' to start the search from the beginning of the file. The 'Direction' section offers the 'Forward' radio button and the 'Backward' radio button to specify the direction to perform the search in the file. Click the Find button to start the search. When the text is found, it is highlighted in the file. Continue clicking Find to search for subsequent occurrences of the search text.

Click the Close button to leave the dialog.

#### Replace Text Dialog

> Replace Text

Click Search|Replace (or press Ctrl+R) to invoke the Replace Text Dialog. Use this dialog to replace text in a project file.

To replace text, type the text you would like to replace in the 'Find' combobox. Type the new text in the 'Replace' combobox. You can make the search more specific by checking any or all of the checkboxes in the 'Options' section. Click the 'Whole words only' checkbox to narrow the search to whole words. Click 'Case Sensitive' to search for text that identical to the text you typed in the combobox. Click 'Start at Beginning' to start the search from the beginning of the file. The 'Direction' section offers the 'Forward' radio button and the 'Backward' radio button to specify the direction to perform the search in the file.

Click the Replace button to search and replace the text. When the text is found, it is highlighted in the file. Continue clicking Replace button to search and replace each occurrence of the text in the file. Click Replace All button to replace all occurences of the search text in the file at once.

Click the Close button to leave the dialog.

#### Goto Line Dialog

> Goto Line

Click Search|Goto line (or press Alt+G) to invoke the Goto Line Dialog. Use this dialog to go to a specific line in the file.

To choose a line number, type the number in the 'Line' spinbox, or click the up and down arrows in the spinbox. Click the Goto button. The cursor is placed at the beginning of the line in the file.

Click the Close button to leave the dialog.

### The Project Dialog

#### Call Function Dialog

> Call Function Dialog

Click Project|Call Function (or press F5) to invoke the Call Function Dialog. Use this dialog to select the name of the function to run.

### The Help Dialogs

#### About Qt Designer Dialog

Click Help|About to invoke the About QSA Workbench Dialog. This dialog provides information about QSA Workbench such as the version, the licensing terms, conditions, and disclaimers.

[Prev: Reference: Toolbar Buttons] [Home] [Next: Reference: Windows]