medit/moo/mooedit/mooeditdialogs.h

70 lines
2.9 KiB
C
Raw Normal View History

2006-05-21 16:11:05 -07:00
/*
* mooeditdialogs.h
2005-06-22 11:20:32 -07:00
*
* Copyright (C) 2004-2006 by Yevgen Muntyan <muntyan@math.tamu.edu>
2005-06-22 11:20:32 -07:00
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* See COPYING file that comes with this distribution.
*/
#ifndef __MOO_EDIT_DIALOGS_H__
#define __MOO_EDIT_DIALOGS_H__
2005-06-22 11:20:32 -07:00
#include "mooedit/mooedit.h"
#include "mooutils/moofiltermgr.h"
2005-06-22 11:20:32 -07:00
G_BEGIN_DECLS
2005-09-02 16:27:25 -07:00
typedef enum {
MOO_EDIT_RESPONSE_CANCEL,
MOO_EDIT_RESPONSE_SAVE,
MOO_EDIT_RESPONSE_DONT_SAVE
} MooEditDialogResponse;
2005-06-22 11:20:32 -07:00
2006-11-03 23:03:45 -08:00
MooEditFileInfo *_moo_edit_save_as_dialog (MooEdit *edit,
2006-04-13 01:19:51 -07:00
MooFilterMgr *mgr,
const char *display_basename);
2006-11-03 23:03:45 -08:00
GSList *_moo_edit_open_dialog (GtkWidget *widget,
MooFilterMgr *mgr);
2006-11-03 23:03:45 -08:00
MooEditDialogResponse _moo_edit_save_changes_dialog (MooEdit *edit);
MooEditDialogResponse _moo_edit_save_multiple_changes_dialog (GSList *docs,
2005-09-02 16:27:25 -07:00
GSList **to_save);
2005-06-22 11:20:32 -07:00
2006-11-03 23:03:45 -08:00
gboolean _moo_edit_reload_modified_dialog (MooEdit *edit);
gboolean _moo_edit_overwrite_modified_dialog (MooEdit *edit);
2006-11-03 23:03:45 -08:00
void _moo_edit_save_error_dialog (GtkWidget *widget,
const char *filename,
GError *error);
void _moo_edit_save_error_enc_dialog (GtkWidget *widget,
const char *filename,
const char *encoding);
2006-11-03 23:03:45 -08:00
void _moo_edit_open_error_dialog (GtkWidget *widget,
const char *filename,
const char *encoding,
GError *error);
2006-12-12 21:53:40 -08:00
void _moo_edit_reload_error_dialog (MooEdit *doc,
GError *error);
2005-09-02 16:27:25 -07:00
2006-11-03 23:03:45 -08:00
gboolean _moo_text_search_from_start_dialog (GtkWidget *parent,
2005-09-02 16:27:25 -07:00
gboolean backwards);
2006-11-03 23:03:45 -08:00
void _moo_text_regex_error_dialog (GtkWidget *parent,
2005-09-02 16:27:25 -07:00
GError *error);
2006-11-03 23:03:45 -08:00
gboolean _moo_text_replace_from_start_dialog(GtkWidget *parent,
int replaced);
2006-11-03 23:03:45 -08:00
GtkWidget *_moo_text_prompt_on_replace_dialog (GtkWidget *parent);
2005-06-22 11:20:32 -07:00
G_END_DECLS
#endif /* __MOO_EDIT_DIALOGS_H__ */