dialog-star.h
上传用户:center1979
上传日期:2022-07-26
资源大小:50633k
文件大小:1k
- /*
- * Celestia GTK+ Front-End
- * Copyright (C) 2005 Pat Suwalski <pat@suwalski.net>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * $Id: dialog-star.h,v 1.1 2005-12-06 03:19:35 suwalski Exp $
- */
- #ifndef GTK_DIALOG_STAR_H
- #define GTK_DIALOG_STAR_H
- #include <gtk/gtk.h>
- #include <celengine/starbrowser.h>
- #include "common.h"
- #define MINLISTSTARS 10
- #define MAXLISTSTARS 500
- /* Entry Function */
- void dialogStarBrowser(AppData* app);
- /* Local Data Structures */
- typedef struct _sbData sbData;
- struct _sbData {
- AppData* app;
-
- StarBrowser browser;
- GtkListStore* starListStore;
- int numListStars;
- GtkWidget* entry;
- GtkWidget* scale;
- };
- static const char * const sbTitles[] =
- {
- "Name",
- "Distance(LY)",
- "App. Mag",
- "Abs. Mag",
- "Type"
- };
- static const char * const sbRadioLabels[] =
- {
- "Nearest",
- "Brightest (App.)",
- "Brightest (Abs.)",
- "With Planets",
- NULL
- };
- #endif /* GTK_DIALOG_STAR_H */