]> git.sesse.net Git - kdenlive/blob - src/kdenlivesettingsdialog.cpp
[PATCH 1/2] Kill a bunch of unused member variables
[kdenlive] / src / kdenlivesettingsdialog.cpp
1 /***************************************************************************
2  *   Copyright (C) 2008 by Jean-Baptiste Mardelle (jb@kdenlive.org)        *
3  *                                                                         *
4  *   This program is free software; you can redistribute it and/or modify  *
5  *   it under the terms of the GNU General Public License as published by  *
6  *   the Free Software Foundation; either version 2 of the License, or     *
7  *   (at your option) any later version.                                   *
8  *                                                                         *
9  *   This program is distributed in the hope that it will be useful,       *
10  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12  *   GNU General Public License for more details.                          *
13  *                                                                         *
14  *   You should have received a copy of the GNU General Public License     *
15  *   along with this program; if not, write to the                         *
16  *   Free Software Foundation, Inc.,                                       *
17  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
18  ***************************************************************************/
19
20 #include "kdenlivesettingsdialog.h"
21 #include "profilesdialog.h"
22 #include "kdenlivesettings.h"
23
24 #include <KStandardDirs>
25 #include <KDebug>
26 #include <kopenwithdialog.h>
27 #include <KConfigDialogManager>
28 #include <kde_file.h>
29 #include <KIO/NetAccess>
30
31 #include <QDir>
32 #include <QTimer>
33
34 #include <stdlib.h>
35 #include <stdio.h>
36 #include <unistd.h>
37 #include <fcntl.h>
38 #ifndef NO_JOGSHUTTLE
39 #include <linux/input.h>
40 #endif /* NO_JOGSHUTTLE */
41
42
43 KdenliveSettingsDialog::KdenliveSettingsDialog(QWidget * parent) :
44         KConfigDialog(parent, "settings", KdenliveSettings::self())
45 {
46
47     QWidget *p1 = new QWidget;
48     m_configMisc.setupUi(p1);
49     page1 = addPage(p1, i18n("Misc"), "configure");
50
51     // Hide multi tab option until Kdenlive really supports it
52     m_configMisc.kcfg_activatetabs->setVisible(false);
53
54     QWidget *p3 = new QWidget;
55     m_configDisplay.setupUi(p3);
56     page3 = addPage(p3, i18n("Display"), "video-display");
57
58     QWidget *p2 = new QWidget;
59     m_configEnv.setupUi(p2);
60     m_configEnv.mltpathurl->setMode(KFile::Directory);
61     m_configEnv.mltpathurl->lineEdit()->setObjectName("kcfg_mltpath");
62     m_configEnv.rendererpathurl->lineEdit()->setObjectName("kcfg_rendererpath");
63     m_configEnv.tmppathurl->setMode(KFile::Directory);
64     m_configEnv.tmppathurl->lineEdit()->setObjectName("kcfg_currenttmpfolder");
65     m_configEnv.projecturl->setMode(KFile::Directory);
66     m_configEnv.projecturl->lineEdit()->setObjectName("kcfg_defaultprojectfolder");
67     m_configEnv.capturefolderurl->setMode(KFile::Directory);
68     m_configEnv.capturefolderurl->lineEdit()->setObjectName("kcfg_capturefolder");
69     page2 = addPage(p2, i18n("Environment"), "terminal");
70
71     QWidget *p4 = new QWidget;
72     m_configCapture.setupUi(p4);
73     page4 = addPage(p4, i18n("Capture"), "audio-card");
74     m_configCapture.tabWidget->setCurrentIndex(KdenliveSettings::defaultcapture());
75
76     QWidget *p5 = new QWidget;
77     m_configShuttle.setupUi(p5);
78 #ifndef NO_JOGSHUTTLE
79     connect(m_configShuttle.kcfg_enableshuttle, SIGNAL(stateChanged(int)), this, SLOT(slotCheckShuttle(int)));
80     connect(m_configShuttle.shuttledevicelist, SIGNAL(activated(int)), this, SLOT(slotUpdateShuttleDevice(int)));
81     slotCheckShuttle(KdenliveSettings::enableshuttle());
82     m_configShuttle.shuttledisabled->hide();
83 #else
84     m_configShuttle.kcfg_enableshuttle->hide();
85     m_configShuttle.kcfg_enableshuttle->setDisabled(true);
86 #endif /* NO_JOGSHUTTLE */
87     page5 = addPage(p5, i18n("JogShuttle"), "input-mouse");
88
89     QWidget *p6 = new QWidget;
90     m_configSdl.setupUi(p6);
91     page6 = addPage(p6, i18n("Playback"), "audio-card");
92
93     QStringList actions;
94     actions << i18n("Do nothing");
95     actions << i18n("Play / Pause");
96     actions << i18n("Cut");
97     m_configShuttle.kcfg_shuttle1->addItems(actions);
98     m_configShuttle.kcfg_shuttle2->addItems(actions);
99     m_configShuttle.kcfg_shuttle3->addItems(actions);
100     m_configShuttle.kcfg_shuttle4->addItems(actions);
101     m_configShuttle.kcfg_shuttle5->addItems(actions);
102
103     connect(m_configCapture.kcfg_video4vdevice, SIGNAL(editingFinished()), this, SLOT(rebuildVideo4Commands()));
104     connect(m_configCapture.kcfg_video4adevice, SIGNAL(editingFinished()), this, SLOT(rebuildVideo4Commands()));
105     connect(m_configCapture.kcfg_video4vformat, SIGNAL(editingFinished()), this, SLOT(rebuildVideo4Commands()));
106     connect(m_configCapture.kcfg_video4aformat, SIGNAL(editingFinished()), this, SLOT(rebuildVideo4Commands()));
107     connect(m_configCapture.kcfg_video4size, SIGNAL(editingFinished()), this, SLOT(rebuildVideo4Commands()));
108     connect(m_configCapture.kcfg_video4rate, SIGNAL(editingFinished()), this, SLOT(rebuildVideo4Commands()));
109
110     connect(m_configCapture.kcfg_rmd_capture_audio, SIGNAL(clicked(bool)), m_configCapture.audio_group, SLOT(setVisible(bool)));
111
112     m_configCapture.audio_group->setVisible(KdenliveSettings::rmd_capture_audio());
113
114     connect(m_configEnv.kp_image, SIGNAL(clicked()), this, SLOT(slotEditImageApplication()));
115     connect(m_configEnv.kp_audio, SIGNAL(clicked()), this, SLOT(slotEditAudioApplication()));
116     connect(m_configEnv.kp_player, SIGNAL(clicked()), this, SLOT(slotEditVideoApplication()));
117
118     checkProfile();
119
120     slotUpdateDisplay();
121
122     connect(m_configSdl.kcfg_audio_driver, SIGNAL(currentIndexChanged(int)), this, SLOT(slotCheckAlsaDriver()));
123     initDevices();
124     connect(m_configMisc.kcfg_profiles_list, SIGNAL(currentIndexChanged(int)), this, SLOT(slotUpdateDisplay()));
125     connect(m_configCapture.kcfg_rmd_capture_type, SIGNAL(currentIndexChanged(int)), this, SLOT(slotUpdateRmdRegionStatus()));
126
127     slotUpdateRmdRegionStatus();
128
129
130     //HACK: check dvgrab version, because only dvgrab >= 3.3 supports
131     //   --timestamp option without bug
132
133     if (KdenliveSettings::dvgrab_path().isEmpty() || !QFile::exists(KdenliveSettings::dvgrab_path())) {
134         QString dvgrabpath = KStandardDirs::findExe("dvgrab");
135         KdenliveSettings::setDvgrab_path(dvgrabpath);
136     }
137
138
139     double dvgrabVersion = 0;
140     if (!KdenliveSettings::dvgrab_path().isEmpty()) {
141         QProcess *versionCheck = new QProcess;
142         versionCheck->setProcessChannelMode(QProcess::MergedChannels);
143         versionCheck->start("dvgrab", QStringList() << "--version");
144         if (versionCheck->waitForFinished()) {
145             QString version = QString(versionCheck->readAll()).simplified();
146             if (version.contains(' ')) version = version.section(' ', -1);
147             dvgrabVersion = version.toDouble();
148
149             kDebug() << "// FOUND DVGRAB VERSION: " << dvgrabVersion;
150         }
151         delete versionCheck;
152         if (dvgrabVersion < 3.3) {
153             KdenliveSettings::setFirewiretimestamp(false);
154             m_configCapture.kcfg_firewiretimestamp->setEnabled(false);
155         }
156         m_configCapture.dvgrab_info->setText(i18n("dvgrab version %1 at %2", dvgrabVersion, KdenliveSettings::dvgrab_path()));
157     } else m_configCapture.dvgrab_info->setText(i18n("<strong><em>dvgrab</em> utility not found, please install it for firewire capture</strong>"));
158
159     if (KdenliveSettings::rmd_path().isEmpty() || !QFile::exists(KdenliveSettings::rmd_path())) {
160         QString rmdpath = KStandardDirs::findExe("recordmydesktop");
161         KdenliveSettings::setRmd_path(rmdpath);
162     }
163     if (KdenliveSettings::rmd_path().isEmpty()) m_configCapture.rmd_info->setText(i18n("<strong><em>Recordmydesktop</em> utility not found, please install it for screen grabs</strong>"));
164     else m_configCapture.rmd_info->setText(i18n("Recordmydesktop found at: %1", KdenliveSettings::rmd_path()));
165 }
166
167 KdenliveSettingsDialog::~KdenliveSettingsDialog() {}
168
169 void KdenliveSettingsDialog::slotUpdateRmdRegionStatus()
170 {
171     m_configCapture.region_group->setHidden(m_configCapture.kcfg_rmd_capture_type->currentIndex() != 1);
172 }
173
174 void KdenliveSettingsDialog::checkProfile()
175 {
176     m_configMisc.kcfg_profiles_list->clear();
177     QMap <QString, QString> profilesInfo = ProfilesDialog::getProfilesInfo();
178     QMapIterator<QString, QString> i(profilesInfo);
179     while (i.hasNext()) {
180         i.next();
181         m_configMisc.kcfg_profiles_list->addItem(i.key(), i.value());
182     }
183
184     if (!KdenliveSettings::default_profile().isEmpty()) {
185         for (int i = 0; i < m_configMisc.kcfg_profiles_list->count(); i++) {
186             if (m_configMisc.kcfg_profiles_list->itemData(i).toString() == KdenliveSettings::default_profile()) {
187                 m_configMisc.kcfg_profiles_list->setCurrentIndex(i);
188                 KdenliveSettings::setProfiles_list(i);
189                 break;
190             }
191         }
192     }
193 }
194
195 void KdenliveSettingsDialog::initDevices()
196 {
197     // Fill audio drivers
198     m_configSdl.kcfg_audio_driver->addItem(i18n("Automatic"), QString());
199     m_configSdl.kcfg_audio_driver->addItem(i18n("OSS"), "dsp");
200     m_configSdl.kcfg_audio_driver->addItem(i18n("ALSA"), "alsa");
201     m_configSdl.kcfg_audio_driver->addItem(i18n("PulseAudio"), "pulse");
202     m_configSdl.kcfg_audio_driver->addItem(i18n("OSS with DMA access"), "dma");
203     m_configSdl.kcfg_audio_driver->addItem(i18n("Esound daemon"), "esd");
204     m_configSdl.kcfg_audio_driver->addItem(i18n("ARTS daemon"), "artsc");
205
206     if (!KdenliveSettings::audiodrivername().isEmpty())
207         for (int i = 1;i < m_configSdl.kcfg_audio_driver->count(); i++) {
208             if (m_configSdl.kcfg_audio_driver->itemData(i).toString() == KdenliveSettings::audiodrivername()) {
209                 m_configSdl.kcfg_audio_driver->setCurrentIndex(i);
210                 KdenliveSettings::setAudio_driver((uint) i);
211             }
212         }
213
214     // Fill video drivers
215     m_configSdl.kcfg_video_driver->addItem(i18n("Automatic"), QString());
216     m_configSdl.kcfg_video_driver->addItem(i18n("XVideo"), "x11");
217     m_configSdl.kcfg_video_driver->addItem(i18n("X11"), "x11_noaccel");
218     m_configSdl.kcfg_video_driver->addItem(i18n("XFree86 DGA 2.0"), "dga");
219     m_configSdl.kcfg_video_driver->addItem(i18n("Nano X"), "nanox");
220     m_configSdl.kcfg_video_driver->addItem(i18n("Framebuffer console"), "fbcon");
221     m_configSdl.kcfg_video_driver->addItem(i18n("Direct FB"), "directfb");
222     m_configSdl.kcfg_video_driver->addItem(i18n("SVGAlib"), "svgalib");
223     m_configSdl.kcfg_video_driver->addItem(i18n("General graphics interface"), "ggi");
224     m_configSdl.kcfg_video_driver->addItem(i18n("Ascii art library"), "aalib");
225
226     // Fill the list of audio playback devices
227     m_configSdl.kcfg_audio_device->addItem(i18n("Default"), QString());
228     m_configCapture.kcfg_rmd_alsa_device->addItem(i18n("Default"), QString());
229     if (!KStandardDirs::findExe("aplay").isEmpty()) {
230         m_readProcess.setOutputChannelMode(KProcess::OnlyStdoutChannel);
231         m_readProcess.setProgram("aplay", QStringList() << "-l");
232         connect(&m_readProcess, SIGNAL(readyReadStandardOutput()) , this, SLOT(slotReadAudioDevices()));
233         m_readProcess.execute(5000);
234     } else {
235         // If aplay is not installed on the system, parse the /proc/asound/pcm file
236         QFile file("/proc/asound/pcm");
237         if (file.open(QIODevice::ReadOnly)) {
238             QTextStream stream(&file);
239             QString line;
240             QString deviceId;
241             while (!stream.atEnd()) {
242                 line = stream.readLine();
243                 if (line.contains("playback")) {
244                     deviceId = line.section(':', 0, 0);
245                     m_configSdl.kcfg_audio_device->addItem(line.section(':', 1, 1), "plughw:" + QString::number(deviceId.section('-', 0, 0).toInt()) + ',' + QString::number(deviceId.section('-', 1, 1).toInt()));
246                 }
247                 if (line.contains("capture")) {
248                     deviceId = line.section(':', 0, 0);
249                     m_configCapture.kcfg_rmd_alsa_device->addItem(line.section(':', 1, 1), "plughw:" + QString::number(deviceId.section('-', 0, 0).toInt()) + ',' + QString::number(deviceId.section('-', 1, 1).toInt()));
250                 }
251             }
252             file.close();
253         }
254     }
255     if (!KdenliveSettings::audiodevicename().isEmpty()) {
256         // Select correct alsa device
257         int ix = m_configSdl.kcfg_audio_device->findData(KdenliveSettings::audiodevicename());
258         m_configSdl.kcfg_audio_device->setCurrentIndex(ix);
259         KdenliveSettings::setAudio_device(ix);
260     }
261     if (!KdenliveSettings::rmd_alsadevicename().isEmpty()) {
262         // Select correct alsa device
263         int ix = m_configCapture.kcfg_rmd_alsa_device->findData(KdenliveSettings::rmd_alsadevicename());
264         m_configCapture.kcfg_rmd_alsa_device->setCurrentIndex(ix);
265         KdenliveSettings::setRmd_alsa_device(ix);
266     }
267 }
268
269
270 void KdenliveSettingsDialog::slotReadAudioDevices()
271 {
272     QString result = QString(m_readProcess.readAllStandardOutput());
273     kDebug() << "// / / / / / READING APLAY: ";
274     kDebug() << result;
275     QStringList lines = result.split('\n');
276     foreach(const QString &data, lines) {
277         kDebug() << "// READING LINE: " << data;
278         if (data.simplified().startsWith("card")) {
279             QString card = data.section(':', 0, 0).section(' ', -1);
280             QString device = data.section(':', 1, 1).section(' ', -1);
281             m_configSdl.kcfg_audio_device->addItem(data.section(':', -1), "plughw:" + card + ',' + device);
282             m_configCapture.kcfg_rmd_alsa_device->addItem(data.section(':', -1), "plughw:" + card + ',' + device);
283         }
284     }
285 }
286
287 void KdenliveSettingsDialog::showPage(int page, int option)
288 {
289     switch (page) {
290     case 1:
291         setCurrentPage(page1);
292         break;
293     case 2:
294         setCurrentPage(page2);
295         break;
296     case 3:
297         setCurrentPage(page3);
298         break;
299     case 4:
300         setCurrentPage(page4);
301         m_configCapture.tabWidget->setCurrentIndex(option);
302         break;
303     case 5:
304         setCurrentPage(page5);
305         break;
306
307     }
308 }
309
310 void KdenliveSettingsDialog::slotEditVideoApplication()
311 {
312     KService::Ptr service;
313     KOpenWithDialog dlg(KUrl::List(), i18n("Select default video player"), m_configEnv.kcfg_defaultplayerapp->text(), this);
314     if (dlg.exec() != QDialog::Accepted)
315         return;
316
317     service = dlg.service();
318     m_configEnv.kcfg_defaultplayerapp->setText(service->exec());
319 }
320
321 void KdenliveSettingsDialog::slotEditAudioApplication()
322 {
323     KService::Ptr service;
324     KOpenWithDialog dlg(KUrl::List(), i18n("Select default audio editor"), m_configEnv.kcfg_defaultaudioapp->text(), this);
325     if (dlg.exec() != QDialog::Accepted)
326         return;
327
328     service = dlg.service();
329     m_configEnv.kcfg_defaultaudioapp->setText(service->exec());
330 }
331
332 void KdenliveSettingsDialog::slotEditImageApplication()
333 {
334     KService::Ptr service;
335     KOpenWithDialog dlg(KUrl::List(), i18n("Select default image editor"), m_configEnv.kcfg_defaultimageapp->text(), this);
336     if (dlg.exec() != QDialog::Accepted)
337         return;
338
339     service = dlg.service();
340     m_configEnv.kcfg_defaultimageapp->setText(service->exec());
341 }
342
343 #ifndef NO_JOGSHUTTLE
344 void KdenliveSettingsDialog::slotCheckShuttle(int state)
345 {
346     m_configShuttle.config_group->setEnabled(state);
347     if (m_configShuttle.shuttledevicelist->count() == 0) {
348         // parse devices
349         QString baseName = "/dev/input/event";
350         int fd;
351         for (int i = 0; i < 30; i++) {
352             QString filename = baseName + QString::number(i);
353             kDebug() << "/// CHECKING OFR: " << filename;
354
355             char name[256] = "unknown";
356             fd = KDE_open((char *) filename.toUtf8().data(), O_RDONLY);
357             if (fd >= 0 && ioctl(fd, EVIOCGNAME(sizeof(name)), name) >= 0) {
358                 m_configShuttle.shuttledevicelist->addItem(name, filename);
359             }
360             ::close(fd);
361         }
362         if (KdenliveSettings::shuttledevice().isEmpty()) QTimer::singleShot(1500, this, SLOT(slotUpdateShuttleDevice()));
363     }
364 }
365
366 void KdenliveSettingsDialog::slotUpdateShuttleDevice(int ix)
367 {
368     QString device = m_configShuttle.shuttledevicelist->itemData(ix).toString();
369     //KdenliveSettings::setShuttledevice(device);
370     m_configShuttle.kcfg_shuttledevice->setText(device);
371 }
372 #endif /* NO_JOGSHUTTLE */
373
374 void KdenliveSettingsDialog::rebuildVideo4Commands()
375 {
376     QString captureCommand;
377     if (!m_configCapture.kcfg_video4adevice->text().isEmpty()) captureCommand = "-f " + m_configCapture.kcfg_video4aformat->text() + " -i " + m_configCapture.kcfg_video4adevice->text();
378
379     captureCommand +=  " -f " + m_configCapture.kcfg_video4vformat->text() + " -s " + m_configCapture.kcfg_video4size->text() + " -r " + QString::number(m_configCapture.kcfg_video4rate->value()) + " -i " + m_configCapture.kcfg_video4vdevice->text();
380     m_configCapture.kcfg_video4capture->setText(captureCommand);
381 }
382
383
384 void KdenliveSettingsDialog::updateSettings()
385 {
386     kDebug() << "// // // KCONFIG UPDATE called";
387     m_defaultProfile = m_configMisc.kcfg_profiles_list->currentText();
388     KdenliveSettings::setDefault_profile(m_defaultPath);
389
390     bool resetProfile = false;
391
392     if (m_configEnv.capturefolderurl->url().path() != KdenliveSettings::capturefolder()) {
393         kDebug() << "/// CAPT FOLDER UPDATED";
394         KdenliveSettings::setCapturefolder(m_configEnv.capturefolderurl->url().path());
395         emit updateCaptureFolder();
396     }
397
398     QString value = m_configCapture.kcfg_rmd_alsa_device->itemData(m_configCapture.kcfg_rmd_alsa_device->currentIndex()).toString();
399     if (value != KdenliveSettings::rmd_alsadevicename()) {
400         KdenliveSettings::setRmd_alsadevicename(value);
401     }
402
403     value = m_configCapture.kcfg_rmd_audio_freq->itemText(m_configCapture.kcfg_rmd_audio_freq->currentIndex());
404     kDebug() << "// AUDIO FREQ VALUE: " << value << ", CURRENT: " << KdenliveSettings::rmd_freq() << ", IX: " << m_configCapture.kcfg_rmd_audio_freq->currentIndex();
405     if (value != KdenliveSettings::rmd_freq()) {
406         kDebug() << "// SETTING AUDIO FREQ TO: " << value;
407         KdenliveSettings::setRmd_freq(value);
408     }
409
410     value = m_configSdl.kcfg_audio_driver->itemData(m_configSdl.kcfg_audio_driver->currentIndex()).toString();
411     if (value != KdenliveSettings::audiodrivername()) {
412         KdenliveSettings::setAudiodrivername(value);
413         resetProfile = true;
414     }
415
416     if (value == "alsa") {
417         // Audio device setting is only valid for alsa driver
418         value = m_configSdl.kcfg_audio_device->itemData(m_configSdl.kcfg_audio_device->currentIndex()).toString();
419         if (value != KdenliveSettings::audiodevicename()) {
420             KdenliveSettings::setAudiodevicename(value);
421             resetProfile = true;
422         }
423     } else if (KdenliveSettings::audiodevicename().isEmpty() == false) {
424         KdenliveSettings::setAudiodevicename(QString::null);
425         resetProfile = true;
426     }
427
428     value = m_configSdl.kcfg_video_driver->itemData(m_configSdl.kcfg_video_driver->currentIndex()).toString();
429     if (value != KdenliveSettings::videodrivername()) {
430         KdenliveSettings::setVideodrivername(value);
431         resetProfile = true;
432     }
433
434     bool updatePreview = false;
435     if (m_configSdl.kcfg_dropbframes->isChecked() != KdenliveSettings::dropbframes()) {
436         KdenliveSettings::setDropbframes(m_configSdl.kcfg_dropbframes->isChecked());
437         updatePreview = true;
438     }
439
440     KConfigDialog::updateSettings();
441     if (resetProfile) emit doResetProfile();
442     if (updatePreview) emit updatePreviewSettings();
443 }
444
445 void KdenliveSettingsDialog::slotUpdateDisplay()
446 {
447     QString currentProfile = m_configMisc.kcfg_profiles_list->itemData(m_configMisc.kcfg_profiles_list->currentIndex()).toString();
448     QMap< QString, QString > values = ProfilesDialog::getSettingsFromFile(currentProfile);
449     m_configMisc.p_size->setText(values.value("width") + 'x' + values.value("height"));
450     m_configMisc.p_fps->setText(values.value("frame_rate_num") + '/' + values.value("frame_rate_den"));
451     m_configMisc.p_aspect->setText(values.value("sample_aspect_num") + '/' + values.value("sample_aspect_den"));
452     m_configMisc.p_display->setText(values.value("display_aspect_num") + '/' + values.value("display_aspect_den"));
453     if (values.value("progressive").toInt() == 0) m_configMisc.p_progressive->setText(i18n("Interlaced"));
454     else m_configMisc.p_progressive->setText(i18n("Progressive"));
455     m_defaultProfile = m_configMisc.kcfg_profiles_list->itemText(m_configMisc.kcfg_profiles_list->currentIndex());
456     m_defaultPath = currentProfile;
457 }
458
459 void KdenliveSettingsDialog::slotCheckAlsaDriver()
460 {
461     QString value = m_configSdl.kcfg_audio_driver->itemData(m_configSdl.kcfg_audio_driver->currentIndex()).toString();
462     m_configSdl.kcfg_audio_device->setEnabled(value == "alsa");
463 }
464
465 #include "kdenlivesettingsdialog.moc"
466
467