mirror of
https://github.com/leozide/leocad
synced 2025-01-30 20:34:56 +01:00
Updated several Linux dialogs.
This commit is contained in:
parent
cadab1896f
commit
82f33c200f
3 changed files with 575 additions and 680 deletions
1224
linux/dialogs.cpp
1224
linux/dialogs.cpp
File diff suppressed because it is too large
Load diff
|
@ -2,27 +2,27 @@
|
||||||
#define _DIALOGS_H_
|
#define _DIALOGS_H_
|
||||||
|
|
||||||
// Dialog support functions
|
// Dialog support functions
|
||||||
void dialog_button_callback (GtkWidget *widget, gpointer data);
|
void dialog_button_callback(GtkWidget *widget, gpointer data);
|
||||||
gint dialog_delete_callback (GtkWidget *widget, GdkEvent* event, gpointer data);
|
gint dialog_delete_callback(GtkWidget *widget, GdkEvent* event, gpointer data);
|
||||||
|
|
||||||
// obsolete
|
// obsolete
|
||||||
int dlg_domodal (GtkWidget* dlg, int def);
|
int dlg_domodal(GtkWidget* dlg, int def);
|
||||||
void dlg_end (int ret);
|
void dlg_end(int ret);
|
||||||
gint dlg_delete_callback (GtkWidget *widget, GdkEvent* event, gpointer data);
|
gint dlg_delete_callback(GtkWidget *widget, GdkEvent* event, gpointer data);
|
||||||
void dlg_default_callback(GtkWidget *widget, gpointer data);
|
void dlg_default_callback(GtkWidget *widget, gpointer data);
|
||||||
|
|
||||||
void modifydlg_toggle ();
|
void modifydlg_toggle();
|
||||||
|
|
||||||
// All dialogs
|
// All dialogs
|
||||||
int openprojectdlg_execute (char* filename);
|
int openprojectdlg_execute(char* filename);
|
||||||
int saveprojectdlg_execute (char* filename);
|
int saveprojectdlg_execute(char* filename);
|
||||||
int savepicturedlg_execute (void* param);
|
int savepicturedlg_execute(void* param);
|
||||||
int msgbox_execute (const char* text, const char *caption, int flags);
|
int msgbox_execute(const char* text, const char *caption, int flags);
|
||||||
int filedlg_execute(const char* caption, char* filename);
|
int filedlg_execute(const char* caption, char* filename);
|
||||||
int arraydlg_execute(void* param);
|
int arraydlg_execute(void* param);
|
||||||
int aboutdlg_execute(void* param);
|
int aboutdlg_execute(void* param);
|
||||||
int htmldlg_execute(void* param);
|
int htmldlg_execute(void* param);
|
||||||
int imageoptsdlg_execute(void* param, bool from_htmldlg);
|
int imageoptsdlg_execute(GtkWidget* parent, void* param, bool from_htmldlg);
|
||||||
int povraydlg_execute(void* param);
|
int povraydlg_execute(void* param);
|
||||||
int preferencesdlg_execute(void* param);
|
int preferencesdlg_execute(void* param);
|
||||||
int propertiesdlg_execute(void* param);
|
int propertiesdlg_execute(void* param);
|
||||||
|
@ -33,8 +33,3 @@ int librarydlg_execute(void* param);
|
||||||
|
|
||||||
#endif // _DIALOGS_H_
|
#endif // _DIALOGS_H_
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -253,7 +253,7 @@ int saveprojectdlg_execute (char* filename)
|
||||||
|
|
||||||
static void savepicturedlg_options (GtkWidget *widget, gpointer data)
|
static void savepicturedlg_options (GtkWidget *widget, gpointer data)
|
||||||
{
|
{
|
||||||
imageoptsdlg_execute (data, false);
|
imageoptsdlg_execute (gtk_widget_get_toplevel(widget), data, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
int savepicturedlg_execute (void* param)
|
int savepicturedlg_execute (void* param)
|
||||||
|
@ -272,7 +272,7 @@ int savepicturedlg_execute (void* param)
|
||||||
opts->imopts.pause = (float)Sys_ProfileLoadInt ("Default", "AVI Pause", 100)/100;
|
opts->imopts.pause = (float)Sys_ProfileLoadInt ("Default", "AVI Pause", 100)/100;
|
||||||
opts->imopts.format = (unsigned char)(image & ~(LC_IMAGE_MASK));
|
opts->imopts.format = (unsigned char)(image & ~(LC_IMAGE_MASK));
|
||||||
|
|
||||||
dlg = gtk_file_selection_new ("Save Picture");
|
dlg = gtk_file_selection_new ("Save Picture"); // FIXME: use GtkFileChooserDialog
|
||||||
gtk_window_set_transient_for (GTK_WINDOW (dlg), GTK_WINDOW (((GtkWidget*)(*main_window))));
|
gtk_window_set_transient_for (GTK_WINDOW (dlg), GTK_WINDOW (((GtkWidget*)(*main_window))));
|
||||||
gtk_signal_connect (GTK_OBJECT (dlg), "delete_event",
|
gtk_signal_connect (GTK_OBJECT (dlg), "delete_event",
|
||||||
GTK_SIGNAL_FUNC (dialog_delete_callback), NULL);
|
GTK_SIGNAL_FUNC (dialog_delete_callback), NULL);
|
||||||
|
|
Loading…
Add table
Reference in a new issue