2003-01-03 13:26:04 +00:00
|
|
|
#ifndef ZENITY_H
|
|
|
|
#define ZENITY_H
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#ifdef ENABLE_NLS
|
2003-01-13 17:35:57 +00:00
|
|
|
#include <libintl.h>
|
2003-01-03 13:26:04 +00:00
|
|
|
#define _(String) dgettext(GETTEXT_PACKAGE,String)
|
|
|
|
#ifdef gettext_noop
|
|
|
|
#define N_(String) gettext_noop(String)
|
|
|
|
#else
|
|
|
|
#define N_(String) (String)
|
|
|
|
#endif
|
|
|
|
#else /* NLS is disabled */
|
|
|
|
#define _(String) (String)
|
|
|
|
#define N_(String) (String)
|
|
|
|
#define textdomain(String) (String)
|
|
|
|
#define gettext(String) (String)
|
|
|
|
#define dgettext(Domain,String) (String)
|
|
|
|
#define dcgettext(Domain,String,Type) (String)
|
|
|
|
#define bindtextdomain(Domain,Directory) (Domain)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct {
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, src/calendar.c, src/entry.c, src/fileselection.c,
src/main.c, src/msg.c, src/progress.c, src/text.c, src/tree.c,
src/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
gchar *dialog_title;
|
|
|
|
gchar *window_icon;
|
2011-07-26 17:00:28 +00:00
|
|
|
gchar *ok_label;
|
|
|
|
gchar *cancel_label;
|
2003-04-13 15:42:41 +00:00
|
|
|
gint width;
|
|
|
|
gint height;
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, src/calendar.c, src/entry.c, src/fileselection.c,
src/main.c, src/msg.c, src/progress.c, src/text.c, src/tree.c,
src/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
gint exit_code;
|
2009-04-23 17:55:12 +00:00
|
|
|
gint timeout_delay;
|
2012-09-18 16:33:07 +00:00
|
|
|
gboolean modal;
|
2003-01-03 13:26:04 +00:00
|
|
|
} ZenityData;
|
|
|
|
|
2003-06-07 14:41:56 +00:00
|
|
|
typedef enum {
|
|
|
|
ZENITY_OK,
|
|
|
|
ZENITY_CANCEL,
|
|
|
|
ZENITY_ESC,
|
|
|
|
ZENITY_ERROR,
|
2007-08-13 20:36:29 +00:00
|
|
|
ZENITY_EXTRA,
|
|
|
|
ZENITY_TIMEOUT
|
2003-06-07 14:41:56 +00:00
|
|
|
} ZenityExitCode;
|
|
|
|
|
2003-01-03 13:26:04 +00:00
|
|
|
typedef struct {
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, src/calendar.c, src/entry.c, src/fileselection.c,
src/main.c, src/msg.c, src/progress.c, src/text.c, src/tree.c,
src/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
gchar *dialog_text;
|
|
|
|
gint day;
|
|
|
|
gint month;
|
|
|
|
gint year;
|
|
|
|
gchar *date_format;
|
2003-01-03 13:26:04 +00:00
|
|
|
} ZenityCalendarData;
|
|
|
|
|
|
|
|
typedef enum {
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, src/calendar.c, src/entry.c, src/fileselection.c,
src/main.c, src/msg.c, src/progress.c, src/text.c, src/tree.c,
src/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
ZENITY_MSG_WARNING,
|
|
|
|
ZENITY_MSG_QUESTION,
|
|
|
|
ZENITY_MSG_ERROR,
|
|
|
|
ZENITY_MSG_INFO
|
2003-01-03 13:26:04 +00:00
|
|
|
} MsgMode;
|
|
|
|
|
|
|
|
typedef struct {
|
2004-12-07 00:17:16 +00:00
|
|
|
gchar *dialog_text;
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, src/calendar.c, src/entry.c, src/fileselection.c,
src/main.c, src/msg.c, src/progress.c, src/text.c, src/tree.c,
src/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
MsgMode mode;
|
2005-04-20 01:59:42 +00:00
|
|
|
gboolean no_wrap;
|
2011-07-06 17:55:30 +00:00
|
|
|
gboolean no_markup;
|
2003-01-03 13:26:04 +00:00
|
|
|
} ZenityMsgData;
|
|
|
|
|
2005-12-13 04:18:58 +00:00
|
|
|
typedef struct {
|
|
|
|
gchar *dialog_text;
|
|
|
|
gint value;
|
|
|
|
gint min_value;
|
|
|
|
gint max_value;
|
|
|
|
gint step;
|
|
|
|
gboolean print_partial;
|
2005-12-15 05:40:15 +00:00
|
|
|
gboolean hide_value;
|
2005-12-13 04:18:58 +00:00
|
|
|
} ZenityScaleData;
|
|
|
|
|
2003-01-03 13:26:04 +00:00
|
|
|
typedef struct {
|
2004-12-07 00:17:16 +00:00
|
|
|
gchar *uri;
|
2003-06-09 18:57:01 +00:00
|
|
|
gboolean multi;
|
2004-09-13 04:56:26 +00:00
|
|
|
gboolean directory;
|
|
|
|
gboolean save;
|
2006-03-23 20:08:17 +00:00
|
|
|
gboolean confirm_overwrite;
|
2004-12-07 00:17:16 +00:00
|
|
|
gchar *separator;
|
2008-04-21 20:47:38 +00:00
|
|
|
gchar **filter;
|
2003-01-03 13:26:04 +00:00
|
|
|
} ZenityFileData;
|
|
|
|
|
|
|
|
typedef struct {
|
2004-12-07 00:17:16 +00:00
|
|
|
gchar *dialog_text;
|
|
|
|
gchar *entry_text;
|
2005-04-20 03:00:57 +00:00
|
|
|
gboolean hide_text;
|
2006-05-11 01:31:35 +00:00
|
|
|
const gchar **data;
|
2003-01-03 13:26:04 +00:00
|
|
|
} ZenityEntryData;
|
|
|
|
|
|
|
|
typedef struct {
|
2004-12-07 00:17:16 +00:00
|
|
|
gchar *dialog_text;
|
|
|
|
gchar *entry_text;
|
|
|
|
gboolean pulsate;
|
|
|
|
gboolean autoclose;
|
2006-12-02 10:54:45 +00:00
|
|
|
gboolean autokill;
|
2004-12-07 00:17:16 +00:00
|
|
|
gdouble percentage;
|
2010-02-23 18:07:08 +00:00
|
|
|
gboolean no_cancel;
|
2003-01-03 13:26:04 +00:00
|
|
|
} ZenityProgressData;
|
|
|
|
|
|
|
|
typedef struct {
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, src/calendar.c, src/entry.c, src/fileselection.c,
src/main.c, src/msg.c, src/progress.c, src/text.c, src/tree.c,
src/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
gchar *uri;
|
2004-12-07 00:17:16 +00:00
|
|
|
gboolean editable;
|
2010-08-18 21:40:57 +00:00
|
|
|
gboolean no_wrap;
|
|
|
|
gchar *font;
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, src/calendar.c, src/entry.c, src/fileselection.c,
src/main.c, src/msg.c, src/progress.c, src/text.c, src/tree.c,
src/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
GtkTextBuffer *buffer;
|
2011-06-28 20:09:04 +00:00
|
|
|
gchar *checkbox;
|
2011-07-19 17:33:28 +00:00
|
|
|
#ifdef HAVE_WEBKITGTK
|
|
|
|
gboolean html;
|
|
|
|
gchar *url;
|
|
|
|
#endif
|
2003-01-03 13:26:04 +00:00
|
|
|
} ZenityTextData;
|
|
|
|
|
|
|
|
typedef struct {
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, src/calendar.c, src/entry.c, src/fileselection.c,
src/main.c, src/msg.c, src/progress.c, src/text.c, src/tree.c,
src/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
gchar *dialog_text;
|
|
|
|
GSList *columns;
|
|
|
|
gboolean checkbox;
|
|
|
|
gboolean radiobox;
|
2009-08-10 03:10:53 +00:00
|
|
|
gboolean hide_header;
|
2012-07-19 17:22:25 +00:00
|
|
|
gboolean imagebox;
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, src/calendar.c, src/entry.c, src/fileselection.c,
src/main.c, src/msg.c, src/progress.c, src/text.c, src/tree.c,
src/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
gchar *separator;
|
2005-06-27 03:13:37 +00:00
|
|
|
gboolean multi;
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, src/calendar.c, src/entry.c, src/fileselection.c,
src/main.c, src/msg.c, src/progress.c, src/text.c, src/tree.c,
src/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
gboolean editable;
|
2004-07-19 01:01:28 +00:00
|
|
|
gchar *print_column;
|
2005-07-01 21:28:36 +00:00
|
|
|
gchar *hide_column;
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, src/calendar.c, src/entry.c, src/fileselection.c,
src/main.c, src/msg.c, src/progress.c, src/text.c, src/tree.c,
src/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
const gchar **data;
|
2003-01-03 13:26:04 +00:00
|
|
|
} ZenityTreeData;
|
|
|
|
|
2010-11-04 19:12:52 +00:00
|
|
|
#ifdef HAVE_LIBNOTIFY
|
Add new notification icon. Update for new files. Restructure code a little
2004-09-13 Glynn Foster <glynn.foster@sun.com>
* data/Makefile.am, data/zenity-notification.png: Add new
notification icon.
* src/Makefile.am: Update for new files.
* src/about.c, src/calendar.c, src/entry.c, src/fileselection.c,
src/progress.c, src/text.c, src/tree.c, src/msg.c: Restructure code a
little bit for new utility functions for setting window icons.
* src/eggtrayicon.c, src/eggtrayicon.h: New files for notification area
support.
* src/main.c, src/notification.c, src/util.c, src/util.h, src/zenity.h:
Add support for notification area.
* data/zenity.1, help/*: Update docs for notification and new file
selection changes.
2004-09-13 07:51:51 +00:00
|
|
|
typedef struct {
|
2004-12-07 00:17:16 +00:00
|
|
|
gchar *notification_text;
|
|
|
|
gboolean listen;
|
Add new notification icon. Update for new files. Restructure code a little
2004-09-13 Glynn Foster <glynn.foster@sun.com>
* data/Makefile.am, data/zenity-notification.png: Add new
notification icon.
* src/Makefile.am: Update for new files.
* src/about.c, src/calendar.c, src/entry.c, src/fileselection.c,
src/progress.c, src/text.c, src/tree.c, src/msg.c: Restructure code a
little bit for new utility functions for setting window icons.
* src/eggtrayicon.c, src/eggtrayicon.h: New files for notification area
support.
* src/main.c, src/notification.c, src/util.c, src/util.h, src/zenity.h:
Add support for notification area.
* data/zenity.1, help/*: Update docs for notification and new file
selection changes.
2004-09-13 07:51:51 +00:00
|
|
|
} ZenityNotificationData;
|
2010-11-04 19:12:52 +00:00
|
|
|
#endif
|
Add new notification icon. Update for new files. Restructure code a little
2004-09-13 Glynn Foster <glynn.foster@sun.com>
* data/Makefile.am, data/zenity-notification.png: Add new
notification icon.
* src/Makefile.am: Update for new files.
* src/about.c, src/calendar.c, src/entry.c, src/fileselection.c,
src/progress.c, src/text.c, src/tree.c, src/msg.c: Restructure code a
little bit for new utility functions for setting window icons.
* src/eggtrayicon.c, src/eggtrayicon.h: New files for notification area
support.
* src/main.c, src/notification.c, src/util.c, src/util.h, src/zenity.h:
Add support for notification area.
* data/zenity.1, help/*: Update docs for notification and new file
selection changes.
2004-09-13 07:51:51 +00:00
|
|
|
|
2010-02-23 18:24:20 +00:00
|
|
|
typedef struct {
|
|
|
|
gchar *color;
|
|
|
|
gboolean show_palette;
|
|
|
|
} ZenityColorData;
|
|
|
|
|
2011-01-17 14:20:21 +00:00
|
|
|
typedef struct {
|
|
|
|
GSList *list;
|
|
|
|
GSList *list_widgets;
|
2011-12-21 12:20:29 +00:00
|
|
|
GSList *list_values;
|
|
|
|
GSList *column_values;
|
2011-01-17 14:20:21 +00:00
|
|
|
gchar *dialog_text;
|
|
|
|
gchar *separator;
|
|
|
|
gchar *date_format;
|
2011-12-21 12:20:29 +00:00
|
|
|
// gchar *hide_column;
|
|
|
|
gboolean show_header;
|
2011-01-17 14:20:21 +00:00
|
|
|
} ZenityFormsData;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
ZENITY_FORMS_ENTRY,
|
|
|
|
ZENITY_FORMS_PASSWORD,
|
2011-12-21 12:20:29 +00:00
|
|
|
ZENITY_FORMS_CALENDAR,
|
|
|
|
ZENITY_FORMS_LIST
|
2011-01-17 14:20:21 +00:00
|
|
|
} ZenityFormsType;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
gchar *option_value;
|
|
|
|
ZenityFormsType type;
|
|
|
|
GtkWidget *forms_widget;
|
|
|
|
} ZenityFormsValue;
|
|
|
|
|
2010-07-10 19:13:40 +00:00
|
|
|
typedef struct {
|
|
|
|
gboolean username;
|
|
|
|
gchar *password;
|
|
|
|
GtkWidget *entry_username;
|
|
|
|
GtkWidget *entry_password;
|
|
|
|
} ZenityPasswordData;
|
|
|
|
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, src/calendar.c, src/entry.c, src/fileselection.c,
src/main.c, src/msg.c, src/progress.c, src/text.c, src/tree.c,
src/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
void zenity_calendar (ZenityData *data,
|
|
|
|
ZenityCalendarData *calendar_data);
|
|
|
|
void zenity_msg (ZenityData *data,
|
|
|
|
ZenityMsgData *msg_data);
|
|
|
|
void zenity_fileselection (ZenityData *data,
|
|
|
|
ZenityFileData *file_data);
|
|
|
|
void zenity_entry (ZenityData *data,
|
|
|
|
ZenityEntryData *entry_data);
|
|
|
|
void zenity_progress (ZenityData *data,
|
|
|
|
ZenityProgressData *progress_data);
|
|
|
|
void zenity_text (ZenityData *data,
|
|
|
|
ZenityTextData *text_data);
|
|
|
|
void zenity_tree (ZenityData *data,
|
|
|
|
ZenityTreeData *tree_data);
|
2010-11-04 19:12:52 +00:00
|
|
|
#ifdef HAVE_LIBNOTIFY
|
Add new notification icon. Update for new files. Restructure code a little
2004-09-13 Glynn Foster <glynn.foster@sun.com>
* data/Makefile.am, data/zenity-notification.png: Add new
notification icon.
* src/Makefile.am: Update for new files.
* src/about.c, src/calendar.c, src/entry.c, src/fileselection.c,
src/progress.c, src/text.c, src/tree.c, src/msg.c: Restructure code a
little bit for new utility functions for setting window icons.
* src/eggtrayicon.c, src/eggtrayicon.h: New files for notification area
support.
* src/main.c, src/notification.c, src/util.c, src/util.h, src/zenity.h:
Add support for notification area.
* data/zenity.1, help/*: Update docs for notification and new file
selection changes.
2004-09-13 07:51:51 +00:00
|
|
|
void zenity_notification (ZenityData *data,
|
|
|
|
ZenityNotificationData *notification_data);
|
2010-11-04 19:12:52 +00:00
|
|
|
#endif
|
|
|
|
|
2010-02-23 18:24:20 +00:00
|
|
|
void zenity_colorselection (ZenityData *data,
|
|
|
|
ZenityColorData *notification_data);
|
2006-07-26 23:17:04 +00:00
|
|
|
void zenity_scale (ZenityData *data,
|
|
|
|
ZenityScaleData *scale_data);
|
2003-01-14 15:35:24 +00:00
|
|
|
void zenity_about (ZenityData *data);
|
2003-01-03 13:26:04 +00:00
|
|
|
|
2010-07-10 19:13:40 +00:00
|
|
|
void zenity_password_dialog (ZenityData *data,
|
|
|
|
ZenityPasswordData *password_data);
|
2011-01-17 14:20:21 +00:00
|
|
|
void zenity_forms_dialog (ZenityData *data,
|
|
|
|
ZenityFormsData *forms_data);
|
2003-01-03 13:26:04 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* ZENITY_H */
|