1 /////////////////////////////////////////////////////////////////////////////
2 // Name:        qtexport.h
3 // Purpose:
4 // Author:      Brett Bode
5 // Modified by:
6 // Created:     Fri 23 Feb 08:44:29 2007
7 // RCS-ID:
8 // Copyright:   (c) 2006 Iowa State University
9 // Licence:
10 /////////////////////////////////////////////////////////////////////////////
11 
12 #ifndef _QTEXPORT_H_
13 #define _QTEXPORT_H_
14 
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "qtexport.h"
17 #endif
18 
19 /*!
20  * Includes
21  */
22 
23 ////@begin includes
24 #include "wx/statline.h"
25 ////@end includes
26 
27 /*!
28  * Forward declarations
29  */
30 
31 ////@begin forward declarations
32 ////@end forward declarations
33 
34 /*!
35  * Control identifiers
36  */
37 
38 ////@begin control identifiers
39 #define ID_QTEXPORT 10246
40 #define ID_QT_MOVIE_RADIO 10247
41 #define ID_EPLOT_CHECK 10248
42 #define ID_QT_COMPRESSOR_CHOICE 10068
43 #define ID_KEY_FRAME_EDIT 10249
44 #define SYMBOL_QTEXPORT_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
45 #define SYMBOL_QTEXPORT_TITLE _("Movie Options")
46 #define SYMBOL_QTEXPORT_IDNAME ID_QTEXPORT
47 #define SYMBOL_QTEXPORT_SIZE wxSize(400, 300)
48 #define SYMBOL_QTEXPORT_POSITION wxDefaultPosition
49 ////@end control identifiers
50 
51 /*!
52  * Compatibility
53  */
54 
55 #ifndef wxCLOSE_BOX
56 #define wxCLOSE_BOX 0x1000
57 #endif
58 
59 /*!
60  * QTExport class declaration
61  */
62 
63 class QTExport: public wxDialog
64 {
65     DECLARE_DYNAMIC_CLASS( QTExport )
66     DECLARE_EVENT_TABLE()
67 
68 public:
69     /// Constructors
70     QTExport();
71     QTExport( wxWindow* parent, wxWindowID id = SYMBOL_QTEXPORT_IDNAME, const wxString& caption = SYMBOL_QTEXPORT_TITLE, const wxPoint& pos = SYMBOL_QTEXPORT_POSITION, const wxSize& size = SYMBOL_QTEXPORT_SIZE, long style = SYMBOL_QTEXPORT_STYLE );
72 
73     /// Creation
74     bool Create( wxWindow* parent, wxWindowID id = SYMBOL_QTEXPORT_IDNAME, const wxString& caption = SYMBOL_QTEXPORT_TITLE, const wxPoint& pos = SYMBOL_QTEXPORT_POSITION, const wxSize& size = SYMBOL_QTEXPORT_SIZE, long style = SYMBOL_QTEXPORT_STYLE );
75 
76     /// Destructor
77     ~QTExport();
78 
79     /// Initialises member variables
80     void Init();
81 
82     /// Creates the controls and sizers
83     void CreateControls();
84 
85 ////@begin QTExport event handler declarations
86 
87 	/// wxEVT_COMMAND_RADIOBOX_SELECTED event handler for ID_QT_MOVIE_RADIO
88 	void OnQtMovieRadioSelected( wxCommandEvent& event );
89 
90 ////@end QTExport event handler declarations
91 
92 ////@begin QTExport member function declarations
93 
94 	/// Retrieves bitmap resources
95 	wxBitmap GetBitmapResource( const wxString& name );
96 
97 	/// Retrieves icon resources
98 	wxIcon GetIconResource( const wxString& name );
99 ////@end QTExport member function declarations
100 
101 	void SetMovieChoice(int v);
102 	void EnableFrameMovie(bool v);
103 	void EnableModeMovie(bool b);
104 
105 	int GetMovieChoice(void) const;
106 	bool AddEnergyPlot(void) const;
107 
108 	int GetCompressorChoice(void) const;
109 	int GetKeyFrameRate(void) const;
110 
111     /// Should we show tooltips?
112     static bool ShowToolTips();
113 
114 ////@begin QTExport member variables
115 	wxRadioBox* mMovieType;
116 	wxCheckBox* mEPlotCheck;
117 	wxChoice* mQTChoice;
118 	wxTextCtrl* mKeyFrameEdit;
119 ////@end QTExport member variables
120 };
121 
122 #endif
123     // _QTEXPORT_H_
124