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
26
#include "
libgui/SelectTimeWidget.h
"
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
:
38
typedef
Kwave::SelectTimeWidget::Mode
Mode
;
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() :
66
Kwave::SelectTimeWidget::bySamples
;
67
}
68
70
void
setMode
(
Kwave::SelectTimeWidget::Mode
new_mode);
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
//***************************************************************************
Kwave::SelectTimeWidget::Mode
Mode
Definition:
SelectTimeWidget.h:44
Kwave
Definition:
App.h:33
Kwave::GotoDialog
Definition:
GotoDialog.h:32
Kwave::GotoDialog::~GotoDialog
virtual ~GotoDialog()
Definition:
GotoDialog.cpp:51
Kwave::GotoDialog::Mode
Kwave::SelectTimeWidget::Mode Mode
Definition:
GotoDialog.h:38
sample_index_t
quint64 sample_index_t
Definition:
Sample.h:28
Kwave::GotoDialog::GotoDialog
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
Kwave::GotoDialog::m_help_section
QString m_help_section
Definition:
GotoDialog.h:85
SelectTimeWidget.h
Kwave::GotoDialog::invokeHelp
void invokeHelp()
Definition:
GotoDialog.cpp:62
Kwave::GotoDialog::pos
quint64 pos() const
Definition:
GotoDialog.h:75
Kwave::GotoDialog::setMode
void setMode(Kwave::SelectTimeWidget::Mode new_mode)
Definition:
GotoDialog.cpp:56
Kwave::SelectTimeWidget::bySamples
Definition:
SelectTimeWidget.h:46
Kwave::GotoDialog::mode
Mode mode()
Definition:
GotoDialog.h:64
plugins
goto
GotoDialog.h
Generated on Sat Mar 24 2018 09:10:26 for kwave by
1.8.13