|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21585/root/usr/include/libgnomeui-2.0/libgnomeui/ |
Upload File : |
/*
* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation
* All rights reserved.
*
* This file is part of the Gnome Library.
*
* The Gnome Library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* The Gnome Library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with the Gnome Library; see the file COPYING.LIB. If not,
* write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
/*
@NOTATION@
*/
#ifndef __GNOME_DATE_EDIT_H_
#define __GNOME_DATE_EDIT_H_
#include <gtk/gtkhbox.h>
G_BEGIN_DECLS
typedef enum {
GNOME_DATE_EDIT_SHOW_TIME = 1 << 0,
GNOME_DATE_EDIT_24_HR = 1 << 1,
GNOME_DATE_EDIT_WEEK_STARTS_ON_MONDAY = 1 << 2
} GnomeDateEditFlags;
#define GNOME_TYPE_DATE_EDIT (gnome_date_edit_get_type ())
#define GNOME_DATE_EDIT(obj) (GTK_CHECK_CAST ((obj), GNOME_TYPE_DATE_EDIT, GnomeDateEdit))
#define GNOME_DATE_EDIT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GNOME_TYPE_DATE_EDIT, GnomeDateEditClass))
#define GNOME_IS_DATE_EDIT(obj) (GTK_CHECK_TYPE ((obj), GNOME_TYPE_DATE_EDIT))
#define GNOME_IS_DATE_EDIT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GNOME_TYPE_DATE_EDIT))
#define GNOME_DATE_EDIT_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GNOME_TYPE_DATE_EDIT, GnomeDateEditClass))
typedef struct _GnomeDateEdit GnomeDateEdit;
typedef struct _GnomeDateEditPrivate GnomeDateEditPrivate;
typedef struct _GnomeDateEditClass GnomeDateEditClass;
struct _GnomeDateEdit {
GtkHBox hbox;
/*< private >*/
GnomeDateEditPrivate *_priv;
};
struct _GnomeDateEditClass {
GtkHBoxClass parent_class;
void (*date_changed) (GnomeDateEdit *gde);
void (*time_changed) (GnomeDateEdit *gde);
/* Padding for possible expansion */
gpointer padding1;
gpointer padding2;
};
GType gnome_date_edit_get_type (void) G_GNUC_CONST;
GtkWidget *gnome_date_edit_new (time_t the_time,
gboolean show_time,
gboolean use_24_format);
GtkWidget *gnome_date_edit_new_flags (time_t the_time,
GnomeDateEditFlags flags);
/* Note that everything that can be achieved with gnome_date_edit_new can
* be achieved with gnome_date_edit_new_flags, so that's why this call
* is like the _new_flags call */
void gnome_date_edit_construct (GnomeDateEdit *gde,
time_t the_time,
GnomeDateEditFlags flags);
void gnome_date_edit_set_time (GnomeDateEdit *gde, time_t the_time);
time_t gnome_date_edit_get_time (GnomeDateEdit *gde);
void gnome_date_edit_set_popup_range (GnomeDateEdit *gde, int low_hour, int up_hour);
void gnome_date_edit_set_flags (GnomeDateEdit *gde, GnomeDateEditFlags flags);
int gnome_date_edit_get_flags (GnomeDateEdit *gde);
time_t gnome_date_edit_get_initial_time(GnomeDateEdit *gde);
#ifndef GNOME_DISABLE_DEPRECATED
time_t gnome_date_edit_get_date (GnomeDateEdit *gde);
#endif /* GNOME_DISABLE_DEPRECATED */
G_END_DECLS
#endif