PCManFM-Qt
settings.h
1 /*
2 
3  Copyright (C) 2013 Hong Jen Yee (PCMan) <pcman.tw@gmail.com>
4 
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.
9 
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.
14 
15  You should have received a copy of the GNU General Public License along
16  with this program; if not, write to the Free Software Foundation, Inc.,
17  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19 
20 
21 #ifndef PCMANFM_SETTINGS_H
22 #define PCMANFM_SETTINGS_H
23 
24 #include <QObject>
25 #include <libfm/fm.h>
26 #include <libfm-qt/folderview.h>
27 #include <libfm-qt/foldermodel.h>
28 #include "desktopwindow.h"
29 #include <libfm-qt/sidepane.h>
30 #include <libfm-qt/core/thumbnailjob.h>
31 #include <libfm-qt/core/archiver.h>
32 
33 namespace PCManFM {
34 
35 enum OpenDirTargetType {
36  OpenInCurrentTab,
37  OpenInNewTab,
38  OpenInNewWindow,
39  OpenInLastActiveWindow
40 };
41 
43 public:
45  isCustomized_(false),
46  sortOrder_(Qt::AscendingOrder),
47  sortColumn_(Fm::FolderModel::ColumnFileName),
48  viewMode_(Fm::FolderView::IconMode),
49  showHidden_(false),
50  sortFolderFirst_(true),
51  sortCaseSensitive_(true) {
52  }
53 
54  bool isCustomized() const {
55  return isCustomized_;
56  }
57 
58  void setCustomized(bool value) {
59  isCustomized_ = value;
60  }
61 
62  Qt::SortOrder sortOrder() const {
63  return sortOrder_;
64  }
65 
66  void setSortOrder(Qt::SortOrder value) {
67  sortOrder_ = value;
68  }
69 
70  Fm::FolderModel::ColumnId sortColumn() const {
71  return sortColumn_;
72  }
73 
74  void setSortColumn(Fm::FolderModel::ColumnId value) {
75  sortColumn_ = value;
76  }
77 
78  Fm::FolderView::ViewMode viewMode() const {
79  return viewMode_;
80  }
81 
82  void setViewMode(Fm::FolderView::ViewMode value) {
83  viewMode_ = value;
84  }
85 
86  bool sortFolderFirst() const {
87  return sortFolderFirst_;
88  }
89 
90  void setSortFolderFirst(bool value) {
91  sortFolderFirst_ = value;
92  }
93 
94  bool showHidden() const {
95  return showHidden_;
96  }
97 
98  void setShowHidden(bool value) {
99  showHidden_ = value;
100  }
101 
102  bool sortCaseSensitive() const {
103  return sortCaseSensitive_;
104  }
105 
106  void setSortCaseSensitive(bool value) {
107  sortCaseSensitive_ = value;
108  }
109 
110 private:
111  bool isCustomized_;
112  Qt::SortOrder sortOrder_;
113  Fm::FolderModel::ColumnId sortColumn_;
114  Fm::FolderView::ViewMode viewMode_;
115  bool showHidden_;
116  bool sortFolderFirst_;
117  bool sortCaseSensitive_;
118  // columns?
119 };
120 
121 
122 class Settings : public QObject {
123  Q_OBJECT
124 public:
125  enum IconType {
126  Small,
127  Big,
128  Thumbnail
129  };
130 
131  Settings();
132  virtual ~Settings();
133 
134  bool load(QString profile = "default");
135  bool save(QString profile = QString());
136 
137  bool loadFile(QString filePath);
138  bool saveFile(QString filePath);
139 
140  static QString xdgUserConfigDir();
141  static const QList<int> & iconSizes(IconType type);
142 
143  QString profileDir(QString profile, bool useFallback = false);
144 
145  // setter/getter functions
146  QString profileName() const {
147  return profileName_;
148  }
149 
150  bool supportTrash() const {
151  return supportTrash_;
152  }
153 
154  QString fallbackIconThemeName() const {
155  return fallbackIconThemeName_;
156  }
157 
158  bool useFallbackIconTheme() const {
159  return useFallbackIconTheme_;
160  }
161 
162  void setFallbackIconThemeName(QString iconThemeName) {
163  fallbackIconThemeName_ = iconThemeName;
164  }
165 
166  OpenDirTargetType bookmarkOpenMethod() {
167  return bookmarkOpenMethod_;
168  }
169 
170  void setBookmarkOpenMethod(OpenDirTargetType bookmarkOpenMethod) {
171  bookmarkOpenMethod_ = bookmarkOpenMethod;
172  }
173 
174  QString suCommand() const {
175  return suCommand_;
176  }
177 
178  void setSuCommand(QString suCommand) {
179  suCommand_ = suCommand;
180  }
181 
182  QString terminal() {
183  return terminal_;
184  }
185  void setTerminal(QString terminalCommand);
186 
187  QString archiver() const {
188  return archiver_;
189  }
190 
191  void setArchiver(QString archiver) {
192  archiver_ = archiver;
193  Fm::Archiver::setDefaultArchiverByName(archiver_.toLocal8Bit().constData());
194  }
195 
196  bool mountOnStartup() const {
197  return mountOnStartup_;
198  }
199 
200  void setMountOnStartup(bool mountOnStartup) {
201  mountOnStartup_ = mountOnStartup;
202  }
203 
204  bool mountRemovable() {
205  return mountRemovable_;
206  }
207 
208  void setMountRemovable(bool mountRemovable) {
209  mountRemovable_ = mountRemovable;
210  }
211 
212  bool autoRun() const {
213  return autoRun_;
214  }
215 
216  void setAutoRun(bool autoRun) {
217  autoRun_ = autoRun;
218  }
219 
220  bool closeOnUnmount() const {
221  return closeOnUnmount_;
222  }
223 
224  void setCloseOnUnmount(bool value) {
225  closeOnUnmount_ = value;
226  }
227 
228  DesktopWindow::WallpaperMode wallpaperMode() const {
229  return DesktopWindow::WallpaperMode(wallpaperMode_);
230  }
231 
232  void setWallpaperMode(int wallpaperMode) {
233  wallpaperMode_ = wallpaperMode;
234  }
235 
236  QString wallpaper() const {
237  return wallpaper_;
238  }
239 
240  void setWallpaper(QString wallpaper) {
241  wallpaper_ = wallpaper;
242  }
243 
244  QString wallpaperDir() const {
245  return wallpaperDir_;
246  }
247 
248  void setLastSlide(QString wallpaper) {
249  lastSlide_ = wallpaper;
250  }
251 
252  QString lastSlide() const {
253  return lastSlide_;
254  }
255 
256  void setWallpaperDir(QString dir) {
257  wallpaperDir_ = dir;
258  }
259 
260  int slideShowInterval() const {
261  return slideShowInterval_;
262  }
263 
264  void setSlideShowInterval(int interval) {
265  slideShowInterval_ = interval;
266  }
267 
268  bool wallpaperRandomize() const {
269  return wallpaperRandomize_;
270  }
271 
272  void setWallpaperRandomize(bool randomize) {
273  wallpaperRandomize_ = randomize;
274  }
275 
276  const QColor& desktopBgColor() const {
277  return desktopBgColor_;
278  }
279 
280  void setDesktopBgColor(QColor desktopBgColor) {
281  desktopBgColor_ = desktopBgColor;
282  }
283 
284  const QColor& desktopFgColor() const {
285  return desktopFgColor_;
286  }
287 
288  void setDesktopFgColor(QColor desktopFgColor) {
289  desktopFgColor_ = desktopFgColor;
290  }
291 
292  const QColor& desktopShadowColor() const {
293  return desktopShadowColor_;
294  }
295 
296  void setDesktopShadowColor(QColor desktopShadowColor) {
297  desktopShadowColor_ = desktopShadowColor;
298  }
299 
300  QFont desktopFont() const {
301  return desktopFont_;
302  }
303 
304  void setDesktopFont(QFont font) {
305  desktopFont_ = font;
306  }
307 
308  int desktopIconSize() const {
309  return desktopIconSize_;
310  }
311 
312  void setDesktopIconSize(int desktopIconSize) {
313  desktopIconSize_ = desktopIconSize;
314  }
315 
316  bool showWmMenu() const {
317  return showWmMenu_;
318  }
319 
320  void setShowWmMenu(bool value) {
321  showWmMenu_ = value;
322  }
323 
324  bool desktopShowHidden() const {
325  return desktopShowHidden_;
326  }
327 
328  void setDesktopShowHidden(bool desktopShowHidden) {
329  desktopShowHidden_ = desktopShowHidden;
330  }
331 
332  bool desktopHideItems() const {
333  return desktopHideItems_;
334  }
335 
336  void setDesktopHideItems(bool hide) {
337  desktopHideItems_ = hide;
338  }
339 
340  Qt::SortOrder desktopSortOrder() const {
341  return desktopSortOrder_;
342  }
343 
344  void setDesktopSortOrder(Qt::SortOrder desktopSortOrder) {
345  desktopSortOrder_ = desktopSortOrder;
346  }
347 
348  Fm::FolderModel::ColumnId desktopSortColumn() const {
349  return desktopSortColumn_;
350  }
351 
352  void setDesktopSortColumn(Fm::FolderModel::ColumnId desktopSortColumn) {
353  desktopSortColumn_ = desktopSortColumn;
354  }
355 
356  bool desktopSortFolderFirst() const {
357  return desktopSortFolderFirst_;
358  }
359 
360  void setDesktopSortFolderFirst(bool desktopFolderFirst) {
361  desktopSortFolderFirst_ = desktopFolderFirst;
362  }
363 
364  bool alwaysShowTabs() const {
365  return alwaysShowTabs_;
366  }
367 
368  void setAlwaysShowTabs(bool alwaysShowTabs) {
369  alwaysShowTabs_ = alwaysShowTabs;
370  }
371 
372  bool showTabClose() const {
373  return showTabClose_;
374  }
375 
376  void setShowTabClose(bool showTabClose) {
377  showTabClose_ = showTabClose;
378  }
379 
380  bool rememberWindowSize() const {
381  return rememberWindowSize_;
382  }
383 
384  void setRememberWindowSize(bool rememberWindowSize) {
385  rememberWindowSize_ = rememberWindowSize;
386  }
387 
388  int windowWidth() const {
389  if(rememberWindowSize_) {
390  return lastWindowWidth_;
391  }
392  else {
393  return fixedWindowWidth_;
394  }
395  }
396 
397  int windowHeight() const {
398  if(rememberWindowSize_) {
399  return lastWindowHeight_;
400  }
401  else {
402  return fixedWindowHeight_;
403  }
404  }
405 
406  bool windowMaximized() const {
407  if(rememberWindowSize_) {
408  return lastWindowMaximized_;
409  }
410  else {
411  return false;
412  }
413  }
414 
415  int fixedWindowWidth() const {
416  return fixedWindowWidth_;
417  }
418 
419  void setFixedWindowWidth(int fixedWindowWidth) {
420  fixedWindowWidth_ = fixedWindowWidth;
421  }
422 
423  int fixedWindowHeight() const {
424  return fixedWindowHeight_;
425  }
426 
427  void setFixedWindowHeight(int fixedWindowHeight) {
428  fixedWindowHeight_ = fixedWindowHeight;
429  }
430 
431  void setLastWindowWidth(int lastWindowWidth) {
432  lastWindowWidth_ = lastWindowWidth;
433  }
434 
435  void setLastWindowHeight(int lastWindowHeight) {
436  lastWindowHeight_ = lastWindowHeight;
437  }
438 
439  void setLastWindowMaximized(bool lastWindowMaximized) {
440  lastWindowMaximized_ = lastWindowMaximized;
441  }
442 
443  int splitterPos() const {
444  return splitterPos_;
445  }
446 
447  void setSplitterPos(int splitterPos) {
448  splitterPos_ = splitterPos;
449  }
450 
451  Fm::SidePane::Mode sidePaneMode() const {
452  return sidePaneMode_;
453  }
454 
455  void setSidePaneMode(Fm::SidePane::Mode sidePaneMode) {
456  sidePaneMode_ = sidePaneMode;
457  }
458 
459  bool showMenuBar() const {
460  return showMenuBar_;
461  }
462 
463  void setShowMenuBar(bool showMenuBar) {
464  showMenuBar_ = showMenuBar;
465  }
466 
467  bool fullWidthTabBar() const {
468  return fullWidthTabBar_;
469  }
470 
471  void setFullWidthTabBar(bool fullWith) {
472  fullWidthTabBar_ = fullWith;
473  }
474 
475  Fm::FolderView::ViewMode viewMode() const {
476  return viewMode_;
477  }
478 
479  void setViewMode(Fm::FolderView::ViewMode viewMode) {
480  viewMode_ = viewMode;
481  }
482 
483  bool showHidden() const {
484  return showHidden_;
485  }
486 
487  void setShowHidden(bool showHidden) {
488  showHidden_ = showHidden;
489  }
490 
491  bool sortCaseSensitive() const {
492  return sortCaseSensitive_;
493  }
494 
495  void setSortCaseSensitive(bool value) {
496  sortCaseSensitive_ = value;
497  }
498 
499 
500  bool placesHome() const {
501  return placesHome_;
502  }
503 
504  void setPlacesHome(bool placesHome) {
505  placesHome_ = placesHome;
506  }
507 
508  bool placesDesktop() const {
509  return placesDesktop_;
510  }
511 
512  void setPlacesDesktop(bool placesDesktop) {
513  placesDesktop_ = placesDesktop;
514  }
515 
516  bool placesApplications() const {
517  return placesApplications_;
518  }
519 
520  void setPlacesApplications(bool placesApplications) {
521  placesApplications_ = placesApplications;
522  }
523 
524  bool placesTrash() const {
525  return placesTrash_;
526  }
527 
528  void setPlacesTrash(bool placesTrash) {
529  placesTrash_ = placesTrash;
530  }
531 
532  bool placesRoot() const {
533  return placesRoot_;
534  }
535 
536  void setPlacesRoot(bool placesRoot) {
537  placesRoot_ = placesRoot;
538  }
539 
540  bool placesComputer() const {
541  return placesComputer_;
542  }
543 
544  void setPlacesComputer(bool placesComputer) {
545  placesComputer_ = placesComputer;
546  }
547 
548  bool placesNetwork() const {
549  return placesNetwork_;
550  }
551 
552  void setPlacesNetwork(bool placesNetwork) {
553  placesNetwork_ = placesNetwork;
554  }
555 
556  QSet<QString> getHiddenPlaces() const {
557  return hiddenPlaces_;
558  }
559 
560  void setHiddenPlace(const QString& str, bool hide) {
561  if(hide) {
562  hiddenPlaces_ << str;
563  }
564  else {
565  hiddenPlaces_.remove(str);
566  }
567  }
568 
569 
570  Qt::SortOrder sortOrder() const {
571  return sortOrder_;
572  }
573 
574  void setSortOrder(Qt::SortOrder sortOrder) {
575  sortOrder_ = sortOrder;
576  }
577 
578  Fm::FolderModel::ColumnId sortColumn() const {
579  return sortColumn_;
580  }
581 
582  void setSortColumn(Fm::FolderModel::ColumnId sortColumn) {
583  sortColumn_ = sortColumn;
584  }
585 
586  bool sortFolderFirst() const {
587  return sortFolderFirst_;
588  }
589 
590  void setSortFolderFirst(bool folderFirst) {
591  sortFolderFirst_ = folderFirst;
592  }
593 
594  bool showFilter() const {
595  return showFilter_;
596  }
597 
598  void setShowFilter(bool value) {
599  showFilter_ = value;
600  }
601 
602  bool pathBarButtons() const {
603  return pathBarButtons_;
604  }
605 
606  void setPathBarButtons(bool value) {
607  pathBarButtons_ = value;
608  }
609 
610  // settings for use with libfm
611  bool singleClick() const {
612  return singleClick_;
613  }
614 
615  void setSingleClick(bool singleClick) {
616  singleClick_ = singleClick;
617  }
618 
619  int autoSelectionDelay() const {
620  return autoSelectionDelay_;
621  }
622 
623  void setAutoSelectionDelay(int value) {
624  autoSelectionDelay_ = value;
625  }
626 
627  bool useTrash() const {
628  if(!supportTrash_) {
629  return false;
630  }
631  return useTrash_;
632  }
633 
634  void setUseTrash(bool useTrash) {
635  useTrash_ = useTrash;
636  }
637 
638  bool confirmDelete() const {
639  return confirmDelete_;
640  }
641 
642  void setConfirmDelete(bool confirmDelete) {
643  confirmDelete_ = confirmDelete;
644  }
645 
646  bool noUsbTrash() const {
647  return noUsbTrash_;
648  }
649 
650  void setNoUsbTrash(bool noUsbTrash) {
651  noUsbTrash_ = noUsbTrash;
652  fm_config->no_usb_trash = noUsbTrash_; // also set this to libfm since FmFileOpsJob reads this config value before trashing files.
653  }
654 
655  bool confirmTrash() const {
656  return confirmTrash_;
657  }
658 
659  void setConfirmTrash(bool value) {
660  confirmTrash_ = value;
661  }
662 
663  bool quickExec() const {
664  return quickExec_;
665  }
666 
667  void setQuickExec(bool value) {
668  quickExec_ = value;
669  fm_config->quick_exec = quickExec_;
670  }
671 
672  bool selectNewFiles() const {
673  return selectNewFiles_;
674  }
675 
676  void setSelectNewFiles(bool value) {
677  selectNewFiles_ = value;
678  }
679 
680  // bool thumbnailLocal_;
681  // bool thumbnailMax;
682 
683  int bigIconSize() const {
684  return bigIconSize_;
685  }
686 
687  void setBigIconSize(int bigIconSize) {
688  bigIconSize_ = bigIconSize;
689  }
690 
691  int smallIconSize() const {
692  return smallIconSize_;
693  }
694 
695  void setSmallIconSize(int smallIconSize) {
696  smallIconSize_ = smallIconSize;
697  }
698 
699  int sidePaneIconSize() const {
700  return sidePaneIconSize_;
701  }
702 
703  void setSidePaneIconSize(int sidePaneIconSize) {
704  sidePaneIconSize_ = sidePaneIconSize;
705  }
706 
707  int thumbnailIconSize() const {
708  return thumbnailIconSize_;
709  }
710 
711  QSize folderViewCellMargins() const {
712  return folderViewCellMargins_;
713  }
714 
715  void setFolderViewCellMargins(QSize size) {
716  folderViewCellMargins_ = size;
717  }
718 
719  QSize desktopCellMargins() const {
720  return desktopCellMargins_;
721  }
722 
723  void setDesktopCellMargins(QSize size) {
724  desktopCellMargins_ = size;
725  }
726 
727 
728  bool showThumbnails() {
729  return showThumbnails_;
730  }
731 
732  void setShowThumbnails(bool show) {
733  showThumbnails_ = show;
734  }
735 
736  void setThumbnailLocalFilesOnly(bool value) {
737  Fm::ThumbnailJob::setLocalFilesOnly(value);
738  }
739 
740  bool thumbnailLocalFilesOnly() const {
741  return Fm::ThumbnailJob::localFilesOnly();
742  }
743 
744  int maxThumbnailFileSize() const {
745  return Fm::ThumbnailJob::maxThumbnailFileSize();
746  }
747 
748  void setMaxThumbnailFileSize(int size) {
749  Fm::ThumbnailJob::setMaxThumbnailFileSize(size);
750  }
751 
752  void setThumbnailIconSize(int thumbnailIconSize) {
753  thumbnailIconSize_ = thumbnailIconSize;
754  }
755 
756  bool siUnit() {
757  return siUnit_;
758  }
759 
760  void setSiUnit(bool siUnit) {
761  siUnit_ = siUnit;
762  // override libfm FmConfig settings. FIXME: should we do this?
763  fm_config->si_unit = (gboolean)siUnit_;
764  }
765 
766  bool backupAsHidden() const {
767  return backupAsHidden_;
768  }
769 
770  void setBackupAsHidden(bool value) {
771  backupAsHidden_ = value;
772  fm_config->backup_as_hidden = backupAsHidden_; // also set this to libfm since fm_file_info_is_hidden() reads this value internally.
773  }
774 
775  bool showFullNames() const {
776  return showFullNames_;
777  }
778 
779  void setShowFullNames(bool value) {
780  showFullNames_ = value;
781  }
782 
783  bool shadowHidden() const {
784  return shadowHidden_;
785  }
786 
787  void setShadowHidden(bool value) {
788  shadowHidden_ = value;
789  }
790 
791  bool onlyUserTemplates() const {
792  return onlyUserTemplates_;
793  }
794 
795  void setOnlyUserTemplates(bool value) {
796  onlyUserTemplates_ = value;
797  fm_config->only_user_templates = onlyUserTemplates_;
798  }
799 
800  bool templateTypeOnce() const {
801  return templateTypeOnce_;
802  }
803 
804  void setTemplateTypeOnce(bool value) {
805  templateTypeOnce_ = value;
806  fm_config->template_type_once = templateTypeOnce_;
807  }
808 
809  bool templateRunApp() const {
810  return templateRunApp_;
811  }
812 
813  void setTemplateRunApp(bool value) {
814  templateRunApp_ = value;
815  fm_config->template_run_app = templateRunApp_;
816  }
817 
818  // per-folder settings
819  FolderSettings loadFolderSettings(const Fm::FilePath& path) const;
820 
821  void saveFolderSettings(const Fm::FilePath& path, const FolderSettings& settings);
822 
823  void clearFolderSettings(const Fm::FilePath& path) const;
824 
825  bool searchNameCaseInsensitive() const {
826  return searchNameCaseInsensitive_;
827  }
828 
829  void setSearchNameCaseInsensitive(bool caseInsensitive) {
830  searchNameCaseInsensitive_ = caseInsensitive;
831  }
832 
833  bool searchContentCaseInsensitive() const {
834  return searchContentCaseInsensitive_;
835  }
836 
837  void setsearchContentCaseInsensitive(bool caseInsensitive) {
838  searchContentCaseInsensitive_ = caseInsensitive;
839  }
840 
841  bool searchNameRegexp() const {
842  return searchNameRegexp_;
843  }
844 
845  void setSearchNameRegexp(bool reg) {
846  searchNameRegexp_ = reg;
847  }
848 
849  bool searchContentRegexp() const {
850  return searchContentRegexp_;
851  }
852 
853  void setSearchContentRegexp(bool reg) {
854  searchContentRegexp_ = reg;
855  }
856 
857  bool searchRecursive() const {
858  return searchRecursive_;
859  }
860 
861  void setSearchRecursive(bool rec) {
862  searchRecursive_ = rec;
863  }
864 
865  bool searchhHidden() const {
866  return searchhHidden_;
867  }
868 
869  void setSearchhHidden(bool hidden) {
870  searchhHidden_ = hidden;
871  }
872 
873 private:
874  int toIconSize(int size, IconType type) const;
875 
876  QString profileName_;
877  bool supportTrash_;
878 
879  // PCManFM specific
880  QString fallbackIconThemeName_;
881  bool useFallbackIconTheme_;
882 
883  OpenDirTargetType bookmarkOpenMethod_;
884  QString suCommand_;
885  QString terminal_;
886  bool mountOnStartup_;
887  bool mountRemovable_;
888  bool autoRun_;
889  bool closeOnUnmount_;
890 
891  int wallpaperMode_;
892  QString wallpaper_;
893  QString lastSlide_;
894  QString wallpaperDir_;
895  int slideShowInterval_;
896  bool wallpaperRandomize_;
897  QColor desktopBgColor_;
898  QColor desktopFgColor_;
899  QColor desktopShadowColor_;
900  QFont desktopFont_;
901  int desktopIconSize_;
902  bool showWmMenu_;
903 
904  bool desktopShowHidden_;
905  bool desktopHideItems_;
906  Qt::SortOrder desktopSortOrder_;
907  Fm::FolderModel::ColumnId desktopSortColumn_;
908  bool desktopSortFolderFirst_;
909 
910  bool alwaysShowTabs_;
911  bool showTabClose_;
912  bool rememberWindowSize_;
913  int fixedWindowWidth_;
914  int fixedWindowHeight_;
915  int lastWindowWidth_;
916  int lastWindowHeight_;
917  bool lastWindowMaximized_;
918  int splitterPos_;
919  Fm::SidePane::Mode sidePaneMode_;
920  bool showMenuBar_;
921  bool fullWidthTabBar_;
922 
923  Fm::FolderView::ViewMode viewMode_;
924  bool showHidden_;
925  Qt::SortOrder sortOrder_;
926  Fm::FolderModel::ColumnId sortColumn_;
927  bool sortFolderFirst_;
928  bool sortCaseSensitive_;
929  bool showFilter_;
930  bool pathBarButtons_;
931 
932  // settings for use with libfm
933  bool singleClick_;
934  int autoSelectionDelay_;
935  bool useTrash_;
936  bool confirmDelete_;
937  bool noUsbTrash_; // do not trash files on usb removable devices
938  bool confirmTrash_; // Confirm before moving files into "trash can"
939  bool quickExec_; // Don't ask options on launch executable file
940  bool selectNewFiles_;
941 
942  bool showThumbnails_;
943 
944  QString archiver_;
945  bool siUnit_;
946  bool backupAsHidden_;
947  bool showFullNames_;
948  bool shadowHidden_;
949 
950  bool placesHome_;
951  bool placesDesktop_;
952  bool placesApplications_;
953  bool placesTrash_;
954  bool placesRoot_;
955  bool placesComputer_;
956  bool placesNetwork_;
957  QSet<QString> hiddenPlaces_;
958 
959  int bigIconSize_;
960  int smallIconSize_;
961  int sidePaneIconSize_;
962  int thumbnailIconSize_;
963 
964  bool onlyUserTemplates_;
965  bool templateTypeOnce_;
966  bool templateRunApp_;
967 
968  QSize folderViewCellMargins_;
969  QSize desktopCellMargins_;
970 
971  // search settings
972  bool searchNameCaseInsensitive_;
973  bool searchContentCaseInsensitive_;
974  bool searchNameRegexp_;
975  bool searchContentRegexp_;
976  bool searchRecursive_;
977  bool searchhHidden_;
978 };
979 
980 }
981 
982 #endif // PCMANFM_SETTINGS_H
Definition: settings.h:122
Definition: application.cpp:58
Definition: settings.h:42