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