navit  0.5.3-trunk
destination.c File Reference
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <gtk/gtk.h>
#include "debug.h"
#include "destination.h"
#include "navit.h"
#include "item.h"
#include "coord.h"
#include "track.h"
#include "country.h"
#include "search.h"
#include "projection.h"
#include "navit_nls.h"
#include "bookmarks.h"
#include <errno.h>

Data Structures

struct  search_param
 

Macros

#define COL_COUNT   8
 
#define MAX_ARGS   8
 

Functions

static char * description (struct search_param *search, GtkTreeIter *iter)
 
static void button_map (GtkWidget *widget, struct search_param *search)
 
static void button_destination (GtkWidget *widget, struct search_param *search)
 
static void button_bookmark (GtkWidget *widget, struct search_param *search)
 
static void set_columns (struct search_param *param, int mode)
 
static void row_activated (GtkWidget *widget, GtkTreePath *p1, GtkTreeViewColumn *c, struct search_param *search)
 
static void tree_view_button_release (GtkWidget *widget, GdkEventButton *event, struct search_param *search)
 
static void next_focus (struct search_param *search, GtkWidget *widget)
 
static void changed (GtkWidget *widget, struct search_param *search)
 
static void parse_xkbd_args (const char *cmd, char **argv)
 
static int spawn_xkbd (char *xkbd_path, char *xkbd_str)
 
int destination_address (struct navit *nav)
 

Variables

static struct search_param search_param
 
char ** columns_text []
 
int kbd_pid
 

Macro Definition Documentation

◆ COL_COUNT

#define COL_COUNT   8

Navit, a modular navigation system. Copyright (C) 2005-2008 Navit Team

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

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.

◆ MAX_ARGS

#define MAX_ARGS   8

Function Documentation

◆ button_bookmark()

static void button_bookmark ( GtkWidget *  widget,
struct search_param search 
)
static

◆ button_destination()

static void button_destination ( GtkWidget *  widget,
struct search_param search 
)
static

◆ button_map()

static void button_map ( GtkWidget *  widget,
struct search_param search 
)
static

◆ changed()

◆ description()

◆ destination_address()

◆ next_focus()

static void next_focus ( struct search_param search,
GtkWidget *  widget 
)
static

◆ parse_xkbd_args()

static void parse_xkbd_args ( const char *  cmd,
char **  argv 
)
static

References argv, MAX_ARGS, and p.

Referenced by spawn_xkbd().

◆ row_activated()

static void row_activated ( GtkWidget *  widget,
GtkTreePath *  p1,
GtkTreeViewColumn *  c,
struct search_param search 
)
static

◆ set_columns()

static void set_columns ( struct search_param param,
int  mode 
)
static

◆ spawn_xkbd()

static int spawn_xkbd ( char *  xkbd_path,
char *  xkbd_str 
)
static

References c, dbg, kbd_pid, lvl_error, MAX_ARGS, and parse_xkbd_args().

Referenced by destination_address().

◆ tree_view_button_release()

static void tree_view_button_release ( GtkWidget *  widget,
GdkEventButton *  event,
struct search_param search 
)
static

References search_param::treeview.

Referenced by destination_address().

Variable Documentation

◆ columns_text

char** columns_text[]
Initial value:
= {
(char *[]){_n("Car"),_n("Iso2"),_n("Iso3"),_n("Country"),NULL},
(char *[]){_n("Car"),_n("Postal"),_n("Town"),_n("District"),NULL},
(char *[]){_n("Car"),_n("Postal"),_n("Town"),_n("District"),_n("Street"),NULL},
(char *[]){_n("Car"),_n("Postal"),_n("Town"),_n("District"),_n("Street"),_n("Number"),NULL},
}
#define _n(STRING)
Definition: navit_nls.h:11

Referenced by set_columns().

◆ kbd_pid

int kbd_pid

Referenced by spawn_xkbd().

◆ search_param

struct search_param search_param
static

Referenced by destination_address().