~ubuntu-branches/ubuntu/feisty/kid3/feisty

« back to all changes in this revision

Viewing changes to kid3/configdialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno
  • Date: 2004-04-29 02:11:57 UTC
  • Revision ID: james.westby@ubuntu.com-20040429021157-omrdcw8270prqiun
Tags: upstream-0.4
ImportĀ upstreamĀ versionĀ 0.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * \file configdialog.h
 
3
 * Configuration dialog.
 
4
 *
 
5
 * \b Project: Kid3
 
6
 * \author Urs Fleisch
 
7
 * \date 17 Sep 2003
 
8
 */
 
9
 
 
10
#ifndef CONFIGDIALOG_H
 
11
#define CONFIGDIALOG_H
 
12
 
 
13
#include "config.h"
 
14
#ifdef CONFIG_USE_KDE
 
15
#include <kdialogbase.h>
 
16
#else
 
17
#include <qdialog.h>
 
18
#endif
 
19
#include "formatconfig.h"
 
20
 
 
21
class FormatBox;
 
22
class QCheckBox;
 
23
class FormatConfig;
 
24
class MiscConfig;
 
25
class QString;
 
26
class QWidget;
 
27
 
 
28
/**
 
29
 * Configuration dialog.
 
30
 */
 
31
#ifdef CONFIG_USE_KDE
 
32
class ConfigDialog : public KDialogBase
 
33
#else
 
34
class ConfigDialog : public QDialog
 
35
#endif
 
36
{
 
37
public:
 
38
        /**
 
39
         * Constructor.
 
40
         *
 
41
         * @param parent  parent widget
 
42
         * @param caption dialog title
 
43
         */
 
44
        ConfigDialog(QWidget *parent, QString &caption);
 
45
        /**
 
46
         * Destructor.
 
47
         */
 
48
        ~ConfigDialog();
 
49
        /**
 
50
         * Set values in dialog from current configuration.
 
51
         *
 
52
         * @param fnCfg   filename format configuration
 
53
         * @param fnCfg   ID3 format configuration
 
54
         * @param miscCfg misc. configuration
 
55
         */
 
56
        void setConfig(const FormatConfig *fnCfg, const FormatConfig *id3Cfg,
 
57
                                   const MiscConfig *miscCfg);
 
58
        /**
 
59
         * Get values from dialog and store them in the current configuration.
 
60
         *
 
61
         * @param fnCfg   filename format configuration
 
62
         * @param fnCfg   ID3 format configuration
 
63
         * @param miscCfg misc. configuration
 
64
         */
 
65
        void getConfig(FormatConfig *fnCfg, FormatConfig *id3Cfg,
 
66
                                   MiscConfig *miscCfg) const;
 
67
private:
 
68
        /** Format while editing checkbox */
 
69
        QCheckBox *formatEditingCheckBox;
 
70
        /** Filename Format box */
 
71
        FormatBox *fnFormatBox;
 
72
        /** ID3 Format box */
 
73
        FormatBox *id3FormatBox;
 
74
};
 
75
 
 
76
#endif