root/deus/AuthorInterface.cpp

Revision 8, 15.9 kB (checked in by pantley2, 4 years ago)

added old DEUS project to SVN

Line 
1 /****************************************************************************
2 ** Form implementation generated from reading ui file '.\AuthorInterface.ui'
3 **
4 ** Created: Thu Mar 13 16:50:57 2003
5 **      by:  The User Interface Compiler (uic)
6 **
7 ** WARNING! All changes made in this file will be lost!
8 ****************************************************************************/
9 #include "AuthorInterface.h"
10
11 #include <qframe.h>
12 #include <qgroupbox.h>
13 #include <qlabel.h>
14 #include <qlineedit.h>
15 #include <qmultilineedit.h>
16 #include <qpushbutton.h>
17 #include <qslider.h>
18 #include <qtable.h>
19 #include <qlayout.h>
20 #include <qvariant.h>
21 #include <qtooltip.h>
22 #include <qwhatsthis.h>
23
24 /*
25  *  Constructs a AuthorForm which is a child of 'parent', with the
26  *  name 'name' and widget flags set to 'f'
27  */
28 AuthorForm::AuthorForm( QWidget* parent,  const char* name, WFlags fl )
29     : QWidget( parent, name, fl )
30 {
31     if ( !name )
32         setName( "AuthorForm" );
33     resize( 973, 744 );
34     setCaption( tr( "DEUS - Director - Author Interface" ) );
35     AuthorFormLayout = new QHBoxLayout( this );
36     AuthorFormLayout->setSpacing( 6 );
37     AuthorFormLayout->setMargin( 11 );
38
39     Layout6 = new QVBoxLayout;
40     Layout6->setSpacing( 6 );
41     Layout6->setMargin( 0 );
42
43     Frame = new QFrame( this, "Frame" );
44     Frame->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)3, Frame->sizePolicy().hasHeightForWidth() ) );
45     Frame->setFrameShape( QFrame::Box );
46     Frame->setFrameShadow( QFrame::Raised );
47     Layout6->addWidget( Frame );
48
49     Layout5 = new QHBoxLayout;
50     Layout5->setSpacing( 6 );
51     Layout5->setMargin( 0 );
52
53     TextLabel1 = new QLabel( this, "TextLabel1" );
54     TextLabel1->setText( tr( "Zoom:" ) );
55     Layout5->addWidget( TextLabel1 );
56
57     ZoomSlider = new QSlider( this, "ZoomSlider" );
58     ZoomSlider->setOrientation( QSlider::Horizontal );
59     Layout5->addWidget( ZoomSlider );
60
61     FitButton = new QPushButton( this, "FitButton" );
62     FitButton->setText( tr( "Fit" ) );
63     Layout5->addWidget( FitButton );
64
65     CenterButton = new QPushButton( this, "CenterButton" );
66     CenterButton->setText( tr( "Center" ) );
67     Layout5->addWidget( CenterButton );
68     Layout6->addLayout( Layout5 );
69     AuthorFormLayout->addLayout( Layout6 );
70
71     Layout5_2 = new QVBoxLayout;
72     Layout5_2->setSpacing( 6 );
73     Layout5_2->setMargin( 0 );
74
75     ViewLabel = new QLabel( this, "ViewLabel" );
76     QFont ViewLabel_font(  ViewLabel->font() );
77     ViewLabel_font.setFamily( "@Arial Unicode MS" );
78     ViewLabel_font.setPointSize( 11 );
79     ViewLabel_font.setBold( TRUE );
80     ViewLabel_font.setItalic( TRUE );
81     ViewLabel->setFont( ViewLabel_font );
82     ViewLabel->setText( tr( "Story View" ) );
83     ViewLabel->setAlignment( int( QLabel::AlignCenter ) );
84     Layout5_2->addWidget( ViewLabel );
85
86     ReturnButton = new QPushButton( this, "ReturnButton" );
87     ReturnButton->setEnabled( FALSE );
88     QPalette pal;
89     QColorGroup cg;
90     cg.setColor( QColorGroup::Foreground, black );
91     cg.setColor( QColorGroup::Button, QColor( 255, 170, 127) );
92     cg.setColor( QColorGroup::Light, QColor( 255, 254, 254) );
93     cg.setColor( QColorGroup::Midlight, QColor( 255, 212, 190) );
94     cg.setColor( QColorGroup::Dark, QColor( 127, 85, 63) );
95     cg.setColor( QColorGroup::Mid, QColor( 170, 113, 85) );
96     cg.setColor( QColorGroup::Text, black );
97     cg.setColor( QColorGroup::BrightText, white );
98     cg.setColor( QColorGroup::ButtonText, black );
99     cg.setColor( QColorGroup::Base, white );
100     cg.setColor( QColorGroup::Background, QColor( 212, 208, 200) );
101     cg.setColor( QColorGroup::Shadow, black );
102     cg.setColor( QColorGroup::Highlight, QColor( 10, 36, 106) );
103     cg.setColor( QColorGroup::HighlightedText, white );
104     pal.setActive( cg );
105     cg.setColor( QColorGroup::Foreground, black );
106     cg.setColor( QColorGroup::Button, QColor( 255, 170, 127) );
107     cg.setColor( QColorGroup::Light, QColor( 255, 254, 254) );
108     cg.setColor( QColorGroup::Midlight, QColor( 255, 195, 165) );
109     cg.setColor( QColorGroup::Dark, QColor( 127, 85, 63) );
110     cg.setColor( QColorGroup::Mid, QColor( 170, 113, 85) );
111     cg.setColor( QColorGroup::Text, black );
112     cg.setColor( QColorGroup::BrightText, white );
113     cg.setColor( QColorGroup::ButtonText, black );
114     cg.setColor( QColorGroup::Base, white );
115     cg.setColor( QColorGroup::Background, QColor( 212, 208, 200) );
116     cg.setColor( QColorGroup::Shadow, black );
117     cg.setColor( QColorGroup::Highlight, QColor( 10, 36, 106) );
118     cg.setColor( QColorGroup::HighlightedText, white );
119     pal.setInactive( cg );
120     cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
121     cg.setColor( QColorGroup::Button, QColor( 255, 170, 127) );
122     cg.setColor( QColorGroup::Light, QColor( 255, 254, 254) );
123     cg.setColor( QColorGroup::Midlight, QColor( 255, 195, 165) );
124     cg.setColor( QColorGroup::Dark, QColor( 127, 85, 63) );
125     cg.setColor( QColorGroup::Mid, QColor( 170, 113, 85) );
126     cg.setColor( QColorGroup::Text, black );
127     cg.setColor( QColorGroup::BrightText, white );
128     cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) );
129     cg.setColor( QColorGroup::Base, white );
130     cg.setColor( QColorGroup::Background, QColor( 212, 208, 200) );
131     cg.setColor( QColorGroup::Shadow, black );
132     cg.setColor( QColorGroup::Highlight, QColor( 10, 36, 106) );
133     cg.setColor( QColorGroup::HighlightedText, white );
134     pal.setDisabled( cg );
135     ReturnButton->setPalette( pal );
136     ReturnButton->setText( tr( "Return to Story View" ) );
137     Layout5_2->addWidget( ReturnButton );
138
139     GroupBox1 = new QGroupBox( this, "GroupBox1" );
140     GroupBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)7, GroupBox1->sizePolicy().hasHeightForWidth() ) );
141     GroupBox1->setTitle( tr( "Control Panel" ) );
142     GroupBox1->setColumnLayout(0, Qt::Vertical );
143     GroupBox1->layout()->setSpacing( 0 );
144     GroupBox1->layout()->setMargin( 0 );
145     GroupBox1Layout = new QVBoxLayout( GroupBox1->layout() );
146     GroupBox1Layout->setAlignment( Qt::AlignTop );
147     GroupBox1Layout->setSpacing( 6 );
148     GroupBox1Layout->setMargin( 11 );
149
150     TextLabel3 = new QLabel( GroupBox1, "TextLabel3" );
151     QFont TextLabel3_font(  TextLabel3->font() );
152     TextLabel3_font.setFamily( "@Arial Unicode MS" );
153     TextLabel3_font.setPointSize( 9 );
154     TextLabel3_font.setBold( TRUE );
155     TextLabel3->setFont( TextLabel3_font );
156     TextLabel3->setText( tr( "New Node..." ) );
157     GroupBox1Layout->addWidget( TextLabel3 );
158
159     TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
160     TextLabel2->setText( tr( "Description:" ) );
161     GroupBox1Layout->addWidget( TextLabel2 );
162
163     NewNodeName = new QMultiLineEdit( GroupBox1, "NewNodeName" );
164     NewNodeName->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)7, NewNodeName->sizePolicy().hasHeightForWidth() ) );
165     NewNodeName->setMaximumSize( QSize( 150, 32767 ) );
166     NewNodeName->setWordWrap( QMultiLineEdit::WidgetWidth );
167     GroupBox1Layout->addWidget( NewNodeName );
168
169     NewNodeButton = new QPushButton( GroupBox1, "NewNodeButton" );
170     NewNodeButton->setEnabled( FALSE );
171     cg.setColor( QColorGroup::Foreground, black );
172     cg.setColor( QColorGroup::Button, QColor( 85, 255, 255) );
173     cg.setColor( QColorGroup::Light, QColor( 212, 255, 255) );
174     cg.setColor( QColorGroup::Midlight, QColor( 148, 255, 255) );
175     cg.setColor( QColorGroup::Dark, QColor( 42, 127, 127) );
176     cg.setColor( QColorGroup::Mid, QColor( 57, 170, 170) );
177     cg.setColor( QColorGroup::Text, black );
178     cg.setColor( QColorGroup::BrightText, white );
179     cg.setColor( QColorGroup::ButtonText, black );
180     cg.setColor( QColorGroup::Base, white );
181     cg.setColor( QColorGroup::Background, QColor( 212, 208, 200) );
182     cg.setColor( QColorGroup::Shadow, black );
183     cg.setColor( QColorGroup::Highlight, QColor( 10, 36, 106) );
184     cg.setColor( QColorGroup::HighlightedText, white );
185     pal.setActive( cg );
186     cg.setColor( QColorGroup::Foreground, black );
187     cg.setColor( QColorGroup::Button, QColor( 85, 255, 255) );
188     cg.setColor( QColorGroup::Light, QColor( 212, 255, 255) );
189     cg.setColor( QColorGroup::Midlight, QColor( 123, 255, 255) );
190     cg.setColor( QColorGroup::Dark, QColor( 42, 127, 127) );
191     cg.setColor( QColorGroup::Mid, QColor( 57, 170, 170) );
192     cg.setColor( QColorGroup::Text, black );
193     cg.setColor( QColorGroup::BrightText, white );
194     cg.setColor( QColorGroup::ButtonText, black );
195     cg.setColor( QColorGroup::Base, white );
196     cg.setColor( QColorGroup::Background, QColor( 212, 208, 200) );
197     cg.setColor( QColorGroup::Shadow, black );
198     cg.setColor( QColorGroup::Highlight, QColor( 10, 36, 106) );
199     cg.setColor( QColorGroup::HighlightedText, white );
200     pal.setInactive( cg );
201     cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
202     cg.setColor( QColorGroup::Button, QColor( 85, 255, 255) );
203     cg.setColor( QColorGroup::Light, QColor( 212, 255, 255) );
204     cg.setColor( QColorGroup::Midlight, QColor( 123, 255, 255) );
205     cg.setColor( QColorGroup::Dark, QColor( 42, 127, 127) );
206     cg.setColor( QColorGroup::Mid, QColor( 57, 170, 170) );
207     cg.setColor( QColorGroup::Text, black );
208     cg.setColor( QColorGroup::BrightText, white );
209     cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) );
210     cg.setColor( QColorGroup::Base, white );
211     cg.setColor( QColorGroup::Background, QColor( 212, 208, 200) );
212     cg.setColor( QColorGroup::Shadow, black );
213     cg.setColor( QColorGroup::Highlight, QColor( 10, 36, 106) );
214     cg.setColor( QColorGroup::HighlightedText, white );
215     pal.setDisabled( cg );
216     NewNodeButton->setPalette( pal );
217     NewNodeButton->setText( tr( "Create" ) );
218     NewNodeButton->setToggleButton( FALSE );
219     NewNodeButton->setToggleButton( FALSE );
220     GroupBox1Layout->addWidget( NewNodeButton );
221
222     Line2 = new QFrame( GroupBox1, "Line2" );
223     Line2->setProperty( "frameStyle", QFrame::HLine | QFrame::Sunken );
224     GroupBox1Layout->addWidget( Line2 );
225
226     TextLabel3_3_2 = new QLabel( GroupBox1, "TextLabel3_3_2" );
227     QFont TextLabel3_3_2_font(  TextLabel3_3_2->font() );
228     TextLabel3_3_2_font.setFamily( "@Arial Unicode MS" );
229     TextLabel3_3_2_font.setPointSize( 9 );
230     TextLabel3_3_2_font.setBold( TRUE );
231     TextLabel3_3_2->setFont( TextLabel3_3_2_font );
232     TextLabel3_3_2->setText( tr( "Conditions...\n(Keyframes Only)" ) );
233     GroupBox1Layout->addWidget( TextLabel3_3_2 );
234
235     Table = new QTable( GroupBox1, "Table" );
236     Table->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)7, Table->sizePolicy().hasHeightForWidth() ) );
237     Table->setMinimumSize( QSize( 150, 250 ) );
238     Table->setMaximumSize( QSize( 150, 250 ) );
239     Table->setNumRows( 10 );
240     Table->setNumCols( 10 );
241     Table->setColumnMovingEnabled( TRUE );
242     GroupBox1Layout->addWidget( Table );
243     Layout5_2->addWidget( GroupBox1 );
244
245     Layout4 = new QHBoxLayout;
246     Layout4->setSpacing( 6 );
247     Layout4->setMargin( 0 );
248
249     TextLabel1_2 = new QLabel( this, "TextLabel1_2" );
250     TextLabel1_2->setText( tr( "Save As:" ) );
251     Layout4->addWidget( TextLabel1_2 );
252
253     SaveName = new QLineEdit( this, "SaveName" );
254     SaveName->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, SaveName->sizePolicy().hasHeightForWidth() ) );
255     SaveName->setMinimumSize( QSize( 125, 0 ) );
256     SaveName->setMaximumSize( QSize( 125, 32767 ) );
257     Layout4->addWidget( SaveName );
258     Layout5_2->addLayout( Layout4 );
259
260     SaveButton = new QPushButton( this, "SaveButton" );
261     SaveButton->setEnabled( FALSE );
262     SaveButton->setText( tr( "Save" ) );
263     Layout5_2->addWidget( SaveButton );
264
265     LoadButton = new QPushButton( this, "LoadButton" );
266     LoadButton->setText( tr( "Load" ) );
267     Layout5_2->addWidget( LoadButton );
268     QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
269     Layout5_2->addItem( spacer );
270
271     DoneButton = new QPushButton( this, "DoneButton" );
272     cg.setColor( QColorGroup::Foreground, black );
273     cg.setColor( QColorGroup::Button, QColor( 155, 212, 114) );
274     cg.setColor( QColorGroup::Light, QColor( 223, 255, 200) );
275     cg.setColor( QColorGroup::Midlight, QColor( 189, 233, 157) );
276     cg.setColor( QColorGroup::Dark, QColor( 77, 106, 57) );
277     cg.setColor( QColorGroup::Mid, QColor( 103, 141, 76) );
278     cg.setColor( QColorGroup::Text, black );
279     cg.setColor( QColorGroup::BrightText, white );
280     cg.setColor( QColorGroup::ButtonText, black );
281     cg.setColor( QColorGroup::Base, white );
282     cg.setColor( QColorGroup::Background, QColor( 212, 208, 200) );
283     cg.setColor( QColorGroup::Shadow, black );
284     cg.setColor( QColorGroup::Highlight, QColor( 10, 36, 106) );
285     cg.setColor( QColorGroup::HighlightedText, white );
286     pal.setActive( cg );
287     cg.setColor( QColorGroup::Foreground, black );
288     cg.setColor( QColorGroup::Button, QColor( 155, 212, 114) );
289     cg.setColor( QColorGroup::Light, QColor( 223, 255, 200) );
290     cg.setColor( QColorGroup::Midlight, QColor( 177, 243, 131) );
291     cg.setColor( QColorGroup::Dark, QColor( 77, 106, 57) );
292     cg.setColor( QColorGroup::Mid, QColor( 103, 141, 76) );
293     cg.setColor( QColorGroup::Text, black );
294     cg.setColor( QColorGroup::BrightText, white );
295     cg.setColor( QColorGroup::ButtonText, black );
296     cg.setColor( QColorGroup::Base, white );
297     cg.setColor( QColorGroup::Background, QColor( 212, 208, 200) );
298     cg.setColor( QColorGroup::Shadow, black );
299     cg.setColor( QColorGroup::Highlight, QColor( 10, 36, 106) );
300     cg.setColor( QColorGroup::HighlightedText, white );
301     pal.setInactive( cg );
302     cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
303     cg.setColor( QColorGroup::Button, QColor( 155, 212, 114) );
304     cg.setColor( QColorGroup::Light, QColor( 223, 255, 200) );
305     cg.setColor( QColorGroup::Midlight, QColor( 177, 243, 131) );
306     cg.setColor( QColorGroup::Dark, QColor( 77, 106, 57) );
307     cg.setColor( QColorGroup::Mid, QColor( 103, 141, 76) );
308     cg.setColor( QColorGroup::Text, black );
309     cg.setColor( QColorGroup::BrightText, white );
310     cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) );
311     cg.setColor( QColorGroup::Base, white );
312     cg.setColor( QColorGroup::Background, QColor( 212, 208, 200) );
313     cg.setColor( QColorGroup::Shadow, black );
314     cg.setColor( QColorGroup::Highlight, QColor( 10, 36, 106) );
315     cg.setColor( QColorGroup::HighlightedText, white );
316     pal.setDisabled( cg );
317     DoneButton->setPalette( pal );
318     QFont DoneButton_font(  DoneButton->font() );
319     DoneButton_font.setFamily( "@Arial Unicode MS" );
320     DoneButton_font.setPointSize( 11 );
321     DoneButton_font.setBold( TRUE );
322     DoneButton->setFont( DoneButton_font );
323     DoneButton->setText( tr( "Continue to Director" ) );
324     Layout5_2->addWidget( DoneButton );
325     AuthorFormLayout->addLayout( Layout5_2 );
326 }
327
328 /* 
329  *  Destroys the object and frees any allocated resources
330  */
331 AuthorForm::~AuthorForm()
332 {
333     // no need to delete child widgets, Qt does it all for us
334 }
335
336 /* 
337  *  Main event handler. Reimplemented to handle application
338  *  font changes
339  */
340 bool AuthorForm::event( QEvent* ev )
341 {
342     bool ret = QWidget::event( ev );
343     if ( ev->type() == QEvent::ApplicationFontChange ) {
344         QFont ViewLabel_font(  ViewLabel->font() );
345         ViewLabel_font.setFamily( "@Arial Unicode MS" );
346         ViewLabel_font.setPointSize( 11 );
347         ViewLabel_font.setBold( TRUE );
348         ViewLabel_font.setItalic( TRUE );
349         ViewLabel->setFont( ViewLabel_font );
350         QFont TextLabel3_font(  TextLabel3->font() );
351         TextLabel3_font.setFamily( "@Arial Unicode MS" );
352         TextLabel3_font.setPointSize( 9 );
353         TextLabel3_font.setBold( TRUE );
354         TextLabel3->setFont( TextLabel3_font );
355         QFont TextLabel3_3_2_font(  TextLabel3_3_2->font() );
356         TextLabel3_3_2_font.setFamily( "@Arial Unicode MS" );
357         TextLabel3_3_2_font.setPointSize( 9 );
358         TextLabel3_3_2_font.setBold( TRUE );
359         TextLabel3_3_2->setFont( TextLabel3_3_2_font );
360         QFont DoneButton_font(  DoneButton->font() );
361         DoneButton_font.setFamily( "@Arial Unicode MS" );
362         DoneButton_font.setPointSize( 11 );
363         DoneButton_font.setBold( TRUE );
364         DoneButton->setFont( DoneButton_font );
365     }
366     return ret;
367 }
368
Note: See TracBrowser for help on using the browser.