kwave
18.07.70
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
f
h
i
l
m
o
p
r
s
t
u
w
y
z
Functions
Typedefs
Enumerations
+
Enumerator
a
b
c
f
i
l
o
p
r
s
u
w
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
+
Variables
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
v
w
x
y
z
Typedefs
Enumerations
+
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Related Functions
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
i
l
m
p
q
r
s
t
x
z
Variables
Typedefs
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
ZoomToolBar.h
Go to the documentation of this file.
1
/***************************************************************************
2
ZoomToolBar.h - Toolbar for zoom control
3
-------------------
4
begin : 2014-08-12
5
copyright : (C) 2014 by Thomas Eschenbacher
6
email : Thomas Eschenbacher <Thomas.Eschenbacher@gmx.de>
7
8
***************************************************************************/
9
10
/***************************************************************************
11
* *
12
* This program is free software; you can redistribute it and/or modify *
13
* it under the terms of the GNU General Public License as published by *
14
* the Free Software Foundation; either version 2 of the License, or *
15
* (at your option) any later version. *
16
* *
17
***************************************************************************/
18
19
#ifndef ZOOM_TOOL_BAR_H
20
#define ZOOM_TOOL_BAR_H
21
22
#include "config.h"
23
24
#include <QObject>
25
#include <QTimer>
26
27
#include <KToolBar>
28
29
#include "
libkwave/LabelList.h
"
30
#include "
libkwave/MetaDataList.h
"
31
#include "
libkwave/Sample.h
"
32
33
class
QAction;
34
class
KComboBox;
35
class
KMainWindow;
36
37
namespace
Kwave
38
{
39
40
class
FileContext;
41
42
class
ZoomToolBar
:
public
KToolBar
43
{
44
Q_OBJECT
45
public
:
51
ZoomToolBar
(KMainWindow *parent,
const
QString &
name
);
52
54
virtual
~ZoomToolBar
();
55
56
signals:
57
59
void
sigCommand
(
const
QString &command);
60
61
public
slots:
62
64
void
contextSwitched
(
Kwave::FileContext
*context);
65
67
void
contextDestroyed
(
Kwave::FileContext
*context);
68
73
void
updateToolbar
();
74
83
void
setZoomInfo
(
Kwave::FileContext
*context,
double
zoom);
84
85
private
slots:
86
88
void
selectZoom
(
int
index);
89
91
void
zoomSelection
() {
92
emit
sigCommand
(
_
(
"view:zoom_selection()"
));
93
}
94
96
void
zoomIn
() {
97
emit
sigCommand
(
_
(
"view:zoom_in()"
));
98
}
99
101
void
zoomOut
() {
102
emit
sigCommand
(
_
(
"view:zoom_out()"
));
103
}
104
106
void
zoomNormal
() {
107
emit
sigCommand
(
_
(
"view:zoom_normal()"
));
108
}
109
111
void
zoomAll
() {
112
emit
sigCommand
(
_
(
"view:zoom_all()"
));
113
}
114
115
private
:
116
118
Kwave::FileContext
*
m_context
;
119
121
QAction *
m_action_zoomselection
;
122
124
QAction *
m_action_zoomin
;
125
127
QAction *
m_action_zoomout
;
128
130
QAction *
m_action_zoomnormal
;
131
133
QAction *
m_action_zoomall
;
134
136
QAction *
m_action_zoomselect
;
137
139
KComboBox *
m_zoomselect
;
140
141
};
142
143
}
144
145
#endif
/* ZOOM_TOOL_BAR_H */
146
147
//***************************************************************************
148
//***************************************************************************
Kwave::ZoomToolBar::setZoomInfo
void setZoomInfo(Kwave::FileContext *context, double zoom)
Definition:
ZoomToolBar.cpp:235
Kwave::ZoomToolBar::~ZoomToolBar
virtual ~ZoomToolBar()
Definition:
ZoomToolBar.cpp:136
Kwave::ZoomToolBar::m_action_zoomout
QAction * m_action_zoomout
Definition:
ZoomToolBar.h:127
Kwave
Definition:
App.h:33
Kwave::ZoomToolBar::contextDestroyed
void contextDestroyed(Kwave::FileContext *context)
Definition:
ZoomToolBar.cpp:149
Kwave::ZoomToolBar::zoomIn
void zoomIn()
Definition:
ZoomToolBar.h:96
Kwave::ZoomToolBar::zoomAll
void zoomAll()
Definition:
ZoomToolBar.h:111
Kwave::ZoomToolBar::m_action_zoomselect
QAction * m_action_zoomselect
Definition:
ZoomToolBar.h:136
name
const char name[16]
Definition:
memcpy.c:510
Kwave::ZoomToolBar
Definition:
ZoomToolBar.h:42
Kwave::ZoomToolBar::zoomOut
void zoomOut()
Definition:
ZoomToolBar.h:101
Sample.h
Kwave::ZoomToolBar::updateToolbar
void updateToolbar()
Definition:
ZoomToolBar.cpp:156
Kwave::ZoomToolBar::m_action_zoomin
QAction * m_action_zoomin
Definition:
ZoomToolBar.h:124
Kwave::ZoomToolBar::m_action_zoomall
QAction * m_action_zoomall
Definition:
ZoomToolBar.h:133
Kwave::ZoomToolBar::m_action_zoomselection
QAction * m_action_zoomselection
Definition:
ZoomToolBar.h:121
Kwave::ZoomToolBar::selectZoom
void selectZoom(int index)
Definition:
ZoomToolBar.cpp:198
Kwave::ZoomToolBar::ZoomToolBar
ZoomToolBar(KMainWindow *parent, const QString &name)
Definition:
ZoomToolBar.cpp:50
Kwave::FileContext
Definition:
FileContext.h:55
Kwave::ZoomToolBar::contextSwitched
void contextSwitched(Kwave::FileContext *context)
Definition:
ZoomToolBar.cpp:141
Kwave::ZoomToolBar::zoomNormal
void zoomNormal()
Definition:
ZoomToolBar.h:106
MetaDataList.h
Kwave::ZoomToolBar::zoomSelection
void zoomSelection()
Definition:
ZoomToolBar.h:91
_
#define _(m)
Definition:
memcpy.c:66
Kwave::ZoomToolBar::m_zoomselect
KComboBox * m_zoomselect
Definition:
ZoomToolBar.h:139
Kwave::ZoomToolBar::m_context
Kwave::FileContext * m_context
Definition:
ZoomToolBar.h:118
LabelList.h
Kwave::ZoomToolBar::m_action_zoomnormal
QAction * m_action_zoomnormal
Definition:
ZoomToolBar.h:130
Kwave::ZoomToolBar::sigCommand
void sigCommand(const QString &command)
kwave
ZoomToolBar.h
Generated on Sat Mar 24 2018 09:10:24 for kwave by
1.8.13