gattrib

x_dialog.c File Reference

#include <version.h>
#include <stdio.h>
#include <stdlib.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <gdk/gdkkeysyms.h>
#include <glib.h>
#include <glib-object.h>
#include <libgeda/libgeda.h>
#include "../include/struct.h"
#include "../include/prototype.h"
#include "../include/globals.h"
Include dependency graph for x_dialog.c:

Go to the source code of this file.

Functions

void x_dialog_newattrib ()
 Add new attribute dialog.
void x_dialog_delattrib ()
 Delete Attribute dialog.
void x_dialog_missing_sym ()
 Missing Symbol dialog.
void x_dialog_unsaved_data ()
 Unsaved data dialog.
void x_dialog_unimplemented_feature ()
 Unimplemented feature dialog.
void x_dialog_fatal_error (gchar *string, gint return_code)
 Fatal error dialog.
void x_dialog_about_dialog ()
 About gattrib dialog.
void x_dialog_export_file ()
 Export file dialog.

Detailed Description

Functions used to display dialog boxes.

Definition in file x_dialog.c.


Function Documentation

void x_dialog_newattrib ( )

This asks for the name of the attrib column to insert and then inserts the column.

Definition at line 69 of file x_dialog.c.

Here is the call graph for this function:

void x_dialog_delattrib ( )

This function throws up the "Delete foo, are you sure?" dialog box. It offers two buttons: "yes" and "cancel".

Definition at line 123 of file x_dialog.c.

Here is the call graph for this function:

void x_dialog_missing_sym ( )

This is the "missing symbol file found on object" dialog.

It offers the user the chance to close the project without saving because he read a schematic with a missing symbol file.

Definition at line 173 of file x_dialog.c.

void x_dialog_unsaved_data ( )

This is the "Unsaved data -- are you sure you want to quit?" dialog box which is thrown up before the user quits.

Definition at line 215 of file x_dialog.c.

Here is the call graph for this function:

void x_dialog_unimplemented_feature ( )

This function informs the user that he has chosen an unimplemented feature. It presents only an "OK" button to leave.

Definition at line 278 of file x_dialog.c.

void x_dialog_fatal_error ( gchar *  string,
gint  return_code 
)

This function displays a dialog with the error string and terminates the program.

Parameters:
[in]stringthe error string
[in]return_codethe exit code
Todo:
Is the GPOINTER_TO_INT() call needed in exit()?

Definition at line 310 of file x_dialog.c.

void x_dialog_about_dialog ( )

This dosplays the about dialog.

Definition at line 334 of file x_dialog.c.

void x_dialog_export_file ( )

This asks for the filename for the CSV export file and then does the exporting.

Definition at line 364 of file x_dialog.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines