navit
0.5.3-trunk
|
#include <string.h>
#include <gtk/gtk.h>
#include "navit.h"
#include "gui_gtk.h"
#include "menu.h"
#include "coord.h"
#include "item.h"
#include "attr.h"
#include "callback.h"
#include "debug.h"
#include "destination.h"
#include "navit_nls.h"
#include "gui_gtk_poi.h"
#include <stdlib.h>
#include "point.h"
#include "transform.h"
Data Structures | |
struct | menu_priv |
Functions | |
static void | zoom_in_action (GtkWidget *w, struct gui_priv *gui, void *dummy) |
static void | zoom_out_action (GtkWidget *w, struct gui_priv *gui, void *dummy) |
static void | refresh_action (GtkWidget *w, struct gui_priv *gui, void *dummy) |
void | gui_gtk_datawindow_set_button (struct datawindow_priv *this_, GtkWidget *btn) |
void | gui_gtk_datawindow_destroy (struct datawindow_priv *win) |
static void | roadbook_action (GtkWidget *w, struct gui_priv *gui, void *dummy) |
static void | autozoom_action (GtkWidget *w, struct gui_priv *gui, void *dummy) |
static void | cursor_action (GtkWidget *w, struct gui_priv *gui, void *dummy) |
static void | tracking_action (GtkWidget *w, struct gui_priv *gui, void *dummy) |
static void | follow_vehicle_action (GtkWidget *w, struct gui_priv *gui, void *dummy) |
Toggles the ability to follow the vehicle at the cursor. Suitable for use in the GTK menu as below. More... | |
static void | orient_north_action (GtkWidget *w, struct gui_priv *gui, void *dummy) |
static void | window_fullscreen_action (GtkWidget *w, struct gui_priv *gui, void *dummy) |
static void | info_action (GtkWidget *w, struct gui_priv *gui, void *dummy) |
static void | route_clear_action (GtkWidget *w, struct gui_priv *gui, void *dummy) |
static void | poi_search_action (GtkWidget *w, struct gui_priv *gui, void *dummy) |
static void | destination_action (GtkWidget *w, struct gui_priv *gui, void *dummy) |
static void | quit_action (GtkWidget *w, struct gui_priv *gui, void *dummy) |
static void | register_my_stock_icons (void) |
static void | activate (void *dummy, struct menu_priv *menu) |
static struct menu_priv * | add_menu (struct menu_priv *menu, struct menu_methods *meth, char *name, enum menu_type type, struct callback *cb) |
static void | remove_menu (struct menu_priv *item, int recursive) |
static void | set_toggle (struct menu_priv *menu, int active) |
static int | get_toggle (struct menu_priv *menu) |
static void | popup_deactivate (GtkWidget *widget, struct menu_priv *menu) |
static void | popup_activate (struct menu_priv *menu) |
void | gui_gtk_ui_init (struct gui_priv *this) |
static struct menu_priv * | gui_gtk_ui_new (struct gui_priv *this, struct menu_methods *meth, char *path, int popup, GtkWidget **widget_ret) |
struct menu_priv * | gui_gtk_popup_new (struct gui_priv *this, struct menu_methods *meth) |
Variables | |
static GtkActionEntry | entries [] |
static guint | n_entries = G_N_ELEMENTS (entries) |
static GtkToggleActionEntry | toggleentries [] |
static guint | n_toggleentries = G_N_ELEMENTS (toggleentries) |
static GtkActionEntry | debug_entries [] |
static guint | n_debug_entries = G_N_ELEMENTS (debug_entries) |
static const char * | cursor_xpm [] |
static const char * | north_xpm [] |
static const char * | flag_xpm [] |
struct { | |
gchar * stockid | |
const char ** icon_xpm | |
} | stock_icons [] |
static gint | n_stock_icons = G_N_ELEMENTS (stock_icons) |
static char | layout [] |
static struct menu_methods | menu_methods |
|
static |
References callback_call_0.
Referenced by add_menu().
|
static |
|
static |
References navit_set_attr(), attr::num, attr::type, and attr::u.
|
static |
References dbg, lvl_error, navit_set_attr(), attr::num, attr::type, and attr::u.
|
static |
References destination_address().
|
static |
Toggles the ability to follow the vehicle at the cursor. Suitable for use in the GTK menu as below.
GtkWidget | is the generic storage type for widgets. |
gui | The gui. I think, I'm new here. |
dummy | Ignore the pointer behind the curtain. |
References dbg, lvl_error, navit_set_attr(), attr::num, attr::type, and attr::u.
|
static |
void gui_gtk_datawindow_destroy | ( | struct datawindow_priv * | win | ) |
References gui_gtk_datawindow_delete(), and gui_priv::win.
Referenced by roadbook_action().
void gui_gtk_datawindow_set_button | ( | struct datawindow_priv * | this_, |
GtkWidget * | btn | ||
) |
References datawindow_priv::button.
Referenced by roadbook_action().
struct menu_priv* gui_gtk_popup_new | ( | struct gui_priv * | this, |
struct menu_methods * | meth | ||
) |
References gui_gtk_ui_new().
void gui_gtk_ui_init | ( | struct gui_priv * | this | ) |
References debug_entries, entries, n_debug_entries, n_entries, n_toggleentries, navit_get_attr(), attr::num, register_my_stock_icons(), toggleentries, and attr::u.
Referenced by gui_gtk_new().
|
static |
References menu_priv::gui, menu_methods, menu_priv::path, popup(), menu_methods::popup, popup_activate(), and menu_priv::widget.
Referenced by gui_gtk_popup_new().
|
static |
References dbg, lvl_debug, navit_get_trans(), p, transform_get_size(), transform_reverse(), coord::x, and coord::y.
|
static |
References dbg, lvl_error, navit_set_attr(), attr::num, attr::type, and attr::u.
|
static |
References gtk_gui_poi().
|
static |
References popup_deactivate().
Referenced by gui_gtk_ui_new().
|
static |
References remove_menu().
Referenced by popup_activate().
|
static |
References exit, and navit_destroy().
|
static |
References navit_draw().
|
static |
References icon_xpm, n_stock_icons, stock_icons, and stockid.
Referenced by gui_gtk_ui_init().
|
static |
References menu_priv::child, next, and menu_priv::sibling.
Referenced by popup_deactivate().
|
static |
|
static |
References navit_set_destination().
|
static |
References dbg, lvl_error, navit_set_attr(), attr::num, attr::type, and attr::u.
|
static |
|
static |
References navit_zoom_in().
|
static |
References navit_zoom_out().
|
static |
|
static |
Referenced by gui_gtk_ui_init().
|
static |
Referenced by org.navitproject.navit.NavitRestoreTask::doInBackground(), NGQProxyNavit::getAttrList(), NGQProxyBookmarks::getBookmarks(), NGQPoint::getInformation(), NGQPoint::getPOI(), gui_gtk_ui_init(), and NGQProxySearch::searchXml().
|
static |
const char** icon_xpm |
Referenced by register_my_stock_icons().
|
static |
Referenced by navit_add_layout(), and navit_update_current_layout().
|
static |
Referenced by add_menu(), and gui_gtk_ui_new().
|
static |
Referenced by gui_gtk_ui_init().
|
static |
Referenced by gui_gtk_ui_init().
|
static |
Referenced by register_my_stock_icons().
|
static |
Referenced by gui_gtk_ui_init().
|
static |
struct { ... } stock_icons[] |
Referenced by register_my_stock_icons().
gchar* stockid |
Referenced by register_my_stock_icons().
|
static |
Referenced by gui_gtk_ui_init().