~ubuntu-branches/ubuntu/trusty/hugin/trusty-proposed

« back to all changes in this revision

Viewing changes to src/hugin1/hugin/GLPreviewFrame.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2011-01-06 14:28:24 UTC
  • mfrom: (1.1.9 upstream) (0.1.21 experimental)
  • Revision ID: james.westby@ubuntu.com-20110106142824-zn9lxylg5z44dynn
* Drop Cyril Brulebois from Uploaders. Thank you very much for your work.
* Bump package version. (rc3 was re-released as 2010.4.0).

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
class GLViewer;
38
38
class wxSpinEvent;
39
39
class wxChoice;
 
40
#if wxCHECK_VERSION(2,9,1)
 
41
//forward declaration for wxInfoBar works only for wxGTK
 
42
//for other systems wxInfoBar is defined as preprocessor macro and not as class
 
43
//class wxInfoBar;
 
44
#include <wx/infobar.h>
 
45
#endif
40
46
 
41
47
class PreviewToolHelper;
42
48
class PreviewTool;
104
110
    /** fills the blend wxChoice with all valid blend modes and restore the last used one
105
111
     */
106
112
    void FillBlendChoice();
 
113
    
 
114
    /** Display an updated version of the preview image.
 
115
     *  Redraws happen automatically when the panorama changes, and when the 
 
116
     *  preview's internal real time sliders are used. This is only needed
 
117
     *  occasionally, such as when a image finishes loading and its place holder
 
118
     *  can be replaced with the real image.
 
119
     */
 
120
    void redrawPreview();
 
121
    /** set status if projection hints should be shown or not*/
 
122
    void SetShowProjectionHints(bool new_value);
 
123
 
107
124
protected:
108
125
    void OnClose(wxCloseEvent& e);
109
126
    
130
147
 
131
148
    void OnBlendChoice(wxCommandEvent & e);
132
149
    void OnDragChoice(wxCommandEvent & e);
 
150
    void DragChoiceLayout( int index );
133
151
    void OnProjectionChoice(wxCommandEvent & e);
134
152
    /** event handler for changed roi */
135
153
    void OnROIChanged(wxCommandEvent & e);
136
154
    void OnHFOVChanged(wxCommandEvent & e);
137
155
    void OnVFOVChanged(wxCommandEvent & e);
 
156
    /** event handler when user hides the infobar */
 
157
    void OnHideProjectionHints(wxCommandEvent &e);
138
158
    // No HDR display yet
139
159
    // void OnOutputChoice(wxCommandEvent & e);
140
160
    // update tools according to blend mode choice
180
200
    wxTextCtrl * m_exposureTextCtrl;
181
201
    wxBitmapButton * m_defaultExposureBut;
182
202
    wxSpinButton * m_exposureSpinBut;
 
203
#if wxCHECK_VERSION(2, 9, 1)
 
204
    /// Bar for context sensitive projection information.
 
205
    wxInfoBar * m_infoBar;
 
206
#else
 
207
    // True if the status bar text has been replaced with projection information
 
208
    bool m_projectionStatusPushed;
 
209
#endif
183
210
 
184
211
    wxString m_choices[3];
185
212
    int m_oldProjFormat;
214
241
    PreviewControlPointTool *control_point_tool;
215
242
    PreviewPanoMaskTool *pano_mask_tool;    
216
243
    PreviewLayoutLinesTool *m_layoutLinesTool;
 
244
    bool m_showProjectionHints;
217
245
    void TurnOffTools(std::set<PreviewTool*> tools);
218
246
    void CleanButtonColours();
 
247
    /** Tell the user anything suspicious about the projection choice.
 
248
     * If nothing is suspicious, any previous message is removed.
 
249
     * In wxWidgets 2.9, this appears as an wxInfoBar. Older versions do not
 
250
     * have this. so the status bar is used instead.
 
251
     */
 
252
    void ShowProjectionWarnings();
219
253
};
220
254
 
221
255