/* This file is part of KTnef. Copyright (C) 2002 Michael Goffioul Copyright (c) 2012 Allen Winter This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #ifndef ATTACHPROPERTYDIALOG_H #define ATTACHPROPERTYDIALOG_H #include "ui_attachpropertywidgetbase.h" #include #include #include namespace KTnef { class KTNEFAttach; class KTNEFProperty; class KTNEFPropertySet; } using namespace KTnef; #include #include class AttachPropertyDialog : public KDialog { Q_OBJECT public: explicit AttachPropertyDialog( QWidget *parent = 0 ); ~AttachPropertyDialog(); void setAttachment( KTNEFAttach *attach ); static QPixmap loadRenderingPixmap( KTNEFPropertySet *, const QColor & ); static void formatProperties( const QMap &, QTreeWidget *, QTreeWidgetItem *, const QString & = QLatin1String("prop") ); static void formatPropertySet( KTNEFPropertySet *, QTreeWidget * ); static void saveProperty( QTreeWidget *, KTNEFPropertySet *, QWidget * ); private slots: void slotSave(); protected: Ui::AttachPropertyWidgetBase mUI; private: void readConfig(); void writeConfig(); KTNEFAttach *mAttach; }; #endif