mirror of
https://github.com/rkd77/elinks.git
synced 2024-10-03 03:56:32 -04:00
71 lines
1.9 KiB
C
71 lines
1.9 KiB
C
#ifndef EL__DIALOGS_MENU_H
|
|
#define EL__DIALOGS_MENU_H
|
|
|
|
#include "bfu/menu.h"
|
|
#include "cache/cache.h"
|
|
#include "session/task.h"
|
|
#include "terminal/terminal.h"
|
|
#include "viewer/action.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct document_view;
|
|
struct open_in_new;
|
|
struct session;
|
|
struct uri;
|
|
|
|
void activate_bfu_technology(struct session *, int);
|
|
|
|
void dialog_goto_url(struct session *ses, char *url);
|
|
/* void dialog_save_url(struct session *ses); */
|
|
|
|
void tab_menu(struct session *ses, int x, int y,
|
|
int place_above_cursor);
|
|
|
|
void free_history_lists(void);
|
|
|
|
void query_file(struct session *, struct uri *, void *, void (*)(void *, char *), void (*)(void *), int);
|
|
|
|
void query_exit(struct session *ses);
|
|
void exit_prog(struct session *ses, int query);
|
|
|
|
void save_url_as(struct session *ses);
|
|
|
|
void
|
|
open_uri_in_new_window(struct session *ses, struct uri *uri, struct uri *referrer,
|
|
term_env_type_T env, cache_mode_T cache_mode,
|
|
enum task_type task);
|
|
|
|
void send_open_new_window(struct terminal *term, const struct open_in_new *open, struct session *ses);
|
|
void send_open_in_new_window(struct terminal *term, const struct open_in_new *open, struct session *ses);
|
|
|
|
void open_in_new_window(struct terminal *term, void *func_, void *ses_);
|
|
|
|
void add_new_win_to_menu(struct menu_item **mi, char *text, struct terminal *term);
|
|
|
|
/* URI passing: */
|
|
|
|
/* Controls what URI to use */
|
|
enum pass_uri_type {
|
|
PASS_URI_FRAME,
|
|
PASS_URI_LINK,
|
|
PASS_URI_TAB,
|
|
};
|
|
|
|
typedef int pass_uri_type_T;
|
|
|
|
void add_uri_command_to_menu(struct menu_item **mi, pass_uri_type_T type, char *text);
|
|
enum frame_event_status pass_uri_to_command(struct session *ses, struct document_view *doc_view, int /* pass_uri_type_T */ type);
|
|
|
|
void
|
|
auto_complete_file(struct terminal *term, int no_elevator, char *path,
|
|
menu_func_T file_func, menu_func_T dir_func, void *data);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|