• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeutils API Reference
  • KDE Home
  • Contact Us
 

ark

  • sources
  • kde-4.14
  • kdeutils
  • ark
  • part
infopanel.h
Go to the documentation of this file.
1 /*
2  * ark -- archiver for the KDE project
3  *
4  * Copyright (C) 2007 Henrique Pinto <henrique.pinto@kdemail.net>
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19  *
20  */
21 
22 #ifndef INFOPANEL_H
23 #define INFOPANEL_H
24 
25 #include "kerfuffle/archive.h"
26 #include "archivemodel.h"
27 #include "ui_infopanel.h"
28 
29 #include <QFrame>
30 
31 class InfoPanel: public QFrame, Ui::InformationPanel
32 {
33  Q_OBJECT
34 public:
35  explicit InfoPanel(ArchiveModel *model, QWidget *parent = 0);
36  virtual ~InfoPanel();
37 
38  void setIndex(const QModelIndex &);
39  void setIndexes(const QModelIndexList &list);
40 
47  QString prettyFileName() const;
48 
59  void setPrettyFileName(const QString& fileName);
60 
61  void updateWithDefaults();
62 
63 private:
64  void showMetaData();
65  void hideMetaData();
66 
67  void showActions();
68  void hideActions();
69 
70  QString metadataTextFor(const QModelIndex &);
71 
72  ArchiveModel *m_model;
73  QString m_prettyFileName;
74 };
75 
76 #endif // INFOPANEL_H
QModelIndex
QWidget
archivemodel.h
InfoPanel::setPrettyFileName
void setPrettyFileName(const QString &fileName)
Sets a different file name for the current open archive.
Definition: infopanel.cpp:90
InfoPanel::setIndex
void setIndex(const QModelIndex &)
Definition: infopanel.cpp:95
archive.h
ArchiveModel
Definition: archivemodel.h:41
InfoPanel::updateWithDefaults
void updateWithDefaults()
Definition: infopanel.cpp:61
InfoPanel::InfoPanel
InfoPanel(ArchiveModel *model, QWidget *parent=0)
Definition: infopanel.cpp:40
QString
InfoPanel
Definition: infopanel.h:31
QFrame
InfoPanel::setIndexes
void setIndexes(const QModelIndexList &list)
Definition: infopanel.cpp:136
InfoPanel::~InfoPanel
virtual ~InfoPanel()
Definition: infopanel.cpp:57
QObject::parent
QObject * parent() const
InfoPanel::prettyFileName
QString prettyFileName() const
Returns the file name that is displayed on the info panel.
Definition: infopanel.cpp:78
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:37 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ark

Skip menu "ark"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal