2006-09-05 14:24:47 +00:00
|
|
|
/*
|
|
|
|
* ui_utils.h - this file is part of Geany, a fast and lightweight IDE
|
|
|
|
*
|
2007-01-14 17:36:42 +00:00
|
|
|
* Copyright 2006-2007 Enrico Tröger <enrico.troeger@uvena.de>
|
|
|
|
* Copyright 2006-2007 Nick Treleaven <nick.treleaven@btinternet.com>
|
2006-09-05 14:24:47 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GEANY_UI_UTILS_H
|
|
|
|
#define GEANY_UI_UTILS_H 1
|
|
|
|
|
2006-11-25 16:33:38 +00:00
|
|
|
// Display text on the statusbar without logging it to the Status window.
|
|
|
|
void ui_set_statusbar(const gchar *format, ...) G_GNUC_PRINTF (1, 2);
|
2006-09-05 14:24:47 +00:00
|
|
|
|
|
|
|
void ui_update_statusbar(gint idx, gint pos);
|
|
|
|
|
|
|
|
|
|
|
|
/* This sets the window title according to the current filename. */
|
|
|
|
void ui_set_window_title(gint index);
|
|
|
|
|
|
|
|
void ui_set_editor_font(const gchar *font_name);
|
|
|
|
|
|
|
|
void ui_set_fullscreen();
|
|
|
|
|
|
|
|
|
|
|
|
void ui_update_popup_reundo_items(gint idx);
|
|
|
|
|
|
|
|
void ui_update_popup_copy_items(gint idx);
|
|
|
|
|
|
|
|
void ui_update_popup_goto_items(gboolean enable);
|
|
|
|
|
|
|
|
|
|
|
|
void ui_update_menu_copy_items(gint idx);
|
|
|
|
|
|
|
|
void ui_update_insert_include_item(gint idx, gint item);
|
|
|
|
|
|
|
|
void ui_update_fold_items();
|
|
|
|
|
|
|
|
|
|
|
|
void ui_create_insert_menu_items();
|
|
|
|
|
|
|
|
void ui_create_insert_date_menu_items();
|
|
|
|
|
|
|
|
|
|
|
|
void ui_save_buttons_toggle(gboolean enable);
|
|
|
|
|
|
|
|
void ui_close_buttons_toggle();
|
|
|
|
|
|
|
|
|
|
|
|
void ui_widget_show_hide(GtkWidget *widget, gboolean show);
|
|
|
|
|
|
|
|
void ui_treeviews_show_hide(gboolean force);
|
|
|
|
|
|
|
|
void ui_document_show_hide(gint idx);
|
|
|
|
|
|
|
|
|
|
|
|
void ui_update_toolbar_icons(GtkIconSize size);
|
|
|
|
|
|
|
|
void ui_update_toolbar_items();
|
|
|
|
|
|
|
|
|
|
|
|
GdkPixbuf *ui_new_pixbuf_from_inline(gint img, gboolean small_img);
|
|
|
|
|
|
|
|
GtkWidget *ui_new_image_from_inline(gint img, gboolean small_img);
|
|
|
|
|
|
|
|
|
2006-09-09 14:36:15 +00:00
|
|
|
void ui_create_recent_menu();
|
2006-09-05 14:24:47 +00:00
|
|
|
|
2006-09-09 14:36:15 +00:00
|
|
|
void ui_add_recent_file(const gchar *utf8_filename);
|
2006-09-05 14:24:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
void ui_show_markers_margin();
|
|
|
|
|
|
|
|
void ui_show_linenumber_margin();
|
|
|
|
|
2006-09-15 14:25:42 +00:00
|
|
|
|
2006-11-24 11:11:06 +00:00
|
|
|
GtkWidget *ui_frame_new_with_alignment(const gchar *label_text, GtkWidget **alignment);
|
2006-09-15 14:25:42 +00:00
|
|
|
|
2006-10-22 14:56:05 +00:00
|
|
|
GtkWidget *ui_dialog_vbox_new(GtkDialog *dialog);
|
|
|
|
|
2006-11-01 15:26:41 +00:00
|
|
|
GtkWidget *ui_button_new_with_image(const gchar *stock_id, const gchar *text);
|
|
|
|
|
|
|
|
void ui_hbutton_box_copy_layout(GtkButtonBox *master, GtkButtonBox *copy);
|
|
|
|
|
2006-11-15 15:57:23 +00:00
|
|
|
void ui_combo_box_add_to_history(GtkComboBox *combo, const gchar *text);
|
|
|
|
|
2007-04-29 12:03:25 +00:00
|
|
|
GtkWidget *ui_path_box_new(GtkEntry *entry, GtkFileChooserAction action);
|
|
|
|
|
|
|
|
void ui_setup_open_button_callback(GtkWidget *open_btn, GtkEntry *entry,
|
|
|
|
GtkFileChooserAction action);
|
|
|
|
|
2006-12-05 10:37:36 +00:00
|
|
|
|
|
|
|
void ui_update_tab_status(gint idx);
|
|
|
|
|
2006-12-08 15:50:10 +00:00
|
|
|
|
|
|
|
typedef gboolean TVMatchCallback();
|
|
|
|
|
|
|
|
gboolean ui_tree_view_find_next(GtkTreeView *treeview, TVMatchCallback cb);
|
|
|
|
|
2006-12-13 15:18:49 +00:00
|
|
|
|
|
|
|
void ui_widget_modify_font_from_string(GtkWidget *wid, const gchar *str);
|
|
|
|
|
2006-09-05 14:24:47 +00:00
|
|
|
#endif
|