2005-09-06 09:21:05 -07:00
|
|
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4; coding: utf-8 -*-
|
2005-09-09 02:54:58 -07:00
|
|
|
*
|
2005-09-02 23:25:43 -07:00
|
|
|
* mooeditdialogs.h
|
2005-06-22 11:20:32 -07:00
|
|
|
*
|
|
|
|
* Copyright (C) 2004-2005 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.
|
|
|
|
*/
|
|
|
|
|
2005-09-02 23:25:43 -07:00
|
|
|
#ifndef __MOO_EDIT_DIALOGS_H__
|
|
|
|
#define __MOO_EDIT_DIALOGS_H__
|
2005-06-22 11:20:32 -07:00
|
|
|
|
|
|
|
#include "mooedit/mooedit.h"
|
2005-10-13 07:08:18 -07:00
|
|
|
#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
|
|
|
|
|
|
|
|
2005-09-02 23:25:43 -07:00
|
|
|
MooEditFileInfo *moo_edit_save_as_dialog (MooEdit *edit,
|
|
|
|
MooFilterMgr *mgr);
|
|
|
|
GSList *moo_edit_open_dialog (GtkWidget *widget,
|
|
|
|
MooFilterMgr *mgr);
|
|
|
|
|
2005-09-02 16:27:25 -07:00
|
|
|
MooEditDialogResponse moo_edit_save_changes_dialog (MooEdit *edit);
|
|
|
|
MooEditDialogResponse moo_edit_save_multiple_changes_dialog (GSList *docs,
|
|
|
|
GSList **to_save);
|
2005-06-22 11:20:32 -07:00
|
|
|
|
2005-09-02 23:25:43 -07:00
|
|
|
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);
|
|
|
|
|
2005-09-02 16:27:25 -07:00
|
|
|
void moo_edit_save_error_dialog (GtkWidget *widget,
|
|
|
|
const char *err_msg);
|
|
|
|
void moo_edit_open_error_dialog (GtkWidget *widget,
|
|
|
|
const char *err_msg);
|
|
|
|
void moo_edit_load_error_dialog (GtkWidget *widget,
|
|
|
|
const char *err_msg);
|
|
|
|
void moo_edit_reload_error_dialog (GtkWidget *widget,
|
|
|
|
const char *err_msg);
|
|
|
|
|
|
|
|
|
2005-09-09 02:40:10 -07:00
|
|
|
void moo_text_nothing_found_dialog (MooTextView *view,
|
2005-09-02 16:27:25 -07:00
|
|
|
const char *text,
|
|
|
|
gboolean regex);
|
2005-09-09 02:40:10 -07:00
|
|
|
gboolean moo_text_search_from_beginning_dialog
|
|
|
|
(MooTextView *view,
|
2005-09-02 16:27:25 -07:00
|
|
|
gboolean backwards);
|
2005-09-09 02:40:10 -07:00
|
|
|
void moo_text_regex_error_dialog (MooTextView *view,
|
2005-09-02 16:27:25 -07:00
|
|
|
GError *error);
|
2005-09-09 02:40:10 -07:00
|
|
|
void moo_text_replaced_n_dialog (MooTextView *view,
|
2005-09-02 16:27:25 -07:00
|
|
|
guint n);
|
2005-09-09 02:40:10 -07:00
|
|
|
GtkWidget *moo_text_prompt_on_replace_dialog (MooTextView *view);
|
2005-06-22 11:20:32 -07:00
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2005-09-02 23:25:43 -07:00
|
|
|
#endif /* __MOO_EDIT_DIALOGS_H__ */
|