You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdeedu/keduca/keducabuilder/kcontroladdeditbase.ui

876 lines
40 KiB

<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KControlAddEditBase</class>
<widget class="TQWizard">
<property name="name">
<cstring>KControlAddEditBase</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>600</width>
<height>480</height>
</rect>
</property>
<widget class="TQWidget">
<property name="name">
<cstring>_pageQuestion</cstring>
</property>
<attribute name="title">
<string>Question</string>
</attribute>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="TQFrame">
<property name="name">
<cstring>frame3</cstring>
</property>
<property name="minimumSize">
<size>
<width>125</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>125</width>
<height>32767</height>
</size>
</property>
<property name="paletteBackgroundPixmap">
<pixmap>editbase_image0</pixmap>
</property>
<property name="frameShape">
<enum>Box</enum>
</property>
<property name="frameShadow">
<enum>Plain</enum>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQLabel">
<property name="name">
<cstring>_questionPreview</cstring>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>100</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>100</height>
</size>
</property>
<property name="paletteBackgroundColor">
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</property>
<property name="frameShape">
<enum>Box</enum>
</property>
<property name="frameShadow">
<enum>Plain</enum>
</property>
<property name="text">
<string></string>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
</widget>
<spacer>
<property name="name">
<cstring>spacer1</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>21</height>
</size>
</property>
</spacer>
<widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
<property name="text">
<string>&lt;span style="color:black"&gt;
&lt;p&gt;&lt;b&gt;Question&lt;/b&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;Only the question and type is required.&lt;/p&gt;
&lt;/span&gt;</string>
</property>
</widget>
<spacer>
<property name="name">
<cstring>spacer2</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>41</height>
</size>
</property>
</spacer>
</vbox>
</widget>
<widget class="TQFrame">
<property name="name">
<cstring>frame5</cstring>
</property>
<property name="frameShape">
<enum>Box</enum>
</property>
<property name="frameShadow">
<enum>Sunken</enum>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
<property name="text">
<string>&amp;Question:</string>
</property>
<property name="alignment">
<set>AlignTop|AlignRight</set>
</property>
<property name="buddy" stdset="0">
<cstring>_questionText</cstring>
</property>
</widget>
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel4</cstring>
</property>
<property name="text">
<string>&amp;Type:</string>
</property>
<property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
<cstring>_questionType</cstring>
</property>
</widget>
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel3</cstring>
</property>
<property name="text">
<string>&amp;Picture:</string>
</property>
<property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
<cstring>_questionPicture</cstring>
</property>
</widget>
<widget class="KURLRequester" row="1" column="1">
<property name="name">
<cstring>_questionPicture</cstring>
</property>
</widget>
<widget class="KComboBox" row="2" column="1">
<item>
<property name="text">
<string>Test</string>
</property>
</item>
<item>
<property name="text">
<string>Test with Question Points</string>
</property>
</item>
<item>
<property name="text">
<string>Test with Answers Points</string>
</property>
</item>
<property name="name">
<cstring>_questionType</cstring>
</property>
</widget>
<widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel5</cstring>
</property>
<property name="text">
<string>P&amp;oint:</string>
</property>
<property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
<cstring>_questionPoint</cstring>
</property>
</widget>
<widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>textLabel6</cstring>
</property>
<property name="text">
<string>Ti&amp;me:</string>
</property>
<property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
<cstring>_questionTime</cstring>
</property>
</widget>
<widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>textLabel7</cstring>
</property>
<property name="text">
<string>T&amp;ip:</string>
</property>
<property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
<cstring>_questionTip</cstring>
</property>
</widget>
<widget class="TQLineEdit" row="5" column="1">
<property name="name">
<cstring>_questionTip</cstring>
</property>
</widget>
<widget class="TQLabel" row="6" column="0">
<property name="name">
<cstring>textLabel8</cstring>
</property>
<property name="text">
<string>&amp;Explain:</string>
</property>
<property name="alignment">
<set>AlignTop|AlignRight</set>
</property>
<property name="buddy" stdset="0">
<cstring>_questionExplain</cstring>
</property>
</widget>
<widget class="TQTextEdit" row="0" column="1">
<property name="name">
<cstring>_questionText</cstring>
</property>
</widget>
<widget class="TQTextEdit" row="6" column="1">
<property name="name">
<cstring>_questionExplain</cstring>
</property>
</widget>
<widget class="TQLayoutWidget" row="4" column="1">
<property name="name">
<cstring>layout1</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="KIntNumInput">
<property name="name">
<cstring>_questionTime</cstring>
</property>
</widget>
<spacer>
<property name="name">
<cstring>spacer4</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>81</width>
<height>20</height>
</size>
</property>
</spacer>
</hbox>
</widget>
<widget class="TQLayoutWidget" row="3" column="1">
<property name="name">
<cstring>layout2</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="KIntNumInput">
<property name="name">
<cstring>_questionPoint</cstring>
</property>
</widget>
<spacer>
<property name="name">
<cstring>spacer3</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>131</width>
<height>20</height>
</size>
</property>
</spacer>
</hbox>
</widget>
</grid>
</widget>
</hbox>
</widget>
<widget class="TQWidget">
<property name="name">
<cstring>_pageAnswer</cstring>
</property>
<attribute name="title">
<string>Answer</string>
</attribute>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="TQFrame">
<property name="name">
<cstring>frame3_2</cstring>
</property>
<property name="minimumSize">
<size>
<width>125</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>125</width>
<height>32767</height>
</size>
</property>
<property name="paletteBackgroundPixmap">
<pixmap>editbase_image0</pixmap>
</property>
<property name="frameShape">
<enum>Box</enum>
</property>
<property name="frameShadow">
<enum>Plain</enum>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQLabel">
<property name="name">
<cstring>_answerPreview</cstring>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>100</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>100</height>
</size>
</property>
<property name="paletteBackgroundColor">
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</property>
<property name="frameShape">
<enum>Box</enum>
</property>
<property name="frameShadow">
<enum>Plain</enum>
</property>
<property name="text">
<string></string>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
</widget>
<spacer>
<property name="name">
<cstring>spacer1_2</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>21</height>
</size>
</property>
</spacer>
<widget class="TQLabel">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
<property name="text">
<string>&lt;span style="color:black"&gt;
&lt;p&gt;&lt;b&gt;Answers&lt;/b&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;Only the answer and value is required.&lt;/p&gt;
&lt;/span&gt;</string>
</property>
</widget>
<spacer>
<property name="name">
<cstring>spacer2_2</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>41</height>
</size>
</property>
</spacer>
</vbox>
</widget>
<widget class="TQFrame">
<property name="name">
<cstring>frame6</cstring>
</property>
<property name="frameShape">
<enum>Box</enum>
</property>
<property name="frameShadow">
<enum>Sunken</enum>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout11</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQLayoutWidget" row="2" column="1">
<property name="name">
<cstring>layout3</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="KIntNumInput">
<property name="name">
<cstring>_answerPoints</cstring>
</property>
</widget>
<spacer>
<property name="name">
<cstring>spacer9</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>31</width>
<height>20</height>
</size>
</property>
</spacer>
</hbox>
</widget>
<widget class="TQTextEdit" row="0" column="1">
<property name="name">
<cstring>_answerText</cstring>
</property>
</widget>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
<property name="text">
<string>&amp;Answer:</string>
</property>
<property name="alignment">
<set>AlignTop|AlignRight</set>
</property>
<property name="buddy" stdset="0">
<cstring>_answerText</cstring>
</property>
</widget>
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2_3</cstring>
</property>
<property name="text">
<string>&amp;Value:</string>
</property>
<property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
<cstring>_answerValue</cstring>
</property>
</widget>
<widget class="TQLayoutWidget" row="1" column="1">
<property name="name">
<cstring>layout7</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQComboBox">
<item>
<property name="text">
<string>False</string>
</property>
</item>
<item>
<property name="text">
<string>True</string>
</property>
</item>
<property name="name">
<cstring>_answerValue</cstring>
</property>
</widget>
</hbox>
</widget>
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel3_2</cstring>
</property>
<property name="text">
<string>&amp;Points:</string>
</property>
<property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
<cstring>_answerPoints</cstring>
</property>
</widget>
</grid>
</widget>
<widget class="Line">
<property name="name">
<cstring>line2</cstring>
</property>
<property name="frameShape">
<enum>HLine</enum>
</property>
<property name="frameShadow">
<enum>Sunken</enum>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
</widget>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout17</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TDEListView">
<column>
<property name="text">
<string>Answer</string>
</property>
<property name="clickable">
<bool>true</bool>
</property>
<property name="resizable">
<bool>true</bool>
</property>
</column>
<column>
<property name="text">
<string>Value</string>
</property>
<property name="clickable">
<bool>true</bool>
</property>
<property name="resizable">
<bool>true</bool>
</property>
</column>
<column>
<property name="text">
<string>Points</string>
</property>
<property name="clickable">
<bool>true</bool>
</property>
<property name="resizable">
<bool>true</bool>
</property>
</column>
<property name="name">
<cstring>_listAnswers</cstring>
</property>
<property name="allColumnsShowFocus">
<bool>true</bool>
</property>
</widget>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout16</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQPushButton">
<property name="name">
<cstring>_buttonInsert</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>&amp;Add</string>
</property>
</widget>
<widget class="TQPushButton">
<property name="name">
<cstring>_buttonRemove</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>&amp;Remove</string>
</property>
</widget>
<spacer>
<property name="name">
<cstring>spacer11</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>10</height>
</size>
</property>
</spacer>
<widget class="TQPushButton">
<property name="name">
<cstring>_buttonUp</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Move &amp;Up</string>
</property>
</widget>
<widget class="TQPushButton">
<property name="name">
<cstring>_buttonDown</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Move &amp;Down</string>
</property>
</widget>
<spacer>
<property name="name">
<cstring>spacer12</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>21</height>
</size>
</property>
</spacer>
</vbox>
</widget>
</hbox>
</widget>
</vbox>
</widget>
</hbox>
</widget>
</widget>
<images>
<image name="editbase_image0">
<data format="XPM.GZ" length="2314">789ced95bd6e83301485f73c8515b6a84a14a4b0547d844a1d2b551d8cb181947fdca1aafaeec5f75e830d51105397de230f9f50823987634e07f6faf2cc0ea75dafb9ce051319efd821f92ccbafb7f7a7efddfe1c5ed8f9c2c2909df70fbb7dc5040b642443a50c968411e21551291919ac01a5bdda1072c48e50227e200ebf95065b832ab2577b4445f7d584f4cf05a15270df0050c910b7c10923c4e38870a39890230a42899858c47f9688c33600156184988e08bbca08e979734285780c0671d231e6f1114423e2045622ac6422cd4ae4384aa646ca2a53590a1a27472d07c232f301cbd3620a5f052c6772589e725877065e9eaaaeead2aaa91bb3ea86a66dba610deaacfaae6f41e3a4bd1e56aaad8667d71b1c0838c8c981430e3c8ea71c2889290701393829284cc2cf414dbbc86fee02de79dff785f7c5dcfd85f70be7577c9f6da02a2b9342e9e650420ee374a0450edd94828614b49b83ce308b550766eedb1ed050077cf713bf05e9dcfd947ab0a105373a705d496291c3f60ee0066ab705b603f5e47e3b77bfa51e38fea77e0bf4a673803ac0fd16f029056c8158e620fc1640126e0b308bd577e07ad7fb1bcedfe840b1d9fb790b66a7119e475e0b2009b7059d9f829e9f46f63c5a75e0ff5bf0b7df829fc7dd2faa1761dd</data>
</image>
</images>
<connections>
<connection>
<sender>_questionText</sender>
<signal>textChanged()</signal>
<receiver>KControlAddEditBase</receiver>
<slot>slotDataChanged()</slot>
</connection>
<connection>
<sender>_questionPicture</sender>
<signal>urlSelected(const TQString&amp;)</signal>
<receiver>KControlAddEditBase</receiver>
<slot>slotPreviewImage(const TQString&amp;)</slot>
</connection>
<connection>
<sender>_questionType</sender>
<signal>activated(int)</signal>
<receiver>KControlAddEditBase</receiver>
<slot>slotQuestionTypeChanged(int)</slot>
</connection>
<connection>
<sender>_buttonInsert</sender>
<signal>clicked()</signal>
<receiver>KControlAddEditBase</receiver>
<slot>slotAddAnswer()</slot>
</connection>
<connection>
<sender>_buttonRemove</sender>
<signal>clicked()</signal>
<receiver>KControlAddEditBase</receiver>
<slot>slotRemoveAnswer()</slot>
</connection>
<connection>
<sender>_buttonUp</sender>
<signal>clicked()</signal>
<receiver>KControlAddEditBase</receiver>
<slot>slotMoveUpAnswer()</slot>
</connection>
<connection>
<sender>_buttonDown</sender>
<signal>clicked()</signal>
<receiver>KControlAddEditBase</receiver>
<slot>slotMoveDownAnswer()</slot>
</connection>
<connection>
<sender>_listAnswers</sender>
<signal>selectionChanged(TQListViewItem*)</signal>
<receiver>KControlAddEditBase</receiver>
<slot>slotAnswerSelected(TQListViewItem*)</slot>
</connection>
<connection>
<sender>_answerText</sender>
<signal>textChanged()</signal>
<receiver>KControlAddEditBase</receiver>
<slot>slotDataChanged()</slot>
</connection>
</connections>
<tabstops>
<tabstop>_answerText</tabstop>
<tabstop>_answerValue</tabstop>
<tabstop>_answerPoints</tabstop>
<tabstop>_listAnswers</tabstop>
<tabstop>_buttonInsert</tabstop>
<tabstop>_buttonRemove</tabstop>
<tabstop>_buttonUp</tabstop>
<tabstop>_buttonDown</tabstop>
<tabstop>_questionText</tabstop>
<tabstop>_questionPicture</tabstop>
<tabstop>_questionType</tabstop>
<tabstop>_questionPoint</tabstop>
<tabstop>_questionTime</tabstop>
<tabstop>_questionTip</tabstop>
<tabstop>_questionExplain</tabstop>
</tabstops>
<slots>
<slot access="private" specifier="pure virtual">slotAddAnswer()</slot>
<slot access="private" specifier="pure virtual">slotRemoveAnswer()</slot>
<slot access="private" specifier="pure virtual">slotMoveUpAnswer()</slot>
<slot access="private" specifier="pure virtual">slotMoveDownAnswer()</slot>
<slot access="private" specifier="pure virtual">slotPreviewImage(const TQString &amp;)</slot>
<slot access="private" specifier="pure virtual">slotQuestionTypeChanged(int index)</slot>
<slot access="private" specifier="pure virtual">slotDataChanged()</slot>
<slot access="private" specifier="pure virtual">slotAnswerSelected(TQListViewItem *)</slot>
</slots>
<layoutdefaults spacing="6" margin="11"/>
<forwards>
<forward>class TQListViewItem;</forward>
</forwards>
<includes>
<include location="global" impldecl="in implementation">klineedit.h</include>
<include location="global" impldecl="in implementation">kpushbutton.h</include>
<include location="global" impldecl="in implementation">kurlrequester.h</include>
<include location="global" impldecl="in implementation">knuminput.h</include>
<include location="global" impldecl="in implementation">tdelistview.h</include>
<include location="global" impldecl="in implementation">kcombobox.h</include>
</includes>
</UI>