view src/menu.hh @ 22:571f09e42ab6

- Hooked "Activate" to the form_receiver. - Connected the plain page context menu. - Added code for the image menu (not hooked yet though). - Added a image-loading toggle button to the UI (not functional yet).
author jcid
date Mon, 29 Oct 2007 15:51:30 +0100
parents 4a5942beffdf
children 224c9f547b39
line wrap: on
line source
#ifndef __MENU_HH__
#define __MENU_HH__

#include "bw.h"

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

void a_Menu_page_popup(BrowserWindow *bw, const DilloUrl *url,
                       const char *bugs_txt);
void a_Menu_link_popup(BrowserWindow *bw, const DilloUrl *url);
void a_Menu_image_popup(BrowserWindow *bw, const DilloUrl *url,
                        DilloUrl *link_url);
void a_Menu_bugmeter_popup(BrowserWindow *bw, const DilloUrl *url);
void a_Menu_history_popup(BrowserWindow *bw, int direction);

//---------------------
void a_Menu_popup_set_url(BrowserWindow *bw, const DilloUrl *url);
void a_Menu_popup_set_url2(BrowserWindow *bw, const DilloUrl *url);
void a_Menu_popup_clear_url2(void *menu_popup);

DilloUrl *a_Menu_popup_get_url(BrowserWindow *bw);

void a_Menu_pagemarks_new (BrowserWindow *bw);
void a_Menu_pagemarks_destroy (BrowserWindow *bw);
void a_Menu_pagemarks_add(BrowserWindow *bw, void *page, void *style,
                          int level);
void a_Menu_pagemarks_set_text(BrowserWindow *bw, const char *str);


#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* MENU_HH */