Debian Codegraph @

gui/src/forms/frmoptions.h

raw symbols SCIP
1 /*****************************************************************************
2 ** QNapi
3 ** Copyright (C) 2008-2017 Piotr KrzemiƄski <[email protected]>
4 **
5 ** This program is free software; you can redistribute it and/or modify
6 ** it under the terms of the GNU General Public License as published by
7 ** the Free Software Foundation; either version 2 of the License, or
8 ** (at your option) any later version.
9 **
10 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
11 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
12 **
13 *****************************************************************************/
14
15 #ifndef __FRMOPTIONS__H__
16 #define __FRMOPTIONS__H__
17
18 #include "subtitlelanguage.h"
19 #include "ui_frmoptions.h"
20
21 #include "config/qnapiconfig.h"
22 #include "engines/subtitledownloadenginesregistry.h"
23 #include "subconvert/subtitleformatsregistry.h"
24
25 #include <QDesktopWidget>
26 #include <QDir>
27 #include <QFileDialog>
28 #include <QFileInfo>
29 #include <QList>
30 #include <QMessageBox>
31 #include <QSharedPointer>
32 #include <QTextCodec>
33
34 class frmOptions : public QDialog {
35 Q_OBJECT
36 public:
37 frmOptions(QWidget *parent = 0, Qt::WindowFlags f = 0);
38 ~frmOptions();
39
40 public slots:
41 void writeConfig();
42 void readConfig(const QNapiConfig &config);
43
44 private slots:
45 void le7zPathChanged();
46 void select7zPath();
47 void leTmpPathChanged();
48 void selectTmpPath();
49
50 void twEnginesSelectionChanged();
51 void twEnginesItemChanged(QTableWidgetItem *item);
52 void pbMoveUpClicked();
53 void pbMoveDownClicked();
54 void pbEngineConfClicked();
55 void pbEngineInfoClicked();
56
57 void subFormatChanged(int format);
58 void encodingMethodChanged(int method);
59 void autoDetectEncodingClicked();
60 void showAllEncodingsClicked();
61
62 void restoreDefaults();
63
64 private:
65 Ui::frmOptions ui;
66
67 QSharedPointer<const SubtitleFormatsRegistry> subtitleFormatsRegistry;
68 QSharedPointer<const SubtitleDownloadEnginesRegistry> enginesRegistry;
69
70 void showAllEncodings();
71 };
72
73 #endif