kwave  18.07.70
GotoDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  GotoDialog.h - dialog for selecting a position
3  -------------------
4  begin : Sat Dec 06 2008
5  copyright : (C) 2008 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 GOTO_DIALOG_H
19 #define GOTO_DIALOG_H
20 
21 #include "config.h"
22 
23 #include <QDialog>
24 #include <QObject>
25 
27 #include "ui_GotoDlg.h"
28 
29 namespace Kwave
30 {
31 
32  class GotoDialog: public QDialog,
33  public Ui::GotoDlg
34  {
35  Q_OBJECT
36  public:
39 
52  GotoDialog(QWidget *widget, Mode mode, sample_index_t position,
53  double sample_rate, sample_index_t signal_length,
54  const QString &help_section
55  );
56 
58  virtual ~GotoDialog();
59 
64  Mode mode() {
65  return select_pos ? select_pos->mode() :
67  }
68 
71 
75  quint64 pos() const { return (select_pos) ? select_pos->time() : 0; }
76 
77  private slots:
78 
80  void invokeHelp();
81 
82  private:
83 
85  QString m_help_section;
86 
87  };
88 }
89 
90 #endif /* GOTO_DIALOG_H */
91 
92 //***************************************************************************
93 //***************************************************************************
Definition: App.h:33
virtual ~GotoDialog()
Definition: GotoDialog.cpp:51
Kwave::SelectTimeWidget::Mode Mode
Definition: GotoDialog.h:38
quint64 sample_index_t
Definition: Sample.h:28
GotoDialog(QWidget *widget, Mode mode, sample_index_t position, double sample_rate, sample_index_t signal_length, const QString &help_section)
Definition: GotoDialog.cpp:27
QString m_help_section
Definition: GotoDialog.h:85
quint64 pos() const
Definition: GotoDialog.h:75
void setMode(Kwave::SelectTimeWidget::Mode new_mode)
Definition: GotoDialog.cpp:56