~gpredict-team/gpredict/gpredict-packaging

« back to all changes in this revision

Viewing changes to src/gtk-sat-module.h

  • Committer: Bazaar Package Importer
  • Author(s): Fernando M. Maresca
  • Date: 2011-02-21 12:32:33 UTC
  • mto: (3.1.7 sid)
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20110221123233-50ztzx1wch3jqcs8
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 
50
50
 
51
51
/** \brief Module layout */
52
 
typedef enum {
53
 
    GTK_SAT_MOD_LAYOUT_1 = 0, /*!< one view */
54
 
    GTK_SAT_MOD_LAYOUT_2,     /*!< Two views, one above the other */
55
 
    GTK_SAT_MOD_LAYOUT_3,     /*!< Three views, big one on top, two small one at bottom */
56
 
    GTK_SAT_MOD_LAYOUT_4      /*!< Three views, big one on bottom, small ones on top */
57
 
} gtk_sat_mod_layout_t;
 
52
 
 
53
//typedef enum {
 
54
//    GTK_SAT_MOD_LAYOUT_1 = 0, /*!< one view */
 
55
//    GTK_SAT_MOD_LAYOUT_2,     /*!< Two views, one above the other */
 
56
//    GTK_SAT_MOD_LAYOUT_3,     /*!< Three views, big one on top, two small one at bottom */
 
57
//    GTK_SAT_MOD_LAYOUT_4      /*!< Three views, big one on bottom, small ones on top */
 
58
//} gtk_sat_mod_layout_t;
58
59
 
59
60
 
60
61
/** \brief View types */
63
64
    GTK_SAT_MOD_VIEW_MAP,       /*!< GtkSatMap */
64
65
    GTK_SAT_MOD_VIEW_POLAR,     /*!< GtkPolarView */
65
66
    GTK_SAT_MOD_VIEW_SINGLE,    /*!< GtkSingleSat */
66
 
    GTK_SAT_MOD_VIEW_MET,       /*!< GtkMet */
 
67
    GTK_SAT_MOD_VIEW_EVENT,     /*!< GtkEventList */
 
68
    GTK_SAT_MOD_VIEW_NUM,       /*!< Number of modules */
67
69
} gtk_sat_mod_view_t;
68
70
 
69
71
 
105
107
    guint          event_count;
106
108
    guint          event_timeout;
107
109
 
108
 
    /* layout */
109
 
    GtkWidget     *vpaned;      /*!< Vertical space divider */
110
 
    GtkWidget     *hpaned;      /*!< Horizontal space divider */
111
 
 
112
 
    /* these are needed when docking */
113
 
    gint           vpanedpos;   /*!< Stored position of vpaned */
114
 
    gint           hpanedpos;   /*!< Stored pos of hpaned */
115
 
 
116
 
    /* children */
117
 
    GtkWidget     *child_1;
118
 
    GtkWidget     *child_2;
119
 
    GtkWidget     *child_3;
 
110
    /* layout and children */
 
111
    gint         *grid;         /*!< The grid layout array [(type,left,right,top,bottom),...] */
 
112
    guint         nviews;       /*!< The number of views */
 
113
    GSList       *views;        /*!< Pointers to the views */
120
114
 
121
115
    GKeyFile      *cfgdata;      /*!< Configuration data. */
122
116
    qth_t         *qth;          /*!< QTH information. */
126
120
    guint32        timeout;      /*!< Timeout value [msec] */
127
121
 
128
122
    gtk_sat_mod_state_t  state;   /*!< The state of the module. */
129
 
    gtk_sat_mod_layout_t layout;  /*!< module layout */
130
 
    gtk_sat_mod_view_t   view_1;
131
 
    gtk_sat_mod_view_t   view_2;
132
 
    gtk_sat_mod_view_t   view_3;
133
123
 
134
124
    guint          timerid;      /*!< The timeout ID (FIXME: REMOVE) */
135
 
    gboolean       busy;         /*!< Flag indicating whether timeout has
136
 
                                                                      finished or not. Also used for blocking
137
 
                                                                          the module during TLE update.
138
 
                                                                 */
 
125
    GMutex       *busy;          /*!< Flag indicating whether timeout has
 
126
                                      finished or not. Also used for blocking
 
127
                                      the module during TLE update. */
139
128
 
140
129
    /* time keeping */
141
130
    gdouble        rtNow;        /*!< Real-time in this cycle */