Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
|
Go to the source code of this file.
Data Structures | |
struct | _EvSearchBoxPrivate |
Macros | |
#define | FIND_PAGE_RATE_REFRESH 100 |
Enumerations | |
enum | { STARTED, UPDATED, FINISHED, CLEARED, NEXT, PREVIOUS, LAST_SIGNAL } |
enum | { PROP_0, PROP_DOCUMENT_MODEL, PROP_OPTIONS } |
Functions | |
static void | ev_search_box_update_progress (EvSearchBox *box) |
static void | ev_search_box_clear_job (EvSearchBox *box) |
static void | find_job_finished_cb (EvJobFind *job, EvSearchBox *box) |
static gboolean | find_check_refresh_rate (EvJobFind *job, gint page_rate) |
static void | find_job_updated_cb (EvJobFind *job, gint page, EvSearchBox *box) |
static void | search_changed_cb (GtkSearchEntry *entry, EvSearchBox *box) |
static void | previous_clicked_cb (GtkButton *button, EvSearchBox *box) |
static void | next_clicked_cb (GtkButton *button, EvSearchBox *box) |
static void | ev_search_box_set_supported_options (EvSearchBox *box, EvFindOptions options) |
static void | ev_search_box_setup_document (EvSearchBox *box, EvDocument *document) |
static void | document_changed_cb (EvDocumentModel *model, GParamSpec *pspec, EvSearchBox *box) |
static void | ev_search_box_set_options (EvSearchBox *box, EvFindOptions options) |
static void | whole_words_only_toggled_cb (GtkCheckMenuItem *menu_item, EvSearchBox *box) |
static void | case_sensitive_toggled_cb (GtkCheckMenuItem *menu_item, EvSearchBox *box) |
static void | ev_search_box_entry_populate_popup (EvSearchBox *box, GtkWidget *menu) |
static void | entry_icon_release_cb (GtkEntry *entry, GtkEntryIconPosition icon_pos, GdkEventButton *event, EvSearchBox *box) |
static void | entry_populate_popup_cb (GtkEntry *entry, GtkMenu *menu, EvSearchBox *box) |
static void | entry_activate_cb (GtkEntry *entry, EvSearchBox *box) |
static void | entry_next_match_cb (GtkSearchEntry *entry, EvSearchBox *box) |
static void | entry_previous_match_cb (GtkSearchEntry *entry, EvSearchBox *box) |
static void | ev_search_box_finalize (GObject *object) |
static void | ev_search_box_dispose (GObject *object) |
static void | ev_search_box_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) |
static void | ev_search_box_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) |
static void | ev_search_box_constructed (GObject *object) |
static void | ev_search_box_grab_focus (GtkWidget *widget) |
static void | ev_search_box_class_init (EvSearchBoxClass *klass) |
static void | ev_search_box_init (EvSearchBox *box) |
GtkWidget * | ev_search_box_new (EvDocumentModel *model) |
GtkSearchEntry * | ev_search_box_get_entry (EvSearchBox *box) |
gboolean | ev_search_box_has_results (EvSearchBox *box) |
void | ev_search_box_restart (EvSearchBox *box) |
Variables | |
static guint | signals [LAST_SIGNAL] = { 0 } |
#define FIND_PAGE_RATE_REFRESH 100 |
Definition at line 63 of file ev-search-box.c.
anonymous enum |
Enumerator | |
---|---|
STARTED | |
UPDATED | |
FINISHED | |
CLEARED | |
NEXT | |
PREVIOUS | |
LAST_SIGNAL |
Definition at line 26 of file ev-search-box.c.
anonymous enum |
Enumerator | |
---|---|
PROP_0 | |
PROP_DOCUMENT_MODEL | |
PROP_OPTIONS |
Definition at line 38 of file ev-search-box.c.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 476 of file ev-search-box.c.
|
static |
|
static |
|
static |
|
static |
|
static |
GtkSearchEntry* ev_search_box_get_entry | ( | EvSearchBox * | box) |
|
static |
|
static |
gboolean ev_search_box_has_results | ( | EvSearchBox * | box) |
|
static |
Definition at line 571 of file ev-search-box.c.
GtkWidget* ev_search_box_new | ( | EvDocumentModel * | model) |
void ev_search_box_restart | ( | EvSearchBox * | box) |
|
static |
|
static |
|
static |
|
static |
Definition at line 241 of file ev-search-box.c.
|
static |
Definition at line 66 of file ev-search-box.c.
|
inlinestatic |
find_bar_check_refresh_rate:
Check whether the current page should trigger an status update in the find bar given its document size and the rate page.
For documents with less pages than page_rate, it will return TRUE for every page. For documents with more pages, it will return TRUE every ((total_pages / page rate) + 1).
This slow down the update rate in the GUI, making the search more responsive.
Definition at line 129 of file ev-search-box.c.
|
static |
Definition at line 92 of file ev-search-box.c.
|
static |
|
static |
|
static |
|
static |
Definition at line 160 of file ev-search-box.c.
|
static |
|
static |
Definition at line 61 of file ev-search-box.c.