infosidebar.h

00001 /*
00002  * Silence
00003  *
00004  * Copyright (C) 2009 Manuel Unglaub
00005  *
00006  * This file is part of Silence.
00007  *
00008  * Silence is free software: you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation, version GPLv2 only of the License.
00011  *
00012  * Silence is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016 
00017  * You should have received a copy of the GNU General Public License
00018  * along with Silence.  If not, see <http://www.gnu.org/licenses/>.
00019  */
00020 
00021 #ifndef INFOSIDEBAR_H
00022 #define INFOSIDEBAR_H
00023 
00024 #include "src/data/node/node.h"
00025 #include <QDockWidget>
00026 #include <QGridLayout>
00027 #include <QLabel>
00028 
00029 
00039 class InfoSidebar : public QDockWidget
00040 {
00041     Q_OBJECT
00042 
00043     public:
00054         InfoSidebar(const QString &title, QWidget *parent = 0, Qt::WindowFlags flags = 0);
00055 
00060         ~InfoSidebar();
00061 
00066         void setData(Node *data);
00067 
00071         void clearInfos();
00072 
00073     private slots:
00074         void updateInfos();
00075 
00076     private:
00077         Node *node; 
00078         QGridLayout *layout;
00079         QFrame *frame;
00080         QLabel  *caption,
00081                 *id,
00082                 *idValue,
00083                 *created,
00084                 *createdDate,
00085                 *lastedit,
00086                 *lasteditDate,
00087                 *labels,
00088                 *labelsData,
00089                 *metaInfo,
00090                 *metaInfoData,
00091                 *type,
00092                 *typeName,
00093                 *icon;
00094 };
00095 
00096 #endif // INFOSIDEBAR_H
00097 
Generated on Fri May 14 19:12:50 2010 for Silence by  doxygen 1.6.3