mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-24 02:42:51 +00:00
65 lines
1.7 KiB
C++
65 lines
1.7 KiB
C++
/*
|
|
This file is part of KTnef.
|
|
|
|
Copyright (C) 2002 Michael Goffioul <kdeprint@swing.be>
|
|
Copyright (c) 2012 Allen Winter <winter@kde.org>
|
|
|
|
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 <KDialog>
|
|
|
|
#include <QMap>
|
|
#include <QPixmap>
|
|
|
|
namespace KTnef {
|
|
class KTNEFAttach;
|
|
class KTNEFProperty;
|
|
class KTNEFPropertySet;
|
|
}
|
|
using namespace KTnef;
|
|
|
|
#include <QTreeWidget>
|
|
#include <QTreeWidgetItem>
|
|
|
|
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<int,KTNEFProperty*> &, 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
|