GnuCash
2.6.99
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
gnome-utils
gnc-cell-renderer-date.h
1
/*************************************************************************
2
* The following code has come from Planner. This code implements a
3
* GtkCalendar in a custom GtkCellEditable popup from GtkCellRenderer.
4
*
5
* These files have been renamed and changed to remove code not required
6
* and to remove a dependency on libplanner.
7
*
8
* Copyright (C) 2012 Robert Fewell
9
*
10
* Copyright (C) 2005 Imendio AB
11
* Copyright (C) 2001-2002 CodeFactory AB
12
* Copyright (C) 2001-2002 Richard Hult <
[email protected]
>
13
* Copyright (C) 2001-2002 Mikael Hallendal <
[email protected]
>
14
*
15
* This program is free software; you can redistribute it and/or
16
* modify it under the terms of the GNU General Public License as
17
* published by the Free Software Foundation; either version 2 of the
18
* License, or (at your option) any later version.
19
*
20
* This program is distributed in the hope that it will be useful,
21
* but WITHOUT ANY WARRANTY; without even the implied warranty of
22
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23
* General Public License for more details.
24
*
25
* You should have received a copy of the GNU General Public
26
* License along with this program; if not, write to the
27
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
28
* Boston, MA 02111-1307, USA.
29
**************************************************************************/
30
31
#ifndef __GNC_CELL_RENDERER_DATE_H__
32
#define __GNC_CELL_RENDERER_DATE_H__
33
34
#include <glib-object.h>
35
#include <gtk/gtkwidget.h>
36
#include <
gnc-date.h
>
37
#include "gnc-cell-renderer-popup.h"
38
#include "gnc-cell-renderer-popup-entry.h"
39
40
#define GNC_TYPE_CELL_RENDERER_DATE (gnc_cell_renderer_date_get_type ())
41
#define GNC_CELL_RENDERER_DATE(obj) (GTK_CHECK_CAST ((obj), GNC_TYPE_CELL_RENDERER_DATE, GncCellRendererDate))
42
#define GNC_CELL_RENDERER_DATE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GNC_TYPE_CELL_RENDERER_DATE, GncCellRendererDateClass))
43
#define GNC_IS_CELL_RENDERER_DATE(obj) (GTK_CHECK_TYPE ((obj), GNC_TYPE_CELL_RENDERER_DATE))
44
#define GNC_IS_CELL_RENDERER_DATE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), GNC_TYPE_CELL_RENDERER_DATE))
45
#define GNC_CELL_RENDERER_DATE_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GNC_TYPE_CELL_RENDERER_DATE, GncCellRendererDateClass))
46
47
typedef
struct
_GncCellRendererDate
GncCellRendererDate
;
48
typedef
struct
_GncCellRendererDateClass
GncCellRendererDateClass
;
49
50
struct
_GncCellRendererDate
51
{
52
GncCellRendererPopup
parent;
53
GtkWidget *calendar;
54
GtkWidget *today_button;
55
56
time64
time;
57
gboolean use_buttons;
58
GtkWidget *button_box;
59
60
};
61
62
struct
_GncCellRendererDateClass
63
{
64
GncCellRendererPopupClass
parent_class;
65
};
66
67
GType gnc_cell_renderer_date_get_type (
void
) G_GNUC_CONST;
68
GtkCellRenderer *gnc_cell_renderer_date_new (gboolean use_buttons);
69
70
71
#endif
/* __GNC_CELL_RENDERER_DATE_H__ */
_GncCellRendererDateClass
Definition:
gnc-cell-renderer-date.h:62
gnc-date.h
Date and Time handling routines.
_GncCellRendererDate
Definition:
gnc-cell-renderer-date.h:50
_GncCellRendererPopupClass
Definition:
gnc-cell-renderer-popup.h:67
_GncCellRendererPopup
Definition:
gnc-cell-renderer-popup.h:46
time64
gint64 time64
Definition:
gnc-date.h:83
Generated by
1.8.6