]>
cloud.milkyroute.net Git - dolphin.git/blob - src/settings/viewpropsprogressinfo.h
05eafa6f5dd98e5b2e5cf18fa5706f85cfef9975
1 /***************************************************************************
2 * Copyright (C) 2006 by Peter Penz *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
19 ***************************************************************************/
20 #ifndef VIEWPROPSPROGRESSINFO_H
21 #define VIEWPROPSPROGRESSINFO_H
23 #include <kio/directorysizejob.h>
28 class ApplyViewPropsJob
;
35 * @brief Shows the progress information when applying view properties
36 * recursively to a given directory.
38 * It is possible to cancel the applying. In this case the already applied
39 * view properties won't get reverted.
41 class ViewPropsProgressInfo
: public QDialog
47 * @param parent Parent widget of the dialog.
48 * @param dir Directory where the view properties should be applied to
49 * (including sub directories).
50 * @param viewProps View properties for the directory \a dir including its
53 ViewPropsProgressInfo(QWidget
* parent
,
55 const ViewProperties
& viewProps
);
57 ~ViewPropsProgressInfo() override
;
60 void closeEvent(QCloseEvent
* event
) override
;
63 void reject() override
;
66 void updateProgress();
67 void applyViewProperties();
71 ViewProperties
* m_viewProps
;
74 QProgressBar
* m_progressBar
;
76 KIO::DirectorySizeJob
* m_dirSizeJob
;
77 ApplyViewPropsJob
* m_applyViewPropsJob
;