kwave  18.07.70
FileInfoDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  FileInfoDialog.h - dialog for editing file properties
3  -------------------
4  begin : Sat Jul 20 2002
5  copyright : (C) 2002 by Thomas Eschenbacher
6  email : Thomas.Eschenbacher@gmx.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef FILE_INFO_DIALOG_H
19 #define FILE_INFO_DIALOG_H
20 
21 #include "config.h"
22 
23 #include <QObject>
24 
25 #include "libkwave/FileInfo.h"
26 #include "ui_FileInfoDlg.h"
27 
28 class KConfigGroup;
29 class QLineEdit;
30 
31 namespace Kwave
32 {
33  class FileInfoDialog: public QDialog,
34  public Ui::FileInfoDlg
35  {
36  Q_OBJECT
37  public:
39  FileInfoDialog(QWidget *parent, Kwave::FileInfo &info);
40 
42  virtual ~FileInfoDialog() Q_DECL_OVERRIDE;
43 
45  Kwave::FileInfo &info() { return m_info; }
46 
47  public slots:
48 
50  virtual void accept() Q_DECL_OVERRIDE;
51 
52  private slots:
53 
55  void selectDate();
56 
58  void setDateNow();
59 
61  void tracksChanged(int tracks);
62 
68 
70  void compressionChanged();
71 
73  void mpegLayerChanged();
74 
76  void mpegCopyrightedChanged(bool checked);
77 
79  void mpegOriginalChanged(bool checked);
80 
82  void autoGenerateKeywords();
83 
85  void invokeHelp();
86 
87  protected:
88 
96  void describeWidget(QWidget *widget, const QString &name,
97  const QString &description);
98 
106  void initInfo(QLabel *label, QWidget *widget,
107  Kwave::FileProperty property);
108 
113  void initInfoText(QLabel *label, QLineEdit *edit,
114  Kwave::FileProperty property);
115 
116  private:
117 
122  void acceptEdit(Kwave::FileProperty property, QString value);
123 
125  void setupFileInfoTab();
126 
128  void setupCompressionTab(KConfigGroup &cfg);
129 
131  bool isMpeg() const;
132 
134  void setupMpegTab();
135 
137  void setupContentTab();
138 
140  void setupSourceTab();
141 
144 
146  void setupMiscellaneousTab();
147 
148 
149  private:
150 
153 
154  };
155 }
156 
157 #endif /* FILE_INFO_DIALOG_H */
158 
159 //***************************************************************************
160 //***************************************************************************
Definition: App.h:33
FileInfoDialog(QWidget *parent, Kwave::FileInfo &info)
void acceptEdit(Kwave::FileProperty property, QString value)
void mpegOriginalChanged(bool checked)
void describeWidget(QWidget *widget, const QString &name, const QString &description)
virtual ~FileInfoDialog() Q_DECL_OVERRIDE
void mpegCopyrightedChanged(bool checked)
const char name[16]
Definition: memcpy.c:510
virtual void accept() Q_DECL_OVERRIDE
Kwave::FileInfo & info()
Kwave::FileInfo m_info
void tracksChanged(int tracks)
void initInfoText(QLabel *label, QLineEdit *edit, Kwave::FileProperty property)
FileProperty
Definition: FileInfo.h:45
void setupCompressionTab(KConfigGroup &cfg)
void initInfo(QLabel *label, QWidget *widget, Kwave::FileProperty property)