18#include <gdk/gdkkeysyms.h>
46#define MAX_LUACONSOLE_HISTORY 20
341 if (
NULL != filename) {
360 switch (
ev->keyval) {
420 if (pdialog->
shell) {
428 &end, 0.0,
TRUE, 1.0, 0.0);
447 if (pdialog->
shell) {
const struct ft_color ftc_luaconsole_input
#define text_tag_list_iterate_end
#define text_tag_list_iterate(tags, ptag)
bool genlist_remove(struct genlist *pgenlist, const void *punlink)
struct genlist * genlist_new(void)
void * genlist_get(const struct genlist *pgenlist, int idx)
void genlist_prepend(struct genlist *pgenlist, void *data)
void genlist_destroy(struct genlist *pgenlist)
int genlist_size(const struct genlist *pgenlist)
void set_message_buffer_view_link_handlers(GtkWidget *view)
void scroll_if_necessary(GtkTextView *textview, GtkTextMark *scroll_target)
void apply_text_tag(const struct text_tag *ptag, GtkTextBuffer *buf, ft_offset_t text_start_offset, const char *text)
GtkWidget * bottom_notebook
GtkWidget * right_notebook
#define GUI_GTK_OPTION(optname)
void gui_dialog_destroy(struct gui_dialog *dlg)
void gui_dialog_present(struct gui_dialog *dlg)
void gui_dialog_raise(struct gui_dialog *dlg)
void gui_dialog_new(struct gui_dialog **pdlg, GtkNotebook *notebook, gpointer user_data, bool check_top)
void gui_dialog_response_set_callback(struct gui_dialog *dlg, GUI_DIALOG_RESPONSE_FUN fun)
void gui_dialog_show_all(struct gui_dialog *dlg)
void gui_dialog_set_title(struct gui_dialog *dlg, const char *title)
GtkWidget * gui_dialog_add_button(struct gui_dialog *dlg, const char *icon_name, const char *text, int response)
void setup_dialog(GtkWidget *shell, GtkWidget *parent)
#define MAX_LUACONSOLE_HISTORY
void luaconsole_dialog_popdown(void)
static struct luaconsole_data * luaconsole_dialog_get(void)
static void luaconsole_dialog_scroll_to_bottom(void)
void luaconsole_dialog_init(void)
bool luaconsole_dialog_is_open(void)
static void luaconsole_load_file_callback(GtkWidget *widget, gint response, gpointer data)
static void luaconsole_dialog_create(struct luaconsole_data *pdialog)
static void luaconsole_response_callback(struct gui_dialog *pgui_dialog, int response, gpointer data)
static struct luaconsole_data * luaconsole
static void luaconsole_dialog_refresh(struct luaconsole_data *pdialog)
static void luaconsole_dialog_destroy(struct luaconsole_data *pdialog)
static void luaconsole_input_return(GtkEntry *w, gpointer data)
void real_luaconsole_append(const char *astring, const struct text_tag_list *tags)
static void luaconsole_load_file_popup(void)
void real_luaconsole_dialog_update(void)
void luaconsole_dialog_popup(bool raise)
static gboolean luaconsole_input_handler(GtkWidget *w, GdkEventKey *ev)
void luaconsole_dialog_done(void)
static void luaconsole_dialog_area_size_allocate(GtkWidget *widget, GtkAllocation *allocation, gpointer data)
#define fc_assert_ret(condition)
#define fc_assert(condition)
#define fc_assert_ret_val(condition, val)
void luaconsole_welcome_message(void)
void luaconsole_printf(const struct ft_color color, const char *format,...)
#define fc_calloc(n, esz)
bool script_client_do_file(const char *filename)
bool script_client_do_string(const char *str)
struct gui_dialog * shell
struct genlist * history_list
GtkTextView * message_area
GtkTextBuffer * message_buffer
struct tm * fc_localtime(const time_t *timep, struct tm *result)