PreferencesBase ********************************************************************* ** 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. ** ********************************************************************* PreferencesBase 0 0 362 396 Form1 unnamed 6 6 GroupBox2 Box Sunken S&yntax Highlighting unnamed 11 6 TextLabel1 &Element: listElements Layout1 unnamed 0 6 checkBold &Bold buttonColor 1 0 0 0 ... comboFamily true TextLabel2 &Family: comboFamily checkUnderline &Underline spinSize 1 checkItalic &Italic TextLabel4 Change co&lor: buttonColor TextLabel3 &Size: spinSize Comment Number String Type Keyword Preprocessor Label Standard listElements TextLabel2_2 &Preview: editPreview editPreview Some Text Spacer2 Vertical Expanding 20 0 GroupBox3 Optio&ns unnamed 11 6 checkWordWrap &Word Wrap checkCompletion Comple&tion checkParenMatching Parentheses &Matching GroupBox3_2 Indentation unnamed 11 6 Layout2 unnamed 0 6 spinTabSize 8 TextLabel1_2 Tab Size: spinIndentSize 4 TextLabel2_3 Indent Size: checkKeepTabs Keep Tabs true checkAutoIndent Auto Indent true spinSize valueChanged(int) PreferencesBase sizeChanged(int) checkBold toggled(bool) PreferencesBase boldChanged(bool) checkItalic toggled(bool) PreferencesBase italicChanged(bool) checkUnderline toggled(bool) PreferencesBase underlineChanged(bool) buttonColor clicked() PreferencesBase colorClicked() comboFamily activated(const TQString&) PreferencesBase familyChanged(const TQString&) listElements highlighted(const TQString&) PreferencesBase elementChanged(const TQString&) listElements editPreview comboFamily spinSize checkBold checkItalic checkUnderline checkWordWrap checkCompletion checkParenMatching ntqmap.h conf.h ntqpalette.h ntqlineedit.h ntqpixmap.h ntqcombobox.h ntqfontdatabase.h editor.h ntqpushbutton.h ntqcheckbox.h ntqcolordialog.h ntqsettings.h preferences.ui.h TQString path; TQMap<TQString, ConfigStyle> styles; ConfigStyle currentStyle; TQString currentElement; init() destroy() colorClicked() reInit() save() updatePreview() boldChanged( bool b ) elementChanged( const TQString & element ) familyChanged( const TQString & f ) italicChanged( bool b ) setColorPixmap( const TQColor & c ) setPath( const TQString & p ) sizeChanged( int s ) underlineChanged( bool b )