kwave
18.07.70
|
#include <ZoomToolBar.h>
Public Slots | |
void | contextSwitched (Kwave::FileContext *context) |
void | contextDestroyed (Kwave::FileContext *context) |
void | updateToolbar () |
void | setZoomInfo (Kwave::FileContext *context, double zoom) |
Signals | |
void | sigCommand (const QString &command) |
Public Member Functions | |
ZoomToolBar (KMainWindow *parent, const QString &name) | |
virtual | ~ZoomToolBar () |
Private Slots | |
void | selectZoom (int index) |
void | zoomSelection () |
void | zoomIn () |
void | zoomOut () |
void | zoomNormal () |
void | zoomAll () |
Private Attributes | |
Kwave::FileContext * | m_context |
QAction * | m_action_zoomselection |
QAction * | m_action_zoomin |
QAction * | m_action_zoomout |
QAction * | m_action_zoomnormal |
QAction * | m_action_zoomall |
QAction * | m_action_zoomselect |
KComboBox * | m_zoomselect |
Definition at line 42 of file ZoomToolBar.h.
Kwave::ZoomToolBar::ZoomToolBar | ( | KMainWindow * | parent, |
const QString & | name | ||
) |
Constructor
parent | a KMainWidget |
name | the name of the toolbar (for config) |
Initialized list of zoom factors
Definition at line 50 of file ZoomToolBar.cpp.
References _, Kwave::connect(), ELEMENTS_OF, m_action_zoomall, m_action_zoomin, m_action_zoomnormal, m_action_zoomout, m_action_zoomselect, m_action_zoomselection, m_zoomselect, selectZoom(), sigCommand(), ZOOM_DATA_PREDEFINED, ZOOM_DATA_TIME, zoomAll(), zoomIn(), zoomNormal(), zoomOut(), and zoomSelection().
|
virtual |
|
slot |
called when a file context has been deleted
Definition at line 149 of file ZoomToolBar.cpp.
References contextSwitched(), and m_context.
|
slot |
called when the file context has been (updates the toolbar)
Definition at line 141 of file ZoomToolBar.cpp.
References m_context, and updateToolbar().
Referenced by contextDestroyed().
|
privateslot |
called on changes in the zoom selection combo box
Definition at line 198 of file ZoomToolBar.cpp.
References m_context, m_zoomselect, Kwave::SignalManager::rate(), Kwave::Zoomable::setZoom(), setZoomInfo(), Kwave::FileContext::signalManager(), Kwave::Zoomable::visibleWidth(), Kwave::Zoomable::zoom(), ZOOM_DATA_TIME, and Kwave::FileContext::zoomable().
Referenced by ZoomToolBar().
|
slot |
Called if a new zoom factor has been set in order to update the status display and the content of the zoom selection combo box.
context | the file context that caused the zoom change |
zoom | the new zoom factor |
Definition at line 235 of file ZoomToolBar.cpp.
References m_context, m_zoomselect, Kwave::SignalManager::rate(), Kwave::FileContext::signalManager(), Kwave::toInt(), Kwave::SignalManager::tracks(), Kwave::Zoomable::visibleSamples(), Kwave::zoom2string(), ZOOM_DATA_PREDEFINED, ZOOM_DATA_TIME, and Kwave::FileContext::zoomable().
Referenced by selectZoom().
|
signal |
tells this widget's parent to execute a command
Referenced by zoomAll(), zoomIn(), zoomNormal(), zoomOut(), zoomSelection(), and ZoomToolBar().
|
slot |
updates all the toolbar, after change of context and after meta data change (e.g. signal empty, closed, new, etc...)
Definition at line 156 of file ZoomToolBar.cpp.
References _, Kwave::SignalManager::isClosed(), Kwave::Selection::length(), m_action_zoomall, m_action_zoomin, m_action_zoomnormal, m_action_zoomout, m_action_zoomselect, m_action_zoomselection, m_context, m_zoomselect, Kwave::SignalManager::selection(), Kwave::FileContext::signalManager(), Kwave::SignalManager::tracks(), and ZOOM_DATA_PREDEFINED.
Referenced by contextSwitched(), and Kwave::TopWidget::updateToolbar().
|
inlineprivateslot |
toolbar: "zoom all"
Definition at line 111 of file ZoomToolBar.h.
References _, and sigCommand().
Referenced by ZoomToolBar().
|
inlineprivateslot |
toolbar: "zoom in"
Definition at line 96 of file ZoomToolBar.h.
References _, and sigCommand().
Referenced by ZoomToolBar().
|
inlineprivateslot |
toolbar: "zoom 1:1"
Definition at line 106 of file ZoomToolBar.h.
References _, and sigCommand().
Referenced by ZoomToolBar().
|
inlineprivateslot |
toolbar: "zoom out"
Definition at line 101 of file ZoomToolBar.h.
References _, and sigCommand().
Referenced by ZoomToolBar().
|
inlineprivateslot |
toolbar: "zoom selection"
Definition at line 91 of file ZoomToolBar.h.
References _, and sigCommand().
Referenced by ZoomToolBar().
|
private |
action of the "zoom to all" toolbar button
Definition at line 133 of file ZoomToolBar.h.
Referenced by updateToolbar(), and ZoomToolBar().
|
private |
action of the "zoom in" toolbar button
Definition at line 124 of file ZoomToolBar.h.
Referenced by updateToolbar(), and ZoomToolBar().
|
private |
action of the "zoom to 100%" toolbar button
Definition at line 130 of file ZoomToolBar.h.
Referenced by updateToolbar(), and ZoomToolBar().
|
private |
action of the "zoom out" toolbar button
Definition at line 127 of file ZoomToolBar.h.
Referenced by updateToolbar(), and ZoomToolBar().
|
private |
action of the "zoom factor" combo box in the toolbar
Definition at line 136 of file ZoomToolBar.h.
Referenced by updateToolbar(), and ZoomToolBar().
|
private |
action of the "zoom to selection" toolbar button
Definition at line 121 of file ZoomToolBar.h.
Referenced by updateToolbar(), and ZoomToolBar().
|
private |
the current file context (could be null)
Definition at line 118 of file ZoomToolBar.h.
Referenced by contextDestroyed(), contextSwitched(), selectZoom(), setZoomInfo(), and updateToolbar().
|
private |
combo box for selection of the zoom factor
Definition at line 139 of file ZoomToolBar.h.
Referenced by selectZoom(), setZoomInfo(), updateToolbar(), and ZoomToolBar().