00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
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
00023 void dialogEclipseFinder(AppData* app);
00024
00025
00026
00027
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
00040 selDate* d1;
00041
00042
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