medit/moo/mooutils/moodialogs.h

76 lines
3.2 KiB
C
Raw Normal View History

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
*
* 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
*
* 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
#include <gtk/gtk.h>
2006-04-13 05:02:33 -05:00
#include "mooutils/moofiledialog.h"
2005-06-22 18:20:32 +00:00
G_BEGIN_DECLS
2011-01-22 17:40:22 -08:00
/**
* enum:MooSaveChangesResponse
*
2011-01-24 03:39:56 -08:00
* @MOO_SAVE_CHANGES_RESPONSE_CANCEL: cancel current operation, don't save
* @MOO_SAVE_CHANGES_RESPONSE_SAVE: do save the file
* @MOO_SAVE_CHANGES_RESPONSE_DONT_SAVE: do not save the file and continue
*
* Values returned by moo_save_changes_dialog().
2011-01-22 17:40:22 -08: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;
2011-01-04 02:17:56 -08:00
gboolean moo_overwrite_file_dialog (const char *display_name,
const char *display_dirname,
GtkWidget *parent);
2011-01-01 17:41:01 -08:00
MooSaveChangesResponse
2011-01-04 02:17:56 -08:00
moo_save_changes_dialog (const char *display_name,
GtkWidget *parent);
void moo_position_window_at_pointer (GtkWidget *window,
GtkWidget *parent);
void moo_window_set_parent (GtkWidget *window,
GtkWidget *parent);
gboolean moo_question_dialog (const char *text,
const char *secondary_text,
GtkWidget *parent,
GtkResponseType default_response);
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);
void _moo_window_set_remember_size (GtkWindow *window,
const char *prefs_key,
int default_width,
int default_height,
gboolean remember_position);
2006-11-19 12:36:05 -06:00
2005-06-22 18:20:32 +00:00
G_END_DECLS
#endif /* MOOUTILS_DIALOGS_H */