diff options
author | Pino Toscano <pino@kde.org> | 2008-02-21 01:23:07 +0100 |
---|---|---|
committer | Pino Toscano <pino@kde.org> | 2008-02-21 01:23:07 +0100 |
commit | bf6dd890994150406b4464e45355a4a99870fc60 (patch) | |
tree | d27c6d9fe408ab94f2df946bff93988bba48b9a5 /qt4/demos/metadata.h | |
parent | b6f0c8f83924c08be20b602b128651bf018172a3 (diff) |
Add a dock for showing the document metadata.
Diffstat (limited to 'qt4/demos/metadata.h')
-rw-r--r-- | qt4/demos/metadata.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/qt4/demos/metadata.h b/qt4/demos/metadata.h new file mode 100644 index 00000000..6f1507a6 --- /dev/null +++ b/qt4/demos/metadata.h @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2008, Pino Toscano <pino@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, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * 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 METADATA_H +#define METADATA_H + +#include "abstractinfodock.h" + +class QTextEdit; + +class MetadataDock : public AbstractInfoDock +{ + Q_OBJECT + +public: + MetadataDock(QWidget *parent = 0); + ~MetadataDock(); + + /*virtual*/ void documentClosed(); + +protected: + /*virtual*/ void fillInfo(); + +private: + QTextEdit *m_edit; +}; + +#endif |