#include </home/clem/local/src/opie/inputmethods/dasher/DashEdit.h>
Inheritance diagram for Dasher::CDashEditbox:


Public Member Functions | |
| CDashEditbox () | |
| virtual void | SetInterface (CDasherWidgetInterface *DasherInterface) |
| Provide the Editbox with a widget interface. | |
| virtual void | write_to_file ()=0 |
| Write some buffered output to a file. | |
| void | set_flushed (int i) |
| Set the number of flushed characters. | |
| virtual void | get_new_context (std::string &str, int max)=0 |
| Provide context from the editbox for the core. | |
| virtual void | unflush ()=0 |
| Delete flushed text from the editbox. | |
| virtual void | output (symbol Symbol)=0 |
| Enter a the character Symbol into the text box. | |
| virtual void | deletetext ()=0 |
| Delete the previous symbol from the text box. | |
| virtual void | flush (symbol Symbol)=0 |
| Enter a character into the text box and remember that it is flushed. | |
| virtual void | TimeStampNewFiles (bool) |
| If Value is true, timestamp all new files (optional). | |
| bool | IsDirty () |
| Return true if any text has been modified since the last save (optional). | |
| virtual void | New (const std::string &) |
| Generate a new file (optional). | |
| virtual bool | Open (const std::string &) |
| Open a file (optional). | |
| virtual bool | OpenAppendMode (const std::string &) |
| Open a file and append to it (optional). | |
| virtual bool | SaveAs (const std::string &) |
| Save a file as a provided filename (optional). | |
| virtual bool | Save () |
| Save the current file (optional). | |
| virtual void | Cut () |
| Cut selected text (optional). | |
| virtual void | Copy () |
| Copy the selected text to the clipboard. | |
| virtual void | CopyAll () |
| Copy all text in the editbox to the clipboard. | |
| virtual void | Paste () |
| Paste text from clipboard (optional). | |
| virtual void | SelectAll () |
| Select all text in the editbox (optional). | |
| virtual void | Clear ()=0 |
| Clear all text from the editbox (REQUIRED). | |
| virtual void | SetEncoding (Opts::FileEncodingFormats Encoding)=0 |
| Set the file encoding. | |
| virtual void | SetFont (std::string Name, long Size)=0 |
| Set the font used in the editbox. | |
Protected Attributes | |
| bool | m_dirty |
| Have the contents of the editbox been altered since the last save? | |
| int | m_iFlushed |
| Record the number of characters that have been flushed. | |
| CDasherWidgetInterface * | m_DasherInterface |
| Pointer to a DasherWidgetInterface for communication with the core. | |
|
|
Definition at line 26 of file DashEdit.h. |
|
|
Clear all text from the editbox (REQUIRED).
Implemented in QtDasherPlugin. |
|
|
Copy the selected text to the clipboard.
Definition at line 117 of file DashEdit.h. |
|
|
Copy all text in the editbox to the clipboard.
Definition at line 122 of file DashEdit.h. Referenced by Dasher::CDasherInterface::PauseAt(). |
|
|
Cut selected text (optional). Copy the selected text to the clipboard and remove it from the editbox Definition at line 112 of file DashEdit.h. |
|
|
Delete the previous symbol from the text box.
Implemented in QtDasherPlugin. Referenced by Dasher::CDasherModel::Reparent_root(). |
|
|
Enter a character into the text box and remember that it is flushed. Output the character and increment m_iFlushed. When unflush is called, remove the previous m_iFlushed characters |
|
||||||||||||
|
Provide context from the editbox for the core. Provide the context at the current position within the editbox to the core. Set str to up to max characters before the cursor position within the editbox. Implemented in QtDasherPlugin. Referenced by Dasher::CDasherModel::Start(). |
|
|
Return true if any text has been modified since the last save (optional).
Definition at line 71 of file DashEdit.h. References m_dirty. |
|
|
Generate a new file (optional). New file - provide a file save dialogue and return the filename in filename, or provide a blank filename and present a file save dialogue when Save() is called Definition at line 78 of file DashEdit.h. Referenced by Dasher::CDasherInterface::ChangeEdit(). |
|
|
Open a file (optional). Provide a file open dialogue and set filename to the filename. Return true if a file is chosen and opened successfully, false otherwise Definition at line 85 of file DashEdit.h. |
|
|
Open a file and append to it (optional). Provide a file open dialogue and set filename to the filename. The file will then have any new text appended to it. Return true if a file is chosen and opened successfully, false otherwise Definition at line 93 of file DashEdit.h. |
|
|
Enter a the character Symbol into the text box.
Referenced by Dasher::CDasherModel::Make_root(). |
|
|
Paste text from clipboard (optional). Paste text from the clipboard into the editbox at the current position Definition at line 128 of file DashEdit.h. |
|
|
Save the current file (optional). Save file to the current filename. If there is no current filename, or if saving fails, return false Definition at line 105 of file DashEdit.h. |
|
|
Save a file as a provided filename (optional). Provide a file save dialogue and set filename to the filename. Return true if a file is chosen and saved successfully, false otherwise Definition at line 99 of file DashEdit.h. |
|
|
Select all text in the editbox (optional).
Definition at line 131 of file DashEdit.h. |
|
|
Set the number of flushed characters. Set the number of flushed characters to an arbitrary number. Usually used to reset it to 0 after unflushing Definition at line 38 of file DashEdit.h. References m_iFlushed. Referenced by Dasher::CDasherModel::Start(). |
|
|
Set the file encoding. Set the file encoding to the provided encoding Encoding. The editbox is responsible for saving the file in the encoding desired by the user. As Dasher is internally UTF8, it may well be necessary to save in an alternative format based on locale and OS. |
|
||||||||||||
|
Set the font used in the editbox. Set the font used in the editbox to Name and size Size (in points) Implemented in QtDasherPlugin. Referenced by Dasher::CDasherInterface::ChangeEdit(), and Dasher::CDasherInterface::SetEditFont(). |
|
|
Provide the Editbox with a widget interface.
Definition at line 29 of file DashEdit.h. References m_DasherInterface. Referenced by Dasher::CDasherInterface::ChangeAlphabet(), and Dasher::CDasherInterface::ChangeEdit(). |
|
|
If Value is true, timestamp all new files (optional). If switched on, all new files should be timestamped, either in the filename or in file metadata Definition at line 68 of file DashEdit.h. Referenced by Dasher::CDasherInterface::ChangeEdit(), and Dasher::CDasherInterface::TimeStampNewFiles(). |
|
|
Delete flushed text from the editbox.
Implemented in QtDasherPlugin. Referenced by Dasher::CDasherInterface::Unpause(). |
|
|
Write some buffered output to a file.
Implemented in QtDasherPlugin. Referenced by Dasher::CDasherInterface::PauseAt(). |
|
|
Pointer to a DasherWidgetInterface for communication with the core.
Definition at line 159 of file DashEdit.h. Referenced by SetInterface(). |
|
|
Have the contents of the editbox been altered since the last save?
Definition at line 153 of file DashEdit.h. Referenced by IsDirty(). |
|
|
Record the number of characters that have been flushed.
Definition at line 156 of file DashEdit.h. Referenced by set_flushed(). |
1.4.2