73 lines
3.1 KiB
C
73 lines
3.1 KiB
C
/*
|
|
* mooeditdialogs.h
|
|
*
|
|
* Copyright (C) 2004-2006 by Yevgen Muntyan <muntyan@math.tamu.edu>
|
|
*
|
|
* 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__
|
|
|
|
#include "mooedit/mooedit.h"
|
|
#include "mooutils/moofiltermgr.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
typedef enum {
|
|
MOO_EDIT_RESPONSE_CANCEL,
|
|
MOO_EDIT_RESPONSE_SAVE,
|
|
MOO_EDIT_RESPONSE_DONT_SAVE
|
|
} MooEditDialogResponse;
|
|
|
|
|
|
MooEditFileInfo *_moo_edit_save_as_dialog (MooEdit *edit,
|
|
MooFilterMgr *mgr,
|
|
const char *display_basename);
|
|
GSList *_moo_edit_open_dialog (GtkWidget *widget,
|
|
MooFilterMgr *mgr);
|
|
|
|
MooEditDialogResponse _moo_edit_save_changes_dialog (MooEdit *edit);
|
|
MooEditDialogResponse _moo_edit_save_multiple_changes_dialog (GSList *docs,
|
|
GSList **to_save);
|
|
|
|
gboolean _moo_edit_reload_modified_dialog (MooEdit *edit);
|
|
gboolean _moo_edit_overwrite_modified_dialog (MooEdit *edit);
|
|
gboolean _moo_edit_overwrite_deleted_dialog (MooEdit *edit);
|
|
|
|
void _moo_edit_file_deleted_dialog (MooEdit *edit);
|
|
int _moo_edit_file_modified_on_disk_dialog (MooEdit *edit);
|
|
|
|
void _moo_edit_save_error_dialog (GtkWidget *widget,
|
|
const char *filename,
|
|
const char *err_msg);
|
|
void _moo_edit_open_error_dialog (GtkWidget *widget,
|
|
const char *filename,
|
|
const char *err_msg);
|
|
void _moo_edit_reload_error_dialog (GtkWidget *widget,
|
|
const char *err_msg);
|
|
|
|
|
|
void _moo_text_nothing_found_dialog (GtkWidget *parent,
|
|
const char *text,
|
|
gboolean regex);
|
|
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);
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __MOO_EDIT_DIALOGS_H__ */
|