Changeset View
Changeset View
Standalone View
Standalone View
src/panels/information/informationpanelcontent.h
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Line(s) | 59 | public: | |||
---|---|---|---|---|---|
67 | */ | 67 | */ | ||
68 | void showItem(const KFileItem& item); | 68 | void showItem(const KFileItem& item); | ||
69 | 69 | | |||
70 | /** | 70 | /** | ||
71 | * Shows the meta information for the items \p items. | 71 | * Shows the meta information for the items \p items. | ||
72 | */ | 72 | */ | ||
73 | void showItems(const KFileItemList& items); | 73 | void showItems(const KFileItemList& items); | ||
74 | 74 | | |||
75 | /** | 75 | const KFileItemList items(); | ||
76 | * Opens a menu which allows to configure which meta information | | |||
77 | * should be shown. | | |||
78 | * | | |||
79 | * TODO: Move this code to the class InformationPanel | | |||
80 | */ | | |||
81 | void configureSettings(const QList<QAction*>& customContextMenuActions, const QPointF& pos); | | |||
82 | 76 | | |||
83 | signals: | 77 | signals: | ||
84 | void urlActivated( const QUrl& url ); | 78 | void urlActivated( const QUrl& url ); | ||
85 | 79 | | |||
80 | public slots: | ||||
81 | /** | ||||
82 | * Is invoked after the file meta data configuration dialog has been | ||||
83 | * closed and refreshes the visibility of the meta data. | ||||
84 | */ | ||||
85 | void refreshMetaData(); | ||||
86 | | ||||
86 | protected: | 87 | protected: | ||
87 | /** @see QObject::eventFilter() */ | 88 | /** @see QObject::eventFilter() */ | ||
88 | bool eventFilter(QObject* obj, QEvent* event) override; | 89 | bool eventFilter(QObject* obj, QEvent* event) override; | ||
89 | 90 | | |||
90 | private slots: | 91 | private slots: | ||
91 | /** | 92 | /** | ||
92 | * Is invoked if no preview is available for the item. In this | 93 | * Is invoked if no preview is available for the item. In this | ||
93 | * case the icon will be shown. | 94 | * case the icon will be shown. | ||
Show All 9 Lines | |||||
103 | /** | 104 | /** | ||
104 | * Marks the currently shown preview as outdated | 105 | * Marks the currently shown preview as outdated | ||
105 | * by greying the content. | 106 | * by greying the content. | ||
106 | */ | 107 | */ | ||
107 | void markOutdatedPreview(); | 108 | void markOutdatedPreview(); | ||
108 | 109 | | |||
109 | void slotHasVideoChanged(bool hasVideo); | 110 | void slotHasVideoChanged(bool hasVideo); | ||
110 | 111 | | |||
111 | /** | | |||
112 | * Is invoked after the file meta data configuration dialog has been | | |||
113 | * closed and refreshes the visibility of the meta data. | | |||
114 | */ | | |||
115 | void refreshMetaData(); | | |||
116 | | ||||
117 | private: | 112 | private: | ||
118 | /** | 113 | /** | ||
119 | * Sets the text for the label \a m_nameLabel and assures that the | 114 | * Sets the text for the label \a m_nameLabel and assures that the | ||
120 | * text is split in a way that it can be wrapped within the | 115 | * text is split in a way that it can be wrapped within the | ||
121 | * label width (QLabel::setWordWrap() does not work if the | 116 | * label width (QLabel::setWordWrap() does not work if the | ||
122 | * text represents one extremely long word). | 117 | * text represents one extremely long word). | ||
123 | */ | 118 | */ | ||
124 | void setNameLabelText(const QString& text); | 119 | void setNameLabelText(const QString& text); | ||
Show All 27 Lines |