| 1 |
/* dvbcut settings |
| 2 |
Copyright (c) 2006 Michael Riepe |
| 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 Free Software |
| 16 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 17 |
*/ |
| 18 |
|
| 19 |
/* $Id$ */ |
| 20 |
|
| 21 |
#ifndef _DVBCUT_SETTINGS_H |
| 22 |
#define _DVBCUT_SETTINGS_H |
| 23 |
|
| 24 |
#include <string> |
| 25 |
#include <vector> |
| 26 |
|
| 27 |
#include <qsettings.h> |
| 28 |
|
| 29 |
enum { |
| 30 |
WHEEL_INCR_NORMAL, |
| 31 |
WHEEL_INCR_SHIFT, |
| 32 |
WHEEL_INCR_CTRL, |
| 33 |
WHEEL_INCR_ALT, |
| 34 |
WHEEL_INCR_num |
| 35 |
}; |
| 36 |
|
| 37 |
class dvbcut_settings : QSettings { |
| 38 |
public: |
| 39 |
dvbcut_settings(); |
| 40 |
~dvbcut_settings(); |
| 41 |
|
| 42 |
void load_settings(); |
| 43 |
void save_settings(); |
| 44 |
|
| 45 |
bool loaded; |
| 46 |
|
| 47 |
QString lastdir; |
| 48 |
bool lastdir_update; |
| 49 |
std::vector<std::pair<std::list<std::string>,std::string> > recentfiles; |
| 50 |
unsigned int recentfiles_max; |
| 51 |
double viewscalefactor; |
| 52 |
double viewscalefactor_custom; |
| 53 |
int wheel_increments[WHEEL_INCR_num]; |
| 54 |
int wheel_threshold; |
| 55 |
int wheel_delta; |
| 56 |
int jog_maximum; |
| 57 |
int jog_threshold; |
| 58 |
double jog_offset; |
| 59 |
int jog_interval; |
| 60 |
int lin_interval; |
| 61 |
int export_format; |
| 62 |
bool start_bof; |
| 63 |
bool stop_eof; |
| 64 |
QString snapshot_type; |
| 65 |
QString snapshot_prefix; |
| 66 |
QString snapshot_delimiter; |
| 67 |
QString snapshot_extension; |
| 68 |
int snapshot_quality; |
| 69 |
int snapshot_first; |
| 70 |
int snapshot_width; |
| 71 |
int snapshot_range; |
| 72 |
int snapshot_samples; |
| 73 |
std::vector<QString> pipe_command; |
| 74 |
std::vector<QString> pipe_post; |
| 75 |
std::vector<QString> pipe_label; |
| 76 |
std::vector<int> pipe_format; |
| 77 |
int chapter_interval; |
| 78 |
int chapter_tolerance; |
| 79 |
double chapter_threshold; |
| 80 |
int chapter_minimum; |
| 81 |
int search_dups_range; |
| 82 |
}; |
| 83 |
|
| 84 |
// access function |
| 85 |
extern dvbcut_settings& settings(); |
| 86 |
|
| 87 |
#endif // _DVBCUT_SETTINGS_H |