ark
infopanel.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef INFOPANEL_H
00022 #define INFOPANEL_H
00023
00024 #include <QFrame>
00025 #include "kerfuffle/archive.h"
00026 #include "archivemodel.h"
00027 #include "ui_infopanel.h"
00028
00029
00030 class InfoPanel: public QFrame, Ui::InformationPanel
00031 {
00032 Q_OBJECT
00033 public:
00034 explicit InfoPanel( ArchiveModel *model, QWidget *parent = 0 );
00035 ~InfoPanel();
00036
00037 void setIndex( const QModelIndex & );
00038 void setIndexes( const QModelIndexList &list );
00039
00040 private:
00041 void setDefaultValues();
00042
00043 void showMetaData();
00044 void hideMetaData();
00045
00046 void showActions();
00047 void hideActions();
00048
00049 QString metadataTextFor( const QModelIndex & );
00050
00051 ArchiveModel *m_model;
00052 };
00053
00054 #endif // INFOPANEL_H