aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-dateedit.h
blob: b616e7b5812390ce28fd3fcd8b7cabd2c192c0ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */

/*
 * Author :
 *  Damon Chaplin <damon@helixcode.com>
 *
 * Copyright 2000, Helix Code, Inc.
 *
 * Based on the GnomeDateEdit, part of the Gnome Library.
 * Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation
 *
 * 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.
 *
 * This program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 * USA
 */

/*
 * EDateEdit - a widget based on GnomeDateEdit to provide a date & optional
 * time field with popups for entering a date.
 */

#ifndef __E_DATE_EDIT_H_
#define __E_DATE_EDIT_H_ 

#include <gtk/gtkhbox.h>
#include <libgnome/gnome-defs.h>
 
BEGIN_GNOME_DECLS


#define E_TYPE_DATE_EDIT            (e_date_edit_get_type ())
#define E_DATE_EDIT(obj)            (GTK_CHECK_CAST ((obj), E_TYPE_DATE_EDIT, EDateEdit))
#define E_DATE_EDIT_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), E_TYPE_DATE_EDIT, EDateEditClass))
#define E_IS_DATE_EDIT(obj)         (GTK_CHECK_TYPE ((obj), E_TYPE_DATE_EDIT))
#define E_IS_DATE_EDIT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), E_TYPE_DATE_EDIT))


typedef struct _EDateEdit        EDateEdit;
typedef struct _EDateEditPrivate EDateEditPrivate;
typedef struct _EDateEditClass   EDateEditClass;

struct _EDateEdit {
    GtkHBox hbox;

    /*< private >*/
    EDateEditPrivate *_priv;
};

struct _EDateEditClass {
    GtkHBoxClass parent_class;

    void (*date_changed) (EDateEdit *dedit);
    void (*time_changed) (EDateEdit *dedit);
};

guint      e_date_edit_get_type         (void);
GtkWidget* e_date_edit_new          (void);

time_t     e_date_edit_get_time         (EDateEdit  *dedit);
void       e_date_edit_set_time         (EDateEdit  *dedit,
                         time_t      the_time);

/* These get or set the value in the time field, useful if only a time is
   being edited. */
gboolean   e_date_edit_get_time_of_day      (EDateEdit  *dedit,
                         gint       *hour,
                         gint       *minute);
void       e_date_edit_set_time_of_day      (EDateEdit  *dedit,
                         gint        hour,
                         gint        minute);

/* Whether we show the date field. */
gboolean   e_date_edit_get_show_date        (EDateEdit  *dedit);
void       e_date_edit_set_show_date        (EDateEdit  *dedit,
                         gboolean    show_date);

/* Whether we show the time field. */
gboolean   e_date_edit_get_show_time        (EDateEdit  *dedit);
void       e_date_edit_set_show_time        (EDateEdit  *dedit,
                         gboolean    show_time);

/* The week start day, used in the date popup. 0 (Mon) to 6 (Sun). */
gint       e_date_edit_get_week_start_day   (EDateEdit  *dedit);
void       e_date_edit_set_week_start_day   (EDateEdit  *dedit,
                         gint        week_start_day);

/* Whether we show week numbers in the date popup. */
gboolean   e_date_edit_get_show_week_numbers    (EDateEdit  *dedit);
void       e_date_edit_set_show_week_numbers    (EDateEdit  *dedit,
                         gboolean    show_week_numbers);

/* Whether we use 24 hour format in the time field & popup. */
gboolean   e_date_edit_get_use_24_hour_format   (EDateEdit  *dedit);
void       e_date_edit_set_use_24_hour_format   (EDateEdit  *dedit,
                         gboolean    use_24_hour_format);

/* Whether we allow the date to be set to 'None'. e_date_edit_get_time() will
   return (time_t) -1 in this case. */
gboolean   e_date_edit_get_allow_no_date_set    (EDateEdit  *dedit);
void       e_date_edit_set_allow_no_date_set    (EDateEdit  *dedit,
                         gboolean    allow_no_date_set);

/* The range of time to show in the time combo popup. */
void       e_date_edit_get_time_popup_range (EDateEdit  *dedit,
                         gint       *lower_hour,
                         gint       *upper_hour);
void       e_date_edit_set_time_popup_range (EDateEdit  *dedit,
                         gint        lower_hour,
                         gint        upper_hour);

END_GNOME_DECLS

#endif
freebsd-ports-gnome/commit/java/openjdk8?id=ad6f79003140b12c2b208916adb268bbdfe00ec0'>. Add support for the HotSpot Serviceability Agent for ppc64.glewis2016-12-291-202/+2430 * Add an X11 option to java/openjdk[78]asomers2016-12-101-7/+28 * . Update to 8u112.glewis2016-10-306-628/+596 * Update cacerts file using the one included in 8u111 release.ale2016-10-242-1/+1 * ${RM} already has -f.mat2016-10-211-1/+1 * . Include the thread id so that jstack can provide stack traces whenglewis2016-09-043-0/+38 * Make the FPU hack for ARM optional. Note this hack is not necessary forjkim2016-08-272-10/+11 * More typosbapt2016-07-311-1/+1 * Use the new @javavmbapt2016-07-311-2/+1 * . Update to 8u102.glewis2016-07-305-1607/+620 * . Regenerate patch-bsd and patch-bsd-test. This obsoletes another patchglewis2016-06-183-2232/+1574 * . Fix a double free bug. This is pulled from upstream.glewis2016-06-162-1/+53 * Unbreak arm.jkim2016-06-134-10/+63 * . Use poll() rather than select() on BSD to avoid crashes during networkglewis2016-06-132-0/+86 * Handle unsafe operations that access invalid memory more gracefullyglewis2016-06-131-0/+14 * . Update to 8u92.glewis2016-05-176-3382/+6995 * Remove ${PORTSDIR}/ from dependencies, categories h, i, j, k, and l.mat2016-04-011-15/+15 * . Update to 8u77.glewis2016-03-282-3/+9 * Combine print/cups-base, print/cups-client and print/cups-image intotijl2016-03-111-1/+1 * . Update to 8u72.glewis2016-02-018-7856/+973 * . Unreak CCACHEglewis2016-01-212-0/+22 * - Partially implement getThreadUserTime() using getrusage(2). Note we canjkim2016-01-062-20/+58 * . Stub implementation of OperatingSystemImpl.glewis2016-01-022-1/+46 * Fix the previous commit. We do not support getThreadUserTime().jkim2015-12-231-1/+1 * Implement ThreadMXBean.getThreadCpuTime(), etc.jkim2015-12-233-0/+90 * Fix build with fmake.jkim2015-12-151-1/+1 * Build compilefontconfig.jar and javazic.jar with bootstrap jar. Originallyjkim2015-12-151-2/+2 * Build with sjavac when we are self-hosting to improve build speed.jkim2015-12-151-0/+4 * Allow java/openjdk7 for bootstrapping java/openjdk8. Although we cannotjkim2015-12-151-4/+3 * Respect CC, CPP and CXX with full paths.jkim2015-12-151-1/+1 * Respect CC, CPP and CXX with full paths.jkim2015-12-151-0/+12 * . Update to 8u66.glewis2015-12-134-2116/+4678 * Restore jtreg disappeared in r396353.jkim2015-12-121-0/+2 * Work around build failures with Poudriere. We have to limit max heap sizejkim2015-12-111-0/+6 * Fix regression introduced in r372338, i.e., mis-merged fix for JDK-8031581.jkim2015-12-112-1/+24 * Add an upstream patch to fix build for some 32-bit platforms, i.e.,jkim2015-12-101-0/+28 * Update giflib to 5.1.1antoine2015-12-041-0/+1 * Add support for armv6hf. Tested on Raspberry Pi 2 Model B.jkim2015-10-161-5/+5 * Clean up and modernize the port. No functional change.jkim2015-09-302-66/+142 * . Add support for armv6.glewis2015-09-294-7/+148 * Do not build unnecessary targets to reduce build time.jkim2015-09-161-0/+7 * . Switch to xz for the new remote patches to decrease download size.glewis2015-09-092-27/+27 * . Move the large patches which contain the changes between updates of theglewis2015-09-0811-1143912/+28 * . Update to 8u60.glewis2015-09-074-983/+285491 * Fix few more mismerges in the previous update.jkim2015-07-213-16/+20 * Tidy up couple of problems in the previous update.jkim2015-07-213-5/+16 * . Update to 8u51.glewis2015-07-1914-980/+10892 * . The test target wants jtreg binaries to be found one directory up. Allowglewis2015-07-051-0/+3 * . Fix BSD detection in the langtools test infrastructure.glewis2015-07-051-0/+11 * - Fix broken preprocessor directives.jkim2015-07-034-1/+148 * Fix the previous commit. Forgot to remove #'s before committing. :-(jkim2015-05-201-2/+2 * Do not use static libjli for stable/10 and head. This complements PR193009.jkim2015-05-204-44/+134 * . Update to 8u45.glewis2015-05-065-549/+46187 * Fix build with GCC with recent head kernel by disabling PCH for GCC.bdrewery2015-04-15