Delphi Programming Comprehensive Training Task Book
1. Question
Multi-document text editor
2. Purpose and Requirements
1. Purpose: 1) Students are required to master the basic knowledge and skills of Delphi7; 2) Basically master the basic ideas and methods of object-oriented program development; 3) Master the basic knowledge of database application development; 4) Be able to use the basic knowledge and skills learned to conduct simple application design. 2. Basic requirements: 1) It is required to use object-oriented programming ideas and component development principles to complete the system design; 2) Make full use of the advantages of Delphi7 language (i.e. components , attributes, events, etc.) ; 3) reflect the visual programming style
, for example, the function interface operates through menus and toolbars, and feedback information to users through the status bar. Innovation requirements: After the basic requirements are met, innovative designs can be carried out, such as adding the functions of opening images and editing images. III. Information description
Design a multi-document text editor to enable editing, typing, printing, etc. of text. When the program starts, there must be a password input prompt, and the form should include: menu bar, toolbar, status bar, tooltip (similar to Word), etc.
4. Function description
1. File operations can be implemented: create a new document, save a document, open a document, close a document, page settings, print preview, print settings, print, etc. 2. Editing operations can enable selection, cutting, copying, pasting, searching, replacing text content, etc. 3. Format operation can realize the settings of fonts, colors, etc. of text content. 4. Viewing operations can enable display and hide the toolbar. 5. Help operation can display version information, etc.
V. Solution
1. First conduct requirements analysis and clarify system functions and tasks. 2. Then determine the module structure in the overall design, divide the functional modules, and assign the software functional requirements to the divided minimum unit module. Determine the connection between modules, determine the data structure, file structure, database model, and determine the testing methods and strategies. 3. In the detailed design, determine the algorithm used for each module, select the appropriate tool to express the algorithm (flow chart), describe the detailed process of the module; determine the data structure used by each module; determine the details of the module interface, including the The interface and user interface outside the system, and the interface to other modules inside the system. 4. Write Delphi code based on analysis.
6. Write a comprehensive design report or comprehensive design summary
The comprehensive design report requires a summary report including requirements analysis, overall design, detailed design, coding (
Xiangxi wrote down programming steps carefully ), test steps and content, course design summary, reference materials, etc. If it does not meet the above requirements, this design will be I missed the exam.
7. Reference materials
Delphi7 Programming Example Guide Software Engineering