kwave  18.07.70
SelectRangeDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  SelectRangeDialog.h - dialog for selecting a range of samples
3  -------------------
4  begin : Sat Jun 15 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 SELECT_RANGE_DIALOG_H
19 #define SELECT_RANGE_DIALOG_H
20 
21 #include "config.h"
22 
23 #include <QDialog>
24 #include <QObject>
25 #include <QTimer>
26 
28 #include "ui_SelectRangeDlg.h"
29 
30 namespace Kwave
31 {
32  class SelectRangeDialog: public QDialog,
33  public Ui::SelectRangeDlg
34  {
35  Q_OBJECT
36  public:
37 
40 
54  SelectRangeDialog(QWidget *widget, Mode start_mode, Mode range_mode,
55  unsigned int range, double sample_rate,
56  sample_index_t offset, sample_index_t signal_length);
57 
59  virtual ~SelectRangeDialog();
60 
65  Mode startMode() {
66  return select_start ? select_start->mode() :
68  }
69 
74  Mode rangeMode() {
75  return select_range ? select_range->mode() :
77  }
78 
81 
86  return select_start ? select_start->time() : 0;
87  }
88 
91  return (select_range) ? select_range->time() : 0;
92  }
93 
94  private slots:
95 
97  void invokeHelp();
98 
99  };
100 }
101 
102 #endif /* SELECT_RANGE_DIALOG_H */
103 
104 //***************************************************************************
105 //***************************************************************************
Definition: App.h:33
SelectRangeDialog(QWidget *widget, Mode start_mode, Mode range_mode, unsigned int range, double sample_rate, sample_index_t offset, sample_index_t signal_length)
quint64 sample_index_t
Definition: Sample.h:28
void setMode(Kwave::SelectTimeWidget::Mode new_mode)
Kwave::SelectTimeWidget::Mode Mode