search-double.h

00001 /*
00002  *  Copyright (C) 2002 Derek Atkins
00003  *
00004  *  Authors: Derek Atkins <warlord@MIT.EDU>
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of version 2 of the GNU General Public
00008  * License as published by the Free Software Foundation.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public
00016  * License along with this program; if not, write to the
00017  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019  */
00020 
00021 #ifndef _GNCSEARCH_DOUBLE_H
00022 #define _GNCSEARCH_DOUBLE_H
00023 
00024 #include "search-core-type.h"
00025 #include "QueryNew.h"
00026 
00027 #define GNC_TYPE_SEARCH_DOUBLE          (gnc_search_double_get_type ())
00028 #define GNCSEARCH_DOUBLE(obj)           GTK_CHECK_CAST (obj, GNC_TYPE_SEARCH_DOUBLE, GNCSearchDouble)
00029 #define GNCSEARCH_DOUBLE_CLASS(klass)   GTK_CHECK_CLASS_CAST (klass, GNC_TYPE_SEARCH_DOUBLE, GNCSearchDoubleClass)
00030 #define IS_GNCSEARCH_DOUBLE(obj)        GTK_CHECK_TYPE (obj, GNC_TYPE_SEARCH_DOUBLE)
00031 
00032 typedef struct _GNCSearchDouble GNCSearchDouble;
00033 typedef struct _GNCSearchDoubleClass    GNCSearchDoubleClass;
00034 
00035 struct _GNCSearchDouble {
00036   GNCSearchCoreType parent;
00037 
00038   query_compare_t       how;
00039   double                value;
00040 };
00041 
00042 struct _GNCSearchDoubleClass {
00043   GNCSearchCoreTypeClass parent_class;
00044 
00045   /* virtual methods */
00046 
00047   /* signals */
00048 };
00049 
00050 GType           gnc_search_double_get_type      (void);
00051 GNCSearchDouble *gnc_search_double_new  (void);
00052 
00053 /* methods */
00054 void    gnc_search_double_set_value (GNCSearchDouble *fi, double val);
00055 void    gnc_search_double_set_how (GNCSearchDouble *fi, query_compare_t how);
00056 
00057 #endif /* ! _GNCSEARCH_DOUBLE_H */
00058 

Generated on Mon Sep 8 05:04:23 2008 for GnuCash by  doxygen 1.5.2