Summary description
Background of the project
This QUB project is completed by the student of Ronneby's Blekinge Engineering. The project lasted 20 weeks, released in the spring semester of 2002. This system is a more closely working for Symbianab and Bth. This project is from 12 Students are completed (arranged in the name):
Björn Andersson Per Arneng Tobias Edström Erik Heinemark Mattias Ivarsson Henrik Jersling Peter Nilsson Erik Ohlsson Johan Persberg Anh-Tu Trinh
Project purpose
The purpose of the QUB project is to allow developers to make more easier development user interfaces and automatically generate code, and can run on a device for Symbian. This whole system is written in Java.
system requirement
Let the program run smoothly, the minimum configuration of the machine:
Pentium III 500 MHz or more. 128 MB Ram or More. Java 2 Runtime Environment V1.4.1, Standard Edition. MS Windows 2000 UIQ V7.0
GUI section
Main window
This component is the last visual component of the system. This main window includes all visual components, like Workspace, Toolbox, Component Inspector, Project Explorer. An attempt to position these components in main window will fail then then These components will be repositioned on the main window. Main Window also contains a menu bar and icon bar.
Program startup
The dialog box shown will appear above after running the QUB program. You must choose to create a new project (default) or open an existing item. If you need to open the project from the template, you must choose to create a new project.
File Menu
New Project
This command displays the following new project dialog box.
Project Name - Enter the name of the project you want. Open with template - Open a previously stored project as your new project. Canvas size - Enter the long width of the Workspace you want, or select one in the drop-down menu A predetermined value. Then there will be an actual window that appears. The canvas size is the same as the set value. The size of the canvas is based on pixels. UID NR - this is the unique identification code of the item that must be entered. This value must be in the following format : A total of 10 digits, 0x out of the eight bits of arbitrary numbers and AF. Output Directory - Specifies the output path of generating code.
There are several ways to create a new project. You can use the "New Project" button to select Create in the program running. You can also create one in the program running process. New project.
If you open another project in the case of an item, the system will ask if the current project is saved before new construction. If no No, the previous item will give up, the previously have any modifications to the project will not be saved.
Open Project
This command opens a file selection dialog (as shown above) to open a project. If there is already an item exists, the system will first ask if you save the current project.
Close Project
This command will turn off the project. If the project has not been saved, the system will pop up the Save AS dialog box for Save AS operation. After the item is closed, the application will not close at the same time.
Save Project
This command saves open items. If this item never saves, the program will pop up the Save AS dialog box.
Save Project AS
This command allows users to save current items at a specific file name and path.
Preferencees
A parameter change dialog box will appear (as shown above) by this menu option.
Grid settings:
Show Grid will display grid on the workbench. This grid will help the component's placement. Snap to grid - This option is used to perform the grid alignment of the component. Grid Space - this option Sets two grids Pixels of the distance. Generator command - Set the program compiled command, it is recommended not to change .exit
Select this menu option will exit the system. If the current project has not been saved, the system will prompt the user to save. Click on the X button on the upper part of the main window to exit the system.
Edit Menu
CUT
Shear elements.
Copy
Copy the elements.
Paste
Paste the copied or cutting components.
Delete
Delete the selected component.
Project menu
Generate Code
Generate code to the edited interface. More information See Code Generation for details.
Add View
This command adds a new window in Workspace. The input dialog box appears to enter a new window name. The window will be added to the project's tree, and it is displayed on the Workspace.
Add Dialog
This command adds a new dialog to the current project. The system will appear to enter the dialog type, the title name. The dialog will be added to the project's tree, while displayed on the Workspace.
Add Menu
This command adds a new menu to the current project. The input dialog box will appear. Enter the title name. The menu will be added to the project's tree, and then you must add menupanes to the menu.
Add MenuPane
This command adds a new MenuPane to the selected menu. The input dialog box will appear, enter ID, title, and type. Two types are: Normal and Cascade. MenuPane will teach the project's tree, and then must increase Menu item to menu Pane.
Component
When the dialog box on the view on the view is selected, when the component is on the view, you can select "Bring to Front" or "Send to Back" to perform depth change. When the component is on the dialog, you You can choose "MOVE UP" or "Move Down" to make a high change
SET DIALOG TITLE
Here you can enter the name of the selected dialog.
SET DIALOG TYPE
The following is available as the default type of optional dialog, the following types are available:
R_EIK_BUTTONS_CANCEL R_EIK_BUTTONS_NO_YES R_EIK_BUTTONS_CONTINUE R_EIK_BUTTONS_CANCEL_OK
Settings
This option is used to change the project parameters in progress.
Project Name - Enter the project name canvas size - Enter the length width of the Workspace you want, or select a predetermined value in the drop-down menu. Then there will be an actual window, the canvas size is the same as the set value. The size of the canvas is With pixels - UID NR - this is the unique identification code of the project that must be entered. This value must be in the following format: a total of 10 digits, 0x out of the eight bits of arbitrary numbers and AF. Output Directory - Set the generated code location. Generate Tag Comments - prompts whether the generated code contains a comment to define different parts of the source code, these comments are used to boot the generator.
Window menu
Toolbox
If this option in this menu is tick, Toolbox is visible.
Project Explorer
If this option in this menu is tick, Project Explorer is visible.
Workspace
If this option in this menu is tick, Workspace is visible.
Component Inspector
If this option inside the menu option is tick, Component Inspector is visible.
Window Layout
This menu option contains two options, "default" and "box". Change Layout does not change the visibility of the window.
Default Layout
"Default" - When choosing this, the component will be arranged as the original layout. Box layout
"Box" - this option allows users to close the components in the middle of the window.
Help Menu
Index
When this menu option is pressed, the THIS manual will appear. The QUB system uses your environment's default browser, meaning that you must have at least one browser.
About
When this menu option is pressed, the About window will appear. There will be relevant personnel information and version information about this software.
Icon Menu Bar
This icon menu bar is used to provide users with faster selection relative to the corresponding functions in the menu.
New Project
The role is the same as New Project in the menu
Open Project
The role is the same as Open Project inside the menu
Close Project
The role is the same as the Close Project in the menu
Save Project
The same as Save Project in the menu
CUT
The role is the same as the CUT inside the menu
Copy
The role is the same as the copy inside the menu
Paste
The role is the same as the Paste inside the menu
Delete
The role is the same as the delete inside the menu
Generate Code
The role is the same as Generate Code inside the menu
Workspace
This window contains a canvas, which behaves as a drawing window, in which the user can place the component on top, this window is also part of the user interface. This canvas is usually called view. Components can double-click the icon, or click icon Then the canvas will be placed again. The canvas also contains a grid to perform the layout control of the components. The visibility of the grid can be turned on closable. The alignment grid in the grid function can also choose to turn on or off.
Project Explorer
This window displays a summary of the project. It is displayed in the form of a tree. Its root node is the node of the project name, the other part of the project is tree. The structure is as follows: There are three folders under the root node: views, Dialogs and Menus. One item selection is also equivalent to the related components above the table. If Project Explorer is selected, you can select Different Components Press "V" to select their view to switch. In Project Explorer Select other components, just press the first letter in this component, if more than one component is the same, multi-segment, the focus will switch between each component that meets the conditions.
Component Inspector
This window displays all the properties of the selected element, the modified property item is highlight (selected). This component viewer is divided into two parts. The left portion contains the properties of the components, the corresponding component attribute parameter value of the right side. Right Option ("Value" This is editable. There will be a short description of a selected attribute at the bottom of the component viewer. If you enter an invalid value, an error dialog box will pop up a valid value or prompt the parameter value. There is wrong there.
Toolbox
Provide various components to be added, divided into four categories: Dialog, GUI, Non GUI, MENU a total of 23 components.
Plug-in
Summary description
The basis of the QUB is the plugin. For more information, please refer to Plug-in Manual.
Add a plugin
Plugins can be added at any time, but to use the system's plugin feature must turn off the program to open again. If the correct path (QUB / PLUGINSRC / XXX) program will automatically look up and automatically match the plugin. The xxx plugin component placed Path. For more information, see CREATE A Plug-in.
Delete plugin
The plugin can only be deleted when the program is not running. The process is very simple, as long as the file is removed in the plugin directory, you can open the program again, the plugin does not exist.
Dialog
Add a dialog to a project, select "Add Dialog ..." in the "Project" menu, or the right to add dialogs on Dialogs. Enter the desired dialog box in the pop-up dialog. Add one In the component to the dialog, just double-click the component you want or click the component inside Toolbox, and then click on the Workspace. This will directly use the component as a dialog component. These in the plugin The file has been described. The component is positioned according to the order of them. The more you are on the dialog box. Modify the dialog, right-click on the dialog component or dialog, you will find a list of many options. . Dialog component options: CUT - Cut Copy - Copy Paste - Paste Delete - Remove the Rename - Rename. Move Up - This action will cause the selected element to switch the component to its elements. Move Down - This action will make The selected element exchanges with the elements below it.
Dialog Options: Paste - Paste. Delete - Delete. Rename - Rename - Set Dialog Title - Set Dialog Title. Set Dialog Type - Set the dialog type. The following types are available:
R_EIK_BUTTONS_CANCEL R_EIK_BUTTONS_NO_YES R_EIK_BUTTONS_CONTINUE R_EIK_BUTTONS_CANCEL_OK
Menus
Add a menu to the project, select the menu "Project" or "Add Menu ..." on "Menus" on Project Explorer. On the pop-up dialog, enter the desired menu name. Add a menu to In the menu, select the menu "Project" or right-click on the MENU to select "Add MenuPane ...", enter the type ID, the name is selected. Add the menu entry, just double-click the desired components on Toolbox. The positioning of the addition of components also depends on the added order. The more it adds to the lower side of the menu block. Modify the menu, right-click the menu component or menu block, there will be a lot of options to be modified.
Menu entry option: CUT - Cut. Copy - T Copy PASTE - Paste Delete - Remove the Rename - Rename the Move Up - This action will cause the selected element to be swapped with the components above it. Move Down - This action will make the The selection element exchanges with the elements below it.
Menu block options: CUT - Unavailable COPY - Unavailable Paste - Paste delete - this option deletes the dialog itself. Rename - Rename - Setting up the Change Type - S Set the menu block type. Type: Normal and Cascaded.
Menu Options: Add Menu Pane - This option will add a new menu block to the menu. Delete - Delete the selected menu. Rename - Rename - Rename SET AS DEFAULT MENU - Settings the menu as the default. When generating code is simulated Run in the server, this menu will be displayed.
reference
For more information on the QUB system and code boot, please refer to the following reference:
Code Review Checklist for EPOC C , SGL.MM001.625 / 1.0 Symbian Ry Coding Standard, Sry Line Quality-Pd 001 / 1.02 Coding Standards, Ps.dv0012.01 / 3.00 API for Java 1.4.1