PreferencesBase ********************************************************************* ** Copyright (C) 2000-2007 Trolltech ASA. All rights reserved. ** ** This file is part of Qt Designer. ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition ** licenses may use this file in accordance with the Qt Commercial License ** Agreement provided with the Software. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for ** information about Qt Commercial License Agreements. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** ********************************************************************* 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 QString&) PreferencesBase familyChanged(const QString&) listElements highlighted(const QString&) PreferencesBase elementChanged(const QString&) listElements editPreview comboFamily spinSize checkBold checkItalic checkUnderline checkWordWrap checkCompletion checkParenMatching qmap.h conf.h qpalette.h qlineedit.h qpixmap.h qcombobox.h qfontdatabase.h editor.h qpushbutton.h qcheckbox.h qcolordialog.h qsettings.h preferences.ui.h QString path; QMap<QString, ConfigStyle> styles; ConfigStyle currentStyle; QString currentElement; init() destroy() colorClicked() reInit() save() updatePreview() boldChanged( bool b ) elementChanged( const QString & element ) familyChanged( const QString & f ) italicChanged( bool b ) setColorPixmap( const QColor & c ) setPath( const QString & p ) sizeChanged( int s ) underlineChanged( bool b )