2005-06-22 18:20:32 +00:00
|
|
|
/*
|
2007-06-24 12:56:20 -05:00
|
|
|
* moodialogs.h
|
2005-06-22 18:20:32 +00:00
|
|
|
*
|
2010-12-21 20:15:45 -08:00
|
|
|
* Copyright (C) 2004-2010 by Yevgen Muntyan <emuntyan@users.sourceforge.net>
|
2005-06-22 18:20:32 +00:00
|
|
|
*
|
2008-09-05 17:20:50 -05:00
|
|
|
* This file is part of medit. medit is free software; you can
|
|
|
|
* redistribute it and/or modify it under the terms of the
|
|
|
|
* GNU Lesser General Public License as published by the
|
|
|
|
* Free Software Foundation; either version 2.1 of the License,
|
|
|
|
* or (at your option) any later version.
|
2005-06-22 18:20:32 +00:00
|
|
|
*
|
2008-09-05 17:20:50 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
|
2005-06-22 18:20:32 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MOOUTILS_DIALOGS_H
|
|
|
|
#define MOOUTILS_DIALOGS_H
|
|
|
|
|
2005-12-04 17:42:45 +00:00
|
|
|
#include <gtk/gtkmessagedialog.h>
|
2006-04-13 05:02:33 -05:00
|
|
|
#include "mooutils/moofiledialog.h"
|
2005-06-22 18:20:32 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
2007-12-02 12:20:49 -06:00
|
|
|
typedef enum {
|
|
|
|
MOO_SAVE_CHANGES_RESPONSE_CANCEL,
|
|
|
|
MOO_SAVE_CHANGES_RESPONSE_SAVE,
|
|
|
|
MOO_SAVE_CHANGES_RESPONSE_DONT_SAVE
|
2011-01-01 17:41:01 -08:00
|
|
|
} MooSaveChangesResponse;
|
2007-12-02 12:20:49 -06:00
|
|
|
|
2011-01-01 17:41:01 -08:00
|
|
|
gboolean moo_overwrite_file_dialog (const char *display_name,
|
|
|
|
const char *display_dirname,
|
|
|
|
GtkWidget *parent);
|
|
|
|
MooSaveChangesResponse
|
2007-12-02 12:20:49 -06:00
|
|
|
moo_save_changes_dialog (const char *display_name,
|
|
|
|
GtkWidget *parent);
|
2005-11-28 04:37:30 +00:00
|
|
|
|
2006-06-27 16:20:46 -05:00
|
|
|
void moo_position_window_at_pointer (GtkWidget *window,
|
|
|
|
GtkWidget *parent);
|
|
|
|
void moo_window_set_parent (GtkWidget *window,
|
|
|
|
GtkWidget *parent);
|
2005-12-04 17:42:45 +00:00
|
|
|
|
2011-01-01 17:41:01 -08:00
|
|
|
void moo_error_dialog (const char *text,
|
|
|
|
const char *secondary_text,
|
|
|
|
GtkWidget *parent);
|
|
|
|
void moo_info_dialog (const char *text,
|
|
|
|
const char *secondary_text,
|
|
|
|
GtkWidget *parent);
|
|
|
|
void moo_warning_dialog (const char *text,
|
|
|
|
const char *secondary_text,
|
|
|
|
GtkWidget *parent);
|
2005-06-22 18:20:32 +00:00
|
|
|
|
2006-11-19 12:36:05 -06:00
|
|
|
void _moo_window_set_remember_size (GtkWindow *window,
|
|
|
|
const char *prefs_key,
|
2010-01-18 23:56:47 -08:00
|
|
|
int default_width,
|
|
|
|
int default_height,
|
2006-11-19 12:36:05 -06:00
|
|
|
gboolean remember_position);
|
|
|
|
|
2005-06-22 18:20:32 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* MOOUTILS_DIALOGS_H */
|