erGtkDialogJumpToPage.h

Go to the documentation of this file.
00001 #ifndef __ERGTK_DIALOG_JUMP_TO_PAGE_H__
00002 #define __ERGTK_DIALOG_JUMP_TO_PAGE_H__
00003 
00004 /**
00005  * \file erGtkDialogJumpToPage.h
00006  * \brief ereader gtk library - GtkDialog widget to jump to a page number
00007  */
00008       
00009 /*
00010  * This file is part of libergtk.
00011  *
00012  * libergtk is free software: you can redistribute it and/or modify
00013  * it under the terms of the GNU General Public License as published by
00014  * the Free Software Foundation, either version 2 of the License, or
00015  * (at your option) any later version.
00016  *
00017  * libergtk is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program. If not, see <http://www.gnu.org/licenses/>.
00024  */
00025  
00026 /**
00027  * Copyright (C) 2008 iRex Technologies B.V.
00028  * All rights reserved.
00029  */
00030 
00031 #define TOTAL_NUMERIC_BUTTONS 10
00032 
00033 G_BEGIN_DECLS
00034 
00035 #define ERGTK_TYPE_JUMP_TO_PAGE_DIALOG              (ergtk_jump_to_page_dialog_get_type ())
00036 #define ERGTK_JUMP_TO_PAGE_DIALOG(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), ERGTK_TYPE_JUMP_TO_PAGE_DIALOG, erGtkJumpToPageDialog))
00037 #define ERGTK_JUMP_TO_PAGE_DIALOG_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass),  ERGTK_TYPE_JUMP_TO_PAGE_DIALOG, erGtkJumpToPageDialogClass))
00038 #define ERGTK_IS_JUMP_TO_PAGE_DIALOG(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ERGTK_TYPE_JUMP_TO_PAGE_DIALOG))
00039 #define ERGTK_IS_JUMP_TO_PAGE_DIALOG_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass),  ERGTK_TYPE_JUMP_TO_PAGE_DIALOG))
00040 #define ERGTK_JUMP_TO_PAGE_DIALOG_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj),  ERGTK_TYPE_JUMP_TO_PAGE_DIALOG, erGtkJumpToPageDialogClass))
00041 
00042 
00043 typedef struct _erGtkJumpToPageDialog       erGtkJumpToPageDialog;
00044 typedef struct _erGtkJumpToPageDialogClass  erGtkJumpToPageDialogClass;
00045 
00046 struct _erGtkJumpToPageDialog
00047 {
00048     // parent class
00049     GtkDialog parent;
00050 
00051     // private
00052     // GTK entry displaying page numbers
00053     GtkWidget* entry;
00054 
00055     // Numeric buttons from '0' ~ '9'
00056     GtkWidget* numeric_btns[TOTAL_NUMERIC_BUTTONS];
00057 };
00058 
00059 struct _erGtkJumpToPageDialogClass
00060 {
00061     GtkDialogClass parent_class;
00062 
00063     // virtual methods
00064     // signal handlers
00065 };
00066 
00067 // public functions
00068 GType           ergtk_jump_to_page_dialog_get_type      (void) G_GNUC_CONST;
00069 GtkWidget*      ergtk_jump_to_page_dialog_new           ();
00070 
00071 G_END_DECLS
00072 
00073 #endif              // __GTK_DIALOG_JUMP_TO_PAGE_H__
Generated by  doxygen 1.6.2-20100208