Notepad

The notepad is an object for quickly loading a text file, displaying it, allowing editing of it and saving of changes back to the file loaded. More...


Functions

EAPI Evas_Object * elm_notepad_add (Evas_Object *parent)
 Add a new notepad to the parent.
EAPI void elm_notepad_file_set (Evas_Object *obj, const char *file, Elm_Text_Format format)
 Set the file to load text from and save text back to.


Detailed Description

The notepad is an object for quickly loading a text file, displaying it, allowing editing of it and saving of changes back to the file loaded.

Signals that you can add callbacks for are:

NONE

A notepad object contains a scroller and an entry. It is a convenience widget that loads a text file indicated, puts it int he scrollable entry and allows the user to edit it. Changes are written back to the original file after a short delay. The file to load and save to is specificed by elm_notepad_file_set().


Function Documentation

EAPI Evas_Object* elm_notepad_add ( Evas_Object *  parent  ) 

Add a new notepad to the parent.

Parameters:
parent The parent object
Returns:
The new object or NULL if it cannot be created

EAPI void elm_notepad_file_set ( Evas_Object *  obj,
const char *  file,
Elm_Text_Format  format 
)

Set the file to load text from and save text back to.

Parameters:
obj The notepad object
file The path to the file to load and save
format The file format
This sets the file (and implicitly loads it) for the text to display and then edit. All changes are written back to the file after a short delay.