medit/moo/mooedit/mooeditdialogs.h

73 lines
3.8 KiB
C
Raw Normal View History

2006-05-21 18:11:05 -05:00
/*
* mooeditdialogs.h
2005-06-22 18:20:32 +00:00
*
2016-01-01 22:25:53 -08:00
* Copyright (C) 2004-2016 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
*/
2016-01-01 22:25:53 -08:00
#pragma once
2005-06-22 18:20:32 +00:00
#include "mooutils/moodialogs.h"
2010-11-23 21:54:39 -08:00
#include "mooedit/mooedittypes.h"
2008-09-15 03:59:22 -05:00
#include <gio/gio.h>
2005-06-22 18:20:32 +00:00
G_BEGIN_DECLS
typedef enum {
MOO_EDIT_TRY_ENCODING_RESPONSE_TRY_ANOTHER,
MOO_EDIT_TRY_ENCODING_RESPONSE_CANCEL
} MooEditTryEncodingResponse;
2011-01-10 02:31:07 -08:00
MooSaveInfo *_moo_edit_save_as_dialog (MooEdit *doc,
2010-12-12 02:29:20 -08:00
const char *display_basename);
2011-01-10 02:31:07 -08:00
MooOpenInfoArray *_moo_edit_open_dialog (GtkWidget *widget,
2010-12-12 02:29:20 -08:00
MooEdit *current_doc);
2011-01-01 17:41:01 -08:00
MooSaveChangesResponse _moo_edit_save_changes_dialog (MooEdit *doc);
MooSaveChangesResponse _moo_edit_save_multiple_changes_dialog (MooEditArray *docs,
2010-12-12 02:29:20 -08:00
MooEditArray *to_save);
gboolean _moo_edit_reload_modified_dialog (MooEdit *doc);
gboolean _moo_edit_overwrite_modified_dialog (MooEdit *doc);
void _moo_edit_save_error_dialog (MooEdit *doc,
2010-12-12 02:29:20 -08:00
GFile *file,
GError *error);
gboolean _moo_edit_save_error_enc_dialog (MooEdit *doc,
2010-12-12 02:29:20 -08:00
GFile *file,
const char *encoding);
void _moo_edit_open_error_dialog (GtkWidget *widget,
GFile *file,
GError *error);
void _moo_edit_reload_error_dialog (MooEdit *doc,
GError *error);
gboolean _moo_text_search_from_start_dialog (GtkWidget *parent,
gboolean backwards);
void _moo_text_regex_error_dialog (GtkWidget *parent,
GError *error);
gboolean _moo_text_replace_from_start_dialog (GtkWidget *parent,
int replaced);
GtkWidget *_moo_text_prompt_on_replace_dialog (GtkWidget *parent);
2005-06-22 18:20:32 +00:00
G_END_DECLS
2016-01-01 22:25:53 -08:00
#ifdef __cplusplus
#include <moocpp/strutils.h>
2016-01-02 07:09:54 -08:00
MooEditTryEncodingResponse _moo_edit_try_encoding_dialog (const moo::gobjref<GFile>& file,
const char* encoding,
/*out*/ moo::mg_str& new_encoding);
2016-01-01 22:25:53 -08:00
#endif // __cplusplus