2014-02-15 15:17:40 -08:00
|
|
|
#ifndef EDI_MAINVIEW_H_
|
|
|
|
# define EDI_MAINVIEW_H_
|
|
|
|
|
|
|
|
#include <Elementary.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief These routines are used for managing the main area of the Edi interface.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief UI management functions.
|
|
|
|
* @defgroup UI
|
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* Initialisation and management of the main view UI
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Initialize a new Edi main view and add it to the parent panel.
|
|
|
|
*
|
2014-02-16 09:09:55 -08:00
|
|
|
* @param parent The parent into which the panel will be loaded.
|
2014-02-15 15:17:40 -08:00
|
|
|
*
|
|
|
|
* @ingroup UI
|
|
|
|
*/
|
|
|
|
EAPI void edi_mainview_add(Evas_Object *parent);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @brief Content management functions.
|
|
|
|
* @defgroup Content
|
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* Opening and managing content within the view.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2014-02-16 09:09:55 -08:00
|
|
|
/**
|
|
|
|
* Open the file at path for editing.
|
|
|
|
*
|
|
|
|
* @param path The absolute path of the file to open.
|
|
|
|
*
|
|
|
|
* @ingroup Content
|
|
|
|
*/
|
2014-02-15 16:29:00 -08:00
|
|
|
EAPI void edi_mainview_open_path(const char *path);
|
2014-02-15 15:17:40 -08:00
|
|
|
|
2014-02-25 23:28:24 -08:00
|
|
|
/**
|
|
|
|
* Open the file at path for editing using the type specified.
|
|
|
|
* Supported types are "text" and "image".
|
|
|
|
*
|
|
|
|
* @param path The absolute path of the file to open.
|
|
|
|
* @param type The requested type to use when opening the file
|
|
|
|
*
|
|
|
|
* @ingroup Content
|
|
|
|
*/
|
|
|
|
EAPI void edi_mainview_open_path_type(const char *path, const char *type);
|
|
|
|
|
2014-02-16 09:09:55 -08:00
|
|
|
/**
|
|
|
|
* Save the current file.
|
|
|
|
*
|
|
|
|
* @ingroup Content
|
|
|
|
*/
|
|
|
|
EAPI void edi_mainview_save();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Close the current file.
|
|
|
|
*
|
|
|
|
* @ingroup Content
|
|
|
|
*/
|
|
|
|
EAPI void edi_mainview_close();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Cut the current selection into the clipboard.
|
|
|
|
*
|
|
|
|
* @ingroup Content
|
|
|
|
*/
|
|
|
|
EAPI void edi_mainview_cut();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Copy the current selection into the clipboard.
|
|
|
|
*
|
|
|
|
* @ingroup Content
|
|
|
|
*/
|
|
|
|
EAPI void edi_mainview_copy();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Paste the current clipboard contents at the current cursor position.
|
|
|
|
*
|
|
|
|
* @ingroup Content
|
|
|
|
*/
|
|
|
|
EAPI void edi_mainview_paste();
|
|
|
|
|
2014-02-15 15:17:40 -08:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* EDI_MAINVIEW_H_ */
|