kwave  18.07.70
MP3EncoderDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  MP3EncoderDialog.h - dialog for configuring the MP3 encoer
3  -------------------
4  begin : Sun Jun 03 2012
5  copyright : (C) 2012 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 MP3_ENCODER_DIALOG_H
19 #define MP3_ENCODER_DIALOG_H
20 
21 #include "config.h"
22 
23 #include <QDialog>
24 #include <QMap>
25 #include <QString>
26 
27 #include "MP3EncoderSettings.h"
28 
29 #include "ui_MP3EncoderDialogBase.h"
30 
31 class QAbstractButton;
32 class QWidget;
33 
34 namespace Kwave
35 {
36 
37  class MP3EncoderDialog :public QDialog,
38  public Ui::MP3EncoderDialogBase
39  {
40  Q_OBJECT
41 
42  public:
44  explicit MP3EncoderDialog(QWidget *parent);
45 
47  virtual ~MP3EncoderDialog();
48 
49  public slots:
50 
52  void load();
53 
55  void save();
56 
57  private slots:
58 
60  void selectProgram(int index);
61 
63  void switchToUserDefined();
64 
66  void buttonClicked(QAbstractButton *button);
67 
69  void autoDetect();
70 
72  void locatePath();
73 
75  void browseFile();
76 
78  void testSettings();
79 
81  void encoderHelp();
82 
84  void invokeHelp();
85 
86  private:
87 
95  QString callWithParam(const QString &path, const QString &param);
96 
103  QString encoderVersion(const QString &path, const QString &param);
104 
111  QString searchPath(const QString &program);
112 
114  void updateEncoderInfo();
115 
116  private:
117 
120  };
121 }
122 
123 #endif /* MP3_ENCODER_DIALOG_H */
124 
125 //***************************************************************************
126 //***************************************************************************
Definition: App.h:33
Kwave::MP3EncoderSettings m_settings
MP3EncoderDialog(QWidget *parent)
QString callWithParam(const QString &path, const QString &param)
void buttonClicked(QAbstractButton *button)
QString encoderVersion(const QString &path, const QString &param)
QString searchPath(const QString &program)