1 /*****************************************************************************
2  * Copyright (C) 2000 Shie Erlich <krusader@users.sourceforge.net>           *
3  * Copyright (C) 2000 Rafi Yanai <krusader@users.sourceforge.net>            *
4  * Copyright (C) 2004-2019 Krusader Krew [https://krusader.org]              *
5  *                                                                           *
6  * This file is part of Krusader [https://krusader.org].                     *
7  *                                                                           *
8  * Krusader is free software: you can redistribute it and/or modify          *
9  * it under the terms of the GNU General Public License as published by      *
10  * the Free Software Foundation, either version 2 of the License, or         *
11  * (at your option) any later version.                                       *
12  *                                                                           *
13  * Krusader is distributed in the hope that it will be useful,               *
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of            *
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
16  * GNU General Public License for more details.                              *
17  *                                                                           *
18  * You should have received a copy of the GNU General Public License         *
19  * along with Krusader.  If not, see [http://www.gnu.org/licenses/].         *
20  *****************************************************************************/
21 
22 #ifndef DEFAULTS_H
23 #define DEFAULTS_H
24 
25 // QtGui
26 #include <QFontDatabase>
27 
28 ///////////////////////   [Startup]
29 // UI Save component Settings
30 #define _UiSave           true
31 // Show Cmd Line
32 #define _ShowCmdline      false
33 // Show status bar
34 #define _ShowStatusBar    true
35 // Show actions tool bar
36 #define _ShowActionsToolBar true
37 // Show tool bar
38 #define _ShowToolBar      true
39 // Show FN Keys
40 #define _ShowFNkeys       true
41 // Show Terminal Emulator
42 #define _ShowTerminalEmulator false
43 // Remember Position
44 #define _RememberPos      true
45 // Start to tray
46 #define _StartToTray      false
47 // Left Tab Bar
48 // Right Tab Bar
49 // Size where lister is the default viewer
50 #define _ListerLimit     10
51 
52 
53 
54 ////////////////////////[Look&Feel]
55 // Filelist Font ///////
56 #define _FilelistFont   QFontDatabase::systemFont(QFontDatabase::GeneralFont)
57 // Warn On Exit ////////
58 #define _WarnOnExit     false
59 // Minimize To Tray ////
60 #define _ShowTrayIcon false
61 // Mark Dirs ///////////
62 #define _MarkDirs       false
63 // Show Hidden /////////
64 #define _ShowHidden     true
65 // Sort By Extension ///
66 #define _SortByExt      false
67 // Case Sensative Sort /
68 #define _CaseSensativeSort false
69 // Html Min Font Size //
70 #define _HtmlMinFontSize 12
71 // Filelist Icon Size //
72 #define _FilelistIconSize QString("22")
73 // Mouse Selection /////
74 #define _MouseSelection 0 // 0 - normal (shift+click, ctrl+click), 1 - left click, 2 - right click
75 // Use fullpath tab names /////
76 #define _FullPathTabNames false
77 // User defined folder icons
78 #define _UserDefinedFolderIcons true
79 // Always show current item decoration in panel
80 #define _AlwaysShowCurrentItem true
81 // Unslect files before copy/move
82 #define _UnselectBeforeOperation false
83 // Filter dialog remembers settings
84 #define _FilterDialogRemembersSettings false
85 
86 // Panel Toolbar Checkboxes
87 // Panel Toolbar Visible checkbox turned off
88 #define _PanelToolBar       true
89 // cd / is turned on
90 #define _cdRoot             true
91 // cd ~ is turned on
92 #define _cdHome             false
93 // cd .. is turned on
94 #define _cdUp               true
95 // cd other panel is turned on
96 #define _cdOther            false
97 // syncBrowseButton is turned on
98 #define _syncBrowseButton   false
99 // Use the default colors of KDE
100 #define _KDEDefaultColors     true
101 // Enable Alternate Background colors
102 #define _AlternateBackground  true
103 // Show current item even if not focused
104 #define _ShowCurrentItemAlways false
105 // Dim the colors of the inactive panel
106 #define _DimInactiveColors     false
107 // Human Readable Size
108 #define _HumanReadableSize  true
109 // With Icons
110 #define _WithIcons          true
111 // Single Click Selects
112 #define _SingleClickSelects false
113 // Numeric Permissions
114 #define _NumericPermissions false
115 // Number of Columns in the Brief View
116 #define _NumberOfBriefColumns  3
117 // Default Sort Method
118 #define _DefaultSortMethod KrViewProperties::Krusader
119 // Show splashscreen
120 #define _ShowSplashScreen false
121 // Single instance mode
122 #define _SingleInstanceMode false
123 
124 /////////////////////// [General]
125 // Move To Trash //////
126 #define _MoveToTrash   true
127 // Terminal ///////////
128 #define _Terminal      "konsole --separate"
129 // Send CDs ///////////
130 #define _SendCDs  true
131 // Editor /////////////
132 #define _Editor        "internal editor"
133 // Use Okteta as Hex viewer ///////
134 #define _UseOktetaViewer false
135 // Temp Directory /////
136 #define _TempDirectory "/tmp/krusader.tmp"
137 // Classic Quicksearch
138 #define _NewStyleQuicksearch true
139 // Case Sensitive quick search, if _NewStyleQuicksearch is true
140 #define _CaseSensitiveQuicksearch false
141 // Special handling of Right Arrow in Quicksearch
142 #define _NavigationWithRightArrowQuicksearch true
143 // View In Separate Window
144 #define _ViewInSeparateWindow  false
145 
146 /////////////////////// [Advanced]
147 // Permission Check ///
148 //#define _PermCheck     true
149 // AutoMount //////////
150 #define _AutoMount        false
151 // Preserving date //////////
152 #define _PreserveAttributes false
153 // Nonmount Points ////
154 #define _NonMountPoints "/, "
155 // Confirm Unempty Dir //     (for delete)
156 #define _ConfirmUnemptyDir true
157 // Confirm Delete /////       (for deleting files)
158 #define _ConfirmDelete true
159 // Confirm Copy ///////       (for copying files)
160 #define _ConfirmCopy   true
161 // Confirm Move ///////       (for moving files)
162 #define _ConfirmMove   true
163 // Icon Cache Size ////
164 #define _IconCacheSize 2048
165 
166 /////////////////////// [Archives]
167 // Do Tar /////////////
168 #define _DoTar         true
169 // Do GZip ////////////
170 #define _DoGZip        true
171 // Do Zip /////////////
172 #define _DoZip         true
173 // Do UnZip ///////////
174 #define _DoUnZip       true
175 // Do BZip2 ///////////
176 #define _DoBZip2       true
177 // Do LZMA ///////////
178 #define _DoLZMA       true
179 // Do XZ ///////////
180 #define _DoXZ         true
181 // Do Rar /////////////
182 #define _DoRar         true
183 // Do UnRar ///////////
184 #define _DoUnRar       true
185 // Do UnAce ///////////
186 #define _DoUnAce       true
187 // Do Arj /////////////
188 #define _DoArj         true
189 // Do UnArj ///////////
190 #define _DoUnarj       true
191 // Do RPM /////////////
192 #define _DoRPM         true
193 // Do DEB /////////////          ====> new
194 #define _DoDEB         true
195 // Do Lha /////////////
196 #define _DoLha         true
197 // Do 7z /////////////          ====> new
198 #define _Do7z          true
199 // Allow Move Into Archive //
200 #define _MoveIntoArchive false
201 // Test Archives //////
202 #define _TestArchives  false
203 // Test Before Unpack ////
204 #define _TestBeforeUnpack true
205 // Supported Packers // ====> a QStringList of SYSTEM supported archives ( also new )
206 // default compression level
207 #define _defaultCompressionLevel 5
208 // treat Archives as Directories
209 #define _ArchivesAsDirectories true
210 
211 /////////////////////// [UserActions]
212 // Terminal for UserActions ///////////
213 #define _UserActions_Terminal      "konsole --noclose --workdir %d --title %t -e"
214 // Normal font for output collection ///////
215 #define _UserActions_NormalFont  QFontDatabase::systemFont(QFontDatabase::GeneralFont)
216 // Font for output collection with fixed width ///////
217 #define _UserActions_FixedFont   QFontDatabase::systemFont(QFontDatabase::FixedFont)
218 // Use for output collection  fixed width font as default ///////
219 #define _UserActions_UseFixedFont   false
220 
221 /////////////////////// [Private]
222 // Start Position /////
223 #define _StartPosition QPoint(QApplication::desktop()->width()/2 - MAIN_VIEW->sizeHint().width()/2,QApplication::desktop()->height()/2 - 250)
224 // Start Size /////////
225 #define _StartSize     QSize(MAIN_VIEW->sizeHint().width(),500)
226 // Panel Size /////////
227 #define _PanelSize     0
228 // Terminal Size //////
229 #define _TerminalSize  0
230 // Left Name Size  - size of the left panel's name column
231 // Left Size Size  - size of the left panel's size column
232 // Left Date Size  - size of the left panel's date column
233 // Right Name Size - size of the right panel's name column
234 // Right Size Size - size of the left panel's size column
235 // Right Date Size - size of the left panel's date column
236 // Splitter Sizes - sizes of the splitter
237 
238 /////////////////////// [RemoteMan]
239 // Connections ////////
240 // the basic connections are defined internally
241 
242 /////////////////////// [Search]
243 // Saved Searches /////
244 // holds an index of saved searches
245 // Confirm Feed to Listbox ///// (costum-name on feed ti listbox)
246 #define _ConfirmFeedToListbox   true
247 
248 
249 /////////// here are additional variables used internally by Krusader ////////////
250 // BookmarkArchives   - The infobox about not allowing bookmarks inside archives
251 // BackArchiveWarning - The infobox about not allowing to back up into archives
252 // SupermountWarning  - Warning about mounting/unmounting supermount filesystems
253 // lastHomeRight      - Save the last place the right list panel was showing
254 // lastHomeLeft       - Save the last place the left list panel was showing
255 // lastUsedPacker     - used by packGUI to remember the last used packer
256 
257 /////////////////////// [Popular Urls]
258 // PopularUrls     - a string list containing the top urls
259 // PopularUrlsRank - an int list contains the urls' ranking
260 
261 /////////////////////// [Synchronize directories]
262 // Don't overwrite automatically /////////////
263 #define  _ConfirmOverWrites   false
264 // Recursive search in the subdirectories /////////////
265 #define  _RecurseSubdirs    true
266 // The searcher follows symlinks /////////////
267 #define  _FollowSymlinks    false
268 // Files with similar size are compared by content /////////////
269 #define  _CompareByContent  false
270 // The date information is ignored at synchronization /////////////
271 #define  _IgnoreDate        false
272 // Asymmetric Client-File Server compare mode /////////////
273 #define  _Asymmetric        false
274 // Case insensitive compare in synchronizer /////////////
275 #define  _IgnoreCase        false
276 // Scrolls the results of the synchronization /////////////
277 #define  _ScrollResults     false
278 // The right arrow button is turned on /////////////
279 #define  _BtnLeftToRight    true
280 // The equals button is turned on /////////////
281 #define  _BtnEquals         true
282 // The not equals button is turned on /////////////
283 #define  _BtnDifferents     true
284 // The left arrow button is turned on /////////////
285 #define  _BtnRightToLeft    true
286 // The trash button is turned on /////////////
287 #define  _BtnDeletable      true
288 // The duplicates button is turned on /////////////
289 #define  _BtnDuplicates     true
290 // The singles button is turned on /////////////
291 #define  _BtnSingles        true
292 
293 /////////////////////// [Custom Selection Mode]
294 // QT Selection
295 #define _QtSelection   false
296 // Left Selects
297 #define _LeftSelects   true
298 // Left Preserves
299 #define _LeftPreserves  false
300 // ShiftCtrl Left Selects
301 #define _ShiftCtrlLeft  false
302 // Right Selects
303 #define _RightSelects  true
304 // Right Preserves
305 #define _RightPreserves  false
306 // ShiftCtrl Right Selects
307 #define _ShiftCtrlRight  false
308 // Space Moves Down
309 #define _SpaceMovesDown  true
310 // Space Calc Space
311 #define _SpaceCalcSpace  true
312 // Insert Moves Down
313 #define _InsertMovesDown true
314 // Immediate Context Menu
315 #define _ImmediateContextMenu true
316 
317 // Root directory
318 #ifdef Q_WS_WIN
319 #define DIR_SEPARATOR       "/"
320 #define DIR_SEPARATOR2      "\\"
321 #define DIR_SEPARATOR_CHAR  '/'
322 #define DIR_SEPARATOR_CHAR2 '\\'
323 #define REPLACE_DIR_SEP2(x) x = x.replace( DIR_SEPARATOR2, DIR_SEPARATOR );
324 #define ROOT_DIR "C:\\"
325 #define EXEC_SUFFIX         ".exe"
326 #else
327 #define DIR_SEPARATOR       "/"
328 #define DIR_SEPARATOR2      "/"
329 #define DIR_SEPARATOR_CHAR  '/'
330 #define DIR_SEPARATOR_CHAR2 '/'
331 #define REPLACE_DIR_SEP2(x)
332 #define ROOT_DIR            "/"
333 #define EXEC_SUFFIX         ""
334 #endif
335 
336 #endif
337