Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

dialog-eclipse.h

Go to the documentation of this file.
00001 /*
00002  *  Celestia GTK+ Front-End
00003  *  Copyright (C) 2005 Pat Suwalski <pat@suwalski.net>
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  $Id: dialog-eclipse.h,v 1.1 2005/12/06 03:19:35 suwalski Exp $
00011  */
00012 
00013 #ifndef GTK_DIALOG_ECLIPSE_H
00014 #define GTK_DIALOG_ECLIPSE_H
00015 
00016 #include <gdk/gdk.h>
00017 #include <gtk/gtk.h>
00018 
00019 #include "common.h"
00020 
00021 
00022 /* Entry Function */
00023 void dialogEclipseFinder(AppData* app);
00024 
00025 
00026 /* Local Data Structures */
00027 /* Date selection data type */
00028 typedef struct _selDate selDate;
00029 struct _selDate {
00030         int year;
00031         int month;
00032         int day;
00033 };
00034 
00035 typedef struct _EclipseData EclipseData;
00036 struct _EclipseData {
00037         AppData* app;
00038         
00039         /* Start Time */
00040         selDate* d1;
00041 
00042         /* End Time */
00043         selDate* d2;
00044 
00045         bool bSolar;
00046         char body[7];
00047         GtkTreeSelection* sel;
00048 
00049         GtkWidget *eclipseList;
00050         GtkListStore *eclipseListStore;
00051 
00052         GtkDialog* window;
00053 };
00054 
00055 
00056 const char * const eclipseTitles[] =
00057 {
00058         "Planet",
00059         "Satellite",
00060         "Date",
00061         "Start",
00062         "End",
00063         NULL
00064 };
00065 
00066 const char * const eclipseTypeTitles[] =
00067 {
00068         "solar",
00069         "moon",
00070         NULL
00071 };
00072 
00073 const char * const eclipsePlanetTitles[] =
00074 {
00075         "Earth",
00076         "Jupiter",
00077         "Saturn",
00078         "Uranus",
00079         "Neptune",
00080         "Pluto",
00081         NULL
00082 };
00083 
00084 #endif /* GTK_DIALOG_ECLIPSE_H */

Generated on Sat Jan 14 22:30:30 2006 for Celestia by  doxygen 1.4.1