• Keine Ergebnisse gefunden

Text Editor

N/A
N/A
Protected

Academic year: 2022

Aktie "Text Editor"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

System Software Project

Text Editor

The goal of this project is to implement a text editor that can handle text files with different fonts and styles. It should be based on the simple editor presented in the course (http://ssw.jku.at/Teaching/Lectures/SSW/Editor.zip). Since this prototype is written in Java the natural choice for the implementation language of your editor is Java as well, but you can also use C# or C++ instead. The project cannot be imple- mented in teams, i.e. you have to implement it alone.

Your editor should have the same basic functionality as the prototype editor, i.e.:

 It should be able to read and display a text file. Long lines are not wrapped but simply clipped at the right margin.

 The user should be able to type and delete characters in the text.

 There should be a caret and a selection.

 The user should be able to scroll.

In addition to that, your editor should have the following features:

 The text data structure should be managed as a piece list (not as a gap text like in the prototype).

 Words should be selectable with a double click.

 The user should be able to set the font, size and style of arbitrary text regions via menu commands. Note that a line can have characters of different height so the line metrics have to be computed on a per-character basis, and also the drawing of the lines becomes more complicated.

 There should be menu commands for Cut, Copy and Paste operations. This requires an application-wide clipboard to be implemented. When text is copied, fonts and styles should be copied as well.

 Fonts and styles should be stored (as meta-data) at the beginning of a text file as it was discussed in the course. Fonts and styles should be restored when the text is re- opened. But your editor should also be able to open standard ASCII text files with- out such a header.

 There should be menu commands for opening and saving text files. If a new text file is opened via a menu command it should be displayed in a new viewer.

 There should be a Find command for searching the next occurrence of a search strings from the caret or position.

Note that you have to implement your own text class and your own viewer class, i.e. it is not allowed to use ready-made text components from a library. The correct han- dling of fonts and styles is an important part of your project.

Referenzen

ÄHNLICHE DOKUMENTE

The tool should provide features to (a) save a single formatted submission, (b) print a single formatted submission, (c) save all loaded submissions as formatted, (d) print all

A comparison with the average dimensions of the maxillary canine reported by De Jonge (1958) shows that only the root was exceptionally long (26 mm vs an average value of 16.1 mm),

Your results show that “RDA values measured in the 1998 study were lower for all seven dentifrices that were also tested in the present study”.. In your discussion you only focus

Note that I personally have suggested similar things in the past, however, these suggestions, listed below, will be forwarded to the handling editors who will be asked to follow

• If the cursor is at the top of the screen and at the beginning of the line, the screen is rewritten/scrolled to display previous line(s) of text (the number of lines

The screen is rewritten, the bottom 20 lines again display the file, and the cursor is in the third line of the text area, pointing to the character that

When the command line mode is first entered, the text area contains the residual display of the file left over from previous screen editing operations.. As commands are

Upon termination of the PUt command the current line pointer is left at the line following the last line written.. Note that there must be a space between