1 | #include <klocale.h>
|
---|
2 | /****************************************************************************
|
---|
3 | ** Form implementation generated from reading ui file './activemirrorcontrolbase.ui'
|
---|
4 | **
|
---|
5 | ** Created: Fri Feb 6 20:23:07 2004
|
---|
6 | ** by: The User Interface Compiler (uic)
|
---|
7 | **
|
---|
8 | ** WARNING! All changes made in this file will be lost!
|
---|
9 | ****************************************************************************/
|
---|
10 | #include "activemirrorcontrolbase.h"
|
---|
11 |
|
---|
12 | #include <qbuttongroup.h>
|
---|
13 | #include <qcheckbox.h>
|
---|
14 | #include <qframe.h>
|
---|
15 | #include <qgroupbox.h>
|
---|
16 | #include <qlabel.h>
|
---|
17 | #include <qlcdnumber.h>
|
---|
18 | #include <qlineedit.h>
|
---|
19 | #include <qmultilineedit.h>
|
---|
20 | #include <qpushbutton.h>
|
---|
21 | #include <qspinbox.h>
|
---|
22 | #include <qlayout.h>
|
---|
23 | #include <qvariant.h>
|
---|
24 | #include <qtooltip.h>
|
---|
25 | #include <qwhatsthis.h>
|
---|
26 |
|
---|
27 | /*
|
---|
28 | * Constructs a ActiveMirrorControlBase which is a child of 'parent', with the
|
---|
29 | * name 'name' and widget flags set to 'f'
|
---|
30 | *
|
---|
31 | * The dialog will by default be modeless, unless you set 'modal' to
|
---|
32 | * TRUE to construct a modal dialog.
|
---|
33 | */
|
---|
34 | ActiveMirrorControlBase::ActiveMirrorControlBase( QWidget* parent, const char* name, bool modal, WFlags fl )
|
---|
35 | : QDialog( parent, name, modal, fl )
|
---|
36 | {
|
---|
37 | if ( !name )
|
---|
38 | setName( "ActiveMirrorControlBase" );
|
---|
39 | resize( 638, 587 );
|
---|
40 | setCaption( i18n( "AMC" ) );
|
---|
41 | ActiveMirrorControlBaseLayout = new QGridLayout( this );
|
---|
42 | ActiveMirrorControlBaseLayout->setSpacing( 6 );
|
---|
43 | ActiveMirrorControlBaseLayout->setMargin( 11 );
|
---|
44 |
|
---|
45 | ActionGroup = new QButtonGroup( this, "ActionGroup" );
|
---|
46 | ActionGroup->setTitle( i18n( "Actions" ) );
|
---|
47 | ActionGroup->setColumnLayout(0, Qt::Vertical );
|
---|
48 | ActionGroup->layout()->setSpacing( 0 );
|
---|
49 | ActionGroup->layout()->setMargin( 0 );
|
---|
50 | ActionGroupLayout = new QVBoxLayout( ActionGroup->layout() );
|
---|
51 | ActionGroupLayout->setAlignment( Qt::AlignTop );
|
---|
52 | ActionGroupLayout->setSpacing( 6 );
|
---|
53 | ActionGroupLayout->setMargin( 11 );
|
---|
54 |
|
---|
55 | ModeButton = new QPushButton( ActionGroup, "ModeButton" );
|
---|
56 | ModeButton->setText( i18n( "Go to user mode" ) );
|
---|
57 | ModeButton->setToggleButton( FALSE );
|
---|
58 | ModeButton->setToggleButton( FALSE );
|
---|
59 | ActionGroupLayout->addWidget( ModeButton );
|
---|
60 |
|
---|
61 | ManualButton = new QPushButton( ActionGroup, "ManualButton" );
|
---|
62 | ManualButton->setEnabled( FALSE );
|
---|
63 | ManualButton->setText( i18n( "Move manualy" ) );
|
---|
64 | ManualButton->setOn( FALSE );
|
---|
65 | ManualButton->setOn( FALSE );
|
---|
66 | ActionGroupLayout->addWidget( ManualButton );
|
---|
67 |
|
---|
68 | AdjustButton = new QPushButton( ActionGroup, "AdjustButton" );
|
---|
69 | AdjustButton->setEnabled( FALSE );
|
---|
70 | AdjustButton->setText( i18n( "Adjust" ) );
|
---|
71 | ActionGroupLayout->addWidget( AdjustButton );
|
---|
72 |
|
---|
73 | LaserAdjustButton = new QPushButton( ActionGroup, "LaserAdjustButton" );
|
---|
74 | LaserAdjustButton->setEnabled( FALSE );
|
---|
75 | LaserAdjustButton->setText( i18n( "Laser Adjust" ) );
|
---|
76 | ActionGroupLayout->addWidget( LaserAdjustButton );
|
---|
77 |
|
---|
78 | CenterAllButton = new QPushButton( ActionGroup, "CenterAllButton" );
|
---|
79 | CenterAllButton->setEnabled( FALSE );
|
---|
80 | CenterAllButton->setText( i18n( "Initialize AMC (Roque Lamp)" ) );
|
---|
81 | ActionGroupLayout->addWidget( CenterAllButton );
|
---|
82 |
|
---|
83 | CalButton = new QPushButton( ActionGroup, "CalButton" );
|
---|
84 | CalButton->setEnabled( FALSE );
|
---|
85 | CalButton->setText( i18n( "Calibrate" ) );
|
---|
86 | ActionGroupLayout->addWidget( CalButton );
|
---|
87 |
|
---|
88 | AutoFocusBox = new QCheckBox( ActionGroup, "AutoFocusBox" );
|
---|
89 | AutoFocusBox->setText( i18n( "Autofocus" ) );
|
---|
90 | ActionGroupLayout->addWidget( AutoFocusBox );
|
---|
91 |
|
---|
92 | ActiveMirrorControlBaseLayout->addWidget( ActionGroup, 0, 3 );
|
---|
93 | QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
|
---|
94 | ActiveMirrorControlBaseLayout->addItem( spacer, 0, 2 );
|
---|
95 |
|
---|
96 | Frame3 = new QFrame( this, "Frame3" );
|
---|
97 | Frame3->setFrameShape( QFrame::NoFrame );
|
---|
98 | Frame3->setFrameShadow( QFrame::Raised );
|
---|
99 | Frame3->setLineWidth( 0 );
|
---|
100 | Frame3Layout = new QHBoxLayout( Frame3 );
|
---|
101 | Frame3Layout->setSpacing( 6 );
|
---|
102 | Frame3Layout->setMargin( 11 );
|
---|
103 |
|
---|
104 | LoopsSpinBox = new QSpinBox( Frame3, "LoopsSpinBox" );
|
---|
105 | LoopsSpinBox->setEnabled( FALSE );
|
---|
106 | LoopsSpinBox->setMaxValue( 500 );
|
---|
107 | LoopsSpinBox->setMinValue( 50 );
|
---|
108 | LoopsSpinBox->setLineStep( 50 );
|
---|
109 | LoopsSpinBox->setValue( 50 );
|
---|
110 | Frame3Layout->addWidget( LoopsSpinBox );
|
---|
111 |
|
---|
112 | ErrorTestButton = new QPushButton( Frame3, "ErrorTestButton" );
|
---|
113 | ErrorTestButton->setEnabled( FALSE );
|
---|
114 | ErrorTestButton->setText( i18n( "ErrorTest" ) );
|
---|
115 | Frame3Layout->addWidget( ErrorTestButton );
|
---|
116 | QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
|
---|
117 | Frame3Layout->addItem( spacer_2 );
|
---|
118 |
|
---|
119 | exitButton = new QPushButton( Frame3, "exitButton" );
|
---|
120 | exitButton->setText( i18n( "&Exit" ) );
|
---|
121 | exitButton->setDefault( FALSE );
|
---|
122 | Frame3Layout->addWidget( exitButton );
|
---|
123 |
|
---|
124 | ActiveMirrorControlBaseLayout->addMultiCellWidget( Frame3, 2, 2, 0, 3 );
|
---|
125 |
|
---|
126 | InfoField = new QMultiLineEdit( this, "InfoField" );
|
---|
127 | QPalette pal;
|
---|
128 | QColorGroup cg;
|
---|
129 | cg.setColor( QColorGroup::Foreground, black );
|
---|
130 | cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
|
---|
131 | cg.setColor( QColorGroup::Light, white );
|
---|
132 | cg.setColor( QColorGroup::Midlight, QColor( 237, 237, 237) );
|
---|
133 | cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
|
---|
134 | cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
|
---|
135 | cg.setColor( QColorGroup::Text, QColor( 255, 255, 0) );
|
---|
136 | cg.setColor( QColorGroup::BrightText, white );
|
---|
137 | cg.setColor( QColorGroup::ButtonText, black );
|
---|
138 | cg.setColor( QColorGroup::Base, black );
|
---|
139 | cg.setColor( QColorGroup::Background, QColor( 220, 220, 220) );
|
---|
140 | cg.setColor( QColorGroup::Shadow, black );
|
---|
141 | cg.setColor( QColorGroup::Highlight, QColor( 84, 112, 152) );
|
---|
142 | cg.setColor( QColorGroup::HighlightedText, white );
|
---|
143 | pal.setActive( cg );
|
---|
144 | cg.setColor( QColorGroup::Foreground, black );
|
---|
145 | cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
|
---|
146 | cg.setColor( QColorGroup::Light, white );
|
---|
147 | cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
|
---|
148 | cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
|
---|
149 | cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
|
---|
150 | cg.setColor( QColorGroup::Text, QColor( 255, 255, 0) );
|
---|
151 | cg.setColor( QColorGroup::BrightText, white );
|
---|
152 | cg.setColor( QColorGroup::ButtonText, black );
|
---|
153 | cg.setColor( QColorGroup::Base, black );
|
---|
154 | cg.setColor( QColorGroup::Background, QColor( 220, 220, 220) );
|
---|
155 | cg.setColor( QColorGroup::Shadow, black );
|
---|
156 | cg.setColor( QColorGroup::Highlight, QColor( 84, 112, 152) );
|
---|
157 | cg.setColor( QColorGroup::HighlightedText, white );
|
---|
158 | pal.setInactive( cg );
|
---|
159 | cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
|
---|
160 | cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
|
---|
161 | cg.setColor( QColorGroup::Light, white );
|
---|
162 | cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
|
---|
163 | cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
|
---|
164 | cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
|
---|
165 | cg.setColor( QColorGroup::Text, QColor( 255, 255, 0) );
|
---|
166 | cg.setColor( QColorGroup::BrightText, white );
|
---|
167 | cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) );
|
---|
168 | cg.setColor( QColorGroup::Base, black );
|
---|
169 | cg.setColor( QColorGroup::Background, QColor( 220, 220, 220) );
|
---|
170 | cg.setColor( QColorGroup::Shadow, black );
|
---|
171 | cg.setColor( QColorGroup::Highlight, QColor( 84, 112, 152) );
|
---|
172 | cg.setColor( QColorGroup::HighlightedText, white );
|
---|
173 | pal.setDisabled( cg );
|
---|
174 | InfoField->setPalette( pal );
|
---|
175 |
|
---|
176 | ActiveMirrorControlBaseLayout->addMultiCellWidget( InfoField, 1, 1, 0, 3 );
|
---|
177 |
|
---|
178 | PositionGroup = new QGroupBox( this, "PositionGroup" );
|
---|
179 | PositionGroup->setTitle( i18n( "Pointing Info" ) );
|
---|
180 | PositionGroup->setColumnLayout(0, Qt::Vertical );
|
---|
181 | PositionGroup->layout()->setSpacing( 0 );
|
---|
182 | PositionGroup->layout()->setMargin( 0 );
|
---|
183 | PositionGroupLayout = new QGridLayout( PositionGroup->layout() );
|
---|
184 | PositionGroupLayout->setAlignment( Qt::AlignTop );
|
---|
185 | PositionGroupLayout->setSpacing( 6 );
|
---|
186 | PositionGroupLayout->setMargin( 11 );
|
---|
187 |
|
---|
188 | TablePointing = new QGroupBox( PositionGroup, "TablePointing" );
|
---|
189 | TablePointing->setEnabled( TRUE );
|
---|
190 | TablePointing->setTitle( i18n( "LUT pointing" ) );
|
---|
191 | TablePointing->setColumnLayout(0, Qt::Vertical );
|
---|
192 | TablePointing->layout()->setSpacing( 0 );
|
---|
193 | TablePointing->layout()->setMargin( 0 );
|
---|
194 | TablePointingLayout = new QGridLayout( TablePointing->layout() );
|
---|
195 | TablePointingLayout->setAlignment( Qt::AlignTop );
|
---|
196 | TablePointingLayout->setSpacing( 6 );
|
---|
197 | TablePointingLayout->setMargin( 11 );
|
---|
198 |
|
---|
199 | LUTAlt = new QLineEdit( TablePointing, "LUTAlt" );
|
---|
200 | LUTAlt->setEnabled( FALSE );
|
---|
201 | LUTAlt->setMaximumSize( QSize( 50, 32767 ) );
|
---|
202 | LUTAlt->setMaxLength( 3 );
|
---|
203 | LUTAlt->setEdited( FALSE );
|
---|
204 |
|
---|
205 | TablePointingLayout->addWidget( LUTAlt, 0, 1 );
|
---|
206 |
|
---|
207 | TextLabel3_2_2 = new QLabel( TablePointing, "TextLabel3_2_2" );
|
---|
208 | TextLabel3_2_2->setText( i18n( "Az.:" ) );
|
---|
209 |
|
---|
210 | TablePointingLayout->addWidget( TextLabel3_2_2, 1, 0 );
|
---|
211 |
|
---|
212 | TextLabel3_3 = new QLabel( TablePointing, "TextLabel3_3" );
|
---|
213 | TextLabel3_3->setText( i18n( "Zd.:" ) );
|
---|
214 |
|
---|
215 | TablePointingLayout->addWidget( TextLabel3_3, 0, 0 );
|
---|
216 |
|
---|
217 | LUTAz = new QLineEdit( TablePointing, "LUTAz" );
|
---|
218 | LUTAz->setEnabled( FALSE );
|
---|
219 | LUTAz->setMaximumSize( QSize( 50, 32767 ) );
|
---|
220 | LUTAz->setMaxLength( 3 );
|
---|
221 | LUTAz->setEdited( FALSE );
|
---|
222 |
|
---|
223 | TablePointingLayout->addWidget( LUTAz, 1, 1 );
|
---|
224 |
|
---|
225 | PositionGroupLayout->addWidget( TablePointing, 1, 0 );
|
---|
226 |
|
---|
227 | ActualPointing = new QGroupBox( PositionGroup, "ActualPointing" );
|
---|
228 | ActualPointing->setTitle( i18n( "Actual pointing" ) );
|
---|
229 | ActualPointing->setColumnLayout(0, Qt::Vertical );
|
---|
230 | ActualPointing->layout()->setSpacing( 0 );
|
---|
231 | ActualPointing->layout()->setMargin( 0 );
|
---|
232 | ActualPointingLayout = new QGridLayout( ActualPointing->layout() );
|
---|
233 | ActualPointingLayout->setAlignment( Qt::AlignTop );
|
---|
234 | ActualPointingLayout->setSpacing( 6 );
|
---|
235 | ActualPointingLayout->setMargin( 11 );
|
---|
236 |
|
---|
237 | ActualAlt = new QLineEdit( ActualPointing, "ActualAlt" );
|
---|
238 | ActualAlt->setEnabled( TRUE );
|
---|
239 | ActualAlt->setMaximumSize( QSize( 50, 32767 ) );
|
---|
240 | ActualAlt->setMaxLength( 6 );
|
---|
241 | ActualAlt->setEdited( FALSE );
|
---|
242 |
|
---|
243 | ActualPointingLayout->addWidget( ActualAlt, 0, 1 );
|
---|
244 |
|
---|
245 | TextLabel3_2 = new QLabel( ActualPointing, "TextLabel3_2" );
|
---|
246 | TextLabel3_2->setText( i18n( "Az.:" ) );
|
---|
247 |
|
---|
248 | ActualPointingLayout->addWidget( TextLabel3_2, 1, 0 );
|
---|
249 |
|
---|
250 | TextLabel3 = new QLabel( ActualPointing, "TextLabel3" );
|
---|
251 | TextLabel3->setText( i18n( "Zd.:" ) );
|
---|
252 |
|
---|
253 | ActualPointingLayout->addWidget( TextLabel3, 0, 0 );
|
---|
254 |
|
---|
255 | ActualAz = new QLineEdit( ActualPointing, "ActualAz" );
|
---|
256 | ActualAz->setEnabled( TRUE );
|
---|
257 | ActualAz->setMaximumSize( QSize( 50, 32767 ) );
|
---|
258 | ActualAz->setMaxLength( 6 );
|
---|
259 | ActualAz->setEdited( FALSE );
|
---|
260 |
|
---|
261 | ActualPointingLayout->addWidget( ActualAz, 1, 1 );
|
---|
262 |
|
---|
263 | PositionGroupLayout->addWidget( ActualPointing, 0, 0 );
|
---|
264 |
|
---|
265 | ActiveMirrorControlBaseLayout->addWidget( PositionGroup, 0, 1 );
|
---|
266 |
|
---|
267 | StateBox = new QGroupBox( this, "StateBox" );
|
---|
268 | StateBox->setTitle( i18n( "State" ) );
|
---|
269 | StateBox->setColumnLayout(0, Qt::Vertical );
|
---|
270 | StateBox->layout()->setSpacing( 0 );
|
---|
271 | StateBox->layout()->setMargin( 0 );
|
---|
272 | StateBoxLayout = new QGridLayout( StateBox->layout() );
|
---|
273 | StateBoxLayout->setAlignment( Qt::AlignTop );
|
---|
274 | StateBoxLayout->setSpacing( 6 );
|
---|
275 | StateBoxLayout->setMargin( 11 );
|
---|
276 |
|
---|
277 | TextLabel1 = new QLabel( StateBox, "TextLabel1" );
|
---|
278 | QFont TextLabel1_font( TextLabel1->font() );
|
---|
279 | TextLabel1_font.setFamily( "adobe-helvetica" );
|
---|
280 | TextLabel1_font.setPointSize( 14 );
|
---|
281 | TextLabel1->setFont( TextLabel1_font );
|
---|
282 | TextLabel1->setText( i18n( "State" ) );
|
---|
283 |
|
---|
284 | StateBoxLayout->addWidget( TextLabel1, 0, 0 );
|
---|
285 |
|
---|
286 | StateLabel = new QLabel( StateBox, "StateLabel" );
|
---|
287 | StateLabel->setText( i18n( "AMC is not available" ) );
|
---|
288 |
|
---|
289 | StateBoxLayout->addMultiCellWidget( StateLabel, 1, 1, 0, 2 );
|
---|
290 |
|
---|
291 | TextLabel1_2 = new QLabel( StateBox, "TextLabel1_2" );
|
---|
292 | QFont TextLabel1_2_font( TextLabel1_2->font() );
|
---|
293 | TextLabel1_2_font.setFamily( "adobe-helvetica" );
|
---|
294 | TextLabel1_2_font.setPointSize( 14 );
|
---|
295 | TextLabel1_2->setFont( TextLabel1_2_font );
|
---|
296 | TextLabel1_2->setText( i18n( "Last Report" ) );
|
---|
297 |
|
---|
298 | StateBoxLayout->addWidget( TextLabel1_2, 2, 0 );
|
---|
299 | QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
|
---|
300 | StateBoxLayout->addItem( spacer_3, 2, 1 );
|
---|
301 |
|
---|
302 | CommandTime = new QLabel( StateBox, "CommandTime" );
|
---|
303 | CommandTime->setText( QString::null );
|
---|
304 |
|
---|
305 | StateBoxLayout->addWidget( CommandTime, 4, 2 );
|
---|
306 | QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
|
---|
307 | StateBoxLayout->addItem( spacer_4, 4, 1 );
|
---|
308 |
|
---|
309 | ReportLabel = new QLabel( StateBox, "ReportLabel" );
|
---|
310 | ReportLabel->setText( i18n( "Startup" ) );
|
---|
311 |
|
---|
312 | StateBoxLayout->addMultiCellWidget( ReportLabel, 3, 3, 0, 2 );
|
---|
313 |
|
---|
314 | CommandLabel = new QLabel( StateBox, "CommandLabel" );
|
---|
315 | CommandLabel->setText( i18n( "Global CC state" ) );
|
---|
316 |
|
---|
317 | StateBoxLayout->addWidget( CommandLabel, 5, 0 );
|
---|
318 | QSpacerItem* spacer_5 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
|
---|
319 | StateBoxLayout->addItem( spacer_5, 0, 1 );
|
---|
320 |
|
---|
321 | StateLCD = new QLCDNumber( StateBox, "StateLCD" );
|
---|
322 | QFont StateLCD_font( StateLCD->font() );
|
---|
323 | StateLCD_font.setFamily( "adobe-helvetica" );
|
---|
324 | StateLCD_font.setPointSize( 14 );
|
---|
325 | StateLCD->setFont( StateLCD_font );
|
---|
326 | StateLCD->setCursor( QCursor( 0 ) );
|
---|
327 | StateLCD->setNumDigits( 1 );
|
---|
328 | StateLCD->setSegmentStyle( QLCDNumber::Filled );
|
---|
329 | StateLCD->setProperty( "intValue", 9 );
|
---|
330 |
|
---|
331 | StateBoxLayout->addWidget( StateLCD, 0, 2 );
|
---|
332 |
|
---|
333 | CCStateLCD = new QLCDNumber( StateBox, "CCStateLCD" );
|
---|
334 | QFont CCStateLCD_font( CCStateLCD->font() );
|
---|
335 | CCStateLCD_font.setFamily( "adobe-helvetica" );
|
---|
336 | CCStateLCD_font.setPointSize( 14 );
|
---|
337 | CCStateLCD->setFont( CCStateLCD_font );
|
---|
338 | CCStateLCD->setCursor( QCursor( 0 ) );
|
---|
339 | CCStateLCD->setNumDigits( 1 );
|
---|
340 | CCStateLCD->setSegmentStyle( QLCDNumber::Filled );
|
---|
341 | CCStateLCD->setProperty( "intValue", 9 );
|
---|
342 |
|
---|
343 | StateBoxLayout->addWidget( CCStateLCD, 5, 2 );
|
---|
344 |
|
---|
345 | TextLabel1_2_2 = new QLabel( StateBox, "TextLabel1_2_2" );
|
---|
346 | QFont TextLabel1_2_2_font( TextLabel1_2_2->font() );
|
---|
347 | TextLabel1_2_2_font.setFamily( "adobe-helvetica" );
|
---|
348 | TextLabel1_2_2_font.setPointSize( 14 );
|
---|
349 | TextLabel1_2_2->setFont( TextLabel1_2_2_font );
|
---|
350 | TextLabel1_2_2->setText( i18n( "Last Command" ) );
|
---|
351 |
|
---|
352 | StateBoxLayout->addWidget( TextLabel1_2_2, 4, 0 );
|
---|
353 | QSpacerItem* spacer_6 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
|
---|
354 | StateBoxLayout->addItem( spacer_6, 5, 1 );
|
---|
355 |
|
---|
356 | ReportTime = new QLabel( StateBox, "ReportTime" );
|
---|
357 | ReportTime->setText( QString::null );
|
---|
358 |
|
---|
359 | StateBoxLayout->addWidget( ReportTime, 2, 2 );
|
---|
360 |
|
---|
361 | ActiveMirrorControlBaseLayout->addWidget( StateBox, 0, 0 );
|
---|
362 |
|
---|
363 | // signals and slots connections
|
---|
364 | connect( exitButton, SIGNAL( clicked() ), this, SLOT( accept() ) );
|
---|
365 | connect( ModeButton, SIGNAL( clicked() ), this, SLOT( userModeSlot() ) );
|
---|
366 | connect( ManualButton, SIGNAL( clicked() ), this, SLOT( moveManuallySlot() ) );
|
---|
367 | connect( CalButton, SIGNAL( clicked() ), this, SLOT( calibrateSlot() ) );
|
---|
368 | connect( CenterAllButton, SIGNAL( clicked() ), this, SLOT( centerAllSlot() ) );
|
---|
369 | connect( LaserAdjustButton, SIGNAL( clicked() ), this, SLOT( laserAdjustSlot() ) );
|
---|
370 | connect( ErrorTestButton, SIGNAL( clicked() ), this, SLOT( errorTestSlot() ) );
|
---|
371 | connect( AutoFocusBox, SIGNAL( toggled(bool) ), this, SLOT( autoFocusSlot( bool ) ) );
|
---|
372 | connect( AdjustButton, SIGNAL( clicked() ), this, SLOT( adjustSlot() ) );
|
---|
373 | }
|
---|
374 |
|
---|
375 | /*
|
---|
376 | * Destroys the object and frees any allocated resources
|
---|
377 | */
|
---|
378 | ActiveMirrorControlBase::~ActiveMirrorControlBase()
|
---|
379 | {
|
---|
380 | // no need to delete child widgets, Qt does it all for us
|
---|
381 | }
|
---|
382 |
|
---|
383 | /*
|
---|
384 | * Main event handler. Reimplemented to handle application
|
---|
385 | * font changes
|
---|
386 | */
|
---|
387 | bool ActiveMirrorControlBase::event( QEvent* ev )
|
---|
388 | {
|
---|
389 | bool ret = QDialog::event( ev );
|
---|
390 | if ( ev->type() == QEvent::ApplicationFontChange ) {
|
---|
391 | QFont TextLabel1_font( TextLabel1->font() );
|
---|
392 | TextLabel1_font.setFamily( "adobe-helvetica" );
|
---|
393 | TextLabel1_font.setPointSize( 14 );
|
---|
394 | TextLabel1->setFont( TextLabel1_font );
|
---|
395 | QFont TextLabel1_2_font( TextLabel1_2->font() );
|
---|
396 | TextLabel1_2_font.setFamily( "adobe-helvetica" );
|
---|
397 | TextLabel1_2_font.setPointSize( 14 );
|
---|
398 | TextLabel1_2->setFont( TextLabel1_2_font );
|
---|
399 | QFont StateLCD_font( StateLCD->font() );
|
---|
400 | StateLCD_font.setFamily( "adobe-helvetica" );
|
---|
401 | StateLCD_font.setPointSize( 14 );
|
---|
402 | StateLCD->setFont( StateLCD_font );
|
---|
403 | QFont CCStateLCD_font( CCStateLCD->font() );
|
---|
404 | CCStateLCD_font.setFamily( "adobe-helvetica" );
|
---|
405 | CCStateLCD_font.setPointSize( 14 );
|
---|
406 | CCStateLCD->setFont( CCStateLCD_font );
|
---|
407 | QFont TextLabel1_2_2_font( TextLabel1_2_2->font() );
|
---|
408 | TextLabel1_2_2_font.setFamily( "adobe-helvetica" );
|
---|
409 | TextLabel1_2_2_font.setPointSize( 14 );
|
---|
410 | TextLabel1_2_2->setFont( TextLabel1_2_2_font );
|
---|
411 | }
|
---|
412 | return ret;
|
---|
413 | }
|
---|
414 |
|
---|
415 | void ActiveMirrorControlBase::autoFocusSlot( bool )
|
---|
416 | {
|
---|
417 | qWarning( "ActiveMirrorControlBase::autoFocusSlot( bool ): Not implemented yet!" );
|
---|
418 | }
|
---|
419 |
|
---|
420 | void ActiveMirrorControlBase::calibrateSlot()
|
---|
421 | {
|
---|
422 | qWarning( "ActiveMirrorControlBase::calibrateSlot(): Not implemented yet!" );
|
---|
423 | }
|
---|
424 |
|
---|
425 | void ActiveMirrorControlBase::centerAllSlot()
|
---|
426 | {
|
---|
427 | qWarning( "ActiveMirrorControlBase::centerAllSlot(): Not implemented yet!" );
|
---|
428 | }
|
---|
429 |
|
---|
430 | void ActiveMirrorControlBase::errorTestSlot()
|
---|
431 | {
|
---|
432 | qWarning( "ActiveMirrorControlBase::errorTestSlot(): Not implemented yet!" );
|
---|
433 | }
|
---|
434 |
|
---|
435 | void ActiveMirrorControlBase::laserAdjustSlot()
|
---|
436 | {
|
---|
437 | qWarning( "ActiveMirrorControlBase::laserAdjustSlot(): Not implemented yet!" );
|
---|
438 | }
|
---|
439 |
|
---|
440 | void ActiveMirrorControlBase::moveManuallySlot()
|
---|
441 | {
|
---|
442 | qWarning( "ActiveMirrorControlBase::moveManuallySlot(): Not implemented yet!" );
|
---|
443 | }
|
---|
444 |
|
---|
445 | void ActiveMirrorControlBase::adjustSlot()
|
---|
446 | {
|
---|
447 | qWarning( "ActiveMirrorControlBase::adjustSlot(): Not implemented yet!" );
|
---|
448 | }
|
---|
449 |
|
---|
450 | void ActiveMirrorControlBase::userModeSlot()
|
---|
451 | {
|
---|
452 | qWarning( "ActiveMirrorControlBase::userModeSlot(): Not implemented yet!" );
|
---|
453 | }
|
---|
454 |
|
---|
455 | #include "activemirrorcontrolbase.moc"
|
---|