Classes | Functions
core/vgui/impl/gtk/vgui_gtk_dialog_impl.cxx File Reference

See vgui_gtk_dialog_impl.h for a description of this file. More...

#include "vgui_gtk_dialog_impl.h"
#include <vcl_string.h>
#include <vcl_vector.h>
#include <vcl_iostream.h>
#include <vul/vul_sprintf.h>
#include <vgui/vgui_gl.h>
#include <vgui/impl/gtk/vgui_gtk_adaptor.h>
#include <vgui/internals/vgui_dialog_field.h>
#include <vgui/internals/vgui_simple_field.h>
#include <vgui/vgui_tableau_sptr.h>
#include <gtk/gtkfilesel.h>

Go to the source code of this file.

Classes

struct  vgui_gtk_dialog_impl_choice
struct  vgui_gtk_dialog_impl_int_pair
struct  file_ok_data
struct  cancel_color_data

Functions

void choose_cb (GtkWidget *, gpointer data)
void ok_file_browse (file_ok_data *data)
 Gets the file selection for the file browser.
void cancel_file_browse (file_ok_data *data)
 Cancels the file selection.
void browse_files (GtkWidget *, GtkEntry *file_entry)
void color_changed_cb (GtkColorSelection *colorsel, GtkEntry *color_entry)
 Handles a change of color.
void ok_color_chooser (cancel_color_data *data)
 Handles OK button on color chooser.
void cancel_color_chooser (cancel_color_data *data)
 Handles cancel button on color chooser.
void choose_color (GtkWidget *, GtkEntry *color_entry)
 Display a colour chooser.

Detailed Description

See vgui_gtk_dialog_impl.h for a description of this file.

Author:
Philip C. Pritchett, RRG, University of Oxford
Date:
28 Dec 99

Definition in file vgui_gtk_dialog_impl.cxx.


Function Documentation

void browse_files ( GtkWidget *  ,
GtkEntry *  file_entry 
)

Definition at line 185 of file vgui_gtk_dialog_impl.cxx.

void cancel_color_chooser ( cancel_color_data data)

Handles cancel button on color chooser.

by resetting the color to its original value, shutting down the color chooser and passing control back to the dialog.

Definition at line 244 of file vgui_gtk_dialog_impl.cxx.

void cancel_file_browse ( file_ok_data data)

Cancels the file selection.

Definition at line 177 of file vgui_gtk_dialog_impl.cxx.

void choose_cb ( GtkWidget *  ,
gpointer  data 
)

Definition at line 122 of file vgui_gtk_dialog_impl.cxx.

void choose_color ( GtkWidget *  ,
GtkEntry *  color_entry 
)

Display a colour chooser.

Definition at line 255 of file vgui_gtk_dialog_impl.cxx.

void color_changed_cb ( GtkColorSelection *  colorsel,
GtkEntry *  color_entry 
)

Handles a change of color.

Done by passing the value back to the (hidden) text entry in the dialog box.

Definition at line 210 of file vgui_gtk_dialog_impl.cxx.

void ok_color_chooser ( cancel_color_data data)

Handles OK button on color chooser.

by closing the dialog window and releasing memory.

Definition at line 233 of file vgui_gtk_dialog_impl.cxx.

void ok_file_browse ( file_ok_data data)

Gets the file selection for the file browser.

Definition at line 167 of file vgui_gtk_dialog_impl.cxx.