2014-02-15 15:17:40 -08:00
|
|
|
#ifndef EDI_FILEPANEL_H_
|
|
|
|
# define EDI_FILEPANEL_H_
|
2014-02-14 15:50:25 -08:00
|
|
|
|
|
|
|
#include <Elementary.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief These routines are used for managing the Edi file panel.
|
|
|
|
*/
|
|
|
|
|
2014-02-15 15:17:40 -08:00
|
|
|
typedef void (*edi_filepanel_item_clicked_cb)(const char *path);
|
|
|
|
|
2014-02-14 15:50:25 -08:00
|
|
|
/**
|
|
|
|
* @brief UI management functions.
|
|
|
|
* @defgroup UI
|
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* Initialisation and management of the file panel UI
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Initialize a new Edi filepanel and add it to the parent panel.
|
|
|
|
*
|
2014-02-23 12:22:32 -08:00
|
|
|
* @param parent The panel into which the panel will be loaded.
|
|
|
|
* @param win The main window of the application.
|
|
|
|
* @param win The project path being opened.
|
|
|
|
* @param win A callback to inform the app a file should be opened.
|
2014-02-14 15:50:25 -08:00
|
|
|
*
|
|
|
|
* @ingroup UI
|
|
|
|
*/
|
2014-02-23 12:22:32 -08:00
|
|
|
void edi_filepanel_add(Evas_Object *parent, Evas_Object *win,
|
|
|
|
const char *path, edi_filepanel_item_clicked_cb cb);
|
2014-02-14 15:50:25 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2014-02-15 15:17:40 -08:00
|
|
|
#endif /* EDI_FILEPANEL_H_ */
|