File indexing completed on 2024-05-05 16:38:59
0001 /* This file is part of the KDE project 0002 Copyright (C) 1998-2003 Carsten Pfeiffer <pfeiffer@kde.org> 0003 0004 This program is free software; you can redistribute it and/or 0005 modify it under the terms of the GNU General Public 0006 License as published by the Free Software Foundation, version 2. 0007 0008 This program is distributed in the hope that it will be useful, 0009 but WITHOUT ANY WARRANTY; without even the implied warranty of 0010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0011 General Public License for more details. 0012 0013 You should have received a copy of the GNU General Public License 0014 along with this program; see the file COPYING. If not, write to 0015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0016 Boston, MA 02110-1301, USA. 0017 */ 0018 0019 #ifndef DEFAULTSWIDGET_H 0020 #define DEFAULTSWIDGET_H 0021 0022 #include <QWidget> 0023 0024 #include "kuickdata.h" 0025 0026 class ImlibWidget; 0027 namespace Ui { class DefaultsWidget; } 0028 0029 0030 class DefaultsWidget : public QWidget 0031 { 0032 Q_OBJECT 0033 0034 public: 0035 DefaultsWidget( QWidget *parent ); 0036 ~DefaultsWidget(); 0037 0038 void loadSettings( const KuickData& data ); 0039 void applySettings( KuickData& data ); 0040 0041 private: 0042 Ui::DefaultsWidget* ui; 0043 ImlibWidget *imOrig, *imFiltered; 0044 0045 Rotation currentRotation() const; 0046 0047 private slots: 0048 void updatePreview(); 0049 void slotNoImage() { imFiltered = 0L; } 0050 void enableWidgets( bool ); 0051 0052 }; 0053 0054 #endif