2005-06-22 18:20:32 +00:00
|
|
|
/*
|
2007-06-24 12:56:20 -05:00
|
|
|
* mooprefsdialog.h
|
2005-06-22 18:20:32 +00:00
|
|
|
*
|
2010-11-07 01:20:45 -08:00
|
|
|
* Copyright (C) 2004-2010 by Yevgen Muntyan <emuntyan@sourceforge.net>
|
2005-06-22 18:20:32 +00:00
|
|
|
*
|
2008-09-05 17:20:50 -05: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
|
|
|
*
|
2008-09-05 17:20:50 -05: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
|
|
|
*/
|
|
|
|
|
2007-04-12 10:31:28 -05:00
|
|
|
#ifndef MOO_PREFS_DIALOG_H
|
|
|
|
#define MOO_PREFS_DIALOG_H
|
2005-06-22 18:20:32 +00:00
|
|
|
|
2008-08-30 13:53:46 -05:00
|
|
|
#include <mooutils/mooprefspage.h>
|
2005-06-22 18:20:32 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
#define MOO_TYPE_PREFS_DIALOG (moo_prefs_dialog_get_type ())
|
|
|
|
#define MOO_PREFS_DIALOG(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), MOO_TYPE_PREFS_DIALOG, MooPrefsDialog))
|
|
|
|
#define MOO_PREFS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MOO_TYPE_PREFS_DIALOG, MooPrefsDialogClass))
|
|
|
|
#define MOO_IS_PREFS_DIALOG(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), MOO_TYPE_PREFS_DIALOG))
|
|
|
|
#define MOO_IS_PREFS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MOO_TYPE_PREFS_DIALOG))
|
|
|
|
#define MOO_PREFS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MOO_TYPE_PREFS_DIALOG, MooPrefsDialogClass))
|
|
|
|
|
|
|
|
|
2010-12-08 01:11:51 -08:00
|
|
|
typedef struct MooPrefsDialog MooPrefsDialog;
|
|
|
|
typedef struct MooPrefsDialogClass MooPrefsDialogClass;
|
2005-06-22 18:20:32 +00:00
|
|
|
|
2010-12-08 01:11:51 -08:00
|
|
|
struct MooPrefsDialog
|
2005-06-22 18:20:32 +00:00
|
|
|
{
|
2005-09-14 07:06:17 +00:00
|
|
|
GtkDialog dialog;
|
|
|
|
GtkNotebook *notebook;
|
2006-02-26 19:18:26 -06:00
|
|
|
GtkListStore *store;
|
2005-09-14 07:06:17 +00:00
|
|
|
GtkTreeView *pages_list;
|
|
|
|
gboolean hide_on_delete;
|
2006-04-05 23:28:53 -05:00
|
|
|
gboolean running;
|
2005-06-22 18:20:32 +00:00
|
|
|
};
|
|
|
|
|
2010-12-08 01:11:51 -08:00
|
|
|
struct MooPrefsDialogClass
|
2005-06-22 18:20:32 +00:00
|
|
|
{
|
|
|
|
GtkDialogClass parent_class;
|
|
|
|
|
|
|
|
void (* init) (MooPrefsDialog *dialog);
|
|
|
|
void (* apply) (MooPrefsDialog *dialog);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
GType moo_prefs_dialog_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
GtkWidget* moo_prefs_dialog_new (const char *title);
|
|
|
|
|
|
|
|
void moo_prefs_dialog_run (MooPrefsDialog *dialog,
|
|
|
|
GtkWidget *parent);
|
|
|
|
|
2005-09-14 07:06:17 +00:00
|
|
|
void moo_prefs_dialog_append_page (MooPrefsDialog *dialog,
|
2005-06-22 18:20:32 +00:00
|
|
|
GtkWidget *page);
|
2005-09-16 22:35:16 +00:00
|
|
|
void moo_prefs_dialog_remove_page (MooPrefsDialog *dialog,
|
|
|
|
GtkWidget *page);
|
2005-09-14 07:06:17 +00:00
|
|
|
void moo_prefs_dialog_insert_page (MooPrefsDialog *dialog,
|
|
|
|
GtkWidget *page,
|
|
|
|
int position);
|
2005-06-22 18:20:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2007-04-12 10:31:28 -05:00
|
|
|
#endif /* MOO_PREFS_DIALOG_H */
|