]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/viewpropertiesdialog.h
Hide the "Sort by Rating" and "Sort by Tags" menu entries for KDE 4.0, as currently...
[dolphin.git] / src / viewpropertiesdialog.h
index 24accfed01a68e46df679bd71c125f40060d84cf..a0a933f557123b27374483d8826273ec33bd5e66 100644 (file)
@@ -15,8 +15,9 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program; if not, write to the                         *
  *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
  ***************************************************************************/
+
 #ifndef VIEWPROPERTIESDIALOG_H
 #define VIEWPROPERTIESDIALOG_H
 
@@ -24,6 +25,7 @@
 
 class QCheckBox;
 class QComboBox;
+class QPushButton;
 class QRadioButton;
 class ViewProperties;
 class DolphinView;
@@ -31,18 +33,16 @@ class DolphinView;
 /**
  * @brief Dialog for changing the current view properties of a directory.
  *
- * It is possible to specify the view mode and whether hidden files
- * should be shown. The properties can be assigned to the current folder,
- * recursively to all sub folders or to all folders.
- *
- * @author Peter Penz
+ * It is possible to specify the view mode, the sorting order, whether hidden files
+ * and previews should be shown. The properties can be assigned to the current folder,
+ * or recursively to all sub folders.
  */
 class ViewPropertiesDialog : public KDialog
 {
     Q_OBJECT
 
 public:
-    ViewPropertiesDialog(DolphinView* dolphinView);
+    explicit ViewPropertiesDialog(DolphinView* dolphinView);
     virtual ~ViewPropertiesDialog();
 
 private slots:
@@ -51,8 +51,15 @@ private slots:
     void slotViewModeChanged(int index);
     void slotSortingChanged(int index);
     void slotSortOrderChanged(int index);
+    void slotCategorizedSortingChanged();
+    void slotShowPreviewChanged();
     void slotShowHiddenFilesChanged();
     void markAsDirty();
+    void configureAdditionalInfo();
+
+private:
+    void applyViewProperties();
+    void loadSettings();
 
 private:
     bool m_isDirty;
@@ -60,14 +67,16 @@ private:
     ViewProperties* m_viewProps;
 
     QComboBox* m_viewMode;
-    QComboBox* m_sorting;
     QComboBox* m_sortOrder;
+    QComboBox* m_sorting;
+    QCheckBox* m_showPreview;
+    QCheckBox* m_showInGroups;
     QCheckBox* m_showHiddenFiles;
+    QPushButton* m_additionalInfo;
     QRadioButton* m_applyToCurrentFolder;
     QRadioButton* m_applyToSubFolders;
     QRadioButton* m_applyToAllFolders;
-
-    void applyViewProperties();
+    QCheckBox* m_useAsDefault;
 };
 
 #endif