1 /***************************************************************************
2 * Copyright (C) 2006 by Peter Penz <peter.penz@gmx.at> *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, write to the *
16 * Free Software Foundation, Inc., *
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
18 ***************************************************************************/
20 #include "informationpanel.h"
22 #include <config-nepomuk.h>
25 #include <kdirnotify.h>
26 #include <kfileitem.h>
27 #include <kfilemetainfo.h>
28 #include <kfileplacesmodel.h>
29 #include <kglobalsettings.h>
30 #include <kio/previewjob.h>
31 #include <kiconeffect.h>
32 #include <kiconloader.h>
35 #include <kseparator.h>
38 #include <Nepomuk/Resource>
39 #include <Nepomuk/Types/Property>
40 #include <Nepomuk/Variant>
43 #include <Phonon/BackendCapabilities>
44 #include <Phonon/MediaObject>
45 #include <Phonon/SeekSlider>
48 #include <QInputDialog>
52 #include <QResizeEvent>
53 #include <QScrollArea>
54 #include <QTextLayout>
58 #include <QVBoxLayout>
60 #include "dolphin_informationpanelsettings.h"
61 #include "settings/dolphinsettings.h"
62 #include "metadatawidget.h"
63 #include "metatextlabel.h"
64 #include "phononwidget.h"
65 #include "pixmapviewer.h"
68 * Helper function for sorting items with qSort() in
69 * InformationPanel::contextMenu().
71 bool lessThan(const QAction
* action1
, const QAction
* action2
)
73 return action1
->text() < action2
->text();
77 InformationPanel::InformationPanel(QWidget
* parent
) :
80 m_pendingPreview(false),
82 m_outdatedPreviewTimer(0),
89 m_previewSeparator(0),
92 m_metaDataSeparator(0),
98 InformationPanel::~InformationPanel()
100 InformationPanelSettings::self()->writeConfig();
103 QSize
InformationPanel::sizeHint() const
105 QSize size
= Panel::sizeHint();
106 size
.setWidth(minimumSizeHint().width());
110 void InformationPanel::setUrl(const KUrl
& url
)
113 if (url
.isValid() && !isEqualToShownUrl(url
)) {
124 void InformationPanel::setSelection(const KFileItemList
& selection
)
130 if ((selection
.count() == 0) && (m_selection
.count() == 0)) {
131 // The selection has not really changed, only the current index.
132 // QItemSelectionModel emits a signal in this case and it is less
133 // expensive doing the check this way instead of patching
134 // DolphinView::emitSelectionChanged().
138 m_selection
= selection
;
140 const int count
= selection
.count();
142 if (!isEqualToShownUrl(url())) {
147 if ((count
== 1) && !selection
.first().url().isEmpty()) {
148 m_urlCandidate
= selection
.first().url();
150 m_infoTimer
->start();
154 void InformationPanel::requestDelayedItemInfo(const KFileItem
& item
)
162 m_fileItem
= KFileItem();
164 // The cursor is above the viewport. If files are selected,
165 // show information regarding the selection.
166 if (m_selection
.size() > 0) {
167 m_pendingPreview
= false;
168 m_infoTimer
->start();
171 const KUrl url
= item
.url();
172 if (url
.isValid() && !isEqualToShownUrl(url
)) {
173 m_urlCandidate
= item
.url();
175 m_infoTimer
->start();
180 void InformationPanel::showEvent(QShowEvent
* event
)
182 Panel::showEvent(event
);
183 if (!event
->spontaneous()) {
184 if (!m_initialized
) {
185 // do a delayed initialization so that no performance
186 // penalty is given when Dolphin is started with a closed
194 void InformationPanel::resizeEvent(QResizeEvent
* event
)
197 // If the text inside the name label or the info label cannot
198 // get wrapped, then the maximum width of the label is increased
199 // so that the width of the information panel gets increased.
200 // To prevent this, the maximum width is adjusted to
201 // the current width of the panel.
202 const int maxWidth
= event
->size().width() - KDialog::spacingHint() * 4;
203 m_nameLabel
->setMaximumWidth(maxWidth
);
205 // try to increase the preview as large as possible
206 m_preview
->setSizeHint(QSize(maxWidth
, maxWidth
));
207 m_urlCandidate
= m_shownUrl
; // reset the URL candidate if a resizing is done
208 m_infoTimer
->start();
210 Panel::resizeEvent(event
);
213 bool InformationPanel::eventFilter(QObject
* obj
, QEvent
* event
)
215 // Check whether the size of the meta text area has changed and adjust
216 // the fixed width in a way that no horizontal scrollbar needs to be shown.
217 if ((obj
== m_metaTextArea
->viewport()) && (event
->type() == QEvent::Resize
)) {
218 QResizeEvent
* resizeEvent
= static_cast<QResizeEvent
*>(event
);
219 m_metaTextLabel
->setFixedWidth(resizeEvent
->size().width());
221 return Panel::eventFilter(obj
, event
);
224 void InformationPanel::contextMenuEvent(QContextMenuEvent
* event
)
226 Panel::contextMenuEvent(event
);
229 if (showMultipleSelectionInfo()) {
235 QAction
* previewAction
= popup
.addAction(i18nc("@action:inmenu", "Preview"));
236 previewAction
->setIcon(KIcon("view-preview"));
237 previewAction
->setCheckable(true);
238 previewAction
->setChecked(InformationPanelSettings::showPreview());
240 const bool metaDataAvailable
= MetaDataWidget::metaDataAvailable();
242 QAction
* ratingAction
= popup
.addAction(i18nc("@action:inmenu", "Rating"));
243 ratingAction
->setIcon(KIcon("rating"));
244 ratingAction
->setCheckable(true);
245 ratingAction
->setChecked(InformationPanelSettings::showRating());
246 ratingAction
->setEnabled(metaDataAvailable
);
248 QAction
* commentAction
= popup
.addAction(i18nc("@action:inmenu", "Comment"));
249 commentAction
->setIcon(KIcon("text-plain"));
250 commentAction
->setCheckable(true);
251 commentAction
->setChecked(InformationPanelSettings::showComment());
252 commentAction
->setEnabled(metaDataAvailable
);
254 QAction
* tagsAction
= popup
.addAction(i18nc("@action:inmenu", "Tags"));
255 tagsAction
->setCheckable(true);
256 tagsAction
->setChecked(InformationPanelSettings::showTags());
257 tagsAction
->setEnabled(metaDataAvailable
);
259 KConfig
config("kmetainformationrc", KConfig::NoGlobals
);
260 KConfigGroup settings
= config
.group("Show");
261 initMetaInfoSettings(settings
);
263 QList
<QAction
*> actions
;
265 // Get all meta information labels that are available for
266 // the currently shown file item and add them to the popup.
267 Nepomuk::Resource
res(fileItem().url());
268 QHash
<QUrl
, Nepomuk::Variant
> properties
= res
.properties();
269 QHash
<QUrl
, Nepomuk::Variant
>::const_iterator it
= properties
.constBegin();
270 while (it
!= properties
.constEnd()) {
271 Nepomuk::Types::Property
prop(it
.key());
272 const QString key
= prop
.label();
274 // Meta information provided by Nepomuk that is already
275 // available from KFileItem should not be configurable.
276 bool skip
= (key
== "fileExtension") ||
278 (key
== "sourceModified") ||
280 (key
== "mime type");
282 // Check whether there is already a meta information
283 // having the same label. In this case don't show it
284 // twice in the menu.
285 foreach (const QAction
* action
, actions
) {
286 if (action
->data().toString() == key
) {
294 const QString label
= key
; // TODO
295 QAction
* action
= new QAction(label
, &popup
);
296 action
->setCheckable(true);
297 action
->setChecked(settings
.readEntry(key
, true));
298 action
->setData(key
);
299 actions
.append(action
);
305 if (actions
.count() > 0) {
306 popup
.addSeparator();
308 // add all items alphabetically sorted to the popup
309 qSort(actions
.begin(), actions
.end(), lessThan
);
310 foreach (QAction
* action
, actions
) {
311 popup
.addAction(action
);
315 // Open the popup and adjust the settings for the
317 QAction
* action
= popup
.exec(QCursor::pos());
322 const bool isChecked
= action
->isChecked();
323 if (action
== previewAction
) {
324 m_preview
->setVisible(isChecked
);
325 m_previewSeparator
->setVisible(isChecked
);
326 InformationPanelSettings::setShowPreview(isChecked
);
327 updatePhononWidget();
328 } else if (action
== ratingAction
) {
329 m_metaDataWidget
->setRatingVisible(isChecked
);
330 InformationPanelSettings::setShowRating(isChecked
);
331 } else if (action
== commentAction
) {
332 m_metaDataWidget
->setCommentVisible(isChecked
);
333 InformationPanelSettings::setShowComment(isChecked
);
334 } else if (action
== tagsAction
) {
335 m_metaDataWidget
->setTagsVisible(isChecked
);
336 InformationPanelSettings::setShowTags(isChecked
);
338 settings
.writeEntry(action
->data().toString(), action
->isChecked());
343 const bool visible
= m_metaDataWidget
->isRatingVisible() ||
344 m_metaDataWidget
->isCommentVisible() ||
345 m_metaDataWidget
->areTagsVisible();
346 m_metaDataSeparator
->setVisible(visible
);
350 void InformationPanel::showItemInfo()
358 if (showMultipleSelectionInfo()) {
359 KIconLoader iconLoader
;
360 QPixmap icon
= iconLoader
.loadIcon("dialog-information",
361 KIconLoader::NoGroup
,
362 KIconLoader::SizeEnormous
);
363 m_preview
->setPixmap(icon
);
364 setNameLabelText(i18ncp("@info", "%1 item selected", "%1 items selected", m_selection
.count()));
367 const KFileItem item
= fileItem();
368 const KUrl itemUrl
= item
.url();
369 if (!applyPlace(itemUrl
)) {
370 // try to get a preview pixmap from the item...
371 m_pendingPreview
= true;
373 // Mark the currently shown preview as outdated. This is done
374 // with a small delay to prevent a flickering when the next preview
375 // can be shown within a short timeframe.
376 m_outdatedPreviewTimer
->start();
378 KIO::PreviewJob
* job
= KIO::filePreview(KFileItemList() << item
,
386 connect(job
, SIGNAL(gotPreview(const KFileItem
&, const QPixmap
&)),
387 this, SLOT(showPreview(const KFileItem
&, const QPixmap
&)));
388 connect(job
, SIGNAL(failed(const KFileItem
&)),
389 this, SLOT(showIcon(const KFileItem
&)));
391 setNameLabelText(itemUrl
.fileName());
398 void InformationPanel::slotInfoTimeout()
400 m_shownUrl
= m_urlCandidate
;
404 void InformationPanel::markOutdatedPreview()
406 KIconEffect iconEffect
;
407 QPixmap disabledPixmap
= iconEffect
.apply(m_preview
->pixmap(),
408 KIconLoader::Desktop
,
409 KIconLoader::DisabledState
);
410 m_preview
->setPixmap(disabledPixmap
);
413 void InformationPanel::showIcon(const KFileItem
& item
)
415 m_outdatedPreviewTimer
->stop();
416 m_pendingPreview
= false;
417 if (!applyPlace(item
.url())) {
418 m_preview
->setPixmap(item
.pixmap(KIconLoader::SizeEnormous
));
422 void InformationPanel::showPreview(const KFileItem
& item
,
423 const QPixmap
& pixmap
)
425 m_outdatedPreviewTimer
->stop();
428 if (m_pendingPreview
) {
429 m_preview
->setPixmap(pixmap
);
430 m_pendingPreview
= false;
434 void InformationPanel::slotFileRenamed(const QString
& source
, const QString
& dest
)
436 const KUrl sourceUrl
= KUrl(source
);
438 // Verify whether the renamed item is selected. If this is the case, the
439 // selection must be updated with the renamed item.
440 bool isSelected
= false;
441 for (int i
= m_selection
.size() - 1; i
>= 0; --i
) {
442 if (m_selection
[i
].url() == sourceUrl
) {
443 m_selection
.removeAt(i
);
449 if ((m_shownUrl
== sourceUrl
) || isSelected
) {
450 m_shownUrl
= KUrl(dest
);
451 m_fileItem
= KFileItem(KFileItem::Unknown
, KFileItem::Unknown
, m_shownUrl
);
453 m_selection
.append(m_fileItem
);
459 void InformationPanel::slotFilesAdded(const QString
& directory
)
461 if (m_shownUrl
== KUrl(directory
)) {
462 // If the 'trash' icon changes because the trash has been emptied or got filled,
463 // the signal filesAdded("trash:/") will be emitted.
464 KFileItem
item(KFileItem::Unknown
, KFileItem::Unknown
, KUrl(directory
));
465 requestDelayedItemInfo(item
);
469 void InformationPanel::slotFilesChanged(const QStringList
& files
)
471 foreach (const QString
& fileName
, files
) {
472 if (m_shownUrl
== KUrl(fileName
)) {
479 void InformationPanel::slotFilesRemoved(const QStringList
& files
)
481 foreach (const QString
& fileName
, files
) {
482 if (m_shownUrl
== KUrl(fileName
)) {
483 // the currently shown item has been removed, show
484 // the parent directory as fallback
491 void InformationPanel::slotEnteredDirectory(const QString
& directory
)
493 if (m_shownUrl
== KUrl(directory
)) {
494 KFileItem
item(KFileItem::Unknown
, KFileItem::Unknown
, KUrl(directory
));
495 requestDelayedItemInfo(item
);
499 void InformationPanel::slotLeftDirectory(const QString
& directory
)
501 if (m_shownUrl
== KUrl(directory
)) {
502 // The signal 'leftDirectory' is also emitted when a media
503 // has been unmounted. In this case no directory change will be
504 // done in Dolphin, but the Information Panel must be updated to
505 // indicate an invalid directory.
510 void InformationPanel::slotPlayingStarted()
512 m_preview
->setVisible(m_phononWidget
->mode() != PhononWidget::Video
);
515 void InformationPanel::slotPlayingStopped()
517 m_preview
->setVisible(true);
520 bool InformationPanel::applyPlace(const KUrl
& url
)
522 KFilePlacesModel
* placesModel
= DolphinSettings::instance().placesModel();
523 int count
= placesModel
->rowCount();
525 for (int i
= 0; i
< count
; ++i
) {
526 QModelIndex index
= placesModel
->index(i
, 0);
528 if (url
.equals(placesModel
->url(index
), KUrl::CompareWithoutTrailingSlash
)) {
529 setNameLabelText(placesModel
->text(index
));
530 m_preview
->setPixmap(placesModel
->icon(index
).pixmap(128, 128));
538 void InformationPanel::cancelRequest()
543 void InformationPanel::showMetaInfo()
545 m_metaTextLabel
->clear();
547 if (showMultipleSelectionInfo()) {
548 if (m_metaDataWidget
!= 0) {
550 foreach (const KFileItem
& item
, m_selection
) {
551 urls
.append(item
.targetUrl());
553 m_metaDataWidget
->setFiles(urls
);
556 quint64 totalSize
= 0;
557 foreach (const KFileItem
& item
, m_selection
) {
558 // Only count the size of files, not dirs to match what
559 // DolphinViewContainer::selectionStatusBarText() does.
560 if (!item
.isDir() && !item
.isLink()) {
561 totalSize
+= item
.size();
564 m_metaTextLabel
->add(i18nc("@label", "Total size:"), KIO::convertSize(totalSize
));
566 const KFileItem item
= fileItem();
568 m_metaTextLabel
->add(i18nc("@label", "Type:"), i18nc("@label", "Folder"));
569 m_metaTextLabel
->add(i18nc("@label", "Modified:"), item
.timeString());
571 m_metaTextLabel
->add(i18nc("@label", "Type:"), item
.mimeComment());
573 m_metaTextLabel
->add(i18nc("@label", "Size:"), KIO::convertSize(item
.size()));
574 m_metaTextLabel
->add(i18nc("@label", "Modified:"), item
.timeString());
577 KConfig
config("kmetainformationrc", KConfig::NoGlobals
);
578 KConfigGroup settings
= config
.group("Show");
579 initMetaInfoSettings(settings
);
581 Nepomuk::Resource
res(item
.url());
583 QHash
<QUrl
, Nepomuk::Variant
> properties
= res
.properties();
584 QHash
<QUrl
, Nepomuk::Variant
>::const_iterator it
= properties
.constBegin();
585 while (it
!= properties
.constEnd()) {
586 Nepomuk::Types::Property
prop(it
.key());
587 const QString label
= prop
.label();
588 if (settings
.readEntry(label
, true)) {
589 // TODO: use Nepomuk::formatValue(res, prop) if available
590 // instead of it.value().toString()
591 m_metaTextLabel
->add(label
, it
.value().toString());
598 if (m_metaDataWidget
!= 0) {
599 m_metaDataWidget
->setFile(item
.targetUrl());
603 updatePhononWidget();
606 KFileItem
InformationPanel::fileItem() const
608 if (!m_fileItem
.isNull()) {
612 if (!m_selection
.isEmpty()) {
613 Q_ASSERT(m_selection
.count() == 1);
614 return m_selection
.first();
617 // no item is hovered and no selection has been done: provide
618 // an item for the directory represented by m_shownUrl
619 KFileItem
item(KFileItem::Unknown
, KFileItem::Unknown
, m_shownUrl
);
624 bool InformationPanel::showMultipleSelectionInfo() const
626 return m_fileItem
.isNull() && (m_selection
.count() > 1);
629 bool InformationPanel::isEqualToShownUrl(const KUrl
& url
) const
631 return m_shownUrl
.equals(url
, KUrl::CompareWithoutTrailingSlash
);
634 void InformationPanel::setNameLabelText(const QString
& text
)
636 QTextOption textOption
;
637 textOption
.setWrapMode(QTextOption::WrapAtWordBoundaryOrAnywhere
);
639 QTextLayout
textLayout(text
);
640 textLayout
.setFont(m_nameLabel
->font());
641 textLayout
.setTextOption(textOption
);
644 wrappedText
.reserve(text
.length());
646 // wrap the text to fit into the width of m_nameLabel
647 textLayout
.beginLayout();
648 QTextLine line
= textLayout
.createLine();
649 while (line
.isValid()) {
650 line
.setLineWidth(m_nameLabel
->width());
651 wrappedText
+= text
.mid(line
.textStart(), line
.textLength());
653 line
= textLayout
.createLine();
654 if (line
.isValid()) {
655 wrappedText
+= QChar::LineSeparator
;
658 textLayout
.endLayout();
660 m_nameLabel
->setText(wrappedText
);
663 void InformationPanel::reset()
667 m_fileItem
= KFileItem();
671 void InformationPanel::initMetaInfoSettings(KConfigGroup
& group
)
673 if (!group
.readEntry("initialized", false)) {
674 // The resource file is read the first time. Assure
675 // that some meta information is disabled per default.
676 group
.writeEntry("fileExtension", false);
677 group
.writeEntry("url", false);
678 group
.writeEntry("sourceModified", false);
679 group
.writeEntry("parentUrl", false);
680 group
.writeEntry("size", false);
681 group
.writeEntry("mime type", false);
682 group
.writeEntry("depth", false);
683 group
.writeEntry("name", false);
685 // mark the group as initialized
686 group
.writeEntry("initialized", true);
690 void InformationPanel::updatePhononWidget()
692 const bool multipleSelections
= showMultipleSelectionInfo();
693 const bool showPreview
= InformationPanelSettings::showPreview();
695 if (multipleSelections
|| !showPreview
) {
696 m_phononWidget
->hide();
697 } else if (!multipleSelections
&& showPreview
) {
698 const KFileItem item
= fileItem();
699 const QString mimeType
= item
.mimetype();
700 if (Phonon::BackendCapabilities::isMimeTypeAvailable(mimeType
)) {
701 m_phononWidget
->show();
702 PhononWidget::Mode mode
= mimeType
.startsWith("video")
703 ? PhononWidget::Video
704 : PhononWidget::Audio
;
705 m_phononWidget
->setMode(mode
);
706 m_phononWidget
->setUrl(item
.url());
708 m_phononWidget
->hide();
709 m_preview
->setVisible(true);
714 void InformationPanel::init()
716 const int spacing
= KDialog::spacingHint();
718 m_infoTimer
= new QTimer(this);
719 m_infoTimer
->setInterval(300);
720 m_infoTimer
->setSingleShot(true);
721 connect(m_infoTimer
, SIGNAL(timeout()),
722 this, SLOT(slotInfoTimeout()));
724 // Initialize timer for disabling an outdated preview with a small
725 // delay. This prevents flickering if the new preview can be generated
726 // within a very small timeframe.
727 m_outdatedPreviewTimer
= new QTimer(this);
728 m_outdatedPreviewTimer
->setInterval(300);
729 m_outdatedPreviewTimer
->setSingleShot(true);
730 connect(m_outdatedPreviewTimer
, SIGNAL(timeout()),
731 this, SLOT(markOutdatedPreview()));
733 QVBoxLayout
* layout
= new QVBoxLayout
;
734 layout
->setSpacing(spacing
);
737 m_nameLabel
= new QLabel(this);
738 QFont font
= m_nameLabel
->font();
740 m_nameLabel
->setFont(font
);
741 m_nameLabel
->setAlignment(Qt::AlignHCenter
);
742 m_nameLabel
->setSizePolicy(QSizePolicy::Preferred
, QSizePolicy::Fixed
);
745 m_preview
= new PixmapViewer(this);
746 m_preview
->setMinimumWidth(KIconLoader::SizeEnormous
+ KIconLoader::SizeMedium
);
747 m_preview
->setMinimumHeight(KIconLoader::SizeEnormous
);
749 m_phononWidget
= new PhononWidget(this);
750 connect(m_phononWidget
, SIGNAL(playingStarted()),
751 this, SLOT(slotPlayingStarted()));
752 connect(m_phononWidget
, SIGNAL(playingStopped()),
753 this, SLOT(slotPlayingStopped()));
755 m_previewSeparator
= new KSeparator(this);
757 const bool showPreview
= InformationPanelSettings::showPreview();
758 m_preview
->setVisible(showPreview
);
759 m_previewSeparator
->setVisible(showPreview
);
761 if (MetaDataWidget::metaDataAvailable()) {
762 // rating, comment and tags
763 m_metaDataWidget
= new MetaDataWidget(this);
764 m_metaDataWidget
->setSizePolicy(QSizePolicy::Preferred
, QSizePolicy::Fixed
);
766 const bool showRating
= InformationPanelSettings::showRating();
767 const bool showComment
= InformationPanelSettings::showComment();
768 const bool showTags
= InformationPanelSettings::showTags();
770 m_metaDataWidget
->setRatingVisible(showRating
);
771 m_metaDataWidget
->setCommentVisible(showComment
);
772 m_metaDataWidget
->setTagsVisible(showTags
);
774 m_metaDataSeparator
= new KSeparator(this);
775 m_metaDataSeparator
->setVisible(showRating
|| showComment
|| showTags
);
778 // general meta text information
779 m_metaTextLabel
= new MetaTextLabel(this);
780 m_metaTextLabel
->setSizePolicy(QSizePolicy::Preferred
, QSizePolicy::Fixed
);
782 m_metaTextArea
= new QScrollArea(this);
783 m_metaTextArea
->setWidget(m_metaTextLabel
);
784 m_metaTextArea
->setWidgetResizable(true);
785 m_metaTextArea
->setFrameShape(QFrame::NoFrame
);
787 QWidget
* viewport
= m_metaTextArea
->viewport();
788 viewport
->installEventFilter(this);
790 QPalette palette
= viewport
->palette();
791 palette
.setColor(viewport
->backgroundRole(), QColor(Qt::transparent
));
792 viewport
->setPalette(palette
);
794 layout
->addWidget(m_nameLabel
);
795 layout
->addWidget(new KSeparator(this));
796 layout
->addWidget(m_preview
);
797 layout
->addWidget(m_phononWidget
);
798 layout
->addWidget(m_previewSeparator
);
799 if (m_metaDataWidget
!= 0) {
800 layout
->addWidget(m_metaDataWidget
);
801 layout
->addWidget(m_metaDataSeparator
);
803 layout
->addWidget(m_metaTextArea
);
806 org::kde::KDirNotify
* dirNotify
= new org::kde::KDirNotify(QString(), QString(),
807 QDBusConnection::sessionBus(), this);
808 connect(dirNotify
, SIGNAL(FileRenamed(QString
, QString
)), SLOT(slotFileRenamed(QString
, QString
)));
809 connect(dirNotify
, SIGNAL(FilesAdded(QString
)), SLOT(slotFilesAdded(QString
)));
810 connect(dirNotify
, SIGNAL(FilesChanged(QStringList
)), SLOT(slotFilesChanged(QStringList
)));
811 connect(dirNotify
, SIGNAL(FilesRemoved(QStringList
)), SLOT(slotFilesRemoved(QStringList
)));
812 connect(dirNotify
, SIGNAL(enteredDirectory(QString
)), SLOT(slotEnteredDirectory(QString
)));
813 connect(dirNotify
, SIGNAL(leftDirectory(QString
)), SLOT(slotLeftDirectory(QString
)));
815 m_initialized
= true;
818 #include "informationpanel.moc"