add context menu 2
parent
4c8ad2aee0
commit
2a6fd55e2e
|
@ -30,7 +30,6 @@ EventHandler::EventHandler()
|
||||||
|
|
||||||
if (iv_access(NEXTCLOUD_CONFIG_PATH.c_str(), W_OK) == 0)
|
if (iv_access(NEXTCLOUD_CONFIG_PATH.c_str(), W_OK) == 0)
|
||||||
{
|
{
|
||||||
_menu.drawLoadingScreen();
|
|
||||||
if (_nextcloud.login())
|
if (_nextcloud.login())
|
||||||
{
|
{
|
||||||
_listView = std::unique_ptr<ListView>(new ListView(_menu.getContentRect(), _nextcloud.getItems()));
|
_listView = std::unique_ptr<ListView>(new ListView(_menu.getContentRect(), _nextcloud.getItems()));
|
||||||
|
|
|
@ -60,6 +60,21 @@ private:
|
||||||
*/
|
*/
|
||||||
void mainMenuHandler(const int index);
|
void mainMenuHandler(const int index);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Function needed to call C function, redirects to real function
|
||||||
|
*
|
||||||
|
* @param index int of the menu that is set
|
||||||
|
*/
|
||||||
|
static void contextMenuHandlerStatic(const int index);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handlescontext menu events and redirects them
|
||||||
|
*
|
||||||
|
* @param index int of the menu that is set
|
||||||
|
*/
|
||||||
|
|
||||||
|
void contextMenuHandler(const int index);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles pointer Events
|
* Handles pointer Events
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue