mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
df7d144c10
nearly all references to kpdf (knewstuff still missing). svn path=/trunk/playground/graphics/okular/; revision=586993
51 lines
1.6 KiB
C++
51 lines
1.6 KiB
C++
/***************************************************************************
|
|
* Copyright (C) 2004 by Albert Astals Cid <tsdgeos@terra.es> *
|
|
* *
|
|
* 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. *
|
|
***************************************************************************/
|
|
|
|
#ifndef _PROPERTIESDIALOG_H_
|
|
#define _PROPERTIESDIALOG_H_
|
|
|
|
#include <qabstractitemmodel.h>
|
|
#include <qlist.h>
|
|
|
|
#include <kpagedialog.h>
|
|
|
|
namespace Okular {
|
|
class Document;
|
|
}
|
|
|
|
class PropertiesDialog : public KPageDialog
|
|
{
|
|
public:
|
|
PropertiesDialog( QWidget *parent, Okular::Document *doc );
|
|
};
|
|
|
|
class LocalFontInfoStruct;
|
|
|
|
class FontsListModel
|
|
: public QAbstractTableModel
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
FontsListModel( QObject * parent = 0 );
|
|
virtual ~FontsListModel();
|
|
|
|
void addFont( const QString &name, const QString &type, const QString &embedded, const QString &file );
|
|
|
|
// reimplementations from QAbstractTableModel
|
|
virtual int columnCount( const QModelIndex &parent = QModelIndex() ) const;
|
|
virtual QVariant data( const QModelIndex &index, int role = Qt::DisplayRole ) const;
|
|
virtual QVariant headerData( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const;
|
|
virtual int rowCount( const QModelIndex &parent = QModelIndex() ) const;
|
|
|
|
private:
|
|
QList<LocalFontInfoStruct*> m_fonts;
|
|
};
|
|
|
|
#endif
|