Top | ![]() |
![]() |
![]() |
![]() |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkWindow ╰── VikWindow
GtkWidget * vik_window_get_drawmode_button (VikWindow *vw
,VikViewportDrawMode mode
);
gboolean
vik_window_get_pan_move (VikWindow *vw
);
Retrieves vw
's pan_move.
Should be removed as soon as possible.
Since: 0.9.96
void vik_window_open_file (VikWindow *vw
,const gchar *filename
,gboolean change_filename
,gboolean first
,gboolean last
,gboolean new_layer
,gboolean external
);
void vik_window_selected_layer (VikWindow *vw
,struct _VikLayer *vl
);
Use to align menu & toolbar layer tool radio buttons to the selected layer vl maybe NULL - then all layer tool buttons are desensitized
void vik_window_statusbar_update (VikWindow *vw
,const gchar *message
,vik_statusbar_type_t vs_type
);
This updates any part of the statusbar with the new string.
It handles calling from the main thread or any background thread
ATM this mostly used from background threads - as from the main thread
one may use the vik_statusbar_set_message()
directly.
void vik_window_enable_layer_tool (VikWindow *vw
,gint layer_id
,gint tool_id
);
void vik_window_set_selected_trw_layer (VikWindow *vw
,gpointer vtl
);
void vik_window_set_selected_tracks (VikWindow *vw
,GHashTable *ght
,gpointer vtl
);
void vik_window_set_selected_track (VikWindow *vw
,VikTrack *vt
,gpointer vtl
);
GHashTable *
vik_window_get_selected_waypoints (VikWindow *vw
);
void vik_window_set_selected_waypoints (VikWindow *vw
,GHashTable *ght
,gpointer vtl
);
void vik_window_set_selected_waypoint (VikWindow *vw
,gpointer *vwp
,gpointer vtl
);
gpointer
vik_window_get_containing_trw_layer (VikWindow *vw
);
typedef struct { VikWindow *vw; VikViewport *vvp; gpointer vtl; // VikTrwLayer gboolean holding; gboolean moving; gboolean is_waypoint; // otherwise a track GdkGC *gc; GdkColor color; // For GTK3+ use as no longer in the gc int oldx, oldy; // Monitor the bounds for the tool with shift modifier gboolean bounds_active; gint start_x; gint start_y; #if !GTK_CHECK_VERSION (3,0,0) GdkPixmap *pixmap; #endif // The following are mostly for ruler tool gboolean has_oldcoord; VikCoord oldcoord; gboolean displayed; } tool_ed_t;