Classes | Functions
core/vgui/impl/gtk2/vgui_gtk2_dialog_impl.cxx File Reference

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

#include "vgui_gtk2_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/vgui_command.h>
#include <vgui/internals/vgui_dialog_field.h>
#include <vgui/internals/vgui_simple_field.h>
#include <vgui/internals/vgui_button_field.h>
#include <gtk/gtkfilesel.h>
#include "vgui_gtk2_adaptor.h"

Go to the source code of this file.

Classes

struct  vgui_gtk2_dialog_impl_choice
struct  vgui_gtk2_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_gtk2_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_gtk2_dialog_impl.cxx.


Function Documentation

void browse_files ( GtkWidget *  ,
GtkEntry *  file_entry 
)

Definition at line 207 of file vgui_gtk2_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 264 of file vgui_gtk2_dialog_impl.cxx.

void cancel_file_browse ( file_ok_data data)

Cancels the file selection.

Definition at line 199 of file vgui_gtk2_dialog_impl.cxx.

void choose_cb ( GtkWidget *  ,
gpointer  data 
)

Definition at line 153 of file vgui_gtk2_dialog_impl.cxx.

void choose_color ( GtkWidget *  ,
GtkEntry *  color_entry 
)

Display a colour chooser.

Definition at line 274 of file vgui_gtk2_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 232 of file vgui_gtk2_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 254 of file vgui_gtk2_dialog_impl.cxx.

void ok_file_browse ( file_ok_data data)

Gets the file selection for the file browser.

Definition at line 189 of file vgui_gtk2_dialog_impl.cxx.