~ubuntu-branches/ubuntu/wily/kid3/wily-proposed

« back to all changes in this revision

Viewing changes to src/core/config/filterconfig.h

  • Committer: Package Import Robot
  • Author(s): Ana Beatriz Guerrero Lopez, Patrick Matthäi, Ana Beatriz Guerrero Lopez
  • Date: 2011-11-13 16:34:13 UTC
  • mfrom: (1.1.13) (2.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20111113163413-5y0anlc4dqf511uh
Tags: 2.0.1-1
* New upstream release.

[ Patrick Matthäi ]
* Adjust build system.
* Add build dependency xsltproc.

[ Ana Beatriz Guerrero Lopez ]
* Some more adjustments to the build system taken from upstream's deb/
* directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * \file filterconfig.h
 
3
 * Configuration for filter dialog.
 
4
 *
 
5
 * \b Project: Kid3
 
6
 * \author Urs Fleisch
 
7
 * \date 16 Jan 2008
 
8
 *
 
9
 * Copyright (C) 2008  Urs Fleisch
 
10
 *
 
11
 * This file is part of Kid3.
 
12
 *
 
13
 * Kid3 is free software; you can redistribute it and/or modify
 
14
 * it under the terms of the GNU General Public License as published by
 
15
 * the Free Software Foundation; either version 2 of the License, or
 
16
 * (at your option) any later version.
 
17
 *
 
18
 * Kid3 is distributed in the hope that it will be useful,
 
19
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
20
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
21
 * GNU General Public License for more details.
 
22
 *
 
23
 * You should have received a copy of the GNU General Public License
 
24
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
25
 */
 
26
 
 
27
#ifndef FILTERCONFIG_H
 
28
#define FILTERCONFIG_H
 
29
 
 
30
#include <QStringList>
 
31
#include "config.h"
 
32
#include "generalconfig.h"
 
33
 
 
34
/**
 
35
 * Filter configuration.
 
36
 */
 
37
class FilterConfig : public GeneralConfig {
 
38
public:
 
39
  /**
 
40
   * Constructor.
 
41
   * Set default configuration.
 
42
   *
 
43
   * @param grp configuration group
 
44
   */
 
45
  FilterConfig(const QString& grp);
 
46
 
 
47
  /**
 
48
   * Destructor.
 
49
   */
 
50
  virtual ~FilterConfig();
 
51
 
 
52
  /**
 
53
   * Persist configuration.
 
54
   *
 
55
   * @param config KDE configuration
 
56
   */
 
57
  virtual void writeToConfig(Kid3Settings* config) const;
 
58
 
 
59
  /**
 
60
   * Read persisted configuration.
 
61
   *
 
62
   * @param config KDE configuration
 
63
   */
 
64
  virtual void readFromConfig(Kid3Settings* config);
 
65
 
 
66
  /**
 
67
   * Set the filename format in the "Filename Tag Mismatch" filter.
 
68
   *
 
69
   * @param format filename format
 
70
   */
 
71
  void setFilenameFormat(const QString& format);
 
72
 
 
73
  /** Names of filter expressions */
 
74
  QStringList m_filterNames;
 
75
  /** Filter expressions */
 
76
  QStringList m_filterExpressions;
 
77
  /** Selected filter */
 
78
  int m_filterIdx;
 
79
  /** Window width */
 
80
  int m_windowWidth;
 
81
  /** Window height */
 
82
  int m_windowHeight;
 
83
};
 
84
 
 
85
#endif