kwave  18.07.70
Kwave::AmplifyFreeDialog Class Reference

#include <AmplifyFreeDialog.h>

Inheritance diagram for Kwave::AmplifyFreeDialog:
Inheritance graph
Collaboration diagram for Kwave::AmplifyFreeDialog:
Collaboration graph

Public Member Functions

 AmplifyFreeDialog (QWidget *parent)
 
virtual ~AmplifyFreeDialog ()
 
QString getCommand ()
 
void setParams (QStringList &params)
 

Private Slots

void invokeHelp ()
 

Detailed Description

Definition at line 33 of file AmplifyFreeDialog.h.

Constructor & Destructor Documentation

◆ AmplifyFreeDialog()

Kwave::AmplifyFreeDialog::AmplifyFreeDialog ( QWidget *  parent)
explicit

Constructor

Definition at line 34 of file AmplifyFreeDialog.cpp.

References Kwave::connect(), and invokeHelp().

35  :QDialog(parent), Ui::AmplifyFreeDlg()
36 {
37  setupUi(this);
38  curveWidget->setMinimumSize(150, 100);
39 
40  xScale->setMinimumSize(250, 30);
41  xScale->setMinMax(0, 100);
42  xScale->setLogMode(false);
43  xScale->setUnit(i18n("ms"));
44 
45  yScale->setMinimumSize( 30, 150);
46  yScale->setMinMax(0, 100);
47  yScale->setLogMode(false);
48  yScale->setUnit(i18n("%"));
49 
50  connect(buttonBox_Help->button(QDialogButtonBox::Help), SIGNAL(clicked()),
51  this, SLOT(invokeHelp()));
52 
53  // set the focus onto the "OK" button
54  buttonBox->button(QDialogButtonBox::Ok)->setFocus();
55 }
bool connect(Kwave::StreamObject &source, const char *output, Kwave::StreamObject &sink, const char *input)
Definition: Connect.cpp:48
Here is the call graph for this function:

◆ ~AmplifyFreeDialog()

Kwave::AmplifyFreeDialog::~AmplifyFreeDialog ( )
virtual

Destructor

Definition at line 58 of file AmplifyFreeDialog.cpp.

59 {
60 }

Member Function Documentation

◆ getCommand()

QString Kwave::AmplifyFreeDialog::getCommand ( )

Returns a command string for the curve

Definition at line 63 of file AmplifyFreeDialog.cpp.

References _.

Referenced by Kwave::AmplifyFreePlugin::setup().

64 {
65  QString cmd;
66  Q_ASSERT(curveWidget);
67  Kwave::Parser p(curveWidget->getCommand());
68 
69  cmd = _("amplifyfree(");
70  if (p.hasParams()) cmd += p.nextParam();
71  while (!p.isDone()) {
72  cmd += _(",") + p.nextParam();
73  }
74  cmd += _(")");
75 
76  return cmd;
77 }
#define _(m)
Definition: memcpy.c:66
Here is the caller graph for this function:

◆ invokeHelp

void Kwave::AmplifyFreeDialog::invokeHelp ( )
privateslot

invoke the online help

Definition at line 96 of file AmplifyFreeDialog.cpp.

References _.

Referenced by AmplifyFreeDialog().

97 {
98  KHelpClient::invokeHelp(_("plugin_sect_amplifyfree"));
99 }
#define _(m)
Definition: memcpy.c:66
Here is the caller graph for this function:

◆ setParams()

void Kwave::AmplifyFreeDialog::setParams ( QStringList &  params)

Sets the curve parameters and points from a list of parameters

Definition at line 80 of file AmplifyFreeDialog.cpp.

References _.

Referenced by Kwave::AmplifyFreePlugin::setup().

81 {
82  QStringList::Iterator it;
83  QString cmd = _("curve(");
84 
85  it = params.begin();
86  if (it != params.end()) cmd += *(it++);
87 
88  for (; it != params.end(); ++it)
89  cmd += _(",") + *it;
90  cmd += _(")");
91 
92  if (curveWidget) curveWidget->setCurve(cmd);
93 }
#define _(m)
Definition: memcpy.c:66
Here is the caller graph for this function:

The documentation for this class was generated from the following files: