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

dialog-star.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-star.h,v 1.1 2005/12/06 03:19:35 suwalski Exp $
00011  */
00012 
00013 #ifndef GTK_DIALOG_STAR_H
00014 #define GTK_DIALOG_STAR_H
00015 
00016 #include <gtk/gtk.h>
00017 
00018 #include <celengine/starbrowser.h>
00019 
00020 #include "common.h"
00021 
00022 #define MINLISTSTARS 10
00023 #define MAXLISTSTARS 500
00024 
00025 
00026 /* Entry Function */
00027 void dialogStarBrowser(AppData* app);
00028 
00029 
00030 /* Local Data Structures */
00031 typedef struct _sbData sbData;
00032 struct _sbData {
00033         AppData* app;
00034         
00035         StarBrowser browser;
00036         GtkListStore* starListStore;
00037         int numListStars;
00038         GtkWidget* entry;
00039         GtkWidget* scale;
00040 };
00041 
00042 static const char * const sbTitles[] =
00043 {
00044         "Name",
00045         "Distance(LY)",
00046         "App. Mag",
00047         "Abs. Mag",
00048         "Type"
00049 };
00050 
00051 static const char * const sbRadioLabels[] =
00052 {
00053         "Nearest",
00054         "Brightest (App.)",
00055         "Brightest (Abs.)",
00056         "With Planets",
00057         NULL
00058 };
00059 
00060 #endif /* GTK_DIALOG_STAR_H */

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