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.
tqt3/tools/designer/editor/preferences.ui

511 lines
21 KiB

<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>PreferencesBase</class>
<comment>*********************************************************************
** Copyright (C) 2000-2008 Trolltech ASA. All rights reserved.
**
** This file is part of TQt Designer.
**
** This file may be used under the terms of the GNU General
** Public License versions 2.0 or 3.0 as published by the Free
** Software Foundation and appearing in the files LICENSE.GPL2
** and LICENSE.GPL3 included in the packaging of this file.
** Alternatively you may (at your option) use any later version
** of the GNU General Public License if such license has been
** publicly approved by Trolltech ASA (or its successors, if any)
** and the KDE Free TQt Foundation.
**
** Please review the following information to ensure GNU General
** Public Licensing requirements will be met:
** http://trolltech.com/products/qt/licenses/licensing/opensource/.
** If you are unsure which license is appropriate for your use, please
** review the following information:
** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
** or contact the sales department at sales@trolltech.com.
**
** Licensees holding valid TQt Commercial licenses may use this file in
** accordance with the TQt Commercial License Agreement provided with
** the Software.
**
** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
** herein.
**
*********************************************************************</comment>
<widget class="TQWidget">
<property name="name">
<cstring>PreferencesBase</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>362</width>
<height>396</height>
</rect>
</property>
<property name="caption">
<string>Form1</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>6</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="TQGroupBox" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>GroupBox2</cstring>
</property>
<property name="frameShape">
<enum>Box</enum>
</property>
<property name="frameShadow">
<enum>Sunken</enum>
</property>
<property name="title">
<string>S&amp;yntax Highlighting</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel1</cstring>
</property>
<property name="text">
<string>&amp;Element:</string>
</property>
<property name="buddy" stdset="0">
<cstring>listElements</cstring>
</property>
</widget>
<widget class="TQLayoutWidget" row="1" column="1" rowspan="3" colspan="1">
<property name="name">
<cstring>Layout1</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="TQCheckBox" row="2" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>checkBold</cstring>
</property>
<property name="text">
<string>&amp;Bold</string>
</property>
</widget>
<widget class="TQToolButton" row="5" column="1">
<property name="name">
<cstring>buttonColor</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>...</string>
</property>
</widget>
<widget class="TQComboBox" row="0" column="1">
<property name="name">
<cstring>comboFamily</cstring>
</property>
<property name="editable">
<bool>true</bool>
</property>
</widget>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel2</cstring>
</property>
<property name="text">
<string>&amp;Family:</string>
</property>
<property name="buddy" stdset="0">
<cstring>comboFamily</cstring>
</property>
</widget>
<widget class="TQCheckBox" row="4" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>checkUnderline</cstring>
</property>
<property name="text">
<string>&amp;Underline</string>
</property>
</widget>
<widget class="TQSpinBox" row="1" column="1">
<property name="name">
<cstring>spinSize</cstring>
</property>
<property name="minValue">
<number>1</number>
</property>
</widget>
<widget class="TQCheckBox" row="3" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>checkItalic</cstring>
</property>
<property name="text">
<string>&amp;Italic</string>
</property>
</widget>
<widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>TextLabel4</cstring>
</property>
<property name="text">
<string>Change co&amp;lor:</string>
</property>
<property name="buddy" stdset="0">
<cstring>buttonColor</cstring>
</property>
</widget>
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>TextLabel3</cstring>
</property>
<property name="text">
<string>&amp;Size:</string>
</property>
<property name="buddy" stdset="0">
<cstring>spinSize</cstring>
</property>
</widget>
</grid>
</widget>
<widget class="TQListBox" row="1" column="0">
<item>
<property name="text">
<string>Comment</string>
</property>
</item>
<item>
<property name="text">
<string>Number</string>
</property>
</item>
<item>
<property name="text">
<string>String</string>
</property>
</item>
<item>
<property name="text">
<string>Type</string>
</property>
</item>
<item>
<property name="text">
<string>Keyword</string>
</property>
</item>
<item>
<property name="text">
<string>Preprocessor</string>
</property>
</item>
<item>
<property name="text">
<string>Label</string>
</property>
</item>
<item>
<property name="text">
<string>Standard</string>
</property>
</item>
<property name="name">
<cstring>listElements</cstring>
</property>
</widget>
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>TextLabel2_2</cstring>
</property>
<property name="text">
<string>&amp;Preview:</string>
</property>
<property name="buddy" stdset="0">
<cstring>editPreview</cstring>
</property>
</widget>
<widget class="TQLineEdit" row="3" column="0">
<property name="name">
<cstring>editPreview</cstring>
</property>
<property name="text">
<string>Some Text</string>
</property>
</widget>
<spacer row="4" column="1">
<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>0</height>
</size>
</property>
</spacer>
</grid>
</widget>
<widget class="TQGroupBox" row="1" column="0">
<property name="name">
<cstring>GroupBox3</cstring>
</property>
<property name="title">
<string>Optio&amp;ns</string>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="TQCheckBox">
<property name="name">
<cstring>checkWordWrap</cstring>
</property>
<property name="text">
<string>&amp;Word Wrap</string>
</property>
</widget>
<widget class="TQCheckBox">
<property name="name">
<cstring>checkCompletion</cstring>
</property>
<property name="text">
<string>Comple&amp;tion</string>
</property>
</widget>
<widget class="TQCheckBox">
<property name="name">
<cstring>checkParenMatching</cstring>
</property>
<property name="text">
<string>Parentheses &amp;Matching</string>
</property>
</widget>
</vbox>
</widget>
<widget class="TQGroupBox" row="1" column="1">
<property name="name">
<cstring>GroupBox3_2</cstring>
</property>
<property name="title">
<string>Indentation</string>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout2</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="TQSpinBox" row="0" column="1">
<property name="name">
<cstring>spinTabSize</cstring>
</property>
<property name="value">
<number>8</number>
</property>
</widget>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel1_2</cstring>
</property>
<property name="text">
<string>Tab Size:</string>
</property>
</widget>
<widget class="TQSpinBox" row="1" column="1">
<property name="name">
<cstring>spinIndentSize</cstring>
</property>
<property name="value">
<number>4</number>
</property>
</widget>
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>TextLabel2_3</cstring>
</property>
<property name="text">
<string>Indent Size:</string>
</property>
</widget>
</grid>
</widget>
<widget class="TQCheckBox">
<property name="name">
<cstring>checkKeepTabs</cstring>
</property>
<property name="text">
<string>Keep Tabs</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
<widget class="TQCheckBox">
<property name="name">
<cstring>checkAutoIndent</cstring>
</property>
<property name="text">
<string>Auto Indent</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</vbox>
</widget>
</grid>
</widget>
<connections>
<connection>
<sender>spinSize</sender>
<signal>valueChanged(int)</signal>
<receiver>PreferencesBase</receiver>
<slot>sizeChanged(int)</slot>
</connection>
<connection>
<sender>checkBold</sender>
<signal>toggled(bool)</signal>
<receiver>PreferencesBase</receiver>
<slot>boldChanged(bool)</slot>
</connection>
<connection>
<sender>checkItalic</sender>
<signal>toggled(bool)</signal>
<receiver>PreferencesBase</receiver>
<slot>italicChanged(bool)</slot>
</connection>
<connection>
<sender>checkUnderline</sender>
<signal>toggled(bool)</signal>
<receiver>PreferencesBase</receiver>
<slot>underlineChanged(bool)</slot>
</connection>
<connection>
<sender>buttonColor</sender>
<signal>clicked()</signal>
<receiver>PreferencesBase</receiver>
<slot>colorClicked()</slot>
</connection>
<connection>
<sender>comboFamily</sender>
<signal>activated(const TQString&amp;)</signal>
<receiver>PreferencesBase</receiver>
<slot>familyChanged(const TQString&amp;)</slot>
</connection>
<connection>
<sender>listElements</sender>
<signal>highlighted(const TQString&amp;)</signal>
<receiver>PreferencesBase</receiver>
<slot>elementChanged(const TQString&amp;)</slot>
</connection>
</connections>
<tabstops>
<tabstop>listElements</tabstop>
<tabstop>editPreview</tabstop>
<tabstop>comboFamily</tabstop>
<tabstop>spinSize</tabstop>
<tabstop>checkBold</tabstop>
<tabstop>checkItalic</tabstop>
<tabstop>checkUnderline</tabstop>
<tabstop>checkWordWrap</tabstop>
<tabstop>checkCompletion</tabstop>
<tabstop>checkParenMatching</tabstop>
</tabstops>
<includes>
<include location="global" impldecl="in declaration">ntqmap.h</include>
<include location="local" impldecl="in declaration">conf.h</include>
<include location="global" impldecl="in implementation">ntqpalette.h</include>
<include location="global" impldecl="in implementation">ntqlineedit.h</include>
<include location="global" impldecl="in implementation">ntqpixmap.h</include>
<include location="global" impldecl="in implementation">ntqcombobox.h</include>
<include location="global" impldecl="in implementation">ntqfontdatabase.h</include>
<include location="local" impldecl="in implementation">editor.h</include>
<include location="global" impldecl="in implementation">ntqpushbutton.h</include>
<include location="global" impldecl="in implementation">ntqcheckbox.h</include>
<include location="global" impldecl="in implementation">ntqcolordialog.h</include>
<include location="global" impldecl="in implementation">ntqsettings.h</include>
<include location="local" impldecl="in implementation">preferences.ui.h</include>
</includes>
<variables>
<variable>TQString path;</variable>
<variable>TQMap&lt;TQString, ConfigStyle&gt; styles;</variable>
<variable>ConfigStyle currentStyle;</variable>
<variable>TQString currentElement;</variable>
</variables>
<slots>
<slot>init()</slot>
<slot>destroy()</slot>
<slot>colorClicked()</slot>
<slot>reInit()</slot>
<slot>save()</slot>
<slot>updatePreview()</slot>
<slot>boldChanged( bool b )</slot>
<slot>elementChanged( const TQString &amp; element )</slot>
<slot>familyChanged( const TQString &amp; f )</slot>
<slot>italicChanged( bool b )</slot>
<slot>setColorPixmap( const TQColor &amp; c )</slot>
<slot>setPath( const TQString &amp; p )</slot>
<slot>sizeChanged( int s )</slot>
<slot>underlineChanged( bool b )</slot>
</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>