By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 986
Collapse All | Expand All

(-)kdebase/kioslave/media/kcmodule/managermoduleview.ui (-3 / +274 lines)
Lines 8-17 Link Here
8
        <rect>
8
        <rect>
9
            <x>0</x>
9
            <x>0</x>
10
            <y>0</y>
10
            <y>0</y>
11
            <width>600</width>
11
            <width>340</width>
12
            <height>480</height>
12
            <height>476</height>
13
        </rect>
13
        </rect>
14
    </property>
14
    </property>
15
    <property name="caption">
16
        <string>ManagerModuleView</string>
17
    </property>
15
    <vbox>
18
    <vbox>
16
        <property name="name">
19
        <property name="name">
17
            <cstring>unnamed</cstring>
20
            <cstring>unnamed</cstring>
Lines 49-54 Link Here
49
                <string>Select this if you want to enable application autostart after mounting a device.</string>
52
                <string>Select this if you want to enable application autostart after mounting a device.</string>
50
            </property>
53
            </property>
51
        </widget>
54
        </widget>
55
        <widget class="TQGroupBox">
56
            <property name="name">
57
                <cstring>groupbox_mount</cstring>
58
            </property>
59
            <property name="title">
60
                <string>Mount options</string>
61
            </property>
62
            <vbox>
63
                <property name="name">
64
                    <cstring>unnamed</cstring>
65
                </property>
66
                <widget class="TQLabel">
67
                    <property name="name">
68
                        <cstring>textLabel3</cstring>
69
                    </property>
70
                    <property name="text">
71
                        <string>Here you can specify default mount options for your storage media. Please note that some options are not supported for certain filesystems and/or medium. You will be able to redefine all these options on per-volume basis later, using Properties dialog of the corresponding volume.&lt;br&gt;
72
Some of the options are tristate. Leave them "undefined" to let KDE choose the best value depending on your media.</string>
73
                    </property>
74
                    <property name="alignment">
75
                        <set>WordBreak|AlignVCenter</set>
76
                    </property>
77
                </widget>
78
                <widget class="TQLayoutWidget">
79
                    <property name="name">
80
                        <cstring>layout30</cstring>
81
                    </property>
82
                    <grid>
83
                        <property name="name">
84
                            <cstring>unnamed</cstring>
85
                        </property>
86
                        <widget class="TQCheckBox" row="1" column="0">
87
                            <property name="name">
88
                                <cstring>option_ro</cstring>
89
                            </property>
90
                            <property name="text">
91
                                <string>Read only</string>
92
                            </property>
93
                            <property name="whatsThis" stdset="0">
94
                                <string>By default, mount all file systems read-only.</string>
95
                            </property>
96
                        </widget>
97
                        <widget class="TQCheckBox" row="2" column="1">
98
                            <property name="name">
99
                                <cstring>option_uid</cstring>
100
                            </property>
101
                            <property name="text">
102
                                <string>Mount as user</string>
103
                            </property>
104
                            <property name="whatsThis" stdset="0">
105
                                <string>Mount this file system as user.</string>
106
                            </property>
107
                        </widget>
108
                        <widget class="TQCheckBox" row="0" column="1">
109
                            <property name="name">
110
                                <cstring>option_flush</cstring>
111
                            </property>
112
                            <property name="text">
113
                                <string>Flushed IO</string>
114
                            </property>
115
                            <property name="tristate">
116
                                <bool>true</bool>
117
                            </property>
118
                            <property name="whatsThis" stdset="0">
119
                                <string>Always flush all data to the hot plug devices immediately and don't cache it.</string>
120
                            </property>
121
                        </widget>
122
                        <widget class="TQCheckBox" row="3" column="0">
123
                            <property name="name">
124
                                <cstring>option_sync</cstring>
125
                            </property>
126
                            <property name="text">
127
                                <string>Synchronous</string>
128
                            </property>
129
                            <property name="tristate">
130
                                <bool>true</bool>
131
                            </property>
132
                            <property name="whatsThis" stdset="0">
133
                                <string>All I/O to the file system should be done synchronously.</string>
134
                            </property>
135
                        </widget>
136
                        <widget class="TQCheckBox" row="2" column="0">
137
                            <property name="name">
138
                                <cstring>option_quiet</cstring>
139
                            </property>
140
                            <property name="text">
141
                                <string>Quiet</string>
142
                            </property>
143
                            <property name="whatsThis" stdset="0">
144
                                <string>Attempts to chown or chmod files do not return errors, although they fail. Use with caution!</string>
145
                            </property>
146
                        </widget>
147
                        <widget class="TQCheckBox" row="1" column="1">
148
                            <property name="name">
149
                                <cstring>option_utf8</cstring>
150
                            </property>
151
                            <property name="text">
152
                                <string>UTF-8 charset</string>
153
                            </property>
154
                            <property name="whatsThis" stdset="0">
155
                                <string>UTF8 is the filesystem safe 8-bit encoding of Unicode that is used by the console. It can be be enabled for the filesystem with this option.</string>
156
                            </property>
157
                        </widget>
158
                        <widget class="TQLayoutWidget" row="3" column="1" rowspan="2" colspan="1">
159
                            <property name="name">
160
                                <cstring>layout29</cstring>
161
                            </property>
162
                            <grid>
163
                                <property name="name">
164
                                    <cstring>unnamed</cstring>
165
                                </property>
166
                                <widget class="TQLabel" row="1" column="0">
167
                                    <property name="name">
168
                                        <cstring>text_shortname</cstring>
169
                                    </property>
170
                                    <property name="text">
171
                                        <string>Short names:</string>
172
                                    </property>
173
                                    <property name="buddy" stdset="0">
174
                                        <cstring>option_shortname</cstring>
175
                                    </property>
176
                                    <property name="whatsThis" stdset="0">
177
                                        <string>&lt;h2&gt;Defines  the  behaviour  for  creation and display of filenames which fit into 8.3 characters. If a long name for a file exists, it will always be preferred display.&lt;/h2&gt;
178
179
&lt;h3&gt;&lt;b&gt;Lower&lt;/b&gt;&lt;/h3&gt;
180
Force the short name to lower case upon display; store a long name when the short name is not all upper case.
181
182
&lt;h3&gt;&lt;b&gt;Windows 95&lt;/b&gt;&lt;/h3&gt;
183
Force the short name to upper case upon display; store a long name when the short name is not all upper case.
184
185
&lt;h3&gt;&lt;b&gt;Windows NT&lt;/b&gt;&lt;/h3&gt;
186
Display the shortname as is; store a long name when the short name is not all lower case or all upper case.
187
188
&lt;h3&gt;&lt;b&gt;Mixed&lt;/b&gt;&lt;/h3&gt;
189
Display the short name as is; store a long name when the short name is not all upper case.</string>
190
                                    </property>
191
                                </widget>
192
                                <widget class="TQComboBox" row="0" column="1">
193
                                    <item>
194
                                        <property name="text">
195
                                            <string>All Data</string>
196
                                        </property>
197
                                    </item>
198
                                    <item>
199
                                        <property name="text">
200
                                            <string>Ordered</string>
201
                                        </property>
202
                                    </item>
203
                                    <item>
204
                                        <property name="text">
205
                                            <string>Writeback</string>
206
                                        </property>
207
                                    </item>
208
                                    <property name="name">
209
                                        <cstring>option_journaling</cstring>
210
                                    </property>
211
                                    <property name="currentItem">
212
                                        <number>1</number>
213
                                    </property>
214
                                </widget>
215
                                <widget class="TQLabel" row="0" column="0">
216
                                    <property name="name">
217
                                        <cstring>text_journaling</cstring>
218
                                    </property>
219
                                    <property name="text">
220
                                        <string>Journaling:</string>
221
                                    </property>
222
                                    <property name="buddy" stdset="0">
223
                                        <cstring>option_journaling</cstring>
224
                                    </property>
225
                                    <property name="whatsThis" stdset="0">
226
                                        <string>&lt;h2&gt;Specifies  the journalling mode for file data. Metadata is always journaled. &lt;/h2&gt;
227
           
228
&lt;h3&gt;&lt;b&gt;All Data&lt;/b&gt;&lt;/h3&gt;
229
           All  data  is  committed into the journal prior to being written into the main file system. This is the slowest variant with the highest data security.
230
231
&lt;h3&gt;&lt;b&gt;Ordered&lt;/b&gt;&lt;/h3&gt;
232
           All data is forced directly out to the main  file system prior to its metadata being committed to the journal.
233
234
&lt;h3&gt;&lt;b&gt;Write Back&lt;/b&gt;&lt;/h3&gt;
235
           Data ordering is not preserved - data may be written into the main file system after its metadata has been committed to the journal.  This is rumoured to  be the  highest-throughput option.  It guarantees internal file system integrity,  however it can allow old data to appear in files after  a  crash  and  journal recovery.</string>
236
                                    </property>
237
                                </widget>
238
                                <widget class="TQComboBox" row="1" column="1">
239
                                    <item>
240
                                        <property name="text">
241
                                            <string>Lower</string>
242
                                        </property>
243
                                    </item>
244
                                    <item>
245
                                        <property name="text">
246
                                            <string>Windows 95</string>
247
                                        </property>
248
                                    </item>
249
                                    <item>
250
                                        <property name="text">
251
                                            <string>Windows NT</string>
252
                                        </property>
253
                                    </item>
254
                                    <item>
255
                                        <property name="text">
256
                                            <string>Mixed</string>
257
                                        </property>
258
                                    </item>
259
                                    <property name="name">
260
                                        <cstring>option_shortname</cstring>
261
                                    </property>
262
                                </widget>
263
                            </grid>
264
                        </widget>
265
                        <widget class="TQCheckBox" row="0" column="0">
266
                            <property name="name">
267
                                <cstring>option_automount</cstring>
268
                            </property>
269
                            <property name="text">
270
                                <string>Mount automatically</string>
271
                            </property>
272
                            <property name="whatsThis" stdset="0">
273
                                <string>By default, mount all file systems automatically.</string>
274
                            </property>
275
                        </widget>
276
                        <widget class="TQCheckBox" row="4" column="0">
277
                            <property name="name">
278
                                <cstring>option_atime</cstring>
279
                            </property>
280
                            <property name="text">
281
                                <string>Access time updates</string>
282
                            </property>
283
                            <property name="tristate">
284
                                <bool>true</bool>
285
                            </property>
286
                            <property name="whatsThis" stdset="0">
287
                                <string>Update inode access time for each access.</string>
288
                            </property>
289
                        </widget>
290
                    </grid>
291
                </widget>
292
            </vbox>
293
        </widget>
52
        <spacer>
294
        <spacer>
53
            <property name="name">
295
            <property name="name">
54
                <cstring>spacer1</cstring>
296
                <cstring>spacer1</cstring>
Lines 62-72 Link Here
62
            <property name="tqsizeHint">
304
            <property name="tqsizeHint">
63
                <size>
305
                <size>
64
                    <width>21</width>
306
                    <width>21</width>
65
                    <height>360</height>
307
                    <height>130</height>
66
                </size>
308
                </size>
67
            </property>
309
            </property>
68
        </spacer>
310
        </spacer>
69
    </vbox>
311
    </vbox>
70
</widget>
312
</widget>
313
<connections>
314
    <connection>
315
        <sender>kcfg_HalBackendEnabled</sender>
316
        <signal>toggled(bool)</signal>
317
        <receiver>groupbox_mount</receiver>
318
        <slot>setEnabled(bool)</slot>
319
    </connection>
320
</connections>
321
<tabstops>
322
    <tabstop>kcfg_HalBackendEnabled</tabstop>
323
    <tabstop>kcfg_CdPollingEnabled</tabstop>
324
    <tabstop>kcfg_AutostartEnabled</tabstop>
325
    <tabstop>option_automount</tabstop>
326
    <tabstop>option_ro</tabstop>
327
    <tabstop>option_quiet</tabstop>
328
    <tabstop>option_sync</tabstop>
329
    <tabstop>option_atime</tabstop>
330
    <tabstop>option_flush</tabstop>
331
    <tabstop>option_utf8</tabstop>
332
    <tabstop>option_uid</tabstop>
333
    <tabstop>option_journaling</tabstop>
334
    <tabstop>option_shortname</tabstop>
335
</tabstops>
336
<includes>
337
    <include location="local" impldecl="in implementation">managermoduleview.ui.h</include>
338
</includes>
339
<functions>
340
    <function access="private" specifier="non virtual">init()</function>
341
</functions>
71
<layoutdefaults spacing="6" margin="11"/>
342
<layoutdefaults spacing="6" margin="11"/>
72
</UI>
343
</UI>
(-)kdebase/kioslave/media/kcmodule/managermodule.cpp (-1 / +140 lines)
Lines 1-5 Link Here
1
/* This file is part of the KDE Project
1
/* This file is part of the KDE Project
2
   Copyright (c) 2005 Kévin Ottens <ervin ipsquad net>
2
   Copyright (c) 2005 Kévin Ottens <ervin ipsquad net>
3
   Copyright (c) 2006 Valentine Sinitsyn <e_val@inbox.ru>
3
4
4
   This library is free software; you can redistribute it and/or
5
   This library is free software; you can redistribute it and/or
5
   modify it under the terms of the GNU Library General Public
6
   modify it under the terms of the GNU Library General Public
Lines 20-28 Link Here
20
21
21
#include "managermodule.h"
22
#include "managermodule.h"
22
23
24
#include <kconfig.h>
23
#include <klocale.h>
25
#include <klocale.h>
24
#include <dcopref.h>
26
#include <dcopref.h>
27
#include <tqbutton.h>
25
#include <tqcheckbox.h>
28
#include <tqcheckbox.h>
29
#include <tqcombobox.h>
30
#include <tqobjectlist.h>
26
#include <kdirnotify_stub.h>
31
#include <kdirnotify_stub.h>
27
32
28
#include "managermoduleview.h"
33
#include "managermoduleview.h"
Lines 31-37 Link Here
31
ManagerModule::ManagerModule( TQWidget* parent, const char* name )
36
ManagerModule::ManagerModule( TQWidget* parent, const char* name )
32
	: KCModule( parent, name )
37
	: KCModule( parent, name )
33
{
38
{
34
	ManagerModuleView *view = new ManagerModuleView( this );
39
	view = new ManagerModuleView( this );
35
40
36
	addConfig(  MediaManagerSettings::self(), view );
41
	addConfig(  MediaManagerSettings::self(), view );
37
42
Lines 49-60 Link Here
49
#endif
54
#endif
50
	view->kcfg_CdPollingEnabled->setEnabled( false );
55
	view->kcfg_CdPollingEnabled->setEnabled( false );
51
56
57
	connect( view->option_automount, SIGNAL( stateChanged(int) ), this, SLOT( emitChanged() ) );
58
	connect( view->option_ro, SIGNAL( stateChanged(int) ), this, SLOT( emitChanged() ) );
59
	connect( view->option_quiet, SIGNAL( stateChanged(int) ), this, SLOT( emitChanged() ) );
60
	connect( view->option_flush, SIGNAL( stateChanged(int) ), this, SLOT( emitChanged() ) );
61
	connect( view->option_uid, SIGNAL( stateChanged(int) ), this, SLOT( emitChanged() ) );
62
	connect( view->option_utf8, SIGNAL( stateChanged(int) ), this, SLOT( emitChanged() ) );
63
	connect( view->option_sync, SIGNAL( stateChanged(int) ), this, SLOT( emitChanged() ) );
64
	connect( view->option_atime, SIGNAL( stateChanged(int) ), this, SLOT( emitChanged() ) );
65
	connect( view->option_shortname, SIGNAL( activated(int) ), this, SLOT( emitChanged() ) );
66
	connect( view->option_journaling, SIGNAL( activated(int) ), this, SLOT( emitChanged() ) );	
67
52
	load();
68
	load();
69
}	
70
71
72
void ManagerModule::load()
73
{
74
	KCModule::load();
75
	
76
	KConfig config("mediamanagerrc");
77
	config.setGroup("DefaultOptions");
78
	
79
	view->option_automount->setChecked( config.readBoolEntry("automount", false) );
80
	view->option_ro->setChecked( config.readBoolEntry("ro", false) );
81
	view->option_quiet->setChecked( config.readBoolEntry("quiet", false) );
82
	if (config.hasKey("flush"))
83
	    view->option_flush->setChecked( config.readBoolEntry("flush") );
84
	else
85
	    view->option_flush->setNoChange();
86
	view->option_uid->setChecked( config.readBoolEntry("uid", true) );	
87
	view->option_utf8->setChecked( config.readBoolEntry("utf8", true) );
88
	if (config.hasKey("sync"))
89
	    view->option_sync->setChecked( config.readBoolEntry("sync") );
90
	else
91
	    view->option_sync->setNoChange();
92
	if (config.hasKey("atime"))    
93
	    view->option_atime->setChecked( config.readBoolEntry("atime") );
94
	else
95
	    view->option_atime->setNoChange();
96
	
97
	QString value;	
98
	
99
	value = config.readEntry("shortname", "lower").lower();
100
	for (int i = 0; i < view->option_shortname->count(); i++)
101
	    if (view->option_shortname->text(i).lower() == value) view->option_shortname->setCurrentItem(i);
102
		    
103
	value = config.readEntry("journaling", "ordered").lower();
104
	for (int i = 0; i < view->option_journaling->count(); i++)
105
	    if (view->option_journaling->text(i).lower() == value) view->option_journaling->setCurrentItem(i);
106
	    
107
	rememberSettings();
53
}
108
}
54
109
55
void ManagerModule::save()
110
void ManagerModule::save()
56
{
111
{
57
	KCModule::save();
112
	KCModule::save();
113
	
114
	KConfig config("mediamanagerrc");
115
	config.setGroup("DefaultOptions");
116
	
117
	config.writeEntry("automount", view->option_automount->isChecked());
118
	config.writeEntry("ro", view->option_ro->isChecked());
119
	config.writeEntry("quiet", view->option_quiet->isChecked());
120
	if (view->option_flush->state() == QButton::NoChange)
121
	    config.deleteEntry("flush");
122
	else
123
	    config.writeEntry("flush", view->option_flush->isChecked());
124
	config.writeEntry("uid", view->option_uid->isChecked());	
125
	config.writeEntry("utf8", view->option_utf8->isChecked());
126
	if (view->option_sync->state() == QButton::NoChange)
127
	    config.deleteEntry("sync");
128
	else
129
	    config.writeEntry("sync", view->option_sync->isChecked());
130
	if (view->option_atime->state() == QButton::NoChange)
131
	    config.deleteEntry("atime");
132
	else    
133
	    config.writeEntry("atime", view->option_atime->isChecked());
134
	config.writeEntry("journaling", view->option_journaling->currentText().lower());
135
	config.writeEntry("shortname", view->option_shortname->currentText().lower());
136
	
137
	rememberSettings();
58
138
59
	//Well... reloadBackends is buggy with HAL, it seems to be linked
139
	//Well... reloadBackends is buggy with HAL, it seems to be linked
60
	//to a bug in the unmaintained Qt3 DBUS binding ;-/
140
	//to a bug in the unmaintained Qt3 DBUS binding ;-/
Lines 70-74 Link Here
70
	notifier.FilesAdded( "media:/" );
150
	notifier.FilesAdded( "media:/" );
71
}
151
}
72
152
153
void ManagerModule::defaults()
154
{
155
	KCModule::defaults();
156
	
157
	view->option_automount->setChecked(false);
158
	view->option_ro->setChecked(false);
159
	view->option_quiet->setChecked(false);	
160
	view->option_flush->setNoChange();
161
	view->option_uid->setChecked(true);	
162
	view->option_utf8->setChecked(true);	
163
	view->option_sync->setNoChange();	
164
	view->option_atime->setNoChange();
165
	view->option_journaling->setCurrentItem(1);
166
	view->option_shortname->setCurrentItem(0);
167
}
73
168
169
void ManagerModule::rememberSettings()
170
{
171
	QObjectList *options = view->queryList(0, "^option_");
172
	QObject *current = 0;
173
	QObjectListIterator it(*options);
174
175
	settings.clear();	
176
	while ( (current = it.current()) != 0 ) {
177
	    if (current->isA("QCheckBox"))
178
		settings[current] = ((QCheckBox *)current)->state();
179
	    else if (current->isA("QComboBox"))
180
		settings[current] = ((QComboBox *)current)->currentItem();
181
	    ++it;	
182
	}
183
	delete options;
184
185
}
186
187
void ManagerModule::emitChanged()
188
{
189
	QObjectList *options = view->queryList(0, "^option_");
190
	QObject *current = 0;
191
	QObjectListIterator it(*options);
192
	int value = -1;
193
	bool somethingChanged = false;
194
	
195
	while ( (current = it.current()) != 0 ) {
196
	    if (current->isA("QCheckBox"))
197
		value = ((QCheckBox *)current)->state();
198
	    else if (current->isA("QComboBox"))
199
		value = ((QComboBox *)current)->currentItem();
200
		
201
	    if (settings[current] != value) {
202
		somethingChanged = true;
203
		break;
204
	    }
205
	    
206
	    ++it;	
207
	}
208
	delete options;
209
210
	emit changed(somethingChanged);
211
}
212
74
#include "managermodule.moc"
213
#include "managermodule.moc"
(-)kdebase/kioslave/media/kcmodule/main.cpp (+1 lines)
Lines 67-72 Link Here
67
	                                    I18N_NOOP("(c) 2005 Jean-Remy Falleri"));
67
	                                    I18N_NOOP("(c) 2005 Jean-Remy Falleri"));
68
	about->addAuthor("Jean-Remy Falleri", I18N_NOOP("Maintainer"), "jr.falleri@laposte.net");
68
	about->addAuthor("Jean-Remy Falleri", I18N_NOOP("Maintainer"), "jr.falleri@laposte.net");
69
	about->addAuthor("Kevin Ottens", 0, "ervin ipsquad net");
69
	about->addAuthor("Kevin Ottens", 0, "ervin ipsquad net");
70
	about->addAuthor("Valentine Sinitsyn", 0, "e_val@inbox.ru");
70
	about->addCredit("Achim Bohnet", I18N_NOOP("Help for the application design"));
71
	about->addCredit("Achim Bohnet", I18N_NOOP("Help for the application design"));
71
72
72
	setAboutData( about );
73
	setAboutData( about );
(-)kdebase/kioslave/media/kcmodule/managermodule.h (+15 lines)
Lines 1-5 Link Here
1
/* This file is part of the KDE Project
1
/* This file is part of the KDE Project
2
   Copyright (c) 2005 Kévin Ottens <ervin ipsquad net>
2
   Copyright (c) 2005 Kévin Ottens <ervin ipsquad net>
3
   Copyright (c) 2006 Valentine Sinitsyn <e_val@inbox.ru>
3
4
4
   This library is free software; you can redistribute it and/or
5
   This library is free software; you can redistribute it and/or
5
   modify it under the terms of the GNU Library General Public
6
   modify it under the terms of the GNU Library General Public
Lines 19-26 Link Here
19
#ifndef _MANAGERMODULE_H_
20
#ifndef _MANAGERMODULE_H_
20
#define _MANAGERMODULE_H_
21
#define _MANAGERMODULE_H_
21
22
23
#include <tqmap.h>
22
#include <kcmodule.h>
24
#include <kcmodule.h>
23
25
26
class ManagerModuleView;
27
24
class ManagerModule : public KCModule
28
class ManagerModule : public KCModule
25
{
29
{
26
	Q_OBJECT
30
	Q_OBJECT
Lines 28-34 Link Here
28
public:
32
public:
29
	ManagerModule( TQWidget* parent = 0, const char* name = 0);
33
	ManagerModule( TQWidget* parent = 0, const char* name = 0);
30
34
35
	void load();
31
	void save();
36
	void save();
37
	void defaults();
38
	
39
private:
40
	void rememberSettings();
41
42
	ManagerModuleView *view;
43
	TQMap<TQObject *, int> settings;
44
	
45
private slots:
46
	void emitChanged();	
32
};
47
};
33
48
34
#endif
49
#endif
(-)kdebase/kioslave/media/kcmodule/managermoduleview.ui.h (+18 lines)
Line 0 Link Here
1
/****************************************************************************
2
** ui.h extension file, included from the uic-generated form implementation.
3
**
4
** If you want to add, delete, or rename functions or slots, use
5
** Qt Designer to update this file, preserving your code.
6
**
7
** You should not define a constructor or destructor in this file.
8
** Instead, write your code in functions called init() and destroy().
9
** These will automatically be called by the form's constructor and
10
** destructor.
11
*****************************************************************************/
12
13
void ManagerModuleView::init() 
14
{
15
    option_flush->setNoChange();
16
    option_sync->setNoChange();
17
    option_atime->setNoChange();
18
}
(-)kdebase/kioslave/media/propsdlgplugin/propertiespage.cpp (-1 / +13 lines)
Lines 140-151 Link Here
140
    option_automount->setChecked(options["automount"] == "true");
140
    option_automount->setChecked(options["automount"] == "true");
141
    connect( option_automount, TQT_SIGNAL( stateChanged(int) ), TQT_SIGNAL( changed() ) );
141
    connect( option_automount, TQT_SIGNAL( stateChanged(int) ), TQT_SIGNAL( changed() ) );
142
142
143
    bool has_groupbox_specific = true;
143
    if (!options.contains("journaling") &&
144
    if (!options.contains("journaling") &&
144
	!options.contains("shortname") &&
145
	!options.contains("shortname") &&
145
	!options.contains("uid") &&
146
	!options.contains("uid") &&
146
	!options.contains("utf8") &&
147
	!options.contains("utf8") &&
147
	!options.contains("flush"))
148
	!options.contains("flush")) {
148
      groupbox_specific->hide();
149
      groupbox_specific->hide();
150
      has_groupbox_specific = false;
151
    }
152
153
    // The order is important - we want groupboxes to hide automatically depending on use_defaults
154
    // but don't want to emit changed() until user actually changes something.
155
    connect( option_defaults, TQT_SIGNAL( toggled(bool) ), groupbox_generic, SLOT( setHidden(bool) ) );
156
    if (has_groupbox_specific)
157
      connect( option_defaults, TQT_SIGNAL( toggled(bool) ), groupbox_specific, SLOT( setHidden(bool) ) );
158
    option_defaults->setChecked(options["use_defaults"] == "true");
159
    connect( option_defaults, TQT_SIGNAL( stateChanged(int) ), TQT_SIGNAL( changed() ) );    
149
160
150
  } else {
161
  } else {
151
162
Lines 198-203 Link Here
198
    }
210
    }
199
  result << TQString("mountpoint=%1").arg(mp);
211
  result << TQString("mountpoint=%1").arg(mp);
200
  result << TQString("automount=%1").arg(option_automount->isChecked() ? "true" : "false");
212
  result << TQString("automount=%1").arg(option_automount->isChecked() ? "true" : "false");
213
  result << TQString("use_defaults=%1").arg(option_defaults->isChecked() ? "true" : "false");
201
214
202
  kdDebug() << result << endl;
215
  kdDebug() << result << endl;
203
216
(-)kdebase/kioslave/media/propsdlgplugin/propertiespagegui.ui (-246 / +244 lines)
Lines 8-214 Link Here
8
        <rect>
8
        <rect>
9
            <x>0</x>
9
            <x>0</x>
10
            <y>0</y>
10
            <y>0</y>
11
            <width>527</width>
11
            <width>219</width>
12
            <height>476</height>
12
            <height>446</height>
13
        </rect>
13
        </rect>
14
    </property>
14
    </property>
15
    <hbox>
15
    <property name="caption">
16
        <string>PropertiesPageGUI</string>
17
    </property>
18
    <vbox>
16
        <property name="name">
19
        <property name="name">
17
            <cstring>unnamed</cstring>
20
            <cstring>unnamed</cstring>
18
        </property>
21
        </property>
19
        <property name="margin">
22
        <widget class="TQCheckBox">
20
            <number>0</number>
21
        </property>
22
        <widget class="TQLayoutWidget">
23
            <property name="name">
23
            <property name="name">
24
                <cstring>layout17</cstring>
24
                <cstring>option_defaults</cstring>
25
            </property>
25
            </property>
26
            <property name="text">
27
                <string>Use default mount options</string>
28
            </property>
29
        </widget>
30
        <widget class="TQGroupBox">
31
            <property name="name">
32
                <cstring>groupbox_generic</cstring>
33
            </property>
34
            <property name="title">
35
                <string>Generic Mount Options</string>
36
            </property>
26
            <vbox>
37
            <vbox>
27
                <property name="name">
38
                <property name="name">
28
                    <cstring>unnamed</cstring>
39
                    <cstring>unnamed</cstring>
29
                </property>
40
                </property>
30
                <widget class="TQGroupBox">
41
                <widget class="TQLayoutWidget">
31
                    <property name="name">
42
                    <property name="name">
32
                        <cstring>groupbox_generic</cstring>
43
                        <cstring>layout15</cstring>
33
                    </property>
44
                    </property>
34
                    <property name="title">
35
                        <string>Generic Mount Options</string>
36
                    </property>
37
                    <vbox>
45
                    <vbox>
38
                        <property name="name">
46
                        <property name="name">
39
                            <cstring>unnamed</cstring>
47
                            <cstring>unnamed</cstring>
40
                        </property>
48
                        </property>
49
                        <widget class="TQCheckBox">
50
                            <property name="name">
51
                                <cstring>option_ro</cstring>
52
                            </property>
53
                            <property name="text">
54
                                <string>Read only</string>
55
                            </property>
56
                            <property name="whatsThis" stdset="0">
57
                                <string>Mount the file system read-only.</string>
58
                            </property>
59
                        </widget>
60
                        <widget class="TQCheckBox">
61
                            <property name="name">
62
                                <cstring>option_quiet</cstring>
63
                            </property>
64
                            <property name="text">
65
                                <string>Quiet</string>
66
                            </property>
67
                            <property name="whatsThis" stdset="0">
68
                                <string>Attempts to chown or chmod files do not return errors, although they fail. Use with caution!</string>
69
                            </property>
70
                        </widget>
71
                        <widget class="TQCheckBox">
72
                            <property name="name">
73
                                <cstring>option_sync</cstring>
74
                            </property>
75
                            <property name="text">
76
                                <string>Synchronous</string>
77
                            </property>
78
                            <property name="whatsThis" stdset="0">
79
                                <string>All I/O to the file system should be done synchronously.</string>
80
                            </property>
81
                        </widget>
82
                        <widget class="TQCheckBox">
83
                            <property name="name">
84
                                <cstring>option_atime</cstring>
85
                            </property>
86
                            <property name="text">
87
                                <string>Access time updates</string>
88
                            </property>
89
                            <property name="whatsThis" stdset="0">
90
                                <string>Update inode access time for each access.</string>
91
                            </property>
92
                        </widget>
41
                        <widget class="TQLayoutWidget">
93
                        <widget class="TQLayoutWidget">
42
                            <property name="name">
94
                            <property name="name">
43
                                <cstring>layout15</cstring>
95
                                <cstring>layout14</cstring>
44
                            </property>
96
                            </property>
45
                            <vbox>
97
                            <hbox>
46
                                <property name="name">
98
                                <property name="name">
47
                                    <cstring>unnamed</cstring>
99
                                    <cstring>unnamed</cstring>
48
                                </property>
100
                                </property>
49
                                <widget class="TQCheckBox">
101
                                <widget class="TQLabel">
50
                                    <property name="name">
102
                                    <property name="name">
51
                                        <cstring>option_ro</cstring>
103
                                        <cstring>textLabel3</cstring>
52
                                    </property>
104
                                    </property>
53
                                    <property name="text">
105
                                    <property name="text">
54
                                        <string>Read only</string>
106
                                        <string>Mountpoint:</string>
55
                                    </property>
107
                                    </property>
56
                                    <property name="whatsThis" stdset="0">
108
                                    <property name="buddy" stdset="0">
57
                                        <string>Mount the file system read-only.</string>
109
                                        <cstring>option_mountpoint</cstring>
58
                                    </property>
110
                                    </property>
59
                                </widget>
60
                                <widget class="TQCheckBox">
61
                                    <property name="name">
62
                                        <cstring>option_quiet</cstring>
63
                                    </property>
64
                                    <property name="text">
65
                                        <string>Quiet</string>
66
                                    </property>
67
                                    <property name="whatsThis" stdset="0">
111
                                    <property name="whatsThis" stdset="0">
68
                                        <string>Attempts to chown or chmod files do not return errors, although they fail. Use with caution!</string>
112
                                        <string>Under what directory this file system shall be mounted. Please note that there is no guarantee that the system will respect your wish. For one the directory has to be below /media - and it does not yet have to exist.</string>
69
                                    </property>
113
                                    </property>
70
                                </widget>
114
                                </widget>
71
                                <widget class="TQCheckBox">
115
                                <widget class="TQLineEdit">
72
                                    <property name="name">
116
                                    <property name="name">
73
                                        <cstring>option_sync</cstring>
117
                                        <cstring>option_mountpoint</cstring>
74
                                    </property>
118
                                    </property>
75
                                    <property name="text">
119
                                    <property name="text">
76
                                        <string>Synchronous</string>
120
                                        <string></string>
77
                                    </property>
121
                                    </property>
78
                                    <property name="whatsThis" stdset="0">
79
                                        <string>All I/O to the file system should be done synchronously.</string>
80
                                    </property>
81
                                </widget>
122
                                </widget>
82
                                <widget class="TQCheckBox">
123
                            </hbox>
83
                                    <property name="name">
84
                                        <cstring>option_atime</cstring>
85
                                    </property>
86
                                    <property name="text">
87
                                        <string>Access time updates</string>
88
                                    </property>
89
                                    <property name="whatsThis" stdset="0">
90
                                        <string>Update inode access time for each access.</string>
91
                                    </property>
92
                                </widget>
93
                                <widget class="TQLayoutWidget">
94
                                    <property name="name">
95
                                        <cstring>layout14</cstring>
96
                                    </property>
97
                                    <hbox>
98
                                        <property name="name">
99
                                            <cstring>unnamed</cstring>
100
                                        </property>
101
                                        <widget class="TQLabel">
102
                                            <property name="name">
103
                                                <cstring>textLabel3</cstring>
104
                                            </property>
105
                                            <property name="text">
106
                                                <string>Mountpoint:</string>
107
                                            </property>
108
                                            <property name="buddy" stdset="0">
109
                                                <cstring>option_mountpoint</cstring>
110
                                            </property>
111
                                            <property name="whatsThis" stdset="0">
112
                                                <string>Under what directory this file system shall be mounted. Please note that there is no guarantee that the system will respect your wish. For one the directory has to be below /media - and it does not yet have to exist.</string>
113
                                            </property>
114
                                        </widget>
115
                                        <widget class="TQLineEdit">
116
                                            <property name="name">
117
                                                <cstring>option_mountpoint</cstring>
118
                                            </property>
119
                                            <property name="text">
120
                                                <string></string>
121
                                            </property>
122
                                        </widget>
123
                                    </hbox>
124
                                </widget>
125
                                <widget class="TQCheckBox">
126
                                    <property name="name">
127
                                        <cstring>option_automount</cstring>
128
                                    </property>
129
                                    <property name="text">
130
                                        <string>Mount automatically</string>
131
                                    </property>
132
                                    <property name="whatsThis" stdset="0">
133
                                        <string>Mount this file system automatically.</string>
134
                                    </property>
135
                                </widget>
136
                            </vbox>
137
                        </widget>
124
                        </widget>
125
                        <widget class="TQCheckBox">
126
                            <property name="name">
127
                                <cstring>option_automount</cstring>
128
                            </property>
129
                            <property name="text">
130
                                <string>Mount automatically</string>
131
                            </property>
132
                            <property name="whatsThis" stdset="0">
133
                                <string>Mount this file system automatically.</string>
134
                            </property>
135
                        </widget>
138
                    </vbox>
136
                    </vbox>
139
                </widget>
137
                </widget>
140
                <widget class="TQGroupBox">
138
            </vbox>
139
        </widget>
140
        <widget class="TQGroupBox">
141
            <property name="name">
142
                <cstring>groupbox_specific</cstring>
143
            </property>
144
            <property name="title">
145
                <string>Filesystem Specific Mount Options</string>
146
            </property>
147
            <vbox>
148
                <property name="name">
149
                    <cstring>unnamed</cstring>
150
                </property>
151
                <widget class="TQLayoutWidget">
141
                    <property name="name">
152
                    <property name="name">
142
                        <cstring>groupbox_specific</cstring>
153
                        <cstring>layout11</cstring>
143
                    </property>
154
                    </property>
144
                    <property name="title">
145
                        <string>Filesystem Specific Mount Options</string>
146
                    </property>
147
                    <vbox>
155
                    <vbox>
148
                        <property name="name">
156
                        <property name="name">
149
                            <cstring>unnamed</cstring>
157
                            <cstring>unnamed</cstring>
150
                        </property>
158
                        </property>
159
                        <widget class="TQCheckBox">
160
                            <property name="name">
161
                                <cstring>option_flush</cstring>
162
                            </property>
163
                            <property name="text">
164
                                <string>Flushed IO</string>
165
                            </property>
166
                            <property name="whatsThis" stdset="0">
167
                                <string>Always flush all data to the hot plug devices immediately and don't cache it.</string>
168
                            </property>
169
                        </widget>
170
                        <widget class="TQCheckBox">
171
                            <property name="name">
172
                                <cstring>option_utf8</cstring>
173
                            </property>
174
                            <property name="text">
175
                                <string>UTF-8 charset</string>
176
                            </property>
177
                            <property name="whatsThis" stdset="0">
178
                                <string>UTF8 is the filesystem safe 8-bit encoding of Unicode that is used by the console. It can be be enabled for the filesystem with this option.</string>
179
                            </property>
180
                        </widget>
181
                        <widget class="TQCheckBox">
182
                            <property name="name">
183
                                <cstring>option_uid</cstring>
184
                            </property>
185
                            <property name="text">
186
                                <string>Mount as user</string>
187
                            </property>
188
                            <property name="whatsThis" stdset="0">
189
                                <string>Mount this file system as user.</string>
190
                            </property>
191
                        </widget>
151
                        <widget class="TQLayoutWidget">
192
                        <widget class="TQLayoutWidget">
152
                            <property name="name">
193
                            <property name="name">
153
                                <cstring>layout11</cstring>
194
                                <cstring>layout7</cstring>
154
                            </property>
195
                            </property>
155
                            <vbox>
196
                            <hbox>
156
                                <property name="name">
197
                                <property name="name">
157
                                    <cstring>unnamed</cstring>
198
                                    <cstring>unnamed</cstring>
158
                                </property>
199
                                </property>
159
                                <widget class="TQCheckBox">
200
                                <widget class="TQLabel">
160
                                    <property name="name">
201
                                    <property name="name">
161
                                        <cstring>option_flush</cstring>
202
                                        <cstring>text_journaling</cstring>
162
                                    </property>
203
                                    </property>
163
                                    <property name="text">
204
                                    <property name="text">
164
                                        <string>Flushed IO</string>
205
                                        <string>Journaling:</string>
165
                                    </property>
206
                                    </property>
166
                                    <property name="whatsThis" stdset="0">
207
                                    <property name="buddy" stdset="0">
167
                                        <string>Always flush all data to the hot plug devices immediately and don't cache it.</string>
208
                                        <cstring>option_journaling</cstring>
168
                                    </property>
209
                                    </property>
169
                                </widget>
170
                                <widget class="TQCheckBox">
171
                                    <property name="name">
172
                                        <cstring>option_utf8</cstring>
173
                                    </property>
174
                                    <property name="text">
175
                                        <string>UTF-8 charset</string>
176
                                    </property>
177
                                    <property name="whatsThis" stdset="0">
210
                                    <property name="whatsThis" stdset="0">
178
                                        <string>UTF8 is the filesystem safe 8-bit encoding of Unicode that is used by the console. It can be be enabled for the filesystem with this option.</string>
211
                                        <string>&lt;h2&gt;Specifies  the journalling mode for file data. Metadata is always journaled. &lt;/h2&gt;
179
                                    </property>
180
                                </widget>
181
                                <widget class="TQCheckBox">
182
                                    <property name="name">
183
                                        <cstring>option_uid</cstring>
184
                                    </property>
185
                                    <property name="text">
186
                                        <string>Mount as user</string>
187
                                    </property>
188
                                    <property name="whatsThis" stdset="0">
189
                                        <string>Mount this file system as user.</string>
190
                                    </property>
191
                                </widget>
192
                                <widget class="TQLayoutWidget">
193
                                    <property name="name">
194
                                        <cstring>layout7</cstring>
195
                                    </property>
196
                                    <hbox>
197
                                        <property name="name">
198
                                            <cstring>unnamed</cstring>
199
                                        </property>
200
                                        <widget class="TQLabel">
201
                                            <property name="name">
202
                                                <cstring>text_journaling</cstring>
203
                                            </property>
204
                                            <property name="text">
205
                                                <string>Journaling:</string>
206
                                            </property>
207
                                            <property name="buddy" stdset="0">
208
                                                <cstring>option_journaling</cstring>
209
                                            </property>
210
                                            <property name="whatsThis" stdset="0">
211
                                                <string>&lt;h2&gt;Specifies  the journalling mode for file data. Metadata is always journaled. &lt;/h2&gt;
212
           
212
           
213
&lt;h3&gt;&lt;b&gt;All Data&lt;/b&gt;&lt;/h3&gt;
213
&lt;h3&gt;&lt;b&gt;All Data&lt;/b&gt;&lt;/h3&gt;
214
           All  data  is  committed into the journal prior to being written into the main file system. This is the slowest variant with the highest data security.
214
           All  data  is  committed into the journal prior to being written into the main file system. This is the slowest variant with the highest data security.
Lines 218-246 Link Here
218
218
219
&lt;h3&gt;&lt;b&gt;Write Back&lt;/b&gt;&lt;/h3&gt;
219
&lt;h3&gt;&lt;b&gt;Write Back&lt;/b&gt;&lt;/h3&gt;
220
           Data ordering is not preserved - data may be written into the main file system after its metadata has been committed to the journal.  This is rumoured to  be the  highest-throughput option.  It guarantees internal file system integrity,  however it can allow old data to appear in files after  a  crash  and  journal recovery.</string>
220
           Data ordering is not preserved - data may be written into the main file system after its metadata has been committed to the journal.  This is rumoured to  be the  highest-throughput option.  It guarantees internal file system integrity,  however it can allow old data to appear in files after  a  crash  and  journal recovery.</string>
221
                                            </property>
221
                                    </property>
222
                                        </widget>
222
                                </widget>
223
                                        <widget class="TQComboBox">
223
                                <widget class="TQComboBox">
224
                                            <item>
224
                                    <item>
225
                                                <property name="text">
225
                                        <property name="text">
226
                                                    <string>All Data</string>
226
                                            <string>All Data</string>
227
                                                </property>
227
                                        </property>
228
                                            </item>
228
                                    </item>
229
                                            <item>
229
                                    <item>
230
                                                <property name="text">
230
                                        <property name="text">
231
                                                    <string>Ordered</string>
231
                                            <string>Ordered</string>
232
                                                </property>
232
                                        </property>
233
                                            </item>
233
                                    </item>
234
                                            <item>
234
                                    <item>
235
                                                <property name="text">
235
                                        <property name="text">
236
                                                    <string>Write Back</string>
236
                                            <string>Write Back</string>
237
                                                </property>
237
                                        </property>
238
                                            </item>
238
                                    </item>
239
                                            <property name="name">
239
                                    <property name="name">
240
                                                <cstring>option_journaling</cstring>
240
                                        <cstring>option_journaling</cstring>
241
                                            </property>
241
                                    </property>
242
                                            <property name="whatsThis" stdset="0">
242
                                    <property name="whatsThis" stdset="0">
243
                                                <string>&lt;h2&gt;Specifies  the journalling mode for file data. Metadata is always journaled. &lt;/h2&gt;
243
                                        <string>&lt;h2&gt;Specifies  the journalling mode for file data. Metadata is always journaled. &lt;/h2&gt;
244
           
244
           
245
&lt;h3&gt;&lt;b&gt;All Data&lt;/b&gt;&lt;/h3&gt;
245
&lt;h3&gt;&lt;b&gt;All Data&lt;/b&gt;&lt;/h3&gt;
246
           All  data  is  committed into the journal prior to being written into the main file system. This is the slowest variant with the highest data security.
246
           All  data  is  committed into the journal prior to being written into the main file system. This is the slowest variant with the highest data security.
Lines 250-279 Link Here
250
250
251
&lt;h3&gt;&lt;b&gt;Write Back&lt;/b&gt;&lt;/h3&gt;
251
&lt;h3&gt;&lt;b&gt;Write Back&lt;/b&gt;&lt;/h3&gt;
252
           Data ordering is not preserved - data may be written into the main file system after its metadata has been committed to the journal.  This is rumoured to  be the  highest-throughput option.  It guarantees internal file system integrity,  however it can allow old data to appear in files after  a  crash  and  journal recovery.</string>
252
           Data ordering is not preserved - data may be written into the main file system after its metadata has been committed to the journal.  This is rumoured to  be the  highest-throughput option.  It guarantees internal file system integrity,  however it can allow old data to appear in files after  a  crash  and  journal recovery.</string>
253
                                            </property>
253
                                    </property>
254
                                        </widget>
255
                                    </hbox>
256
                                </widget>
254
                                </widget>
257
                                <widget class="TQLayoutWidget">
255
                            </hbox>
256
                        </widget>
257
                        <widget class="TQLayoutWidget">
258
                            <property name="name">
259
                                <cstring>layout14</cstring>
260
                            </property>
261
                            <hbox>
262
                                <property name="name">
263
                                    <cstring>unnamed</cstring>
264
                                </property>
265
                                <widget class="TQLabel">
258
                                    <property name="name">
266
                                    <property name="name">
259
                                        <cstring>layout14</cstring>
267
                                        <cstring>text_shortname</cstring>
260
                                    </property>
268
                                    </property>
261
                                    <hbox>
269
                                    <property name="text">
262
                                        <property name="name">
270
                                        <string>Short names:</string>
263
                                            <cstring>unnamed</cstring>
271
                                    </property>
264
                                        </property>
272
                                    <property name="buddy" stdset="0">
265
                                        <widget class="TQLabel">
273
                                        <cstring>option_shortname</cstring>
266
                                            <property name="name">
274
                                    </property>
267
                                                <cstring>text_shortname</cstring>
275
                                    <property name="whatsThis" stdset="0">
268
                                            </property>
276
                                        <string>&lt;h2&gt;Defines  the  behaviour  for  creation and display of filenames which fit into 8.3 characters. If a long name for a file exists, it will always be preferred display.&lt;/h2&gt;
269
                                            <property name="text">
270
                                                <string>Short names:</string>
271
                                            </property>
272
                                            <property name="buddy" stdset="0">
273
                                                <cstring>option_shortname</cstring>
274
                                            </property>
275
                                            <property name="whatsThis" stdset="0">
276
                                                <string>&lt;h2&gt;Defines  the  behaviour  for  creation and display of filenames which fit into 8.3 characters. If a long name for a file exists, it will always be preferred display.&lt;/h2&gt;
277
277
278
&lt;h3&gt;&lt;b&gt;Lower&lt;/b&gt;&lt;/h3&gt;
278
&lt;h3&gt;&lt;b&gt;Lower&lt;/b&gt;&lt;/h3&gt;
279
Force the short name to lower case upon display; store a long name when the short name is not all upper case.
279
Force the short name to lower case upon display; store a long name when the short name is not all upper case.
Lines 286-319 Link Here
286
286
287
&lt;h3&gt;&lt;b&gt;Mixed&lt;/b&gt;&lt;/h3&gt;
287
&lt;h3&gt;&lt;b&gt;Mixed&lt;/b&gt;&lt;/h3&gt;
288
Display the short name as is; store a long name when the short name is not all upper case.</string>
288
Display the short name as is; store a long name when the short name is not all upper case.</string>
289
                                            </property>
289
                                    </property>
290
                                        </widget>
290
                                </widget>
291
                                        <widget class="TQComboBox">
291
                                <widget class="TQComboBox">
292
                                            <item>
292
                                    <item>
293
                                                <property name="text">
293
                                        <property name="text">
294
                                                    <string>Lower</string>
294
                                            <string>Lower</string>
295
                                                </property>
295
                                        </property>
296
                                            </item>
296
                                    </item>
297
                                            <item>
297
                                    <item>
298
                                                <property name="text">
298
                                        <property name="text">
299
                                                    <string>Windows 95</string>
299
                                            <string>Windows 95</string>
300
                                                </property>
300
                                        </property>
301
                                            </item>
301
                                    </item>
302
                                            <item>
302
                                    <item>
303
                                                <property name="text">
303
                                        <property name="text">
304
                                                    <string>Windows NT</string>
304
                                            <string>Windows NT</string>
305
                                                </property>
305
                                        </property>
306
                                            </item>
306
                                    </item>
307
                                            <item>
307
                                    <item>
308
                                                <property name="text">
308
                                        <property name="text">
309
                                                    <string>Mixed</string>
309
                                            <string>Mixed</string>
310
                                                </property>
310
                                        </property>
311
                                            </item>
311
                                    </item>
312
                                            <property name="name">
312
                                    <property name="name">
313
                                                <cstring>option_shortname</cstring>
313
                                        <cstring>option_shortname</cstring>
314
                                            </property>
314
                                    </property>
315
                                            <property name="whatsThis" stdset="0">
315
                                    <property name="whatsThis" stdset="0">
316
                                                <string>&lt;h2&gt;Defines  the  behaviour  for  creation and display of filenames which fit into 8.3 characters. If a long name for a file exists, it will always be preferred display.&lt;/h2&gt;
316
                                        <string>&lt;h2&gt;Defines  the  behaviour  for  creation and display of filenames which fit into 8.3 characters. If a long name for a file exists, it will always be preferred display.&lt;/h2&gt;
317
317
318
&lt;h3&gt;&lt;b&gt;Lower&lt;/b&gt;&lt;/h3&gt;
318
&lt;h3&gt;&lt;b&gt;Lower&lt;/b&gt;&lt;/h3&gt;
319
Force the short name to lower case upon display; store a long name when the short name is not all upper case.
319
Force the short name to lower case upon display; store a long name when the short name is not all upper case.
Lines 326-367 Link Here
326
326
327
&lt;h3&gt;&lt;b&gt;Mixed&lt;/b&gt;&lt;/h3&gt;
327
&lt;h3&gt;&lt;b&gt;Mixed&lt;/b&gt;&lt;/h3&gt;
328
Display the short name as is; store a long name when the short name is not all upper case.</string>
328
Display the short name as is; store a long name when the short name is not all upper case.</string>
329
                                            </property>
329
                                    </property>
330
                                        </widget>
331
                                    </hbox>
332
                                </widget>
330
                                </widget>
333
                            </vbox>
331
                            </hbox>
334
                        </widget>
332
                        </widget>
335
                    </vbox>
333
                    </vbox>
336
                </widget>
334
                </widget>
337
                <widget class="TQLabel">
338
                    <property name="name">
339
                        <cstring>label_filesystem</cstring>
340
                    </property>
341
                    <property name="text">
342
                        <string>Filesystem: iso9660</string>
343
                    </property>
344
                </widget>
345
                <spacer>
346
                    <property name="name">
347
                        <cstring>spacer1</cstring>
348
                    </property>
349
                    <property name="orientation">
350
                        <enum>Vertical</enum>
351
                    </property>
352
                    <property name="sizeType">
353
                        <enum>Expanding</enum>
354
                    </property>
355
                    <property name="tqsizeHint">
356
                        <size>
357
                            <width>20</width>
358
                            <height>20</height>
359
                        </size>
360
                    </property>
361
                </spacer>
362
            </vbox>
335
            </vbox>
363
        </widget>
336
        </widget>
364
    </hbox>
337
        <widget class="TQLabel">
338
            <property name="name">
339
                <cstring>label_filesystem</cstring>
340
            </property>
341
            <property name="text">
342
                <string>Filesystem: iso9660</string>
343
            </property>
344
        </widget>
345
        <spacer>
346
            <property name="name">
347
                <cstring>spacer1</cstring>
348
            </property>
349
            <property name="orientation">
350
                <enum>Vertical</enum>
351
            </property>
352
            <property name="sizeType">
353
                <enum>Expanding</enum>
354
            </property>
355
            <property name="tqsizeHint">
356
                <size>
357
                    <width>20</width>
358
                    <height>20</height>
359
                </size>
360
            </property>
361
        </spacer>
362
    </vbox>
365
</widget>
363
</widget>
366
<connections>
364
<connections>
367
    <connection>
365
    <connection>
(-)kdebase/kioslave/media/mediamanager/halbackend.cpp (-8 / +27 lines)
Lines 1-5 Link Here
1
/* This file is part of the KDE Project
1
/* This file is part of the KDE Project
2
   Copyright (c) 2004-2005 Jérôme Lodewyck <jerome dot lodewyck at normalesup dot org>
2
   Copyright (c) 2004-2005 Jérôme Lodewyck <jerome dot lodewyck at normalesup dot org>
3
   Copyright (c) 2006 Valentine Sinitsyn <e_val@inbox.ru>
3
4
4
   This library is free software; you can redistribute it and/or
5
   This library is free software; you can redistribute it and/or
5
   modify it under the terms of the GNU Library General Public
6
   modify it under the terms of the GNU Library General Public
Lines 56-64 Link Here
56
{
57
{
57
    char*   _ppt_string;
58
    char*   _ppt_string;
58
    TQString _ppt_QString;
59
    TQString _ppt_QString;
59
    DBusError error;
60
    _ppt_string = libhal_device_get_property_string(ctx, udi, key, NULL);
60
    dbus_error_init(&error);
61
    _ppt_string = libhal_device_get_property_string(ctx, udi, key, &error);
62
    if ( _ppt_string )
61
    if ( _ppt_string )
63
        _ppt_QString = _ppt_string;
62
        _ppt_QString = _ppt_string;
64
    libhal_free_string(_ppt_string);
63
    libhal_free_string(_ppt_string);
Lines 929-935 Link Here
929
    }
928
    }
930
929
931
    KConfig config("mediamanagerrc");
930
    KConfig config("mediamanagerrc");
932
    config.setGroup(name);
931
    
932
    bool use_defaults = true;    
933
    if (config.hasGroup(name)) 
934
    {
935
	config.setGroup(name);
936
	use_defaults = config.readBoolEntry("use_defaults", false);
937
    }
938
    
939
    if (use_defaults)
940
	config.setGroup("DefaultOptions");    
933
941
934
    char ** array = libhal_device_get_property_strlist(m_halContext, volume_udi.latin1(), "volume.mount.valid_options", NULL);
942
    char ** array = libhal_device_get_property_strlist(m_halContext, volume_udi.latin1(), "volume.mount.valid_options", NULL);
935
    TQMap<TQString,bool> valids;
943
    TQMap<TQString,bool> valids;
Lines 944-949 Link Here
944
    libhal_free_string_array(array);
952
    libhal_free_string_array(array);
945
    TQStringList result;
953
    TQStringList result;
946
    TQString tmp;
954
    TQString tmp;
955
    
956
    result << TQString("use_defaults=%1").arg(use_defaults ? "true" : "false");    
947
957
948
    TQString fstype = libhal_device_get_property_QString(m_halContext, volume_udi.latin1(), "volume.fstype");
958
    TQString fstype = libhal_device_get_property_QString(m_halContext, volume_udi.latin1(), "volume.fstype");
949
    if (fstype.isNull())
959
    if (fstype.isNull())
Lines 956-964 Link Here
956
        removable = libhal_device_get_property_bool(m_halContext, drive_udi.latin1(), "storage.removable", NULL)
966
        removable = libhal_device_get_property_bool(m_halContext, drive_udi.latin1(), "storage.removable", NULL)
957
                     || libhal_device_get_property_bool(m_halContext, drive_udi.latin1(), "storage.hotpluggable", NULL);
967
                     || libhal_device_get_property_bool(m_halContext, drive_udi.latin1(), "storage.hotpluggable", NULL);
958
968
959
    config.setGroup(drive_udi);
969
    bool value;
960
    bool value = config.readBoolEntry("automount", false);
970
    if (use_defaults)
961
    config.setGroup(name);
971
    {
972
	value = config.readBoolEntry("automount", false);
973
    }
974
    else
975
    {
976
	QString current_group = config.group();
977
	config.setGroup(drive_udi);
978
	value = config.readBoolEntry("automount", false);
979
	config.setGroup(current_group);
980
    }
962
981
963
    if (libhal_device_get_property_bool(m_halContext, volume_udi.latin1(), "volume.disc.is_blank", NULL)
982
    if (libhal_device_get_property_bool(m_halContext, volume_udi.latin1(), "volume.disc.is_blank", NULL)
964
        || libhal_device_get_property_bool(m_halContext, volume_udi.latin1(), "volume.disc.is_vcd", NULL)
983
        || libhal_device_get_property_bool(m_halContext, volume_udi.latin1(), "volume.disc.is_vcd", NULL)
Lines 1083-1089 Link Here
1083
1099
1084
    TQMap<TQString,TQString> valids = MediaManagerUtils::splitOptions(options);
1100
    TQMap<TQString,TQString> valids = MediaManagerUtils::splitOptions(options);
1085
1101
1086
    const char *names[] = { "ro", "quiet", "atime", "uid", "utf8", "flush", "sync", 0 };
1102
    const char *names[] = { "use_defaults", "ro", "quiet", "atime", "uid", "utf8", "flush", "sync", 0 };
1087
    for (int index = 0; names[index]; ++index)
1103
    for (int index = 0; names[index]; ++index)
1088
        if (valids.contains(names[index]))
1104
        if (valids.contains(names[index]))
1089
            config.writeEntry(names[index], valids[names[index]] == "true");
1105
            config.writeEntry(names[index], valids[names[index]] == "true");

Return to bug 986