VikWindow

VikWindow

Functions

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBin
                    ╰── GtkWindow
                        ╰── VikWindow

Description

Functions

vik_window_new_window ()

VikWindow *
vik_window_new_window ();

vik_window_new_window_finish ()

void
vik_window_new_window_finish (VikWindow *vw);

vik_window_get_drawmode_button ()

GtkWidget *
vik_window_get_drawmode_button (VikWindow *vw,
                                VikViewportDrawMode mode);

vik_window_get_pan_move ()

gboolean
vik_window_get_pan_move (VikWindow *vw);

Retrieves vw 's pan_move.

Should be removed as soon as possible.

Parameters

vw

some VikWindow

 

Returns

vw 's pan_move

Since: 0.9.96


vik_window_open_file ()

void
vik_window_open_file (VikWindow *vw,
                      const gchar *filename,
                      gboolean change_filename,
                      gboolean first,
                      gboolean last,
                      gboolean new_layer,
                      gboolean external);

vik_window_selected_layer ()

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


vik_window_viewport ()

struct _VikViewport *
vik_window_viewport (VikWindow *vw);

vik_window_layers_panel ()

struct _VikLayersPanel *
vik_window_layers_panel (VikWindow *vw);

vik_window_get_statusbar ()

struct _VikStatusbar *
vik_window_get_statusbar (VikWindow *vw);

vik_window_get_filename ()

const gchar *
vik_window_get_filename (VikWindow *vw);

vik_window_statusbar_update ()

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.

Parameters

vw

The main window in which the statusbar will be updated.

 

message

The string to be displayed. This is copied.

 

vs_type

The part of the statusbar to be updated.

 

vik_window_set_redraw_trigger ()

void
vik_window_set_redraw_trigger (struct _VikLayer *vl);

vik_window_enable_layer_tool ()

void
vik_window_enable_layer_tool (VikWindow *vw,
                              gint layer_id,
                              gint tool_id);

vik_window_get_selected_trw_layer ()

gpointer
vik_window_get_selected_trw_layer (VikWindow *vw);

vik_window_set_selected_trw_layer ()

void
vik_window_set_selected_trw_layer (VikWindow *vw,
                                   gpointer vtl);

vik_window_get_selected_tracks ()

GHashTable *
vik_window_get_selected_tracks (VikWindow *vw);

vik_window_set_selected_tracks ()

void
vik_window_set_selected_tracks (VikWindow *vw,
                                GHashTable *ght,
                                gpointer vtl);

vik_window_get_selected_track ()

VikTrack *
vik_window_get_selected_track (VikWindow *vw);

vik_window_set_selected_track ()

void
vik_window_set_selected_track (VikWindow *vw,
                               VikTrack *vt,
                               gpointer vtl);

vik_window_get_selected_waypoints ()

GHashTable *
vik_window_get_selected_waypoints (VikWindow *vw);

vik_window_set_selected_waypoints ()

void
vik_window_set_selected_waypoints (VikWindow *vw,
                                   GHashTable *ght,
                                   gpointer vtl);

vik_window_get_selected_waypoint ()

gpointer
vik_window_get_selected_waypoint (VikWindow *vw);

vik_window_set_selected_waypoint ()

void
vik_window_set_selected_waypoint (VikWindow *vw,
                                  gpointer *vwp,
                                  gpointer vtl);

vik_window_get_containing_trw_layer ()

gpointer
vik_window_get_containing_trw_layer (VikWindow *vw);

vik_window_get_thread ()

GThread *
vik_window_get_thread (VikWindow *vw);

vik_window_set_busy_cursor ()

void
vik_window_set_busy_cursor (VikWindow *vw);

vik_window_clear_busy_cursor ()

void
vik_window_clear_busy_cursor (VikWindow *vw);

VIK_WINDOW_FROM_WIDGET()

#define VIK_WINDOW_FROM_WIDGET(x) VIK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(x)))

Types and Values

VIK_WINDOW_TYPE

#define VIK_WINDOW_TYPE            (vik_window_get_type ())

tool_ed_t

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;

Signal Details

The “newwindow” signal

void
user_function (VikWindow *vikwindow,
               gpointer   user_data)

Flags: Action