2005-06-22 11:20:32 -07:00
|
|
|
/*
|
|
|
|
* mooutils/mooprefsdialog.h
|
|
|
|
*
|
2006-02-23 06:03:17 -08: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.
|
|
|
|
*/
|
|
|
|
|
2005-09-14 08:12:04 -07:00
|
|
|
#ifndef __MOO_PREFS_DIALOG_H__
|
|
|
|
#define __MOO_PREFS_DIALOG_H__
|
2005-06-22 11:20:32 -07:00
|
|
|
|
2005-10-13 07:08:18 -07:00
|
|
|
#include <mooutils/mooprefsdialogpage.h>
|
2005-06-22 11:20:32 -07: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))
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _MooPrefsDialog MooPrefsDialog;
|
|
|
|
typedef struct _MooPrefsDialogClass MooPrefsDialogClass;
|
|
|
|
|
|
|
|
struct _MooPrefsDialog
|
|
|
|
{
|
2005-09-14 00:06:17 -07:00
|
|
|
GtkDialog dialog;
|
|
|
|
GtkNotebook *notebook;
|
2006-02-26 17:18:26 -08:00
|
|
|
GtkListStore *store;
|
2005-09-14 00:06:17 -07:00
|
|
|
GtkTreeView *pages_list;
|
|
|
|
gboolean hide_on_delete;
|
2006-04-05 21:28:53 -07:00
|
|
|
gboolean running;
|
2005-06-22 11:20:32 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _MooPrefsDialogClass
|
|
|
|
{
|
|
|
|
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 00:06:17 -07:00
|
|
|
void moo_prefs_dialog_append_page (MooPrefsDialog *dialog,
|
2005-06-22 11:20:32 -07:00
|
|
|
GtkWidget *page);
|
2005-09-16 15:35:16 -07:00
|
|
|
void moo_prefs_dialog_remove_page (MooPrefsDialog *dialog,
|
|
|
|
GtkWidget *page);
|
2005-09-14 00:06:17 -07:00
|
|
|
void moo_prefs_dialog_insert_page (MooPrefsDialog *dialog,
|
|
|
|
GtkWidget *page,
|
|
|
|
int position);
|
2005-06-22 11:20:32 -07:00
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2005-09-14 08:12:04 -07:00
|
|
|
#endif /* __MOO_PREFS_DIALOG_H__ */
|