Rename a lot…

This commit is contained in:
Lukas W
2014-11-26 10:09:49 +01:00
parent 5b77abd9a5
commit 1bbf7455a4
186 changed files with 1989 additions and 1989 deletions

View File

@@ -35,7 +35,7 @@
#include "ProjectJournal.h"
#include "BBTrackContainer.h"
#include "Song.h"
#include "text_float.h"
#include "TextFloat.h"
#include "embed.h"
@@ -98,7 +98,7 @@ void AutomationPattern::addObject( AutomatableModel * _obj, bool _search_dup )
{
if( *it == _obj )
{
textFloat::displayMessage( _obj->displayName(), tr( "Model is already connected "
TextFloat::displayMessage( _obj->displayName(), tr( "Model is already connected "
"to this pattern." ), embed::getIconPixmap( "automation" ), 2000 );
return;
}

View File

@@ -25,7 +25,7 @@
#include "BBTrackContainer.h"
#include "bb_track.h"
#include "combobox.h"
#include "ComboBox.h"
#include "embed.h"
#include "Engine.h"
#include "Song.h"

View File

@@ -39,7 +39,7 @@
#include "PianoRoll.h"
#include "PresetPreviewPlayHandle.h"
#include "ProjectJournal.h"
#include "project_notes.h"
#include "ProjectNotes.h"
#include "Plugin.h"
#include "SongEditor.h"
#include "Song.h"
@@ -59,7 +59,7 @@ SongEditor* Engine::s_songEditor = NULL;
AutomationEditor * Engine::s_automationEditor = NULL;
bbEditor * Engine::s_bbEditor = NULL;
PianoRoll* Engine::s_pianoRoll = NULL;
projectNotes * Engine::s_projectNotes = NULL;
ProjectNotes * Engine::s_projectNotes = NULL;
ProjectJournal * Engine::s_projectJournal = NULL;
Ladspa2LMMS * Engine::s_ladspaManager = NULL;
DummyTrackContainer * Engine::s_dummyTC = NULL;
@@ -96,7 +96,7 @@ void Engine::init( const bool _has_gui )
s_songEditor = new SongEditor( s_song );
s_fxMixerView = new FxMixerView;
s_controllerRackView = new ControllerRackView;
s_projectNotes = new projectNotes;
s_projectNotes = new ProjectNotes;
s_bbEditor = new bbEditor( s_bbTrackContainer );
s_pianoRoll = new PianoRoll;
s_automationEditor = new AutomationEditor;

View File

@@ -54,12 +54,12 @@
#include "Pattern.h"
#include "PianoRoll.h"
#include "ProjectJournal.h"
#include "project_notes.h"
#include "ProjectNotes.h"
#include "ProjectRenderer.h"
#include "rename_dialog.h"
#include "RenameDialog.h"
#include "SongEditor.h"
#include "templates.h"
#include "text_float.h"
#include "TextFloat.h"
#include "Timeline.h"
#include "PeakController.h"
@@ -1043,7 +1043,7 @@ bool Song::guiSaveProject()
m_fileName = dataFile.nameWithExtension( m_fileName );
if( saveProjectFile( m_fileName ) && Engine::hasGUI() )
{
textFloat::displayMessage( tr( "Project saved" ),
TextFloat::displayMessage( tr( "Project saved" ),
tr( "The project %1 is now saved."
).arg( m_fileName ),
embed::getIconPixmap( "project_save", 24, 24 ),
@@ -1054,7 +1054,7 @@ bool Song::guiSaveProject()
}
else if( Engine::hasGUI() )
{
textFloat::displayMessage( tr( "Project NOT saved." ),
TextFloat::displayMessage( tr( "Project NOT saved." ),
tr( "The project %1 was not saved!" ).arg(
m_fileName ),
embed::getIconPixmap( "error" ), 4000 );

View File

@@ -35,9 +35,9 @@
#include "embed.h"
#include "Engine.h"
#include "templates.h"
#include "nstate_button.h"
#include "NStateButton.h"
#include "MainWindow.h"
#include "text_float.h"
#include "TextFloat.h"
#if QT_VERSION < 0x040800
@@ -123,14 +123,14 @@ Timeline::~Timeline()
void Timeline::addToolButtons( QWidget * _tool_bar )
{
nStateButton * autoScroll = new nStateButton( _tool_bar );
NStateButton * autoScroll = new NStateButton( _tool_bar );
autoScroll->setGeneralToolTip( tr( "Enable/disable auto-scrolling" ) );
autoScroll->addState( embed::getIconPixmap( "autoscroll_on" ) );
autoScroll->addState( embed::getIconPixmap( "autoscroll_off" ) );
connect( autoScroll, SIGNAL( changedState( int ) ), this,
SLOT( toggleAutoScroll( int ) ) );
nStateButton * loopPoints = new nStateButton( _tool_bar );
NStateButton * loopPoints = new NStateButton( _tool_bar );
loopPoints->setGeneralToolTip( tr( "Enable/disable loop-points" ) );
loopPoints->addState( embed::getIconPixmap( "loop_points_off" ) );
loopPoints->addState( embed::getIconPixmap( "loop_points_on" ) );
@@ -139,7 +139,7 @@ void Timeline::addToolButtons( QWidget * _tool_bar )
connect( this, SIGNAL( loopPointStateLoaded( int ) ), loopPoints,
SLOT( changeState( int ) ) );
nStateButton * behaviourAtStop = new nStateButton( _tool_bar );
NStateButton * behaviourAtStop = new NStateButton( _tool_bar );
behaviourAtStop->addState( embed::getIconPixmap( "back_to_zero" ),
tr( "After stopping go back to begin" )
);
@@ -313,14 +313,14 @@ void Timeline::mousePressEvent( QMouseEvent* event )
if( m_action == MoveLoopBegin )
{
delete m_hint;
m_hint = textFloat::displayMessage( tr( "Hint" ),
m_hint = TextFloat::displayMessage( tr( "Hint" ),
tr( "Press <Ctrl> to disable magnetic loop points." ),
embed::getIconPixmap( "hint" ), 0 );
}
else if( m_action == MoveLoopEnd )
{
delete m_hint;
m_hint = textFloat::displayMessage( tr( "Hint" ),
m_hint = TextFloat::displayMessage( tr( "Hint" ),
tr( "Hold <Shift> to move the begin loop point; Press <Ctrl> to disable magnetic loop points." ),
embed::getIconPixmap( "hint" ), 0 );
}

View File

@@ -60,14 +60,14 @@
#include "InstrumentTrack.h"
#include "MainWindow.h"
#include "DataFile.h"
#include "pixmap_button.h"
#include "PixmapButton.h"
#include "ProjectJournal.h"
#include "SampleTrack.h"
#include "Song.h"
#include "string_pair_drag.h"
#include "templates.h"
#include "text_float.h"
#include "tooltip.h"
#include "TextFloat.h"
#include "ToolTip.h"
#include "TrackContainer.h"
@@ -87,7 +87,7 @@ const int TRACK_OP_BTN_HEIGHT = 14;
* beside the cursor as you move or resize elements of a track about.
* This pointer keeps track of it, as you only ever need one at a time.
*/
textFloat * trackContentObjectView::s_textFloat = NULL;
TextFloat * trackContentObjectView::s_textFloat = NULL;
// ===========================================================================
@@ -257,7 +257,7 @@ trackContentObjectView::trackContentObjectView( trackContentObject * _tco,
{
if( s_textFloat == NULL )
{
s_textFloat = new textFloat;
s_textFloat = new TextFloat;
s_textFloat->setPixmap( embed::getIconPixmap( "clock" ) );
}
@@ -651,7 +651,7 @@ void trackContentObjectView::mousePressEvent( QMouseEvent * _me )
QApplication::setOverrideCursor( c );
s_textFloat->setTitle( tr( "Current position" ) );
delete m_hint;
m_hint = textFloat::displayMessage( tr( "Hint" ),
m_hint = TextFloat::displayMessage( tr( "Hint" ),
tr( "Press <Ctrl> and drag to make "
"a copy." ),
embed::getIconPixmap( "hint" ), 0 );
@@ -664,7 +664,7 @@ void trackContentObjectView::mousePressEvent( QMouseEvent * _me )
QApplication::setOverrideCursor( c );
s_textFloat->setTitle( tr( "Current length" ) );
delete m_hint;
m_hint = textFloat::displayMessage( tr( "Hint" ),
m_hint = TextFloat::displayMessage( tr( "Hint" ),
tr( "Press <Ctrl> for free "
"resizing." ),
embed::getIconPixmap( "hint" ), 0 );
@@ -1559,7 +1559,7 @@ trackOperationsWidget::trackOperationsWidget( trackView * _parent ) :
"track_op_grip" ) );
}
toolTip::add( this, tr( "Press <Ctrl> while clicking on move-grip "
ToolTip::add( this, tr( "Press <Ctrl> while clicking on move-grip "
"to begin a new drag'n'drop-action." ) );
QMenu * to_menu = new QMenu( this );
@@ -1574,15 +1574,15 @@ trackOperationsWidget::trackOperationsWidget( trackView * _parent ) :
m_trackOps->move( 12, 1 );
m_trackOps->setFocusPolicy( Qt::NoFocus );
m_trackOps->setMenu( to_menu );
toolTip::add( m_trackOps, tr( "Actions for this track" ) );
ToolTip::add( m_trackOps, tr( "Actions for this track" ) );
m_muteBtn = new pixmapButton( this, tr( "Mute" ) );
m_muteBtn = new PixmapButton( this, tr( "Mute" ) );
m_muteBtn->setActiveGraphic( embed::getIconPixmap( "led_off" ) );
m_muteBtn->setInactiveGraphic( embed::getIconPixmap( "led_green" ) );
m_muteBtn->setCheckable( true );
m_soloBtn = new pixmapButton( this, tr( "Solo" ) );
m_soloBtn = new PixmapButton( this, tr( "Solo" ) );
m_soloBtn->setActiveGraphic( embed::getIconPixmap( "led_red" ) );
m_soloBtn->setInactiveGraphic( embed::getIconPixmap( "led_off" ) );
m_soloBtn->setCheckable( true );
@@ -1600,10 +1600,10 @@ trackOperationsWidget::trackOperationsWidget( trackView * _parent ) :
}
m_muteBtn->show();
toolTip::add( m_muteBtn, tr( "Mute this track" ) );
ToolTip::add( m_muteBtn, tr( "Mute this track" ) );
m_soloBtn->show();
toolTip::add( m_soloBtn, tr( "Solo" ) );
ToolTip::add( m_soloBtn, tr( "Solo" ) );
connect( this, SIGNAL( trackRemovalScheduled( trackView * ) ),
m_trackView->trackContainerView(),
@@ -2661,7 +2661,7 @@ void trackView::mouseMoveEvent( QMouseEvent * _me )
if( height() < DEFAULT_TRACK_HEIGHT )
{
toolTip::add( this, m_track->m_name );
ToolTip::add( this, m_track->m_name );
}
}

View File

@@ -46,7 +46,7 @@ void AudioPortAudioSetupUtil::updateChannels()
#include "ConfigManager.h"
#include "gui_templates.h"
#include "templates.h"
#include "combobox.h"
#include "ComboBox.h"
#include "LcdSpinBox.h"
@@ -391,14 +391,14 @@ void AudioPortAudioSetupUtil::updateChannels()
AudioPortAudio::setupWidget::setupWidget( QWidget * _parent ) :
AudioDevice::setupWidget( AudioPortAudio::name(), _parent )
{
m_backend = new comboBox( this, "BACKEND" );
m_backend = new ComboBox( this, "BACKEND" );
m_backend->setGeometry( 64, 15, 260, 20 );
QLabel * backend_lbl = new QLabel( tr( "BACKEND" ), this );
backend_lbl->setFont( pointSize<7>( backend_lbl->font() ) );
backend_lbl->move( 8, 18 );
m_device = new comboBox( this, "DEVICE" );
m_device = new ComboBox( this, "DEVICE" );
m_device->setGeometry( 64, 35, 260, 20 );
QLabel * dev_lbl = new QLabel( tr( "DEVICE" ), this );

View File

@@ -51,14 +51,14 @@
#include "MainWindow.h"
#include "embed.h"
#include "Engine.h"
#include "pixmap_button.h"
#include "PixmapButton.h"
#include "templates.h"
#include "gui_templates.h"
#include "Timeline.h"
#include "tooltip.h"
#include "tool_button.h"
#include "text_float.h"
#include "combobox.h"
#include "ToolTip.h"
#include "ToolButton.h"
#include "TextFloat.h"
#include "ComboBox.h"
#include "BBTrackContainer.h"
#include "PianoRoll.h"
#include "debug.h"
@@ -158,12 +158,12 @@ AutomationEditor::AutomationEditor() :
// init control-buttons at the top
m_playButton = new toolButton( embed::getIconPixmap( "play" ),
m_playButton = new ToolButton( embed::getIconPixmap( "play" ),
tr( "Play/pause current pattern (Space)" ),
this, SLOT( play() ), m_toolBar );
m_stopButton = new toolButton( embed::getIconPixmap( "stop" ),
m_stopButton = new ToolButton( embed::getIconPixmap( "stop" ),
tr( "Stop playing of current pattern (Space)" ),
this, SLOT( stop() ), m_toolBar );
@@ -193,14 +193,14 @@ AutomationEditor::AutomationEditor() :
SLOT( verScrolled( int ) ) );
// init edit-buttons at the top
m_drawButton = new toolButton( embed::getIconPixmap( "edit_draw" ),
m_drawButton = new ToolButton( embed::getIconPixmap( "edit_draw" ),
tr( "Draw mode (Shift+D)" ),
this, SLOT( drawButtonToggled() ),
m_toolBar );
m_drawButton->setCheckable( true );
m_drawButton->setChecked( true );
m_eraseButton = new toolButton( embed::getIconPixmap( "edit_erase" ),
m_eraseButton = new ToolButton( embed::getIconPixmap( "edit_erase" ),
tr( "Erase mode (Shift+E)" ),
this, SLOT( eraseButtonToggled() ),
m_toolBar );
@@ -249,7 +249,7 @@ AutomationEditor::AutomationEditor() :
"mode. You can also press 'Shift+M' on your keyboard "
"to activate this mode." ) );*/
m_discreteButton = new toolButton( embed::getIconPixmap(
m_discreteButton = new ToolButton( embed::getIconPixmap(
"progression_discrete" ),
tr( "Discrete progression" ),
this, SLOT( discreteButtonToggled() ),
@@ -257,14 +257,14 @@ AutomationEditor::AutomationEditor() :
m_discreteButton->setCheckable( true );
m_discreteButton->setChecked( true );
m_linearButton = new toolButton( embed::getIconPixmap(
m_linearButton = new ToolButton( embed::getIconPixmap(
"progression_linear" ),
tr( "Linear progression" ),
this, SLOT( linearButtonToggled() ),
m_toolBar );
m_linearButton->setCheckable( true );
m_cubicHermiteButton = new toolButton( embed::getIconPixmap(
m_cubicHermiteButton = new ToolButton( embed::getIconPixmap(
"progression_cubic_hermite" ),
tr( "Cubic Hermite progression" ),
this, SLOT(
@@ -273,7 +273,7 @@ AutomationEditor::AutomationEditor() :
m_cubicHermiteButton->setCheckable( true );
// setup tension-stuff
m_tensionKnob = new knob( knobSmall_17, this, "Tension" );
m_tensionKnob = new Knob( knobSmall_17, this, "Tension" );
m_tensionModel = new FloatModel(1.0, 0.0, 1.0, 0.01);
connect( m_tensionModel, SIGNAL( dataChanged() ),
this, SLOT( tensionChanged() ) );
@@ -305,17 +305,17 @@ AutomationEditor::AutomationEditor() :
"object will change in a smooth curve and ease in to "
"the peaks and valleys." ) );
m_cutButton = new toolButton( embed::getIconPixmap( "edit_cut" ),
m_cutButton = new ToolButton( embed::getIconPixmap( "edit_cut" ),
tr( "Cut selected values (Ctrl+X)" ),
this, SLOT( cutSelectedValues() ),
m_toolBar );
m_copyButton = new toolButton( embed::getIconPixmap( "edit_copy" ),
m_copyButton = new ToolButton( embed::getIconPixmap( "edit_copy" ),
tr( "Copy selected values (Ctrl+C)" ),
this, SLOT( copySelectedValues() ),
m_toolBar );
m_pasteButton = new toolButton( embed::getIconPixmap( "edit_paste" ),
m_pasteButton = new ToolButton( embed::getIconPixmap( "edit_paste" ),
tr( "Paste values from clipboard "
"(Ctrl+V)" ),
this, SLOT( pasteValues() ),
@@ -338,7 +338,7 @@ AutomationEditor::AutomationEditor() :
QLabel * zoom_x_lbl = new QLabel( m_toolBar );
zoom_x_lbl->setPixmap( embed::getIconPixmap( "zoom_x" ) );
m_zoomingXComboBox = new comboBox( m_toolBar );
m_zoomingXComboBox = new ComboBox( m_toolBar );
m_zoomingXComboBox->setFixedSize( 80, 22 );
for( int i = 0; i < 6; ++i )
@@ -356,7 +356,7 @@ AutomationEditor::AutomationEditor() :
QLabel * zoom_y_lbl = new QLabel( m_toolBar );
zoom_y_lbl->setPixmap( embed::getIconPixmap( "zoom_y" ) );
m_zoomingYComboBox = new comboBox( m_toolBar );
m_zoomingYComboBox = new ComboBox( m_toolBar );
m_zoomingYComboBox->setFixedSize( 80, 22 );
m_zoomingYModel.addItem( "Auto" );
@@ -376,7 +376,7 @@ AutomationEditor::AutomationEditor() :
QLabel * quantize_lbl = new QLabel( m_toolBar );
quantize_lbl->setPixmap( embed::getIconPixmap( "quantize" ) );
m_quantizeComboBox = new comboBox( m_toolBar );
m_quantizeComboBox = new ComboBox( m_toolBar );
m_quantizeComboBox->setFixedSize( 60, 22 );
for( int i = 0; i < 7; ++i )
@@ -2088,7 +2088,7 @@ void AutomationEditor::cubicHermiteButtonToggled()
{
m_tensionKnob->setModel( m_tensionModel );
m_tensionKnob->setEnabled( true );
toolTip::add( m_tensionKnob, tr( "Tension value for spline" ) );
ToolTip::add( m_tensionKnob, tr( "Tension value for spline" ) );
m_tensionKnob->setWhatsThis(
tr( "A higher tension value may make a smoother curve "
"but overshoot some values. A low tension "
@@ -2210,7 +2210,7 @@ void AutomationEditor::copySelectedValues()
{
m_valuesToCopy[it.key()] = it.value();
}
textFloat::displayMessage( tr( "Values copied" ),
TextFloat::displayMessage( tr( "Values copied" ),
tr( "All selected values were copied to the "
"clipboard." ),
embed::getIconPixmap( "edit_copy" ), 2000 );

View File

@@ -33,9 +33,9 @@
#include "Engine.h"
#include "gui_templates.h"
#include "ProjectJournal.h"
#include "rename_dialog.h"
#include "RenameDialog.h"
#include "string_pair_drag.h"
#include "tooltip.h"
#include "ToolTip.h"
QPixmap * AutomationPatternView::s_pat_rec = NULL;
@@ -56,7 +56,7 @@ AutomationPatternView::AutomationPatternView( AutomationPattern * _pattern,
setFixedHeight( parentWidget()->height() - 2 );
setAutoResizeEnabled( false );
toolTip::add( this, tr( "double-click to open this pattern in "
ToolTip::add( this, tr( "double-click to open this pattern in "
"automation editor" ) );
setStyle( QApplication::style() );
@@ -99,7 +99,7 @@ void AutomationPatternView::resetName()
void AutomationPatternView::changeName()
{
QString s = m_pat->name();
renameDialog rename_dlg( s );
RenameDialog rename_dlg( s );
rename_dlg.exec();
m_pat->setName( s );
update();

View File

@@ -35,12 +35,12 @@
#include "MidiClient.h"
#include "MidiPortMenu.h"
#include "LcdSpinBox.h"
#include "led_checkbox.h"
#include "combobox.h"
#include "tab_widget.h"
#include "group_box.h"
#include "LedCheckbox.h"
#include "ComboBox.h"
#include "TabWidget.h"
#include "GroupBox.h"
#include "Song.h"
#include "tool_button.h"
#include "ToolButton.h"
#include "gui_templates.h"
#include "embed.h"
@@ -137,7 +137,7 @@ ControllerConnectionDialog::ControllerConnectionDialog( QWidget * _parent,
setModal( true );
// Midi stuff
m_midiGroupBox = new groupBox( tr( "MIDI CONTROLLER" ), this );
m_midiGroupBox = new GroupBox( tr( "MIDI CONTROLLER" ), this );
m_midiGroupBox->setGeometry( 8, 10, 240, 80 );
connect( m_midiGroupBox->model(), SIGNAL( dataChanged() ),
this, SLOT( midiToggled() ) );
@@ -156,7 +156,7 @@ ControllerConnectionDialog::ControllerConnectionDialog( QWidget * _parent,
m_midiAutoDetectCheckBox =
new ledCheckBox( tr("Auto Detect"),
new LedCheckBox( tr("Auto Detect"),
m_midiGroupBox, tr("Auto Detect") );
m_midiAutoDetectCheckBox->setModel( &m_midiAutoDetect );
m_midiAutoDetectCheckBox->move( 8, 60 );
@@ -170,7 +170,7 @@ ControllerConnectionDialog::ControllerConnectionDialog( QWidget * _parent,
m_readablePorts = new MidiPortMenu( MidiPort::Input );
connect( m_readablePorts, SIGNAL( triggered( QAction * ) ),
this, SLOT( enableAutoDetect( QAction * ) ) );
toolButton * rp_btn = new toolButton( m_midiGroupBox );
ToolButton * rp_btn = new ToolButton( m_midiGroupBox );
rp_btn->setText( tr( "MIDI-devices to receive "
"MIDI-events from" ) );
rp_btn->setIcon( embed::getIconPixmap( "piano" ) );
@@ -181,12 +181,12 @@ ControllerConnectionDialog::ControllerConnectionDialog( QWidget * _parent,
// User stuff
m_userGroupBox = new groupBox( tr( "USER CONTROLLER" ), this );
m_userGroupBox = new GroupBox( tr( "USER CONTROLLER" ), this );
m_userGroupBox->setGeometry( 8, 100, 240, 60 );
connect( m_userGroupBox->model(), SIGNAL( dataChanged() ),
this, SLOT( userToggled() ) );
m_userController = new comboBox( m_userGroupBox, "Controller" );
m_userController = new ComboBox( m_userGroupBox, "Controller" );
m_userController->setGeometry( 10, 24, 200, 22 );
for( int i = 0; i < Engine::getSong()->controllers().size(); ++i )
@@ -197,7 +197,7 @@ ControllerConnectionDialog::ControllerConnectionDialog( QWidget * _parent,
// Mapping functions
m_mappingBox = new tabWidget( tr( "MAPPING FUNCTION" ), this );
m_mappingBox = new TabWidget( tr( "MAPPING FUNCTION" ), this );
m_mappingBox->setGeometry( 8, 170, 240, 64 );
m_mappingFunction = new QLineEdit( m_mappingBox );
m_mappingFunction->setGeometry( 10, 20, 170, 16 );

View File

@@ -48,7 +48,7 @@
#include "SamplePlayHandle.h"
#include "Song.h"
#include "string_pair_drag.h"
#include "text_float.h"
#include "TextFloat.h"
@@ -424,7 +424,7 @@ void FileBrowserTreeWidget::mousePressEvent(QMouseEvent * me )
// handling() rather than directly creating a SamplePlayHandle
if( f->type() == FileItem::SampleFile )
{
textFloat * tf = textFloat::displayMessage(
TextFloat * tf = TextFloat::displayMessage(
tr( "Loading sample" ),
tr( "Please wait, loading sample for "
"preview..." ),

View File

@@ -38,7 +38,7 @@
#include <QKeyEvent>
#include "FxMixerView.h"
#include "knob.h"
#include "Knob.h"
#include "Engine.h"
#include "embed.h"
#include "MainWindow.h"
@@ -268,13 +268,13 @@ FxMixerView::FxChannelView::FxChannelView(QWidget * _parent, FxMixerView * _mv,
m_fxLine = new FxLine(_parent, _mv, _chIndex);
FxMixer * m = Engine::fxMixer();
m_fader = new fader( &m->effectChannel(_chIndex)->m_volumeModel,
m_fader = new Fader( &m->effectChannel(_chIndex)->m_volumeModel,
tr( "FX Fader %1" ).arg( _chIndex ), m_fxLine );
m_fader->move( 16-m_fader->width()/2,
m_fxLine->height()-
m_fader->height()-5 );
m_muteBtn = new pixmapButton( m_fxLine, tr( "Mute" ) );
m_muteBtn = new PixmapButton( m_fxLine, tr( "Mute" ) );
m_muteBtn->setModel( &m->effectChannel(_chIndex)->m_muteModel );
m_muteBtn->setActiveGraphic(
embed::getIconPixmap( "led_off" ) );
@@ -282,9 +282,9 @@ FxMixerView::FxChannelView::FxChannelView(QWidget * _parent, FxMixerView * _mv,
embed::getIconPixmap( "led_green" ) );
m_muteBtn->setCheckable( true );
m_muteBtn->move( 9, m_fader->y()-11);
toolTip::add( m_muteBtn, tr( "Mute this FX channel" ) );
ToolTip::add( m_muteBtn, tr( "Mute this FX channel" ) );
m_soloBtn = new pixmapButton( m_fxLine, tr( "Solo" ) );
m_soloBtn = new PixmapButton( m_fxLine, tr( "Solo" ) );
m_soloBtn->setModel( &m->effectChannel(_chIndex)->m_soloModel );
m_soloBtn->setActiveGraphic(
embed::getIconPixmap( "led_red" ) );
@@ -294,7 +294,7 @@ FxMixerView::FxChannelView::FxChannelView(QWidget * _parent, FxMixerView * _mv,
m_soloBtn->move( 9, m_fader->y()-21);
connect(&m->effectChannel(_chIndex)->m_soloModel, SIGNAL( dataChanged() ),
_mv, SLOT ( toggledSolo() ) );
toolTip::add( m_soloBtn, tr( "Solo FX channel" ) );
ToolTip::add( m_soloBtn, tr( "Solo FX channel" ) );
// Create EffectRack for the channel
m_rackView = new EffectRackView( &m->effectChannel(_chIndex)->m_fxChain, _mv->m_racksWidget );

View File

@@ -33,16 +33,16 @@
#include "gui_templates.h"
#include "embed.h"
#include "Engine.h"
#include "led_checkbox.h"
#include "LedCheckbox.h"
#include "MainWindow.h"
#include "tooltip.h"
#include "ToolTip.h"
#include "LfoController.h"
#include "ControllerDialog.h"
#include "knob.h"
#include "Knob.h"
#include "TempoSyncKnob.h"
#include "pixmap_button.h"
#include "PixmapButton.h"
const int CD_ENV_KNOBS_LBL_Y = 20;
const int CD_KNOB_X_SPACING = 32;
@@ -70,9 +70,9 @@ LfoControllerDialog::LfoControllerDialog( Controller * _model, QWidget * _parent
setWindowIcon( embed::getIconPixmap( "controller" ) );
setFixedSize( 240, 80 );
toolTip::add( this, tr( "LFO Controller" ) );
ToolTip::add( this, tr( "LFO Controller" ) );
m_baseKnob = new knob( knobBright_26, this );
m_baseKnob = new Knob( knobBright_26, this );
m_baseKnob->setLabel( tr( "BASE" ) );
m_baseKnob->move( CD_LFO_BASE_CD_KNOB_X, CD_LFO_CD_KNOB_Y );
m_baseKnob->setHintText( tr( "Base amount:" ) + " ", "" );
@@ -89,7 +89,7 @@ LfoControllerDialog::LfoControllerDialog( Controller * _model, QWidget * _parent
"the faster the effect." ) );
m_amountKnob = new knob( knobBright_26, this );
m_amountKnob = new Knob( knobBright_26, this );
m_amountKnob->setLabel( tr( "AMT" ) );
m_amountKnob->move( CD_LFO_AMOUNT_CD_KNOB_X, CD_LFO_CD_KNOB_Y );
m_amountKnob->setHintText( tr( "Modulation amount:" ) + " ", "" );
@@ -99,7 +99,7 @@ LfoControllerDialog::LfoControllerDialog( Controller * _model, QWidget * _parent
"control (e.g. volume or cutoff-frequency) will "
"be influenced by the LFO." ) );
m_phaseKnob = new knob( knobBright_26, this );
m_phaseKnob = new Knob( knobBright_26, this );
m_phaseKnob->setLabel( tr( "PHS" ) );
m_phaseKnob->move( CD_LFO_PHASE_CD_KNOB_X, CD_LFO_CD_KNOB_Y );
m_phaseKnob->setHintText( tr( "Phase offset:" ) + " ", "" + tr( "degrees" ) );
@@ -113,72 +113,72 @@ LfoControllerDialog::LfoControllerDialog( Controller * _model, QWidget * _parent
"down. It's the same with a square-wave."
) );
pixmapButton * sin_wave_btn = new pixmapButton( this, NULL );
PixmapButton * sin_wave_btn = new PixmapButton( this, NULL );
sin_wave_btn->move( CD_LFO_SHAPES_X, CD_LFO_SHAPES_Y );
sin_wave_btn->setActiveGraphic( embed::getIconPixmap(
"sin_wave_active" ) );
sin_wave_btn->setInactiveGraphic( embed::getIconPixmap(
"sin_wave_inactive" ) );
toolTip::add( sin_wave_btn,
ToolTip::add( sin_wave_btn,
tr( "Click here for a sine-wave." ) );
pixmapButton * triangle_wave_btn =
new pixmapButton( this, NULL );
PixmapButton * triangle_wave_btn =
new PixmapButton( this, NULL );
triangle_wave_btn->move( CD_LFO_SHAPES_X + 15, CD_LFO_SHAPES_Y );
triangle_wave_btn->setActiveGraphic(
embed::getIconPixmap( "triangle_wave_active" ) );
triangle_wave_btn->setInactiveGraphic(
embed::getIconPixmap( "triangle_wave_inactive" ) );
toolTip::add( triangle_wave_btn,
ToolTip::add( triangle_wave_btn,
tr( "Click here for a triangle-wave." ) );
pixmapButton * saw_wave_btn = new pixmapButton( this, NULL );
PixmapButton * saw_wave_btn = new PixmapButton( this, NULL );
saw_wave_btn->move( CD_LFO_SHAPES_X + 30, CD_LFO_SHAPES_Y );
saw_wave_btn->setActiveGraphic( embed::getIconPixmap(
"saw_wave_active" ) );
saw_wave_btn->setInactiveGraphic( embed::getIconPixmap(
"saw_wave_inactive" ) );
toolTip::add( saw_wave_btn,
ToolTip::add( saw_wave_btn,
tr( "Click here for a saw-wave." ) );
pixmapButton * sqr_wave_btn = new pixmapButton( this, NULL );
PixmapButton * sqr_wave_btn = new PixmapButton( this, NULL );
sqr_wave_btn->move( CD_LFO_SHAPES_X + 45, CD_LFO_SHAPES_Y );
sqr_wave_btn->setActiveGraphic( embed::getIconPixmap(
"square_wave_active" ) );
sqr_wave_btn->setInactiveGraphic( embed::getIconPixmap(
"square_wave_inactive" ) );
toolTip::add( sqr_wave_btn,
ToolTip::add( sqr_wave_btn,
tr( "Click here for a square-wave." ) );
pixmapButton * moog_saw_wave_btn =
new pixmapButton( this, NULL );
PixmapButton * moog_saw_wave_btn =
new PixmapButton( this, NULL );
moog_saw_wave_btn->move( CD_LFO_SHAPES_X, CD_LFO_SHAPES_Y + 15 );
moog_saw_wave_btn->setActiveGraphic(
embed::getIconPixmap( "moog_saw_wave_active" ) );
moog_saw_wave_btn->setInactiveGraphic(
embed::getIconPixmap( "moog_saw_wave_inactive" ) );
toolTip::add( moog_saw_wave_btn,
ToolTip::add( moog_saw_wave_btn,
tr( "Click here for a a moog saw-wave." ) );
pixmapButton * exp_wave_btn = new pixmapButton( this, NULL );
PixmapButton * exp_wave_btn = new PixmapButton( this, NULL );
exp_wave_btn->move( CD_LFO_SHAPES_X + 15, CD_LFO_SHAPES_Y + 15 );
exp_wave_btn->setActiveGraphic( embed::getIconPixmap(
"exp_wave_active" ) );
exp_wave_btn->setInactiveGraphic( embed::getIconPixmap(
"exp_wave_inactive" ) );
toolTip::add( exp_wave_btn,
ToolTip::add( exp_wave_btn,
tr( "Click here for an exponential wave." ) );
pixmapButton * white_noise_btn = new pixmapButton( this, NULL );
PixmapButton * white_noise_btn = new PixmapButton( this, NULL );
white_noise_btn->move( CD_LFO_SHAPES_X + 30, CD_LFO_SHAPES_Y + 15 );
white_noise_btn->setActiveGraphic(
embed::getIconPixmap( "white_noise_wave_active" ) );
white_noise_btn->setInactiveGraphic(
embed::getIconPixmap( "white_noise_wave_inactive" ) );
toolTip::add( white_noise_btn,
ToolTip::add( white_noise_btn,
tr( "Click here for white-noise." ) );
m_userWaveBtn = new pixmapButton( this, NULL );
m_userWaveBtn = new PixmapButton( this, NULL );
m_userWaveBtn->move( CD_LFO_SHAPES_X + 45, CD_LFO_SHAPES_Y + 15 );
m_userWaveBtn->setActiveGraphic( embed::getIconPixmap(
"usr_wave_active" ) );
@@ -187,7 +187,7 @@ LfoControllerDialog::LfoControllerDialog( Controller * _model, QWidget * _parent
connect( m_userWaveBtn,
SIGNAL( doubleClicked() ),
this, SLOT( askUserDefWave() ) );
toolTip::add( m_userWaveBtn,
ToolTip::add( m_userWaveBtn,
tr( "Click here for a user-defined shape.\nDouble click to pick a file." ) );
m_waveBtnGrp = new automatableButtonGroup( this );
@@ -201,21 +201,21 @@ LfoControllerDialog::LfoControllerDialog( Controller * _model, QWidget * _parent
m_waveBtnGrp->addButton( m_userWaveBtn );
pixmapButton * x1 = new pixmapButton( this, NULL );
PixmapButton * x1 = new PixmapButton( this, NULL );
x1->move( CD_LFO_MULTIPLIER_X, CD_LFO_SHAPES_Y );
x1->setActiveGraphic( embed::getIconPixmap(
"lfo_x1_active" ) );
x1->setInactiveGraphic( embed::getIconPixmap(
"lfo_x1_inactive" ) );
pixmapButton * x100 = new pixmapButton( this, NULL );
PixmapButton * x100 = new PixmapButton( this, NULL );
x100->move( CD_LFO_MULTIPLIER_X, CD_LFO_SHAPES_Y - 15 );
x100->setActiveGraphic( embed::getIconPixmap(
"lfo_x100_active" ) );
x100->setInactiveGraphic( embed::getIconPixmap(
"lfo_x100_inactive" ) );
pixmapButton * d100 = new pixmapButton( this, NULL );
PixmapButton * d100 = new PixmapButton( this, NULL );
d100->move( CD_LFO_MULTIPLIER_X, CD_LFO_SHAPES_Y + 15 );
d100->setActiveGraphic( embed::getIconPixmap(
"lfo_d100_active" ) );
@@ -256,7 +256,7 @@ void LfoControllerDialog::askUserDefWave()
if( fileName.isEmpty() == false )
{
// TODO:
toolTip::add( m_userWaveBtn, sampleBuffer->audioFile() );
ToolTip::add( m_userWaveBtn, sampleBuffer->audioFile() );
}
}

View File

@@ -54,11 +54,11 @@
#include "ConfigManager.h"
#include "Mixer.h"
#include "PluginView.h"
#include "project_notes.h"
#include "ProjectNotes.h"
#include "setup_dialog.h"
#include "AudioDummy.h"
#include "ToolPlugin.h"
#include "tool_button.h"
#include "ToolButton.h"
#include "ProjectJournal.h"
#include "AutomationEditor.h"
#include "templates.h"
@@ -348,13 +348,13 @@ void MainWindow::finalize()
this, SLOT( aboutLMMS() ) );
// create tool-buttons
toolButton * project_new = new toolButton(
ToolButton * project_new = new ToolButton(
embed::getIconPixmap( "project_new" ),
tr( "Create new project" ),
this, SLOT( createNewProject() ),
m_toolBar );
toolButton * project_new_from_template = new toolButton(
ToolButton * project_new_from_template = new ToolButton(
embed::getIconPixmap( "project_new_from_template" ),
tr( "Create new project from template" ),
this, SLOT( emptySlot() ),
@@ -366,37 +366,37 @@ void MainWindow::finalize()
connect( m_templatesMenu, SIGNAL( triggered( QAction * ) ),
this, SLOT( createNewProjectFromTemplate( QAction * ) ) );
project_new_from_template->setMenu( m_templatesMenu );
project_new_from_template->setPopupMode( toolButton::InstantPopup );
project_new_from_template->setPopupMode( ToolButton::InstantPopup );
toolButton * project_open = new toolButton(
ToolButton * project_open = new ToolButton(
embed::getIconPixmap( "project_open" ),
tr( "Open existing project" ),
this, SLOT( openProject() ),
m_toolBar );
toolButton * project_open_recent = new toolButton(
ToolButton * project_open_recent = new ToolButton(
embed::getIconPixmap( "project_open_recent" ),
tr( "Recently opened project" ),
this, SLOT( emptySlot() ), m_toolBar );
project_open_recent->setMenu( m_recentlyOpenedProjectsMenu );
project_open_recent->setPopupMode( toolButton::InstantPopup );
project_open_recent->setPopupMode( ToolButton::InstantPopup );
toolButton * project_save = new toolButton(
ToolButton * project_save = new ToolButton(
embed::getIconPixmap( "project_save" ),
tr( "Save current project" ),
this, SLOT( saveProject() ),
m_toolBar );
toolButton * project_export = new toolButton(
ToolButton * project_export = new ToolButton(
embed::getIconPixmap( "project_export" ),
tr( "Export current project" ),
Engine::getSong(),
SLOT( exportProject() ),
m_toolBar );
toolButton * whatsthis = new toolButton(
ToolButton * whatsthis = new ToolButton(
embed::getIconPixmap( "whatsthis" ),
tr( "What's this?" ),
this, SLOT( enterWhatsThisMode() ),
@@ -414,7 +414,7 @@ void MainWindow::finalize()
// window-toolbar
toolButton * song_editor_window = new toolButton(
ToolButton * song_editor_window = new ToolButton(
embed::getIconPixmap( "songeditor" ),
tr( "Show/hide Song-Editor" ) + " (F5)",
this, SLOT( toggleSongEditorWin() ),
@@ -429,7 +429,7 @@ void MainWindow::finalize()
"rap samples) directly into the playlist." ) );
toolButton * bb_editor_window = new toolButton(
ToolButton * bb_editor_window = new ToolButton(
embed::getIconPixmap( "bb_track_btn" ),
tr( "Show/hide Beat+Bassline Editor" ) +
" (F6)",
@@ -445,7 +445,7 @@ void MainWindow::finalize()
"that." ) );
toolButton * piano_roll_window = new toolButton(
ToolButton * piano_roll_window = new ToolButton(
embed::getIconPixmap( "piano" ),
tr( "Show/hide Piano-Roll" ) +
" (F7)",
@@ -458,7 +458,7 @@ void MainWindow::finalize()
"you can edit melodies in an easy way."
) );
toolButton * automation_editor_window = new toolButton(
ToolButton * automation_editor_window = new ToolButton(
embed::getIconPixmap( "automation" ),
tr( "Show/hide Automation Editor" ) +
" (F8)",
@@ -473,7 +473,7 @@ void MainWindow::finalize()
"in an easy way."
) );
toolButton * fx_mixer_window = new toolButton(
ToolButton * fx_mixer_window = new ToolButton(
embed::getIconPixmap( "fx_mixer" ),
tr( "Show/hide FX Mixer" ) + " (F9)",
this, SLOT( toggleFxMixerWin() ),
@@ -485,7 +485,7 @@ void MainWindow::finalize()
"for managing effects for your song. You can insert "
"effects into different effect-channels." ) );
toolButton * project_notes_window = new toolButton(
ToolButton * project_notes_window = new ToolButton(
embed::getIconPixmap( "project_notes" ),
tr( "Show/hide project notes" ) +
" (F10)",
@@ -497,7 +497,7 @@ void MainWindow::finalize()
"project notes window. In this window you can put "
"down your project notes.") );
toolButton * controllers_window = new toolButton(
ToolButton * controllers_window = new ToolButton(
embed::getIconPixmap( "controller" ),
tr( "Show/hide controller rack" ) +
" (F11)",

View File

@@ -35,13 +35,13 @@
#include "embed.h"
#include "Engine.h"
#include "MainWindow.h"
#include "tooltip.h"
#include "ToolTip.h"
#include "PeakController.h"
#include "ControllerDialog.h"
#include "knob.h"
#include "Knob.h"
#include "TempoSyncKnob.h"
#include "pixmap_button.h"
#include "PixmapButton.h"
PeakControllerDialog::PeakControllerDialog( Controller * _model, QWidget * _parent ) :
@@ -51,7 +51,7 @@ PeakControllerDialog::PeakControllerDialog( Controller * _model, QWidget * _pare
setWindowIcon( embed::getIconPixmap( "controller" ) );
setFixedSize( 256, 64 );
toolTip::add( this, tr( "LFO Controller" ) );
ToolTip::add( this, tr( "LFO Controller" ) );
QLabel * l = new QLabel( this );
l->setText( "Use FX's controls" );

View File

@@ -49,7 +49,7 @@
#include "PianoRoll.h"
#include "BBTrackContainer.h"
#include "Clipboard.h"
#include "combobox.h"
#include "ComboBox.h"
#include "debug.h"
#include "DetuningHelper.h"
#include "embed.h"
@@ -60,14 +60,14 @@
#include "DataFile.h"
#include "Pattern.h"
#include "Piano.h"
#include "pixmap_button.h"
#include "PixmapButton.h"
#include "Song.h"
#include "SongEditor.h"
#include "templates.h"
#include "text_float.h"
#include "TextFloat.h"
#include "Timeline.h"
#include "tool_button.h"
#include "text_float.h"
#include "ToolButton.h"
#include "TextFloat.h"
typedef AutomationPattern::timeMap timeMap;
@@ -126,7 +126,7 @@ QPixmap * PianoRoll::s_toolSelect = NULL;
QPixmap * PianoRoll::s_toolMove = NULL;
QPixmap * PianoRoll::s_toolOpen = NULL;
textFloat * PianoRoll::s_textFloat = NULL;
TextFloat * PianoRoll::s_textFloat = NULL;
// used for drawing of piano
PianoRoll::PianoRollKeyTypes PianoRoll::prKeyOrder[] =
@@ -285,7 +285,7 @@ PianoRoll::PianoRoll() :
// init text-float
if( s_textFloat == NULL )
{
s_textFloat = new textFloat;
s_textFloat = new TextFloat;
}
setAttribute( Qt::WA_OpaquePaintEvent, true );
@@ -328,19 +328,19 @@ PianoRoll::PianoRoll() :
// init control-buttons at the top
m_playButton = new toolButton( embed::getIconPixmap( "play" ),
m_playButton = new ToolButton( embed::getIconPixmap( "play" ),
tr( "Play/pause current pattern (Space)" ),
this, SLOT( play() ), m_toolBar );
m_recordButton = new toolButton( embed::getIconPixmap( "record" ),
m_recordButton = new ToolButton( embed::getIconPixmap( "record" ),
tr( "Record notes from MIDI-device/channel-piano" ),
this, SLOT( record() ), m_toolBar );
m_recordAccompanyButton = new toolButton(
m_recordAccompanyButton = new ToolButton(
embed::getIconPixmap( "record_accompany" ),
tr( "Record notes from MIDI-device/channel-piano while playing song or BB track" ),
this, SLOT( recordAccompany() ), m_toolBar );
m_stopButton = new toolButton( embed::getIconPixmap( "stop" ),
m_stopButton = new ToolButton( embed::getIconPixmap( "stop" ),
tr( "Stop playing of current pattern (Space)" ),
this, SLOT( stop() ), m_toolBar );
@@ -384,27 +384,27 @@ PianoRoll::PianoRoll() :
SLOT( verScrolled( int ) ) );
// init edit-buttons at the top
m_drawButton = new toolButton( embed::getIconPixmap( "edit_draw" ),
m_drawButton = new ToolButton( embed::getIconPixmap( "edit_draw" ),
tr( "Draw mode (Shift+D)" ),
this, SLOT( drawButtonToggled() ),
m_toolBar );
m_drawButton->setCheckable( true );
m_drawButton->setChecked( true );
m_eraseButton = new toolButton( embed::getIconPixmap( "edit_erase" ),
m_eraseButton = new ToolButton( embed::getIconPixmap( "edit_erase" ),
tr( "Erase mode (Shift+E)" ),
this, SLOT( eraseButtonToggled() ),
m_toolBar );
m_eraseButton->setCheckable( true );
m_selectButton = new toolButton( embed::getIconPixmap(
m_selectButton = new ToolButton( embed::getIconPixmap(
"edit_select" ),
tr( "Select mode (Shift+S)" ),
this, SLOT( selectButtonToggled() ),
m_toolBar );
m_selectButton->setCheckable( true );
m_detuneButton = new toolButton( embed::getIconPixmap( "automation"),
m_detuneButton = new ToolButton( embed::getIconPixmap( "automation"),
tr( "Detune mode (Shift+T)" ),
this, SLOT( detuneButtonToggled() ),
m_toolBar );
@@ -440,17 +440,17 @@ PianoRoll::PianoRoll() :
"notes from one to another. You can also press "
"'Shift+T' on your keyboard to activate this mode." ) );
m_cutButton = new toolButton( embed::getIconPixmap( "edit_cut" ),
m_cutButton = new ToolButton( embed::getIconPixmap( "edit_cut" ),
tr( "Cut selected notes (Ctrl+X)" ),
this, SLOT( cutSelectedNotes() ),
m_toolBar );
m_copyButton = new toolButton( embed::getIconPixmap( "edit_copy" ),
m_copyButton = new ToolButton( embed::getIconPixmap( "edit_copy" ),
tr( "Copy selected notes (Ctrl+C)" ),
this, SLOT( copySelectedNotes() ),
m_toolBar );
m_pasteButton = new toolButton( embed::getIconPixmap( "edit_paste" ),
m_pasteButton = new ToolButton( embed::getIconPixmap( "edit_paste" ),
tr( "Paste notes from clipboard "
"(Ctrl+V)" ),
this, SLOT( pasteNotes() ),
@@ -479,7 +479,7 @@ PianoRoll::PianoRoll() :
m_zoomingModel.setValue( m_zoomingModel.findText( "100%" ) );
connect( &m_zoomingModel, SIGNAL( dataChanged() ),
this, SLOT( zoomingChanged() ) );
m_zoomingComboBox = new comboBox( m_toolBar );
m_zoomingComboBox = new ComboBox( m_toolBar );
m_zoomingComboBox->setModel( &m_zoomingModel );
m_zoomingComboBox->setFixedSize( 64, 22 );
@@ -498,7 +498,7 @@ PianoRoll::PianoRoll() :
}
m_quantizeModel.addItem( "1/192" );
m_quantizeModel.setValue( m_quantizeModel.findText( "1/16" ) );
m_quantizeComboBox = new comboBox( m_toolBar );
m_quantizeComboBox = new ComboBox( m_toolBar );
m_quantizeComboBox->setModel( &m_quantizeModel );
m_quantizeComboBox->setFixedSize( 64, 22 );
connect( &m_quantizeModel, SIGNAL( dataChanged() ),
@@ -527,7 +527,7 @@ PianoRoll::PianoRoll() :
new PixmapLoader( "note_" + pixmaps[i+NUM_EVEN_LENGTHS] ) );
}
m_noteLenModel.setValue( 0 );
m_noteLenComboBox = new comboBox( m_toolBar );
m_noteLenComboBox = new ComboBox( m_toolBar );
m_noteLenComboBox->setModel( &m_noteLenModel );
m_noteLenComboBox->setFixedSize( 105, 22 );
// Note length change can cause a redraw if Q is set to lock
@@ -551,7 +551,7 @@ PianoRoll::PianoRoll() :
}
m_scaleModel.setValue( 0 );
m_scaleComboBox = new comboBox( m_toolBar );
m_scaleComboBox = new ComboBox( m_toolBar );
m_scaleComboBox->setModel( &m_scaleModel );
m_scaleComboBox->setFixedSize( 105, 22 );
// change can update m_semiToneMarkerMenu
@@ -573,7 +573,7 @@ PianoRoll::PianoRoll() :
}
m_chordModel.setValue( 0 );
m_chordComboBox = new comboBox( m_toolBar );
m_chordComboBox = new ComboBox( m_toolBar );
m_chordComboBox->setModel( &m_chordModel );
m_chordComboBox->setFixedSize( 105, 22 );
// change can update m_semiToneMarkerMenu

View File

@@ -50,7 +50,7 @@
#include "Engine.h"
#include "gui_templates.h"
#include "InstrumentTrack.h"
#include "knob.h"
#include "Knob.h"
#include "string_pair_drag.h"
#include "MainWindow.h"
#include "MidiEvent.h"

View File

@@ -37,18 +37,18 @@
#include "SongEditor.h"
#include "AutomatableSlider.h"
#include "combobox.h"
#include "ComboBox.h"
#include "ConfigManager.h"
#include "cpuload_widget.h"
#include "CPULoadWidget.h"
#include "embed.h"
#include "LcdSpinBox.h"
#include "MainWindow.h"
#include "MeterDialog.h"
#include "text_float.h"
#include "TextFloat.h"
#include "Timeline.h"
#include "tool_button.h"
#include "tooltip.h"
#include "visualization_widget.h"
#include "ToolButton.h"
#include "ToolTip.h"
#include "VisualizationWidget.h"
#include "TimeDisplayWidget.h"
#include "AudioDevice.h"
#include "PianoRoll.h"
@@ -117,7 +117,7 @@ SongEditor::SongEditor( Song * _song ) :
m_tempoSpinBox = new LcdSpinBox( 3, tb, tr( "Tempo" ) );
m_tempoSpinBox->setModel( &m_song->m_tempoModel );
m_tempoSpinBox->setLabel( tr( "TEMPO/BPM" ) );
toolTip::add( m_tempoSpinBox, tr( "tempo of song" ) );
ToolTip::add( m_tempoSpinBox, tr( "tempo of song" ) );
m_tempoSpinBox->setWhatsThis(
tr( "The tempo of a song is specified in beats per minute "
@@ -162,7 +162,7 @@ SongEditor::SongEditor( Song * _song ) :
m_masterVolumeSlider->setTickPosition( QSlider::TicksLeft );
m_masterVolumeSlider->setFixedSize( 26, 60 );
m_masterVolumeSlider->setTickInterval( 50 );
toolTip::add( m_masterVolumeSlider, tr( "master volume" ) );
ToolTip::add( m_masterVolumeSlider, tr( "master volume" ) );
connect( m_masterVolumeSlider, SIGNAL( logicValueChanged( int ) ), this,
SLOT( masterVolumeChanged( int ) ) );
@@ -173,7 +173,7 @@ SongEditor::SongEditor( Song * _song ) :
connect( m_masterVolumeSlider, SIGNAL( sliderReleased() ), this,
SLOT( masterVolumeReleased() ) );
m_mvsStatus = new textFloat;
m_mvsStatus = new TextFloat;
m_mvsStatus->setTitle( tr( "Master volume" ) );
m_mvsStatus->setPixmap( embed::getIconPixmap( "master_volume" ) );
@@ -195,7 +195,7 @@ SongEditor::SongEditor( Song * _song ) :
m_masterPitchSlider->setTickPosition( QSlider::TicksLeft );
m_masterPitchSlider->setFixedSize( 26, 60 );
m_masterPitchSlider->setTickInterval( 12 );
toolTip::add( m_masterPitchSlider, tr( "master pitch" ) );
ToolTip::add( m_masterPitchSlider, tr( "master pitch" ) );
connect( m_masterPitchSlider, SIGNAL( logicValueChanged( int ) ), this,
SLOT( masterPitchChanged( int ) ) );
connect( m_masterPitchSlider, SIGNAL( sliderPressed() ), this,
@@ -205,7 +205,7 @@ SongEditor::SongEditor( Song * _song ) :
connect( m_masterPitchSlider, SIGNAL( sliderReleased() ), this,
SLOT( masterPitchReleased() ) );
m_mpsStatus = new textFloat;
m_mpsStatus = new TextFloat;
m_mpsStatus->setTitle( tr( "Master pitch" ) );
m_mpsStatus->setPixmap( embed::getIconPixmap( "master_pitch" ) );
@@ -221,10 +221,10 @@ SongEditor::SongEditor( Song * _song ) :
vcw_layout->setSpacing( 0 );
//vcw_layout->addStretch();
vcw_layout->addWidget( new visualizationWidget(
vcw_layout->addWidget( new VisualizationWidget(
embed::getIconPixmap( "output_graph" ), vc_w ) );
vcw_layout->addWidget( new cpuloadWidget( vc_w ) );
vcw_layout->addWidget( new CPULoadWidget( vc_w ) );
vcw_layout->addStretch();
Engine::mainWindow()->addWidgetToToolBar( vc_w );
@@ -248,17 +248,17 @@ SongEditor::SongEditor( Song * _song ) :
// fill own tool-bar
m_playButton = new toolButton( embed::getIconPixmap( "play" ),
m_playButton = new ToolButton( embed::getIconPixmap( "play" ),
tr( "Play song (Space)" ),
this, SLOT( play() ), m_toolBar );
m_playButton->setObjectName( "playButton" );
m_recordButton = new toolButton( embed::getIconPixmap( "record" ),
m_recordButton = new ToolButton( embed::getIconPixmap( "record" ),
tr( "Record samples from Audio-device" ),
this, SLOT( record() ), m_toolBar );
m_recordButton->setObjectName( "recordButton" );
m_recordAccompanyButton = new toolButton(
m_recordAccompanyButton = new ToolButton(
embed::getIconPixmap( "record_accompany" ),
tr( "Record samples from Audio-device while playing "
"song or BB track" ),
@@ -275,37 +275,37 @@ SongEditor::SongEditor( Song * _song ) :
m_recordAccompanyButton->setDisabled( true );
}
m_stopButton = new toolButton( embed::getIconPixmap( "stop" ),
m_stopButton = new ToolButton( embed::getIconPixmap( "stop" ),
tr( "Stop song (Space)" ),
this, SLOT( stop() ), m_toolBar );
m_stopButton->setObjectName( "stopButton" );
m_addBBTrackButton = new toolButton( embed::getIconPixmap(
m_addBBTrackButton = new ToolButton( embed::getIconPixmap(
"add_bb_track" ),
tr( "Add beat/bassline" ),
m_song, SLOT( addBBTrack() ),
m_toolBar );
m_addSampleTrackButton = new toolButton( embed::getIconPixmap(
m_addSampleTrackButton = new ToolButton( embed::getIconPixmap(
"add_sample_track" ),
tr( "Add sample-track" ),
m_song, SLOT( addSampleTrack() ),
m_toolBar );
m_addAutomationTrackButton = new toolButton( embed::getIconPixmap(
m_addAutomationTrackButton = new ToolButton( embed::getIconPixmap(
"add_automation" ),
tr( "Add automation-track" ),
m_song, SLOT( addAutomationTrack() ),
m_toolBar );
m_drawModeButton = new toolButton( embed::getIconPixmap(
m_drawModeButton = new ToolButton( embed::getIconPixmap(
"edit_draw" ),
tr( "Draw mode" ),
NULL, NULL, m_toolBar );
m_drawModeButton->setCheckable( true );
m_drawModeButton->setChecked( true );
m_editModeButton = new toolButton( embed::getIconPixmap(
m_editModeButton = new ToolButton( embed::getIconPixmap(
"edit_select" ),
tr( "Edit mode (select and move)" ),
NULL, NULL, m_toolBar );
@@ -343,7 +343,7 @@ SongEditor::SongEditor( Song * _song ) :
zoom_lbl->setPixmap( embed::getIconPixmap( "zoom" ) );
// setup zooming-stuff
m_zoomingComboBox = new comboBox( m_toolBar );
m_zoomingComboBox = new ComboBox( m_toolBar );
m_zoomingComboBox->setFixedSize( 80, 22 );
m_zoomingComboBox->move( 580, 4 );
for( int i = 0; i < 7; ++i )

View File

@@ -41,7 +41,7 @@
#include "Instrument.h"
#include "InstrumentTrack.h"
#include "DataFile.h"
#include "rubberband.h"
#include "Rubberband.h"
#include "Song.h"
#include "string_pair_drag.h"
#include "Track.h"
@@ -57,7 +57,7 @@ TrackContainerView::TrackContainerView( TrackContainer * _tc ) :
m_trackViews(),
m_scrollArea( new scrollArea( this ) ),
m_ppt( DEFAULT_PIXELS_PER_TACT ),
m_rubberBand( new rubberBand( m_scrollArea ) ),
m_rubberBand( new RubberBand( m_scrollArea ) ),
m_origin()
{
m_tc->setHook( this );

View File

@@ -33,7 +33,7 @@
#include "embed.h"
#include "MainWindow.h"
#include "Song.h"
#include "tool_button.h"
#include "ToolButton.h"
#include "ConfigManager.h"
#include "DataFile.h"
#include "string_pair_drag.h"
@@ -79,34 +79,34 @@ bbEditor::bbEditor( BBTrackContainer* tc ) :
}
m_playButton = new toolButton( embed::getIconPixmap( "play" ),
m_playButton = new ToolButton( embed::getIconPixmap( "play" ),
tr( "Play/pause current beat/bassline (Space)" ),
this, SLOT( play() ), m_toolBar );
m_stopButton = new toolButton( embed::getIconPixmap( "stop" ),
m_stopButton = new ToolButton( embed::getIconPixmap( "stop" ),
tr( "Stop playback of current beat/bassline (Space)" ),
this, SLOT( stop() ), m_toolBar );
m_playButton->setObjectName( "playButton" );
m_stopButton->setObjectName( "stopButton" );
toolButton * add_bb_track = new toolButton(
ToolButton * add_bb_track = new ToolButton(
embed::getIconPixmap( "add_bb_track" ),
tr( "Add beat/bassline" ),
Engine::getSong(), SLOT( addBBTrack() ),
m_toolBar );
toolButton * add_automation_track = new toolButton(
ToolButton * add_automation_track = new ToolButton(
embed::getIconPixmap( "add_automation" ),
tr( "Add automation-track" ),
this, SLOT( addAutomationTrack() ), m_toolBar );
toolButton * remove_bar = new toolButton(
ToolButton * remove_bar = new ToolButton(
embed::getIconPixmap( "step_btn_remove" ),
tr( "Remove steps" ),
this, SLOT( removeSteps() ), m_toolBar );
toolButton * add_bar = new toolButton(
ToolButton * add_bar = new ToolButton(
embed::getIconPixmap( "step_btn_add" ),
tr( "Add steps" ),
this, SLOT( addSteps() ), m_toolBar );
@@ -121,7 +121,7 @@ bbEditor::bbEditor( BBTrackContainer* tc ) :
tr( "Click here to stop playing of current "
"beat/bassline." ) );
m_bbComboBox = new comboBox( m_toolBar );
m_bbComboBox = new ComboBox( m_toolBar );
m_bbComboBox->setFixedSize( 200, 22 );
m_bbComboBox->setModel( &tc->m_bbComboBoxModel );

View File

@@ -32,9 +32,9 @@
#include <QWhatsThis>
#include "setup_dialog.h"
#include "tab_bar.h"
#include "TabBar.h"
#include "tab_button.h"
#include "tab_widget.h"
#include "TabWidget.h"
#include "gui_templates.h"
#include "Mixer.h"
#include "ProjectJournal.h"
@@ -42,8 +42,8 @@
#include "embed.h"
#include "Engine.h"
#include "debug.h"
#include "tooltip.h"
#include "led_checkbox.h"
#include "ToolTip.h"
#include "LedCheckbox.h"
#include "LcdSpinBox.h"
#include "FileDialog.h"
@@ -139,7 +139,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
hlayout->setSpacing( 0 );
hlayout->setMargin( 0 );
m_tabBar = new tabBar( settings, QBoxLayout::TopToBottom );
m_tabBar = new TabBar( settings, QBoxLayout::TopToBottom );
m_tabBar->setExclusive( true );
m_tabBar->setFixedWidth( 72 );
@@ -159,7 +159,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
gen_layout->setMargin( 0 );
labelWidget( general, tr( "General settings" ) );
tabWidget * bufsize_tw = new tabWidget( tr( "BUFFER SIZE" ), general );
TabWidget * bufsize_tw = new TabWidget( tr( "BUFFER SIZE" ), general );
bufsize_tw->setFixedHeight( 80 );
m_bufSizeSlider = new QSlider( Qt::Horizontal, bufsize_tw );
@@ -182,7 +182,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
bufsize_reset_btn->setGeometry( 290, 40, 28, 28 );
connect( bufsize_reset_btn, SIGNAL( clicked() ), this,
SLOT( resetBufSize() ) );
toolTip::add( bufsize_reset_btn, tr( "Reset to default-value" ) );
ToolTip::add( bufsize_reset_btn, tr( "Reset to default-value" ) );
QPushButton * bufsize_help_btn = new QPushButton(
embed::getIconPixmap( "help" ), "", bufsize_tw );
@@ -191,14 +191,14 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
SLOT( displayBufSizeHelp() ) );
tabWidget * misc_tw = new tabWidget( tr( "MISC" ), general );
TabWidget * misc_tw = new TabWidget( tr( "MISC" ), general );
const int XDelta = 10;
const int YDelta = 18;
const int HeaderSize = 30;
int labelNumber = 0;
ledCheckBox * enable_tooltips = new ledCheckBox(
LedCheckBox * enable_tooltips = new LedCheckBox(
tr( "Enable tooltips" ),
misc_tw );
labelNumber++;
@@ -208,7 +208,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
this, SLOT( toggleToolTips( bool ) ) );
ledCheckBox * restart_msg = new ledCheckBox(
LedCheckBox * restart_msg = new LedCheckBox(
tr( "Show restart warning after changing settings" ),
misc_tw );
labelNumber++;
@@ -218,7 +218,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
this, SLOT( toggleWarnAfterSetup( bool ) ) );
ledCheckBox * dbv = new ledCheckBox( tr( "Display volume as dBV " ),
LedCheckBox * dbv = new LedCheckBox( tr( "Display volume as dBV " ),
misc_tw );
labelNumber++;
dbv->move( XDelta, YDelta*labelNumber );
@@ -227,7 +227,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
this, SLOT( toggleDisplaydBV( bool ) ) );
ledCheckBox * mmpz = new ledCheckBox(
LedCheckBox * mmpz = new LedCheckBox(
tr( "Compress project files per default" ),
misc_tw );
labelNumber++;
@@ -236,7 +236,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
connect( mmpz, SIGNAL( toggled( bool ) ),
this, SLOT( toggleMMPZ( bool ) ) );
ledCheckBox * oneitw = new ledCheckBox(
LedCheckBox * oneitw = new LedCheckBox(
tr( "One instrument track window mode" ),
misc_tw );
labelNumber++;
@@ -245,7 +245,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
connect( oneitw, SIGNAL( toggled( bool ) ),
this, SLOT( toggleOneInstrumentTrackWindow( bool ) ) );
ledCheckBox * hqaudio = new ledCheckBox(
LedCheckBox * hqaudio = new LedCheckBox(
tr( "HQ-mode for output audio-device" ),
misc_tw );
labelNumber++;
@@ -254,7 +254,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
connect( hqaudio, SIGNAL( toggled( bool ) ),
this, SLOT( toggleHQAudioDev( bool ) ) );
ledCheckBox * compacttracks = new ledCheckBox(
LedCheckBox * compacttracks = new LedCheckBox(
tr( "Compact track buttons" ),
misc_tw );
labelNumber++;
@@ -264,7 +264,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
this, SLOT( toggleCompactTrackButtons( bool ) ) );
ledCheckBox * syncVST = new ledCheckBox(
LedCheckBox * syncVST = new LedCheckBox(
tr( "Sync VST plugins to host playback" ),
misc_tw );
labelNumber++;
@@ -273,7 +273,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
connect( syncVST, SIGNAL( toggled( bool ) ),
this, SLOT( toggleSyncVSTPlugins( bool ) ) );
ledCheckBox * noteLabels = new ledCheckBox(
LedCheckBox * noteLabels = new LedCheckBox(
tr( "Enable note labels in piano roll" ),
misc_tw );
labelNumber++;
@@ -282,7 +282,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
connect( noteLabels, SIGNAL( toggled( bool ) ),
this, SLOT( toggleNoteLabels( bool ) ) );
ledCheckBox * displayWaveform = new ledCheckBox(
LedCheckBox * displayWaveform = new LedCheckBox(
tr( "Enable waveform display by default" ),
misc_tw );
labelNumber++;
@@ -291,7 +291,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
connect( displayWaveform, SIGNAL( toggled( bool ) ),
this, SLOT( toggleDisplayWaveform( bool ) ) );
ledCheckBox * disableAutoquit = new ledCheckBox(
LedCheckBox * disableAutoquit = new LedCheckBox(
tr( "Keep effects running even without input" ),
misc_tw );
labelNumber++;
@@ -325,7 +325,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
labelWidget( paths, tr( "Paths" ) );
// working-dir
tabWidget * lmms_wd_tw = new tabWidget( tr(
TabWidget * lmms_wd_tw = new TabWidget( tr(
"LMMS working directory" ).toUpper(),
paths );
lmms_wd_tw->setFixedHeight( 48 );
@@ -344,7 +344,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
SLOT( openWorkingDir() ) );
// vst-dir
tabWidget * vst_tw = new tabWidget( tr(
TabWidget * vst_tw = new TabWidget( tr(
"VST-plugin directory" ).toUpper(),
paths );
vst_tw->setFixedHeight( 48 );
@@ -363,7 +363,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
SLOT( openVSTDir() ) );
// artwork-dir
tabWidget * artwork_tw = new tabWidget( tr(
TabWidget * artwork_tw = new TabWidget( tr(
"Artwork directory" ).toUpper(),
paths );
artwork_tw->setFixedHeight( 48 );
@@ -384,7 +384,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
// background artwork file
tabWidget * backgroundArtwork_tw = new tabWidget( tr(
TabWidget * backgroundArtwork_tw = new TabWidget( tr(
"Background artwork" ).toUpper(), paths );
backgroundArtwork_tw->setFixedHeight( 48 );
@@ -407,7 +407,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
// FL Studio-dir
tabWidget * fl_tw = new tabWidget( tr(
TabWidget * fl_tw = new TabWidget( tr(
"FL Studio installation directory" ).toUpper(),
paths );
fl_tw->setFixedHeight( 48 );
@@ -425,7 +425,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
connect( fldir_select_btn, SIGNAL( clicked() ), this,
SLOT( openFLDir() ) );
// LADSPA-dir
tabWidget * lad_tw = new tabWidget( tr(
TabWidget * lad_tw = new TabWidget( tr(
"LADSPA plugin paths" ).toUpper(),
paths );
lad_tw->setFixedHeight( 48 );
@@ -445,7 +445,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
#ifdef LMMS_HAVE_STK
// STK-dir
tabWidget * stk_tw = new tabWidget( tr(
TabWidget * stk_tw = new TabWidget( tr(
"STK rawwave directory" ).toUpper(),
paths );
stk_tw->setFixedHeight( 48 );
@@ -466,7 +466,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
#ifdef LMMS_HAVE_FLUIDSYNTH
// Soundfont
tabWidget * sf_tw = new tabWidget( tr(
TabWidget * sf_tw = new TabWidget( tr(
"Default Soundfont File" ).toUpper(), paths );
sf_tw->setFixedHeight( 48 );
@@ -517,12 +517,12 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
perf_layout->setMargin( 0 );
labelWidget( performance, tr( "Performance settings" ) );
tabWidget * ui_fx_tw = new tabWidget( tr( "UI effects vs. "
TabWidget * ui_fx_tw = new TabWidget( tr( "UI effects vs. "
"performance" ).toUpper(),
performance );
ui_fx_tw->setFixedHeight( 80 );
ledCheckBox * smoothScroll = new ledCheckBox(
LedCheckBox * smoothScroll = new LedCheckBox(
tr( "Smooth scroll in Song Editor" ), ui_fx_tw );
smoothScroll->move( 10, 20 );
smoothScroll->setChecked( m_smoothScroll );
@@ -530,7 +530,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
this, SLOT( toggleSmoothScroll( bool ) ) );
ledCheckBox * autoSave = new ledCheckBox(
LedCheckBox * autoSave = new LedCheckBox(
tr( "Enable auto save feature" ), ui_fx_tw );
autoSave->move( 10, 40 );
autoSave->setChecked( m_enableAutoSave );
@@ -538,7 +538,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
this, SLOT( toggleAutoSave( bool ) ) );
ledCheckBox * animAFP = new ledCheckBox(
LedCheckBox * animAFP = new LedCheckBox(
tr( "Show playback cursor in AudioFileProcessor" ),
ui_fx_tw );
animAFP->move( 10, 60 );
@@ -560,7 +560,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
audio_layout->setMargin( 0 );
labelWidget( audio, tr( "Audio settings" ) );
tabWidget * audioiface_tw = new tabWidget( tr( "AUDIO INTERFACE" ),
TabWidget * audioiface_tw = new TabWidget( tr( "AUDIO INTERFACE" ),
audio );
audioiface_tw->setFixedHeight( 60 );
@@ -652,7 +652,7 @@ setupDialog::setupDialog( ConfigTabs _tab_to_open ) :
midi_layout->setMargin( 0 );
labelWidget( midi, tr( "MIDI settings" ) );
tabWidget * midiiface_tw = new tabWidget( tr( "MIDI INTERFACE" ),
TabWidget * midiiface_tw = new TabWidget( tr( "MIDI INTERFACE" ),
midi );
midiiface_tw->setFixedHeight( 60 );

View File

@@ -1,5 +1,5 @@
/*
* cpuload_widget.cpp - widget for displaying CPU-load (partly based on
* CPULoadWidget.cpp - widget for displaying CPU-load (partly based on
* Hydrogen's CPU-load-widget)
*
* Copyright (c) 2005-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
@@ -26,13 +26,13 @@
#include <QPainter>
#include "cpuload_widget.h"
#include "CPULoadWidget.h"
#include "embed.h"
#include "Engine.h"
#include "Mixer.h"
cpuloadWidget::cpuloadWidget( QWidget * _parent ) :
CPULoadWidget::CPULoadWidget( QWidget * _parent ) :
QWidget( _parent ),
m_currentLoad( 0 ),
m_temp(),
@@ -55,14 +55,14 @@ cpuloadWidget::cpuloadWidget( QWidget * _parent ) :
cpuloadWidget::~cpuloadWidget()
CPULoadWidget::~CPULoadWidget()
{
}
void cpuloadWidget::paintEvent( QPaintEvent * )
void CPULoadWidget::paintEvent( QPaintEvent * )
{
if( m_changed == true )
{
@@ -89,7 +89,7 @@ void cpuloadWidget::paintEvent( QPaintEvent * )
void cpuloadWidget::updateCpuLoad()
void CPULoadWidget::updateCpuLoad()
{
// smooth load-values a bit
int new_load = ( m_currentLoad + Engine::mixer()->cpuLoad() ) / 2;

View File

@@ -1,5 +1,5 @@
/*
* combobox.cpp - implementation of LMMS combobox
* Combobox.cpp - implementation of LMMS combobox
*
* Copyright (c) 2006-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2008-2009 Paul Giblock <pgib/at/users.sourceforge.net>
@@ -24,7 +24,7 @@
*/
#include "combobox.h"
#include "ComboBox.h"
#include <QApplication>
#include <QCursor>
@@ -41,14 +41,14 @@
#include "MainWindow.h"
QPixmap * comboBox::s_background = NULL;
QPixmap * comboBox::s_arrow = NULL;
QPixmap * comboBox::s_arrowSelected = NULL;
QPixmap * ComboBox::s_background = NULL;
QPixmap * ComboBox::s_arrow = NULL;
QPixmap * ComboBox::s_arrowSelected = NULL;
const int CB_ARROW_BTN_WIDTH = 20;
comboBox::comboBox( QWidget * _parent, const QString & _name ) :
ComboBox::ComboBox( QWidget * _parent, const QString & _name ) :
QWidget( _parent ),
IntModelView( new ComboBoxModel( NULL, QString::null, true ), this ),
m_menu( this ),
@@ -82,13 +82,13 @@ comboBox::comboBox( QWidget * _parent, const QString & _name ) :
comboBox::~comboBox()
ComboBox::~ComboBox()
{
}
QSize comboBox::sizeHint() const
QSize ComboBox::sizeHint() const
{
int maxTextWidth = 0;
for( int i = 0; model() && i < model()->size(); ++i )
@@ -105,7 +105,7 @@ QSize comboBox::sizeHint() const
void comboBox::contextMenuEvent( QContextMenuEvent * event )
void ComboBox::contextMenuEvent( QContextMenuEvent * event )
{
if( model() == NULL || event->x() <= width() - CB_ARROW_BTN_WIDTH )
{
@@ -121,7 +121,7 @@ void comboBox::contextMenuEvent( QContextMenuEvent * event )
void comboBox::mousePressEvent( QMouseEvent* event )
void ComboBox::mousePressEvent( QMouseEvent* event )
{
if( model() == NULL )
{
@@ -175,7 +175,7 @@ void comboBox::mousePressEvent( QMouseEvent* event )
void comboBox::paintEvent( QPaintEvent * _pe )
void ComboBox::paintEvent( QPaintEvent * _pe )
{
QPainter p( this );
@@ -231,7 +231,7 @@ void comboBox::paintEvent( QPaintEvent * _pe )
void comboBox::wheelEvent( QWheelEvent* event )
void ComboBox::wheelEvent( QWheelEvent* event )
{
if( model() )
{
@@ -244,7 +244,7 @@ void comboBox::wheelEvent( QWheelEvent* event )
void comboBox::setItem( QAction* item )
void ComboBox::setItem( QAction* item )
{
if( model() )
{

View File

@@ -35,7 +35,7 @@
#include "Song.h"
#include "embed.h"
#include "MainWindow.h"
#include "group_box.h"
#include "GroupBox.h"
#include "ControllerRackView.h"
#include "ControllerView.h"
#include "LfoController.h"

View File

@@ -39,9 +39,9 @@
#include "gui_templates.h"
#include "embed.h"
#include "Engine.h"
#include "led_checkbox.h"
#include "LedCheckbox.h"
#include "MainWindow.h"
#include "tooltip.h"
#include "ToolTip.h"
ControllerView::ControllerView( Controller * _model, QWidget * _parent ) :

View File

@@ -32,7 +32,7 @@
#include "EffectRackView.h"
#include "EffectSelectDialog.h"
#include "EffectView.h"
#include "group_box.h"
#include "GroupBox.h"
EffectRackView::EffectRackView( EffectChain* model, QWidget* parent ) :
@@ -42,7 +42,7 @@ EffectRackView::EffectRackView( EffectChain* model, QWidget* parent ) :
QVBoxLayout* mainLayout = new QVBoxLayout( this );
mainLayout->setMargin( 5 );
m_effectsGroupBox = new groupBox( tr( "EFFECTS CHAIN" ) );
m_effectsGroupBox = new GroupBox( tr( "EFFECTS CHAIN" ) );
mainLayout->addWidget( m_effectsGroupBox );
QVBoxLayout* effectsLayout = new QVBoxLayout( m_effectsGroupBox );

View File

@@ -38,11 +38,11 @@
#include "embed.h"
#include "Engine.h"
#include "gui_templates.h"
#include "knob.h"
#include "led_checkbox.h"
#include "Knob.h"
#include "LedCheckbox.h"
#include "MainWindow.h"
#include "TempoSyncKnob.h"
#include "tooltip.h"
#include "ToolTip.h"
EffectView::EffectView( Effect * _model, QWidget * _parent ) :
@@ -55,15 +55,15 @@ EffectView::EffectView( Effect * _model, QWidget * _parent ) :
// Disable effects that are of type "DummyEffect"
bool isEnabled = !dynamic_cast<DummyEffect *>( effect() );
m_bypass = new ledCheckBox( this, "", isEnabled ? ledCheckBox::Green : ledCheckBox::Red );
m_bypass = new LedCheckBox( this, "", isEnabled ? LedCheckBox::Green : LedCheckBox::Red );
m_bypass->move( 3, 3 );
m_bypass->setEnabled( isEnabled );
m_bypass->setWhatsThis( tr( "Toggles the effect on or off." ) );
toolTip::add( m_bypass, tr( "On/Off" ) );
ToolTip::add( m_bypass, tr( "On/Off" ) );
m_wetDry = new knob( knobBright_26, this );
m_wetDry = new Knob( knobBright_26, this );
m_wetDry->setLabel( tr( "W/D" ) );
m_wetDry->move( 27, 5 );
m_wetDry->setEnabled( isEnabled );
@@ -84,7 +84,7 @@ EffectView::EffectView( Effect * _model, QWidget * _parent ) :
"run the risk of clipping the tail on delay and reverb effects." ) );
m_gate = new knob( knobBright_26, this );
m_gate = new Knob( knobBright_26, this );
m_gate->setLabel( tr( "GATE" ) );
m_gate->move( 93, 5 );
m_gate->setEnabled( isEnabled );

View File

@@ -31,16 +31,16 @@
#include "embed.h"
#include "Engine.h"
#include "gui_templates.h"
#include "knob.h"
#include "led_checkbox.h"
#include "Knob.h"
#include "LedCheckbox.h"
#include "Mixer.h"
#include "DataFile.h"
#include "Oscillator.h"
#include "pixmap_button.h"
#include "PixmapButton.h"
#include "string_pair_drag.h"
#include "TempoSyncKnob.h"
#include "text_float.h"
#include "tooltip.h"
#include "TextFloat.h"
#include "ToolTip.h"
#include "Track.h"
@@ -94,7 +94,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView( QWidget * _parent ) :
s_lfoGraph = new QPixmap( embed::getIconPixmap( "lfo_graph" ) );
}
m_predelayKnob = new knob( knobBright_26, this );
m_predelayKnob = new Knob( knobBright_26, this );
m_predelayKnob->setLabel( tr( "DEL" ) );
m_predelayKnob->move( PREDELAY_KNOB_X, ENV_KNOBS_Y );
m_predelayKnob->setHintText( tr( "Predelay:" ) + " ", "" );
@@ -104,7 +104,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView( QWidget * _parent ) :
"before start of actual envelope." ) );
m_attackKnob = new knob( knobBright_26, this );
m_attackKnob = new Knob( knobBright_26, this );
m_attackKnob->setLabel( tr( "ATT" ) );
m_attackKnob->move( ATTACK_KNOB_X, ENV_KNOBS_Y );
m_attackKnob->setHintText( tr( "Attack:" )+" ", "" );
@@ -115,7 +115,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView( QWidget * _parent ) :
"Choose a small value for instruments like pianos "
"and a big value for strings." ) );
m_holdKnob = new knob( knobBright_26, this );
m_holdKnob = new Knob( knobBright_26, this );
m_holdKnob->setLabel( tr( "HOLD" ) );
m_holdKnob->move( HOLD_KNOB_X, ENV_KNOBS_Y );
m_holdKnob->setHintText( tr( "Hold:" ) + " ", "" );
@@ -125,7 +125,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView( QWidget * _parent ) :
"envelope holds attack-level before it begins to "
"decrease to sustain-level." ) );
m_decayKnob = new knob( knobBright_26, this );
m_decayKnob = new Knob( knobBright_26, this );
m_decayKnob->setLabel( tr( "DEC" ) );
m_decayKnob->move( DECAY_KNOB_X, ENV_KNOBS_Y );
m_decayKnob->setHintText( tr( "Decay:" ) + " ", "" );
@@ -137,7 +137,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView( QWidget * _parent ) :
"like pianos." ) );
m_sustainKnob = new knob( knobBright_26, this );
m_sustainKnob = new Knob( knobBright_26, this );
m_sustainKnob->setLabel( tr( "SUST" ) );
m_sustainKnob->move( SUSTAIN_KNOB_X, ENV_KNOBS_Y );
m_sustainKnob->setHintText( tr( "Sustain:" ) + " ", "" );
@@ -148,7 +148,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView( QWidget * _parent ) :
"zero." ) );
m_releaseKnob = new knob( knobBright_26, this );
m_releaseKnob = new Knob( knobBright_26, this );
m_releaseKnob->setLabel( tr( "REL" ) );
m_releaseKnob->move( RELEASE_KNOB_X, ENV_KNOBS_Y );
m_releaseKnob->setHintText( tr( "Release:" ) + " ", "" );
@@ -160,7 +160,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView( QWidget * _parent ) :
"strings." ) );
m_amountKnob = new knob( knobBright_26, this );
m_amountKnob = new Knob( knobBright_26, this );
m_amountKnob->setLabel( tr( "AMT" ) );
m_amountKnob->move( AMOUNT_KNOB_X, ENV_GRAPH_Y );
m_amountKnob->setHintText( tr( "Modulation amount:" ) + " ", "" );
@@ -173,7 +173,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView( QWidget * _parent ) :
m_lfoPredelayKnob = new knob( knobBright_26, this );
m_lfoPredelayKnob = new Knob( knobBright_26, this );
m_lfoPredelayKnob->setLabel( tr( "DEL" ) );
m_lfoPredelayKnob->move( LFO_PREDELAY_KNOB_X, LFO_KNOB_Y );
m_lfoPredelayKnob->setHintText( tr( "LFO predelay:" ) + " ", "" );
@@ -183,7 +183,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView( QWidget * _parent ) :
"LFO starts to oscillate." ) );
m_lfoAttackKnob = new knob( knobBright_26, this );
m_lfoAttackKnob = new Knob( knobBright_26, this );
m_lfoAttackKnob->setLabel( tr( "ATT" ) );
m_lfoAttackKnob->move( LFO_ATTACK_KNOB_X, LFO_KNOB_Y );
m_lfoAttackKnob->setHintText( tr( "LFO- attack:" ) + " ", "" );
@@ -203,7 +203,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView( QWidget * _parent ) :
"the faster will be your effect." ) );
m_lfoAmountKnob = new knob( knobBright_26, this );
m_lfoAmountKnob = new Knob( knobBright_26, this );
m_lfoAmountKnob->setLabel( tr( "AMT" ) );
m_lfoAmountKnob->move( LFO_AMOUNT_KNOB_X, LFO_KNOB_Y );
m_lfoAmountKnob->setHintText( tr( "Modulation amount:" ) + " ", "" );
@@ -214,7 +214,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView( QWidget * _parent ) :
"be influenced by this LFO." ) );
pixmapButton * sin_lfo_btn = new pixmapButton( this, NULL );
PixmapButton * sin_lfo_btn = new PixmapButton( this, NULL );
sin_lfo_btn->move( LFO_SHAPES_X, LFO_SHAPES_Y );
sin_lfo_btn->setActiveGraphic( embed::getIconPixmap(
"sin_wave_active" ) );
@@ -223,7 +223,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView( QWidget * _parent ) :
sin_lfo_btn->setWhatsThis(
tr( "Click here for a sine-wave." ) );
pixmapButton * triangle_lfo_btn = new pixmapButton( this, NULL );
PixmapButton * triangle_lfo_btn = new PixmapButton( this, NULL );
triangle_lfo_btn->move( LFO_SHAPES_X+15, LFO_SHAPES_Y );
triangle_lfo_btn->setActiveGraphic( embed::getIconPixmap(
"triangle_wave_active" ) );
@@ -232,7 +232,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView( QWidget * _parent ) :
triangle_lfo_btn->setWhatsThis(
tr( "Click here for a triangle-wave." ) );
pixmapButton * saw_lfo_btn = new pixmapButton( this, NULL );
PixmapButton * saw_lfo_btn = new PixmapButton( this, NULL );
saw_lfo_btn->move( LFO_SHAPES_X+30, LFO_SHAPES_Y );
saw_lfo_btn->setActiveGraphic( embed::getIconPixmap(
"saw_wave_active" ) );
@@ -241,7 +241,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView( QWidget * _parent ) :
saw_lfo_btn->setWhatsThis(
tr( "Click here for a saw-wave for current." ) );
pixmapButton * sqr_lfo_btn = new pixmapButton( this, NULL );
PixmapButton * sqr_lfo_btn = new PixmapButton( this, NULL );
sqr_lfo_btn->move( LFO_SHAPES_X+45, LFO_SHAPES_Y );
sqr_lfo_btn->setActiveGraphic( embed::getIconPixmap(
"square_wave_active" ) );
@@ -250,7 +250,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView( QWidget * _parent ) :
sqr_lfo_btn->setWhatsThis(
tr( "Click here for a square-wave." ) );
m_userLfoBtn = new pixmapButton( this, NULL );
m_userLfoBtn = new PixmapButton( this, NULL );
m_userLfoBtn->move( LFO_SHAPES_X+75, LFO_SHAPES_Y );
m_userLfoBtn->setActiveGraphic( embed::getIconPixmap(
"usr_wave_active" ) );
@@ -264,7 +264,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView( QWidget * _parent ) :
connect( m_userLfoBtn, SIGNAL( toggled( bool ) ),
this, SLOT( lfoUserWaveChanged() ) );
pixmapButton * random_lfo_btn = new pixmapButton( this, NULL );
PixmapButton * random_lfo_btn = new PixmapButton( this, NULL );
random_lfo_btn->move( LFO_SHAPES_X+60, LFO_SHAPES_Y );
random_lfo_btn->setActiveGraphic( embed::getIconPixmap(
"random_wave_active" ) );
@@ -281,23 +281,23 @@ EnvelopeAndLfoView::EnvelopeAndLfoView( QWidget * _parent ) :
m_lfoWaveBtnGrp->addButton( m_userLfoBtn );
m_lfoWaveBtnGrp->addButton( random_lfo_btn );
m_x100Cb = new ledCheckBox( tr( "FREQ x 100" ), this );
m_x100Cb = new LedCheckBox( tr( "FREQ x 100" ), this );
m_x100Cb->setFont( pointSizeF( m_x100Cb->font(), 6.5 ) );
m_x100Cb->move( LFO_PREDELAY_KNOB_X, LFO_GRAPH_Y + 36 );
m_x100Cb->setWhatsThis(
tr( "Click here if the frequency of this LFO should be "
"multiplied by 100." ) );
toolTip::add( m_x100Cb, tr( "multiply LFO-frequency by 100" ) );
ToolTip::add( m_x100Cb, tr( "multiply LFO-frequency by 100" ) );
m_controlEnvAmountCb = new ledCheckBox( tr( "MODULATE ENV-AMOUNT" ),
m_controlEnvAmountCb = new LedCheckBox( tr( "MODULATE ENV-AMOUNT" ),
this );
m_controlEnvAmountCb->move( LFO_PREDELAY_KNOB_X, LFO_GRAPH_Y + 54 );
m_controlEnvAmountCb->setFont( pointSizeF( m_controlEnvAmountCb->font(), 6.5 ) );
m_controlEnvAmountCb ->setWhatsThis(
tr( "Click here to make the envelope-amount controlled by this "
"LFO." ) );
toolTip::add( m_controlEnvAmountCb,
ToolTip::add( m_controlEnvAmountCb,
tr( "control envelope-amount by this LFO" ) );
@@ -580,7 +580,7 @@ void EnvelopeAndLfoView::lfoUserWaveChanged()
{
if( m_params->m_userWave.frames() <= 1 )
{
textFloat::displayMessage( tr( "Hint" ),
TextFloat::displayMessage( tr( "Hint" ),
tr( "Drag a sample from somewhere and drop "
"it in this window." ),
embed::getIconPixmap( "hint" ), 3000 );

View File

@@ -1,5 +1,5 @@
/*
* fade_button.cpp - implementation of fade-button
* FadeButton.cpp - implementation of fade-button
*
* Copyright (c) 2005-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
@@ -29,14 +29,14 @@
#include <QPixmap>
#include "embed.h"
#include "fade_button.h"
#include "FadeButton.h"
#include "update_event.h"
const float FadeDuration = 300;
fadeButton::fadeButton( const QColor & _normal_color,
FadeButton::FadeButton( const QColor & _normal_color,
const QColor & _activated_color, QWidget * _parent ) :
QAbstractButton( _parent ),
m_stateTimer(),
@@ -51,14 +51,14 @@ fadeButton::fadeButton( const QColor & _normal_color,
fadeButton::~fadeButton()
FadeButton::~FadeButton()
{
}
void fadeButton::activate()
void FadeButton::activate()
{
m_stateTimer.restart();
signalUpdate();
@@ -67,7 +67,7 @@ void fadeButton::activate()
void fadeButton::customEvent( QEvent * )
void FadeButton::customEvent( QEvent * )
{
update();
}
@@ -75,7 +75,7 @@ void fadeButton::customEvent( QEvent * )
void fadeButton::paintEvent( QPaintEvent * _pe )
void FadeButton::paintEvent( QPaintEvent * _pe )
{
QColor col = m_normalColor;
if( m_stateTimer.elapsed() < FadeDuration )
@@ -110,7 +110,7 @@ void fadeButton::paintEvent( QPaintEvent * _pe )
void fadeButton::signalUpdate()
void FadeButton::signalUpdate()
{
QApplication::postEvent( this, new updateEvent() );
}

View File

@@ -1,5 +1,5 @@
/*
* fader.cpp - fader-widget used in mixer - partly taken from Hydrogen
* Fader.cpp - fader-widget used in mixer - partly taken from Hydrogen
*
* Copyright (c) 2008-2012 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
@@ -50,21 +50,21 @@
#include <QPaintEvent>
#include <QPainter>
#include "fader.h"
#include "Fader.h"
#include "embed.h"
#include "Engine.h"
#include "CaptionMenu.h"
#include "ConfigManager.h"
#include "text_float.h"
#include "TextFloat.h"
#include "MainWindow.h"
textFloat * fader::s_textFloat = NULL;
QPixmap * fader::s_back = NULL;
QPixmap * fader::s_leds = NULL;
QPixmap * fader::s_knob = NULL;
TextFloat * Fader::s_textFloat = NULL;
QPixmap * Fader::s_back = NULL;
QPixmap * Fader::s_leds = NULL;
QPixmap * Fader::s_knob = NULL;
fader::fader( FloatModel * _model, const QString & _name, QWidget * _parent ) :
Fader::Fader( FloatModel * _model, const QString & _name, QWidget * _parent ) :
QWidget( _parent ),
FloatModelView( _model, this ),
m_model( _model ),
@@ -81,7 +81,7 @@ fader::fader( FloatModel * _model, const QString & _name, QWidget * _parent ) :
{
if( s_textFloat == NULL )
{
s_textFloat = new textFloat;
s_textFloat = new TextFloat;
}
if( ! s_back )
{
@@ -106,14 +106,14 @@ fader::fader( FloatModel * _model, const QString & _name, QWidget * _parent ) :
fader::~fader()
Fader::~Fader()
{
}
void fader::contextMenuEvent( QContextMenuEvent * _ev )
void Fader::contextMenuEvent( QContextMenuEvent * _ev )
{
CaptionMenu contextMenu( windowTitle() );
addDefaultActions( &contextMenu );
@@ -124,7 +124,7 @@ void fader::contextMenuEvent( QContextMenuEvent * _ev )
void fader::mouseMoveEvent( QMouseEvent *mouseEvent )
void Fader::mouseMoveEvent( QMouseEvent *mouseEvent )
{
if( m_moveStartPoint >= 0 )
{
@@ -141,7 +141,7 @@ void fader::mouseMoveEvent( QMouseEvent *mouseEvent )
void fader::mousePressEvent( QMouseEvent* mouseEvent )
void Fader::mousePressEvent( QMouseEvent* mouseEvent )
{
if( mouseEvent->button() == Qt::LeftButton &&
! ( mouseEvent->modifiers() & Qt::ControlModifier ) )
@@ -169,7 +169,7 @@ void fader::mousePressEvent( QMouseEvent* mouseEvent )
void fader::mouseDoubleClickEvent( QMouseEvent* mouseEvent )
void Fader::mouseDoubleClickEvent( QMouseEvent* mouseEvent )
{
bool ok;
@@ -190,13 +190,13 @@ void fader::mouseDoubleClickEvent( QMouseEvent* mouseEvent )
void fader::mouseReleaseEvent( QMouseEvent * _me )
void Fader::mouseReleaseEvent( QMouseEvent * _me )
{
s_textFloat->hide();
}
void fader::wheelEvent ( QWheelEvent *ev )
void Fader::wheelEvent ( QWheelEvent *ev )
{
ev->accept();
@@ -217,7 +217,7 @@ void fader::wheelEvent ( QWheelEvent *ev )
///
/// Set peak value (0.0 .. 1.0)
///
void fader::setPeak( float fPeak, float &targetPeak, float &persistentPeak, QTime &lastPeakTime )
void Fader::setPeak( float fPeak, float &targetPeak, float &persistentPeak, QTime &lastPeakTime )
{
if( fPeak < m_fMinPeak )
{
@@ -248,14 +248,14 @@ void fader::setPeak( float fPeak, float &targetPeak, float &persistentPeak, QTim
void fader::setPeak_L( float fPeak )
void Fader::setPeak_L( float fPeak )
{
setPeak( fPeak, m_fPeakValue_L, m_persistentPeak_L, m_lastPeakTime_L );
}
void fader::setPeak_R( float fPeak )
void Fader::setPeak_R( float fPeak )
{
setPeak( fPeak, m_fPeakValue_R, m_persistentPeak_R, m_lastPeakTime_R );
}
@@ -263,7 +263,7 @@ void fader::setPeak_R( float fPeak )
// update tooltip showing value and adjust position while changing fader value
void fader::updateTextFloat()
void Fader::updateTextFloat()
{
if( ConfigManager::inst()->value( "app", "displaydbv" ).toInt() )
{
@@ -278,7 +278,7 @@ void fader::updateTextFloat()
}
inline int fader::calculateDisplayPeak( float fPeak )
inline int Fader::calculateDisplayPeak( float fPeak )
{
int peak = (int)( 116 - ( fPeak / ( m_fMaxPeak - m_fMinPeak ) ) * 116.0 );
@@ -286,7 +286,7 @@ inline int fader::calculateDisplayPeak( float fPeak )
else return peak;
}
void fader::paintEvent( QPaintEvent * ev)
void Fader::paintEvent( QPaintEvent * ev)
{
QPainter painter(this);
@@ -324,22 +324,22 @@ void fader::paintEvent( QPaintEvent * ev)
}
QColor fader::peakGreen() const
QColor Fader::peakGreen() const
{
return m_peakGreen;
}
QColor fader::peakRed() const
QColor Fader::peakRed() const
{
return m_peakRed;
}
void fader::setPeakGreen( const QColor & c )
void Fader::setPeakGreen( const QColor & c )
{
m_peakGreen = c;
}
void fader::setPeakRed( const QColor & c )
void Fader::setPeakRed( const QColor & c )
{
m_peakRed = c;
}

View File

@@ -62,7 +62,7 @@ FxLine::FxLine( QWidget * _parent, FxMixerView * _mv, int _channelIndex) :
setCursor( QCursor( embed::getIconPixmap( "hand" ), 3, 3 ) );
// mixer sends knob
m_sendKnob = new knob( knobBright_26, this, tr("Channel send amount") );
m_sendKnob = new Knob( knobBright_26, this, tr("Channel send amount") );
m_sendKnob->move( 3, 22 );
m_sendKnob->setVisible(false);

View File

@@ -1,5 +1,5 @@
/*
* graph.cpp - a QT widget for displaying and manipulating waveforms
* Graph.cpp - a QT widget for displaying and manipulating waveforms
*
* Copyright (c) 2006-2007 Andreas Brandmaier <andy/at/brandmaier/dot/de>
* 2008 Paul Giblock <drfaygo/at/gmail/dot/com>
@@ -27,14 +27,14 @@
#include <QFontMetrics>
#include <QPainter>
#include "graph.h"
#include "Graph.h"
#include "string_pair_drag.h"
#include "SampleBuffer.h"
#include "Oscillator.h"
#include "Engine.h"
graph::graph( QWidget * _parent, graphStyle _style, int _width,
Graph::Graph( QWidget * _parent, graphStyle _style, int _width,
int _height ) :
QWidget( _parent ),
/* TODO: size, background? */
@@ -58,18 +58,18 @@ graph::graph( QWidget * _parent, graphStyle _style, int _width,
}
graph::~graph()
Graph::~Graph()
{
}
void graph::setForeground( const QPixmap &_pixmap )
void Graph::setForeground( const QPixmap &_pixmap )
{
m_foreground = _pixmap;
}
void graph::setGraphColor( QColor _graphcol )
void Graph::setGraphColor( QColor _graphcol )
{
m_graphColor = _graphcol;
}
@@ -102,7 +102,7 @@ void graph::loadSampleFromFile( const QString & _filename )
void graph::mouseMoveEvent ( QMouseEvent * _me )
void Graph::mouseMoveEvent ( QMouseEvent * _me )
{
// get position
int x = _me->x();
@@ -155,7 +155,7 @@ void graph::mouseMoveEvent ( QMouseEvent * _me )
void graph::mousePressEvent( QMouseEvent * _me )
void Graph::mousePressEvent( QMouseEvent * _me )
{
if( _me->button() == Qt::LeftButton )
{
@@ -189,7 +189,7 @@ void graph::mousePressEvent( QMouseEvent * _me )
}
}
void graph::drawLineAt( int _x, int _y, int _lastx )
void Graph::drawLineAt( int _x, int _y, int _lastx )
{
float minVal = model()->minValue();
float maxVal = model()->maxValue();
@@ -228,7 +228,7 @@ void graph::drawLineAt( int _x, int _y, int _lastx )
model()->samplesChanged( start, end );
}
void graph::changeSampleAt( int _x, int _y )
void Graph::changeSampleAt( int _x, int _y )
{
float minVal = model()->minValue();
float maxVal = model()->maxValue();
@@ -255,7 +255,7 @@ void graph::changeSampleAt( int _x, int _y )
void graph::mouseReleaseEvent( QMouseEvent * _me )
void Graph::mouseReleaseEvent( QMouseEvent * _me )
{
if( _me->button() == Qt::LeftButton )
{
@@ -268,7 +268,7 @@ void graph::mouseReleaseEvent( QMouseEvent * _me )
void graph::paintEvent( QPaintEvent * )
void Graph::paintEvent( QPaintEvent * )
{
QPainter p( this );
@@ -289,7 +289,7 @@ void graph::paintEvent( QPaintEvent * )
switch( m_graphStyle )
{
case graph::LinearStyle:
case Graph::LinearStyle:
p.setRenderHints( QPainter::Antialiasing, true );
for( int i=0; i < length; i++ )
@@ -313,7 +313,7 @@ void graph::paintEvent( QPaintEvent * )
break;
case graph::NearestStyle:
case Graph::NearestStyle:
for( int i=0; i < length; i++ )
{
p.drawLine(2+static_cast<int>(i*xscale),
@@ -334,7 +334,7 @@ void graph::paintEvent( QPaintEvent * )
2+static_cast<int>( ( (*samps)[length] - maxVal ) * yscale ) );
break;
case graph::LinearNonCyclicStyle:
case Graph::LinearNonCyclicStyle:
p.setRenderHints( QPainter::Antialiasing, true );
for( int i=0; i < length; i++ )
@@ -353,7 +353,7 @@ void graph::paintEvent( QPaintEvent * )
p.setRenderHints( QPainter::Antialiasing, false );
break;
case graph::BarStyle:
case Graph::BarStyle:
for( int i=0; i <= length; i++ )
{
p.fillRect( 2+static_cast<int>( i*xscale ),
@@ -391,7 +391,7 @@ void graph::paintEvent( QPaintEvent * )
void graph::dropEvent( QDropEvent * _de )
void Graph::dropEvent( QDropEvent * _de )
{
QString type = stringPairDrag::decodeKey( _de );
QString value = stringPairDrag::decodeValue( _de );
@@ -404,7 +404,7 @@ void graph::dropEvent( QDropEvent * _de )
}
}
void graph::dragEnterEvent( QDragEnterEvent * _dee )
void Graph::dragEnterEvent( QDragEnterEvent * _dee )
{
if( stringPairDrag::processDragEnterEvent( _dee,
QString( "samplefile" ) ) == false )
@@ -415,7 +415,7 @@ void graph::dragEnterEvent( QDragEnterEvent * _dee )
void graph::modelChanged()
void Graph::modelChanged()
{
graphModel * gModel = castModel<graphModel>();
@@ -427,14 +427,14 @@ void graph::modelChanged()
}
void graph::updateGraph( int _startPos, int _endPos )
void Graph::updateGraph( int _startPos, int _endPos )
{
// Can optimize by only drawing changed position
update();
}
void graph::updateGraph()
void Graph::updateGraph()
{
updateGraph( 0, model()->length() - 1 );
}

View File

@@ -1,5 +1,5 @@
/*
* group_box.cpp - groupbox for LMMS
* GroupBox.cpp - groupbox for LMMS
*
* Copyright (c) 2005-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
@@ -31,13 +31,13 @@
#include <math.h>
#include "group_box.h"
#include "GroupBox.h"
#include "embed.h"
#include "gui_templates.h"
groupBox::groupBox( const QString & _caption, QWidget * _parent ) :
GroupBox::GroupBox( const QString & _caption, QWidget * _parent ) :
QWidget( _parent ),
BoolModelView( NULL, this ),
m_caption( _caption ),
@@ -45,7 +45,7 @@ groupBox::groupBox( const QString & _caption, QWidget * _parent ) :
{
updatePixmap();
m_led = new pixmapButton( this, _caption );
m_led = new PixmapButton( this, _caption );
m_led->setCheckable( true );
m_led->move( 3, 0 );
m_led->setActiveGraphic( embed::getIconPixmap( "led_green" ) );
@@ -59,7 +59,7 @@ groupBox::groupBox( const QString & _caption, QWidget * _parent ) :
groupBox::~groupBox()
GroupBox::~GroupBox()
{
delete m_led;
}
@@ -67,7 +67,7 @@ groupBox::~groupBox()
void groupBox::modelChanged()
void GroupBox::modelChanged()
{
m_led->setModel( model() );
}
@@ -75,7 +75,7 @@ void groupBox::modelChanged()
void groupBox::mousePressEvent( QMouseEvent * _me )
void GroupBox::mousePressEvent( QMouseEvent * _me )
{
if( _me->y() > 1 && _me->y() < 13 && _me->button() == Qt::LeftButton )
{
@@ -86,7 +86,7 @@ void groupBox::mousePressEvent( QMouseEvent * _me )
void groupBox::resizeEvent( QResizeEvent * _ev )
void GroupBox::resizeEvent( QResizeEvent * _ev )
{
updatePixmap();
QWidget::resizeEvent( _ev );
@@ -94,7 +94,7 @@ void groupBox::resizeEvent( QResizeEvent * _ev )
void groupBox::updatePixmap()
void GroupBox::updatePixmap()
{
QColor bg_color = QApplication::palette().color( QPalette::Active,
QPalette::Background );

View File

@@ -27,24 +27,24 @@
#include "InstrumentFunctions.h"
#include "InstrumentFunctionViews.h"
#include "combobox.h"
#include "ComboBox.h"
#include "embed.h"
#include "Engine.h"
#include "group_box.h"
#include "GroupBox.h"
#include "gui_templates.h"
#include "knob.h"
#include "pixmap_button.h"
#include "Knob.h"
#include "PixmapButton.h"
#include "TempoSyncKnob.h"
#include "tooltip.h"
#include "ToolTip.h"
InstrumentFunctionNoteStackingView::InstrumentFunctionNoteStackingView( InstrumentFunctionNoteStacking* cc, QWidget* parent ) :
QWidget( parent ),
ModelView( NULL, this ),
m_cc( cc ),
m_chordsGroupBox( new groupBox( tr( "STACKING" ) ) ),
m_chordsComboBox( new comboBox() ),
m_chordRangeKnob( new knob( knobBright_26 ) )
m_chordsGroupBox( new GroupBox( tr( "STACKING" ) ) ),
m_chordsComboBox( new ComboBox() ),
m_chordRangeKnob( new Knob( knobBright_26 ) )
{
QHBoxLayout* topLayout = new QHBoxLayout( this );
topLayout->setMargin( 0 );
@@ -100,13 +100,13 @@ InstrumentFunctionArpeggioView::InstrumentFunctionArpeggioView( InstrumentFuncti
QWidget( parent ),
ModelView( NULL, this ),
m_a( arp ),
m_arpGroupBox( new groupBox( tr( "ARPEGGIO" ) ) ),
m_arpComboBox( new comboBox() ),
m_arpRangeKnob( new knob( knobBright_26 ) ),
m_arpGroupBox( new GroupBox( tr( "ARPEGGIO" ) ) ),
m_arpComboBox( new ComboBox() ),
m_arpRangeKnob( new Knob( knobBright_26 ) ),
m_arpTimeKnob( new TempoSyncKnob( knobBright_26 ) ),
m_arpGateKnob( new knob( knobBright_26 ) ),
m_arpDirectionComboBox( new comboBox() ),
m_arpModeComboBox( new comboBox() )
m_arpGateKnob( new Knob( knobBright_26 ) ),
m_arpDirectionComboBox( new ComboBox() ),
m_arpModeComboBox( new ComboBox() )
{
QHBoxLayout* topLayout = new QHBoxLayout( this );
topLayout->setMargin( 0 );

View File

@@ -31,12 +31,12 @@
#include "MidiPortMenu.h"
#include "Engine.h"
#include "embed.h"
#include "group_box.h"
#include "GroupBox.h"
#include "gui_templates.h"
#include "LcdSpinBox.h"
#include "MidiClient.h"
#include "Mixer.h"
#include "tooltip.h"
#include "ToolTip.h"
@@ -48,7 +48,7 @@ InstrumentMidiIOView::InstrumentMidiIOView( QWidget* parent ) :
{
QVBoxLayout* layout = new QVBoxLayout( this );
layout->setMargin( 5 );
m_midiInputGroupBox = new groupBox( tr( "ENABLE MIDI INPUT" ) );
m_midiInputGroupBox = new GroupBox( tr( "ENABLE MIDI INPUT" ) );
layout->addWidget( m_midiInputGroupBox );
QHBoxLayout* midiInputLayout = new QHBoxLayout( m_midiInputGroupBox );
@@ -76,7 +76,7 @@ InstrumentMidiIOView::InstrumentMidiIOView( QWidget* parent ) :
m_midiOutputGroupBox = new groupBox( tr( "ENABLE MIDI OUTPUT" ) );
m_midiOutputGroupBox = new GroupBox( tr( "ENABLE MIDI OUTPUT" ) );
layout->addWidget( m_midiOutputGroupBox );
QHBoxLayout* midiOutputLayout = new QHBoxLayout( m_midiOutputGroupBox );
@@ -138,7 +138,7 @@ InstrumentMidiIOView::InstrumentMidiIOView( QWidget* parent ) :
#define PROVIDE_CUSTOM_BASE_VELOCITY_UI
#ifdef PROVIDE_CUSTOM_BASE_VELOCITY_UI
groupBox* baseVelocityGroupBox = new groupBox( tr( "CUSTOM BASE VELOCITY" ) );
GroupBox* baseVelocityGroupBox = new GroupBox( tr( "CUSTOM BASE VELOCITY" ) );
layout->addWidget( baseVelocityGroupBox );
QVBoxLayout* baseVelocityLayout = new QVBoxLayout( baseVelocityGroupBox );

View File

@@ -27,11 +27,11 @@
#include "InstrumentSoundShapingView.h"
#include "EnvelopeAndLfoParameters.h"
#include "EnvelopeAndLfoView.h"
#include "combobox.h"
#include "group_box.h"
#include "ComboBox.h"
#include "GroupBox.h"
#include "gui_templates.h"
#include "knob.h"
#include "tab_widget.h"
#include "Knob.h"
#include "TabWidget.h"
@@ -52,7 +52,7 @@ InstrumentSoundShapingView::InstrumentSoundShapingView( QWidget * _parent ) :
ModelView( NULL, this ),
m_ss( NULL )
{
m_targetsTabWidget = new tabWidget( tr( "TARGET" ), this );
m_targetsTabWidget = new TabWidget( tr( "TARGET" ), this );
m_targetsTabWidget->setGeometry( TARGETS_TABWIDGET_X,
TARGETS_TABWIDGET_Y,
TARGETS_TABWIDGET_WIDTH,
@@ -80,13 +80,13 @@ InstrumentSoundShapingView::InstrumentSoundShapingView( QWidget * _parent ) :
}
m_filterGroupBox = new groupBox( tr( "FILTER" ), this );
m_filterGroupBox = new GroupBox( tr( "FILTER" ), this );
m_filterGroupBox->setGeometry( FILTER_GROUPBOX_X, FILTER_GROUPBOX_Y,
FILTER_GROUPBOX_WIDTH,
FILTER_GROUPBOX_HEIGHT );
m_filterComboBox = new comboBox( m_filterGroupBox );
m_filterComboBox = new ComboBox( m_filterGroupBox );
m_filterComboBox->setGeometry( 14, 22, 120, 22 );
m_filterComboBox->setFont( pointSize<8>( m_filterComboBox->font() ) );
@@ -96,7 +96,7 @@ InstrumentSoundShapingView::InstrumentSoundShapingView( QWidget * _parent ) :
"for changing the characteristics of a sound." ) );
m_filterCutKnob = new knob( knobBright_26, m_filterGroupBox );
m_filterCutKnob = new Knob( knobBright_26, m_filterGroupBox );
m_filterCutKnob->setLabel( tr( "FREQ" ) );
m_filterCutKnob->move( 140, 18 );
m_filterCutKnob->setHintText( tr( "cutoff frequency:" ) + " ", " " + tr( "Hz" ) );
@@ -109,7 +109,7 @@ InstrumentSoundShapingView::InstrumentSoundShapingView( QWidget * _parent ) :
"frequencies below cutoff frequency, and so on..." ) );
m_filterResKnob = new knob( knobBright_26, m_filterGroupBox );
m_filterResKnob = new Knob( knobBright_26, m_filterGroupBox );
m_filterResKnob->setLabel( tr( "RESO" ) );
m_filterResKnob->move( 196, 18 );
m_filterResKnob->setHintText( tr( "Resonance:" ) + " ", "" );

View File

@@ -1,5 +1,5 @@
/*
* knob.cpp - powerful knob-widget
* Knob.cpp - powerful knob-widget
*
* Copyright (c) 2004-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
@@ -36,7 +36,7 @@
#endif
#include "lmms_math.h"
#include "knob.h"
#include "Knob.h"
#include "CaptionMenu.h"
#include "ConfigManager.h"
#include "ControllerConnection.h"
@@ -48,10 +48,10 @@
#include "Song.h"
#include "string_pair_drag.h"
#include "templates.h"
#include "text_float.h"
#include "TextFloat.h"
textFloat * knob::s_textFloat = NULL;
TextFloat * Knob::s_textFloat = NULL;
@@ -66,14 +66,14 @@ textFloat * knob::s_textFloat = NULL;
m_buttonPressed( false ), \
m_angle( -10 )
knob::knob( knobTypes _knob_num, QWidget * _parent, const QString & _name ) :
Knob::Knob( knobTypes _knob_num, QWidget * _parent, const QString & _name ) :
DEFAULT_KNOB_INITIALIZER_LIST,
m_knobNum( _knob_num )
{
initUi( _name );
}
knob::knob( QWidget * _parent, const QString & _name ) :
Knob::Knob( QWidget * _parent, const QString & _name ) :
DEFAULT_KNOB_INITIALIZER_LIST,
m_knobNum( knobBright_26 )
{
@@ -85,11 +85,11 @@ knob::knob( QWidget * _parent, const QString & _name ) :
void knob::initUi( const QString & _name )
void Knob::initUi( const QString & _name )
{
if( s_textFloat == NULL )
{
s_textFloat = new textFloat;
s_textFloat = new TextFloat;
}
setWindowTitle( _name );
@@ -105,7 +105,7 @@ void knob::initUi( const QString & _name )
void knob::onKnobNumUpdated()
void Knob::onKnobNumUpdated()
{
if( m_knobNum != knobStyled )
{
@@ -119,7 +119,7 @@ void knob::onKnobNumUpdated()
knob::~knob()
Knob::~Knob()
{
if( m_knobPixmap )
{
@@ -130,7 +130,7 @@ knob::~knob()
void knob::setLabel( const QString & _txt )
void Knob::setLabel( const QString & _txt )
{
m_label = _txt;
if( m_knobPixmap )
@@ -145,7 +145,7 @@ void knob::setLabel( const QString & _txt )
void knob::setTotalAngle( float _angle )
void Knob::setTotalAngle( float _angle )
{
if( _angle < 10.0 )
{
@@ -162,28 +162,28 @@ void knob::setTotalAngle( float _angle )
float knob::innerRadius() const
float Knob::innerRadius() const
{
return m_innerRadius;
}
void knob::setInnerRadius( float _r )
void Knob::setInnerRadius( float _r )
{
m_innerRadius = _r;
}
float knob::outerRadius() const
float Knob::outerRadius() const
{
return m_outerRadius;
}
void knob::setOuterRadius( float _r )
void Knob::setOuterRadius( float _r )
{
m_outerRadius = _r;
}
@@ -191,7 +191,7 @@ void knob::setOuterRadius( float _r )
knobTypes knob::knobNum() const
knobTypes Knob::knobNum() const
{
return m_knobNum;
}
@@ -199,7 +199,7 @@ knobTypes knob::knobNum() const
void knob::setknobNum( knobTypes _k )
void Knob::setknobNum( knobTypes _k )
{
if( m_knobNum != _k )
{
@@ -211,91 +211,91 @@ void knob::setknobNum( knobTypes _k )
QPointF knob::centerPoint() const
QPointF Knob::centerPoint() const
{
return m_centerPoint;
}
float knob::centerPointX() const
float Knob::centerPointX() const
{
return m_centerPoint.x();
}
void knob::setCenterPointX( float _c )
void Knob::setCenterPointX( float _c )
{
m_centerPoint.setX( _c );
}
float knob::centerPointY() const
float Knob::centerPointY() const
{
return m_centerPoint.y();
}
void knob::setCenterPointY( float _c )
void Knob::setCenterPointY( float _c )
{
m_centerPoint.setY( _c );
}
float knob::lineWidth() const
float Knob::lineWidth() const
{
return m_lineWidth;
}
void knob::setLineWidth( float _w )
void Knob::setLineWidth( float _w )
{
m_lineWidth = _w;
}
QColor knob::outerColor() const
QColor Knob::outerColor() const
{
return m_outerColor;
}
void knob::setOuterColor( const QColor & _c )
void Knob::setOuterColor( const QColor & _c )
{
m_outerColor = _c;
}
QColor knob::lineColor() const
QColor Knob::lineColor() const
{
return m_lineColor;
}
void knob::setlineColor( const QColor & _c )
void Knob::setlineColor( const QColor & _c )
{
m_lineColor = _c;
}
QColor knob::arcColor() const
QColor Knob::arcColor() const
{
return m_arcColor;
}
void knob::setarcColor( const QColor & _c )
void Knob::setarcColor( const QColor & _c )
{
m_arcColor = _c;
}
@@ -303,7 +303,7 @@ void knob::setarcColor( const QColor & _c )
QLineF knob::calculateLine( const QPointF & _mid, float _radius, float _innerRadius ) const
QLineF Knob::calculateLine( const QPointF & _mid, float _radius, float _innerRadius ) const
{
const float rarc = m_angle * F_PI / 180.0;
const float ca = cos( rarc );
@@ -315,7 +315,7 @@ QLineF knob::calculateLine( const QPointF & _mid, float _radius, float _innerRad
bool knob::updateAngle()
bool Knob::updateAngle()
{
int angle = 0;
if( model() && model()->maxValue() != model()->minValue() )
@@ -333,7 +333,7 @@ bool knob::updateAngle()
void knob::drawKnob( QPainter * _p )
void Knob::drawKnob( QPainter * _p )
{
if( updateAngle() == false && !m_cache.isNull() )
{
@@ -454,7 +454,7 @@ void knob::drawKnob( QPainter * _p )
_p->drawImage( 0, 0, m_cache );
}
float knob::getValue( const QPoint & _p )
float Knob::getValue( const QPoint & _p )
{
float value;
@@ -473,7 +473,7 @@ float knob::getValue( const QPoint & _p )
void knob::contextMenuEvent( QContextMenuEvent * )
void Knob::contextMenuEvent( QContextMenuEvent * )
{
// for the case, the user clicked right while pressing left mouse-
// button, the context-menu appears while mouse-cursor is still hidden
@@ -492,14 +492,14 @@ void knob::contextMenuEvent( QContextMenuEvent * )
}
void knob::toggleScale()
void Knob::toggleScale()
{
model()->setScaleLogarithmic( ! model()->isScaleLogarithmic() );
}
void knob::dragEnterEvent( QDragEnterEvent * _dee )
void Knob::dragEnterEvent( QDragEnterEvent * _dee )
{
stringPairDrag::processDragEnterEvent( _dee, "float_value,"
"automatable_model" );
@@ -508,7 +508,7 @@ void knob::dragEnterEvent( QDragEnterEvent * _dee )
void knob::dropEvent( QDropEvent * _de )
void Knob::dropEvent( QDropEvent * _de )
{
QString type = stringPairDrag::decodeKey( _de );
QString val = stringPairDrag::decodeValue( _de );
@@ -533,7 +533,7 @@ void knob::dropEvent( QDropEvent * _de )
void knob::mousePressEvent( QMouseEvent * _me )
void Knob::mousePressEvent( QMouseEvent * _me )
{
if( _me->button() == Qt::LeftButton &&
! ( _me->modifiers() & Qt::ControlModifier ) &&
@@ -576,7 +576,7 @@ void knob::mousePressEvent( QMouseEvent * _me )
void knob::mouseMoveEvent( QMouseEvent * _me )
void Knob::mouseMoveEvent( QMouseEvent * _me )
{
if( m_buttonPressed && _me->pos() != m_origMousePos )
{
@@ -592,7 +592,7 @@ void knob::mouseMoveEvent( QMouseEvent * _me )
void knob::mouseReleaseEvent( QMouseEvent* event )
void Knob::mouseReleaseEvent( QMouseEvent* event )
{
if( event && event->button() == Qt::LeftButton )
{
@@ -615,7 +615,7 @@ void knob::mouseReleaseEvent( QMouseEvent* event )
void knob::focusOutEvent( QFocusEvent * _fe )
void Knob::focusOutEvent( QFocusEvent * _fe )
{
// make sure we don't loose mouse release event
mouseReleaseEvent( NULL );
@@ -625,7 +625,7 @@ void knob::focusOutEvent( QFocusEvent * _fe )
void knob::mouseDoubleClickEvent( QMouseEvent * )
void Knob::mouseDoubleClickEvent( QMouseEvent * )
{
enterValue();
}
@@ -633,7 +633,7 @@ void knob::mouseDoubleClickEvent( QMouseEvent * )
void knob::paintEvent( QPaintEvent * _me )
void Knob::paintEvent( QPaintEvent * _me )
{
QPainter p( this );
@@ -655,7 +655,7 @@ void knob::paintEvent( QPaintEvent * _me )
void knob::wheelEvent( QWheelEvent * _we )
void Knob::wheelEvent( QWheelEvent * _we )
{
_we->accept();
const int inc = ( _we->delta() > 0 ) ? 1 : -1;
@@ -672,7 +672,7 @@ void knob::wheelEvent( QWheelEvent * _we )
void knob::setPosition( const QPoint & _p )
void Knob::setPosition( const QPoint & _p )
{
const float value = getValue( _p ) + m_leftOver;
const float step = model()->step<float>();
@@ -715,7 +715,7 @@ void knob::setPosition( const QPoint & _p )
void knob::enterValue()
void Knob::enterValue()
{
bool ok;
float new_val;
@@ -759,7 +759,7 @@ void knob::enterValue()
void knob::friendlyUpdate()
void Knob::friendlyUpdate()
{
if( model()->controllerConnection() == NULL ||
model()->controllerConnection()->getController()->frequentUpdates() == false ||
@@ -772,7 +772,7 @@ void knob::friendlyUpdate()
QString knob::displayValue() const
QString Knob::displayValue() const
{
if( isVolumeKnob() &&
ConfigManager::inst()->value( "app", "displaydbv" ).toInt() )
@@ -788,7 +788,7 @@ QString knob::displayValue() const
void knob::doConnections()
void Knob::doConnections()
{
if( model() != NULL )
{
@@ -803,7 +803,7 @@ void knob::doConnections()
void knob::displayHelp()
void Knob::displayHelp()
{
QWhatsThis::showText( mapToGlobal( rect().bottomRight() ),
whatsThis() );

View File

@@ -28,9 +28,9 @@
#include "LadspaControl.h"
#include "LadspaControlView.h"
#include "LadspaBase.h"
#include "led_checkbox.h"
#include "LedCheckbox.h"
#include "TempoSyncKnob.h"
#include "tooltip.h"
#include "ToolTip.h"
LadspaControlView::LadspaControlView( QWidget * _parent,
@@ -43,24 +43,24 @@ LadspaControlView::LadspaControlView( QWidget * _parent,
layout->setMargin( 0 );
layout->setSpacing( 0 );
ledCheckBox * link = NULL;
LedCheckBox * link = NULL;
if( m_ctl->m_link )
{
link = new ledCheckBox( "", this );
link = new LedCheckBox( "", this );
link->setModel( &m_ctl->m_linkEnabledModel );
toolTip::add( link, tr( "Link channels" ) );
ToolTip::add( link, tr( "Link channels" ) );
layout->addWidget( link );
}
knob * knb = NULL;
Knob * knb = NULL;
switch( m_ctl->port()->data_type )
{
case TOGGLED:
{
ledCheckBox * toggle = new ledCheckBox(
m_ctl->port()->name, this, QString::null, ledCheckBox::Green );
LedCheckBox * toggle = new LedCheckBox(
m_ctl->port()->name, this, QString::null, LedCheckBox::Green );
toggle->setModel( m_ctl->toggledModel() );
layout->addWidget( toggle );
if( link != NULL )
@@ -78,7 +78,7 @@ LadspaControlView::LadspaControlView( QWidget * _parent,
case INTEGER:
case FLOATING:
knb = new knob( knobBright_26, this, m_ctl->port()->name );
knb = new Knob( knobBright_26, this, m_ctl->port()->name );
break;
case TIME:

View File

@@ -1,5 +1,5 @@
/*
* led_checkbox.cpp - class ledCheckBox, an improved QCheckBox
* LedCheckbox.cpp - class LedCheckBox, an improved QCheckBox
*
* Copyright (c) 2005-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
@@ -26,12 +26,12 @@
#include <QFontMetrics>
#include <QPainter>
#include "led_checkbox.h"
#include "LedCheckbox.h"
#include "embed.h"
#include "gui_templates.h"
static const QString names[ledCheckBox::NumColors] =
static const QString names[LedCheckBox::NumColors] =
{
"led_yellow", "led_green", "led_red"
} ;
@@ -43,7 +43,7 @@ static const QString names[ledCheckBox::NumColors] =
#define DEFAULT_LEDCHECKBOX_INITIALIZER_LIST \
AutomatableButton( _parent, _name )
ledCheckBox::ledCheckBox( const QString & _text, QWidget * _parent,
LedCheckBox::LedCheckBox( const QString & _text, QWidget * _parent,
const QString & _name, LedColors _color ) :
DEFAULT_LEDCHECKBOX_INITIALIZER_LIST,
m_text( _text )
@@ -54,7 +54,7 @@ ledCheckBox::ledCheckBox( const QString & _text, QWidget * _parent,
ledCheckBox::ledCheckBox( QWidget * _parent,
LedCheckBox::LedCheckBox( QWidget * _parent,
const QString & _name, LedColors _color ) :
DEFAULT_LEDCHECKBOX_INITIALIZER_LIST
{
@@ -65,7 +65,7 @@ ledCheckBox::ledCheckBox( QWidget * _parent,
ledCheckBox::~ledCheckBox()
LedCheckBox::~LedCheckBox()
{
delete m_ledOnPixmap;
delete m_ledOffPixmap;
@@ -74,7 +74,7 @@ ledCheckBox::~ledCheckBox()
void ledCheckBox::setText( const QString &s )
void LedCheckBox::setText( const QString &s )
{
m_text = s;
onTextUpdated();
@@ -83,7 +83,7 @@ void ledCheckBox::setText( const QString &s )
void ledCheckBox::paintEvent( QPaintEvent * )
void LedCheckBox::paintEvent( QPaintEvent * )
{
QPainter p( this );
p.setFont( pointSize<7>( font() ) );
@@ -106,7 +106,7 @@ void ledCheckBox::paintEvent( QPaintEvent * )
void ledCheckBox::initUi( LedColors _color )
void LedCheckBox::initUi( LedColors _color )
{
setCheckable( true );
@@ -125,7 +125,7 @@ void ledCheckBox::initUi( LedColors _color )
void ledCheckBox::onTextUpdated()
void LedCheckBox::onTextUpdated()
{
setFixedSize( m_ledOffPixmap->width() + 5 + QFontMetrics( font() ).width( text() ), m_ledOffPixmap->height() );
}

View File

@@ -1,5 +1,5 @@
/*
* nstate_button.cpp - implementation of n-state-button
* NStateButton.cpp - implementation of n-state-button
*
* Copyright (c) 2005-2006 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
@@ -25,14 +25,14 @@
#include <QMouseEvent>
#include "nstate_button.h"
#include "NStateButton.h"
#include "embed.h"
#include "tooltip.h"
#include "ToolTip.h"
nStateButton::nStateButton( QWidget * _parent ) :
toolButton( _parent ),
NStateButton::NStateButton( QWidget * _parent ) :
ToolButton( _parent ),
m_generalToolTip( "" ),
m_curState( -1 )
{
@@ -41,7 +41,7 @@ nStateButton::nStateButton( QWidget * _parent ) :
nStateButton::~nStateButton()
NStateButton::~NStateButton()
{
while( m_states.size() )
{
@@ -52,7 +52,7 @@ nStateButton::~nStateButton()
void nStateButton::addState( const QPixmap & _pm, const QString & _tooltip )
void NStateButton::addState( const QPixmap & _pm, const QString & _tooltip )
{
m_states.push_back( qMakePair( _pm, _tooltip ) );
// first inserted pixmap?
@@ -68,7 +68,7 @@ void nStateButton::addState( const QPixmap & _pm, const QString & _tooltip )
void nStateButton::changeState( int _n )
void NStateButton::changeState( int _n )
{
if( _n >= 0 && _n < (int) m_states.size() )
{
@@ -78,7 +78,7 @@ void nStateButton::changeState( int _n )
( m_states[m_curState].second != "" ) ?
m_states[m_curState].second :
m_generalToolTip;
toolTip::add( this, _tooltip );
ToolTip::add( this, _tooltip );
setIcon( m_states[m_curState].first );
@@ -88,13 +88,13 @@ void nStateButton::changeState( int _n )
void nStateButton::mousePressEvent( QMouseEvent * _me )
void NStateButton::mousePressEvent( QMouseEvent * _me )
{
if( _me->button() == Qt::LeftButton && m_states.size() )
{
changeState( ( ++m_curState ) % m_states.size() );
}
toolButton::mousePressEvent( _me );
ToolButton::mousePressEvent( _me );
}

View File

@@ -1,5 +1,5 @@
/*
* pixmap_button.cpp - implementation of pixmap-button (often used as "themed"
* PixmapButton.cpp - implementation of pixmap-button (often used as "themed"
* checkboxes/radiobuttons etc)
*
* Copyright (c) 2004-2013 Tobias Doerffel <tobydox/at/users.sourceforge.net>
@@ -27,13 +27,13 @@
#include <QMouseEvent>
#include <QPainter>
#include "pixmap_button.h"
#include "PixmapButton.h"
#include "MainWindow.h"
#include "embed.h"
pixmapButton::pixmapButton( QWidget * _parent, const QString & _name ) :
PixmapButton::PixmapButton( QWidget * _parent, const QString & _name ) :
AutomatableButton( _parent, _name ),
m_activePixmap(),
m_inactivePixmap(),
@@ -46,14 +46,14 @@ pixmapButton::pixmapButton( QWidget * _parent, const QString & _name ) :
pixmapButton::~pixmapButton()
PixmapButton::~PixmapButton()
{
}
void pixmapButton::paintEvent( QPaintEvent * )
void PixmapButton::paintEvent( QPaintEvent * )
{
QPainter p( this );
@@ -74,7 +74,7 @@ void pixmapButton::paintEvent( QPaintEvent * )
void pixmapButton::mousePressEvent( QMouseEvent * _me )
void PixmapButton::mousePressEvent( QMouseEvent * _me )
{
// Show pressing graphics if this isn't checkable
if( !isCheckable() )
@@ -89,7 +89,7 @@ void pixmapButton::mousePressEvent( QMouseEvent * _me )
void pixmapButton::mouseReleaseEvent( QMouseEvent * _me )
void PixmapButton::mouseReleaseEvent( QMouseEvent * _me )
{
AutomatableButton::mouseReleaseEvent( _me );
@@ -103,7 +103,7 @@ void pixmapButton::mouseReleaseEvent( QMouseEvent * _me )
void pixmapButton::mouseDoubleClickEvent( QMouseEvent * _me )
void PixmapButton::mouseDoubleClickEvent( QMouseEvent * _me )
{
emit doubleClicked();
_me->accept();
@@ -112,7 +112,7 @@ void pixmapButton::mouseDoubleClickEvent( QMouseEvent * _me )
void pixmapButton::setActiveGraphic( const QPixmap & _pm )
void PixmapButton::setActiveGraphic( const QPixmap & _pm )
{
m_activePixmap = _pm;
resize( m_activePixmap.width(), m_activePixmap.height() );
@@ -121,7 +121,7 @@ void pixmapButton::setActiveGraphic( const QPixmap & _pm )
void pixmapButton::setInactiveGraphic( const QPixmap & _pm, bool _update )
void PixmapButton::setInactiveGraphic( const QPixmap & _pm, bool _update )
{
m_inactivePixmap = _pm;
if( _update )

View File

@@ -1,5 +1,5 @@
/*
* project_notes.cpp - implementation of project-notes-editor
* ProjectNotes.cpp - implementation of project-notes-editor
*
* Copyright (c) 2005-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
@@ -23,7 +23,7 @@
*/
#include "project_notes.h"
#include "ProjectNotes.h"
#include <QAction>
#include <QApplication>
@@ -44,7 +44,7 @@
projectNotes::projectNotes() :
ProjectNotes::ProjectNotes() :
QMainWindow( Engine::mainWindow()->workspace() )
{
m_edit = new QTextEdit( this );
@@ -80,14 +80,14 @@ projectNotes::projectNotes() :
projectNotes::~projectNotes()
ProjectNotes::~ProjectNotes()
{
}
void projectNotes::clear()
void ProjectNotes::clear()
{
m_edit->setHtml( tr( "Put down your project notes here." ) );
m_edit->selectAll();
@@ -100,7 +100,7 @@ void projectNotes::clear()
void projectNotes::setText( const QString & _text )
void ProjectNotes::setText( const QString & _text )
{
m_edit->setHtml( _text );
}
@@ -108,7 +108,7 @@ void projectNotes::setText( const QString & _text )
void projectNotes::setupActions()
void ProjectNotes::setupActions()
{
QToolBar * tb = addToolBar( tr( "Edit Actions" ) );
QAction * a;
@@ -246,7 +246,7 @@ void projectNotes::setupActions()
void projectNotes::textBold()
void ProjectNotes::textBold()
{
m_edit->setFontWeight( m_actionTextBold->isChecked() ? QFont::Bold :
QFont::Normal );
@@ -256,7 +256,7 @@ void projectNotes::textBold()
void projectNotes::textUnderline()
void ProjectNotes::textUnderline()
{
m_edit->setFontUnderline( m_actionTextUnderline->isChecked() );
Engine::getSong()->setModified();
@@ -265,7 +265,7 @@ void projectNotes::textUnderline()
void projectNotes::textItalic()
void ProjectNotes::textItalic()
{
m_edit->setFontItalic( m_actionTextItalic->isChecked() );
Engine::getSong()->setModified();
@@ -274,7 +274,7 @@ void projectNotes::textItalic()
void projectNotes::textFamily( const QString & _f )
void ProjectNotes::textFamily( const QString & _f )
{
m_edit->setFontFamily( _f );
m_edit->viewport()->setFocus();
@@ -284,7 +284,7 @@ void projectNotes::textFamily( const QString & _f )
void projectNotes::textSize( const QString & _p )
void ProjectNotes::textSize( const QString & _p )
{
m_edit->setFontPointSize( _p.toInt() );
m_edit->viewport()->setFocus();
@@ -294,7 +294,7 @@ void projectNotes::textSize( const QString & _p )
void projectNotes::textColor()
void ProjectNotes::textColor()
{
QColor col = QColorDialog::getColor( m_edit->textColor(), this );
if ( !col.isValid() )
@@ -310,7 +310,7 @@ void projectNotes::textColor()
void projectNotes::textAlign( QAction * _a )
void ProjectNotes::textAlign( QAction * _a )
{
if( _a == m_actionAlignLeft )
{
@@ -333,7 +333,7 @@ void projectNotes::textAlign( QAction * _a )
void projectNotes::formatChanged( const QTextCharFormat & _f )
void ProjectNotes::formatChanged( const QTextCharFormat & _f )
{
QFont font = _f.font();
m_comboFont->lineEdit()->setText( font.family() );
@@ -352,7 +352,7 @@ void projectNotes::formatChanged( const QTextCharFormat & _f )
void projectNotes::alignmentChanged( int _a )
void ProjectNotes::alignmentChanged( int _a )
{
if ( _a & Qt::AlignLeft )
{
@@ -376,7 +376,7 @@ void projectNotes::alignmentChanged( int _a )
void projectNotes::saveSettings( QDomDocument & _doc, QDomElement & _this )
void ProjectNotes::saveSettings( QDomDocument & _doc, QDomElement & _this )
{
MainWindow::saveWidgetState( this, _this );
@@ -387,7 +387,7 @@ void projectNotes::saveSettings( QDomDocument & _doc, QDomElement & _this )
void projectNotes::loadSettings( const QDomElement & _this )
void ProjectNotes::loadSettings( const QDomElement & _this )
{
MainWindow::restoreWidgetState( this, _this );
m_edit->setHtml( _this.text() );

View File

@@ -1,5 +1,5 @@
/*
* rename_dialog.cpp - implementation of dialog for renaming something
* RenameDialog.cpp - implementation of dialog for renaming something
*
* Copyright (c) 2004-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
@@ -26,11 +26,11 @@
#include <QKeyEvent>
#include <QLineEdit>
#include "rename_dialog.h"
#include "RenameDialog.h"
renameDialog::renameDialog( QString & _string ) :
RenameDialog::RenameDialog( QString & _string ) :
QDialog(),
m_stringToEdit( _string ),
m_originalString( _string )
@@ -49,14 +49,14 @@ renameDialog::renameDialog( QString & _string ) :
renameDialog::~renameDialog()
RenameDialog::~RenameDialog()
{
}
void renameDialog::keyPressEvent( QKeyEvent * _ke )
void RenameDialog::keyPressEvent( QKeyEvent * _ke )
{
if( _ke->key() == Qt::Key_Escape )
{
@@ -68,7 +68,7 @@ void renameDialog::keyPressEvent( QKeyEvent * _ke )
void renameDialog::textChanged( const QString & _new_string )
void RenameDialog::textChanged( const QString & _new_string )
{
m_stringToEdit = _new_string;
}

View File

@@ -1,5 +1,5 @@
/*
* rubberband.cpp - rubberband - either own implementation for Qt3 or wrapper
* Rubberband.cpp - rubberband - either own implementation for Qt3 or wrapper
* for Qt4
*
* Copyright (c) 2006-2011 Tobias Doerffel <tobydox/at/users.sourceforge.net>
@@ -24,10 +24,10 @@
*/
#include "rubberband.h"
#include "Rubberband.h"
rubberBand::rubberBand( QWidget * _parent ) :
RubberBand::RubberBand( QWidget * _parent ) :
QRubberBand( Rectangle, _parent )
{
}
@@ -35,14 +35,14 @@ rubberBand::rubberBand( QWidget * _parent ) :
rubberBand::~rubberBand()
RubberBand::~RubberBand()
{
}
QVector<selectableObject *> rubberBand::selectedObjects() const
QVector<selectableObject *> RubberBand::selectedObjects() const
{
QVector<selectableObject *> so = selectableObjects();
for( QVector<selectableObject *>::iterator it = so.begin();
@@ -63,7 +63,7 @@ QVector<selectableObject *> rubberBand::selectedObjects() const
void rubberBand::resizeEvent( QResizeEvent * _re )
void RubberBand::resizeEvent( QResizeEvent * _re )
{
QRubberBand::resizeEvent( _re );
if( isEnabled() )
@@ -83,7 +83,7 @@ void rubberBand::resizeEvent( QResizeEvent * _re )
QVector<selectableObject *> rubberBand::selectableObjects() const
QVector<selectableObject *> RubberBand::selectableObjects() const
{
QVector<selectableObject *> so;
if( parentWidget() == NULL )

View File

@@ -28,7 +28,7 @@
#include "SideBar.h"
#include "SideBarWidget.h"
#include "tooltip.h"
#include "ToolTip.h"
// internal helper class allowing to create QToolButtons with
@@ -120,7 +120,7 @@ void SideBar::appendTab( SideBarWidget * _sbw )
_sbw->hide();
_sbw->setMinimumWidth( 200 );
toolTip::add( btn, _sbw->title() );
ToolTip::add( btn, _sbw->title() );
}

View File

@@ -1,5 +1,5 @@
/*
* tab_bar.cpp - implementation of tab-bar
* TabBar.cpp - implementation of tab-bar
*
* Copyright (c) 2004-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
@@ -23,14 +23,14 @@
*/
#include "tab_bar.h"
#include "TabBar.h"
#include "tab_button.h"
#include "gui_templates.h"
#include "tooltip.h"
#include "ToolTip.h"
tabBar::tabBar( QWidget * _parent, QBoxLayout::Direction _dir ) :
TabBar::TabBar( QWidget * _parent, QBoxLayout::Direction _dir ) :
QWidget( _parent ),
m_layout( new QBoxLayout( _dir, this ) ),
m_exclusive( false )
@@ -44,14 +44,14 @@ tabBar::tabBar( QWidget * _parent, QBoxLayout::Direction _dir ) :
tabBar::~tabBar()
TabBar::~TabBar()
{
}
tabButton * tabBar::addTab( QWidget * _w, const QString & _text, int _id,
tabButton * TabBar::addTab( QWidget * _w, const QString & _text, int _id,
bool _add_stretch, bool _text_is_tooltip )
{
// already tab with id?
@@ -69,7 +69,7 @@ tabButton * tabBar::addTab( QWidget * _w, const QString & _text, int _id,
b->show();
if( _text_is_tooltip )
{
toolTip::add( b, _text );
ToolTip::add( b, _text );
}
// small workaround, because QBoxLayout::addWidget(...) doesn't
@@ -104,7 +104,7 @@ tabButton * tabBar::addTab( QWidget * _w, const QString & _text, int _id,
void tabBar::removeTab( int _id )
void TabBar::removeTab( int _id )
{
// find tab-button and delete it
if( m_tabs.find( _id ) != m_tabs.end() )
@@ -117,7 +117,7 @@ void tabBar::removeTab( int _id )
void tabBar::setActiveTab( int _id )
void TabBar::setActiveTab( int _id )
{
setTabState( _id, true );
hideAll( _id );
@@ -134,7 +134,7 @@ void tabBar::setActiveTab( int _id )
int tabBar::activeTab()
int TabBar::activeTab()
{
QMap<int, QPair<tabButton *, QWidget *> >::iterator it;
for( it = m_tabs.begin(); it != m_tabs.end(); ++it )
@@ -150,7 +150,7 @@ int tabBar::activeTab()
bool tabBar::tabState( int _id )
bool TabBar::tabState( int _id )
{
if( m_tabs.find( _id ) == m_tabs.end() )
{
@@ -162,7 +162,7 @@ bool tabBar::tabState( int _id )
void tabBar::setTabState( int _id, bool _checked )
void TabBar::setTabState( int _id, bool _checked )
{
if( m_tabs.find( _id ) != m_tabs.end() )
{
@@ -173,7 +173,7 @@ void tabBar::setTabState( int _id, bool _checked )
void tabBar::hideAll( int _exception )
void TabBar::hideAll( int _exception )
{
QMap<int, QPair<tabButton *, QWidget *> >::iterator it;
for( it = m_tabs.begin(); it != m_tabs.end(); ++it )
@@ -200,7 +200,7 @@ void tabBar::hideAll( int _exception )
void tabBar::tabClicked( int _id )
void TabBar::tabClicked( int _id )
{
if( m_exclusive == true && activeTab() == -1 )
{
@@ -226,7 +226,7 @@ void tabBar::tabClicked( int _id )
bool tabBar::allHidden()
bool TabBar::allHidden()
{
QMap<int, QPair<tabButton *, QWidget *> >::iterator it;
for( it = m_tabs.begin(); it != m_tabs.end(); ++it )

View File

@@ -1,5 +1,5 @@
/*
* tab_widget.cpp - tabwidget for LMMS
* TabWidget.cpp - tabwidget for LMMS
*
* Copyright (c) 2005-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
@@ -23,7 +23,7 @@
*/
#include "tab_widget.h"
#include "TabWidget.h"
#include <QMouseEvent>
#include <QPainter>
@@ -34,7 +34,7 @@
tabWidget::tabWidget( const QString & _caption, QWidget * _parent ) :
TabWidget::TabWidget( const QString & _caption, QWidget * _parent ) :
QWidget( _parent ),
m_activeTab( 0 ),
m_caption( _caption ),
@@ -54,14 +54,14 @@ tabWidget::tabWidget( const QString & _caption, QWidget * _parent ) :
tabWidget::~tabWidget()
TabWidget::~TabWidget()
{
}
void tabWidget::addTab( QWidget * _w, const QString & _name, int _idx )
void TabWidget::addTab( QWidget * _w, const QString & _name, int _idx )
{
setFont( pointSize<8>( font() ) );
widgetDesc d = { _w, _name, fontMetrics().width( _name ) + 10 } ;
@@ -87,7 +87,7 @@ void tabWidget::addTab( QWidget * _w, const QString & _name, int _idx )
void tabWidget::setActiveTab( int _idx )
void TabWidget::setActiveTab( int _idx )
{
if( m_widgets.contains( _idx ) )
{
@@ -106,7 +106,7 @@ void tabWidget::setActiveTab( int _idx )
void tabWidget::mousePressEvent( QMouseEvent * _me )
void TabWidget::mousePressEvent( QMouseEvent * _me )
{
if( _me->y() > 1 && _me->y() < 13 )
{
@@ -130,7 +130,7 @@ void tabWidget::mousePressEvent( QMouseEvent * _me )
void tabWidget::resizeEvent( QResizeEvent * )
void TabWidget::resizeEvent( QResizeEvent * )
{
for( widgetStack::iterator it = m_widgets.begin();
it != m_widgets.end(); ++it )
@@ -143,7 +143,7 @@ void tabWidget::resizeEvent( QResizeEvent * )
void tabWidget::paintEvent( QPaintEvent * _pe )
void TabWidget::paintEvent( QPaintEvent * _pe )
{
setFont( pointSize<8>( font() ) );
QPainter p( this );
@@ -210,7 +210,7 @@ void tabWidget::paintEvent( QPaintEvent * _pe )
void tabWidget::wheelEvent( QWheelEvent * _we )
void TabWidget::wheelEvent( QWheelEvent * _we )
{
if (_we->y() > m_tabheight)
return;

View File

@@ -38,7 +38,7 @@
TempoSyncKnob::TempoSyncKnob( knobTypes _knob_num, QWidget * _parent,
const QString & _name ) :
knob( _knob_num, _parent, _name ),
Knob( _knob_num, _parent, _name ),
m_tempoSyncIcon( embed::getIconPixmap( "tempo_sync" ) ),
m_tempoSyncDescription( tr( "Tempo Sync" ) ),
m_custom( NULL )

View File

@@ -1,5 +1,5 @@
/*
* text_float.cpp - class textFloat, a floating text-label
* TextFloat.cpp - class textFloat, a floating text-label
*
* Copyright (c) 2005-2010 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
@@ -26,14 +26,14 @@
#include <QPainter>
#include <QStyleOption>
#include "text_float.h"
#include "TextFloat.h"
#include "gui_templates.h"
#include "MainWindow.h"
#include "Engine.h"
textFloat::textFloat() :
TextFloat::TextFloat() :
QWidget( Engine::mainWindow(), Qt::ToolTip ),
m_title(),
m_text(),
@@ -50,7 +50,7 @@ textFloat::textFloat() :
void textFloat::setTitle( const QString & _title )
void TextFloat::setTitle( const QString & _title )
{
m_title = _title;
updateSize();
@@ -59,7 +59,7 @@ void textFloat::setTitle( const QString & _title )
void textFloat::setText( const QString & _text )
void TextFloat::setText( const QString & _text )
{
m_text = _text;
updateSize();
@@ -68,7 +68,7 @@ void textFloat::setText( const QString & _text )
void textFloat::setPixmap( const QPixmap & _pixmap )
void TextFloat::setPixmap( const QPixmap & _pixmap )
{
m_pixmap = _pixmap;
updateSize();
@@ -77,7 +77,7 @@ void textFloat::setPixmap( const QPixmap & _pixmap )
void textFloat::setVisibilityTimeOut( int _msecs )
void TextFloat::setVisibilityTimeOut( int _msecs )
{
QTimer::singleShot( _msecs, this, SLOT( hide() ) );
show();
@@ -86,11 +86,11 @@ void textFloat::setVisibilityTimeOut( int _msecs )
textFloat * textFloat::displayMessage( const QString & _msg, int _timeout,
TextFloat * TextFloat::displayMessage( const QString & _msg, int _timeout,
QWidget * _parent, int _add_y_margin )
{
QWidget * mw = Engine::mainWindow();
textFloat * tf = new textFloat;
TextFloat * tf = new TextFloat;
if( _parent != NULL )
{
tf->moveGlobal( _parent, QPoint( _parent->width() + 2, 0 ) );
@@ -112,12 +112,12 @@ textFloat * textFloat::displayMessage( const QString & _msg, int _timeout,
textFloat * textFloat::displayMessage( const QString & _title,
TextFloat * TextFloat::displayMessage( const QString & _title,
const QString & _msg,
const QPixmap & _pixmap,
int _timeout, QWidget * _parent )
{
textFloat * tf = displayMessage( _msg, _timeout, _parent, 16 );
TextFloat * tf = displayMessage( _msg, _timeout, _parent, 16 );
tf->setTitle( _title );
tf->setPixmap( _pixmap );
return( tf );
@@ -126,7 +126,7 @@ textFloat * textFloat::displayMessage( const QString & _title,
void textFloat::paintEvent( QPaintEvent * _pe )
void TextFloat::paintEvent( QPaintEvent * _pe )
{
QStyleOption opt;
opt.init( this );
@@ -166,7 +166,7 @@ void textFloat::paintEvent( QPaintEvent * _pe )
void textFloat::mousePressEvent( QMouseEvent * )
void TextFloat::mousePressEvent( QMouseEvent * )
{
close();
}
@@ -174,7 +174,7 @@ void textFloat::mousePressEvent( QMouseEvent * )
void textFloat::updateSize()
void TextFloat::updateSize()
{
QFontMetrics metrics( pointSize<8>( font() ) );
QRect textBound = metrics.boundingRect( m_text );

View File

@@ -27,7 +27,7 @@
#include "TimeDisplayWidget.h"
#include "MainWindow.h"
#include "Engine.h"
#include "tooltip.h"
#include "ToolTip.h"
#include "Song.h"
@@ -48,7 +48,7 @@ TimeDisplayWidget::TimeDisplayWidget() :
setMaximumHeight( 32 );
toolTip::add( this, tr( "click to change time units" ) );
ToolTip::add( this, tr( "click to change time units" ) );
// update labels of LCD spinboxes
setDisplayMode( m_displayMode );

View File

@@ -1,5 +1,5 @@
/*
* tool_button.cpp - implementation of LMMS-tool-button for common (cool) look
* ToolButton.cpp - implementation of LMMS-tool-button for common (cool) look
*
* Copyright (c) 2005-2006 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
@@ -23,16 +23,16 @@
*/
#include "tool_button.h"
#include "tooltip.h"
#include "ToolButton.h"
#include "ToolTip.h"
const QColor toolButton::s_stdColor = QColor( 216, 216, 216 );
const QColor toolButton::s_hlColor = QColor( 240, 240, 240 );
const QColor ToolButton::s_stdColor = QColor( 216, 216, 216 );
const QColor ToolButton::s_hlColor = QColor( 240, 240, 240 );
toolButton::toolButton( const QPixmap & _pixmap, const QString & _tooltip,
ToolButton::ToolButton( const QPixmap & _pixmap, const QString & _tooltip,
QObject * _receiver, const char * _slot,
QWidget * _parent ) :
QToolButton( _parent ),
@@ -50,7 +50,7 @@ toolButton::toolButton( const QPixmap & _pixmap, const QString & _tooltip,
{
connect( this, SIGNAL( clicked() ), _receiver, _slot );
}
toolTip::add( this, _tooltip );
ToolTip::add( this, _tooltip );
setFixedSize( 30, 30 );
setIcon( _pixmap );
leaveEvent( NULL );
@@ -61,14 +61,14 @@ toolButton::toolButton( const QPixmap & _pixmap, const QString & _tooltip,
toolButton::~toolButton()
ToolButton::~ToolButton()
{
}
void toolButton::enterEvent( QEvent * )
void ToolButton::enterEvent( QEvent * )
{
QPalette pal = palette();
pal.setColor( backgroundRole(), m_colorHighlighted );
@@ -80,7 +80,7 @@ void toolButton::enterEvent( QEvent * )
void toolButton::leaveEvent( QEvent * )
void ToolButton::leaveEvent( QEvent * )
{
QPalette pal = palette();
pal.setColor( backgroundRole(), m_colorStandard );
@@ -92,7 +92,7 @@ void toolButton::leaveEvent( QEvent * )
void toolButton::toggledBool( bool _on )
void ToolButton::toggledBool( bool _on )
{
if( _on == true )
{

View File

@@ -1,5 +1,5 @@
/*
* tooltip.cpp - namespace toolTip, a tooltip-wrapper for LMMS
* ToolTip.cpp - namespace toolTip, a tooltip-wrapper for LMMS
*
* Copyright (c) 2005-2006 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
@@ -25,11 +25,11 @@
#include <QToolTip>
#include "tooltip.h"
#include "ToolTip.h"
#include "ConfigManager.h"
void toolTip::add( QWidget * _w, const QString & _txt )
void ToolTip::add( QWidget * _w, const QString & _txt )
{
if( !ConfigManager::inst()->value( "tooltips", "disabled" ).toInt() )
{

View File

@@ -1,5 +1,5 @@
/*
* track_label_button.cpp - implementation of class trackLabelButton, a label
* TrackLabelButton.cpp - implementation of class trackLabelButton, a label
* which is renamable by double-clicking it
*
* Copyright (c) 2004-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
@@ -28,9 +28,9 @@
#include <QMouseEvent>
#include "track_label_button.h"
#include "TrackLabelButton.h"
#include "embed.h"
#include "rename_dialog.h"
#include "RenameDialog.h"
#include "InstrumentTrack.h"
#include "Instrument.h"
#include "ConfigManager.h"
@@ -38,7 +38,7 @@
trackLabelButton::trackLabelButton( trackView * _tv, QWidget * _parent ) :
TrackLabelButton::TrackLabelButton( trackView * _tv, QWidget * _parent ) :
QToolButton( _parent ),
m_trackView( _tv ),
m_iconName()
@@ -68,17 +68,17 @@ trackLabelButton::trackLabelButton( trackView * _tv, QWidget * _parent ) :
trackLabelButton::~trackLabelButton()
TrackLabelButton::~TrackLabelButton()
{
}
void trackLabelButton::rename()
void TrackLabelButton::rename()
{
QString txt = m_trackView->getTrack()->name();
renameDialog rename_dlg( txt );
RenameDialog rename_dlg( txt );
rename_dlg.exec();
if( txt != text() )
{
@@ -89,7 +89,7 @@ void trackLabelButton::rename()
void trackLabelButton::dragEnterEvent( QDragEnterEvent * _dee )
void TrackLabelButton::dragEnterEvent( QDragEnterEvent * _dee )
{
m_trackView->dragEnterEvent( _dee );
}
@@ -97,7 +97,7 @@ void trackLabelButton::dragEnterEvent( QDragEnterEvent * _dee )
void trackLabelButton::dropEvent( QDropEvent * _de )
void TrackLabelButton::dropEvent( QDropEvent * _de )
{
m_trackView->dropEvent( _de );
setChecked( true );
@@ -106,7 +106,7 @@ void trackLabelButton::dropEvent( QDropEvent * _de )
void trackLabelButton::mousePressEvent( QMouseEvent * _me )
void TrackLabelButton::mousePressEvent( QMouseEvent * _me )
{
if( _me->button() == Qt::RightButton )
{
@@ -121,7 +121,7 @@ void trackLabelButton::mousePressEvent( QMouseEvent * _me )
void trackLabelButton::mouseDoubleClickEvent( QMouseEvent * _me )
void TrackLabelButton::mouseDoubleClickEvent( QMouseEvent * _me )
{
rename();
}
@@ -129,7 +129,7 @@ void trackLabelButton::mouseDoubleClickEvent( QMouseEvent * _me )
void trackLabelButton::paintEvent( QPaintEvent * _pe )
void TrackLabelButton::paintEvent( QPaintEvent * _pe )
{
if( m_trackView->getTrack()->type() == Track::InstrumentTrack )
{

View File

@@ -1,5 +1,5 @@
/*
* visualization_widget.cpp - widget for visualization of sound-data
* VisualizationWidget.cpp - widget for visualization of sound-data
*
* Copyright (c) 2005-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
@@ -26,19 +26,19 @@
#include <QMouseEvent>
#include <QPainter>
#include "visualization_widget.h"
#include "VisualizationWidget.h"
#include "gui_templates.h"
#include "MainWindow.h"
#include "embed.h"
#include "Engine.h"
#include "tooltip.h"
#include "ToolTip.h"
#include "Song.h"
#include "ConfigManager.h"
visualizationWidget::visualizationWidget( const QPixmap & _bg, QWidget * _p,
VisualizationWidget::VisualizationWidget( const QPixmap & _bg, QWidget * _p,
visualizationTypes _vtype ) :
QWidget( _p ),
s_background( _bg ),
@@ -55,14 +55,14 @@ visualizationWidget::visualizationWidget( const QPixmap & _bg, QWidget * _p,
Engine::mixer()->clearAudioBuffer( m_buffer, frames );
toolTip::add( this, tr( "click to enable/disable visualization of "
ToolTip::add( this, tr( "click to enable/disable visualization of "
"master-output" ) );
}
visualizationWidget::~visualizationWidget()
VisualizationWidget::~VisualizationWidget()
{
delete[] m_buffer;
delete[] m_points;
@@ -71,7 +71,7 @@ visualizationWidget::~visualizationWidget()
void visualizationWidget::updateAudioBuffer()
void VisualizationWidget::updateAudioBuffer()
{
if( !Engine::getSong()->isExporting() )
{
@@ -85,7 +85,7 @@ void visualizationWidget::updateAudioBuffer()
void visualizationWidget::setActive( bool _active )
void VisualizationWidget::setActive( bool _active )
{
m_active = _active;
if( m_active )
@@ -114,7 +114,7 @@ void visualizationWidget::setActive( bool _active )
void visualizationWidget::paintEvent( QPaintEvent * )
void VisualizationWidget::paintEvent( QPaintEvent * )
{
QPainter p( this );
@@ -181,7 +181,7 @@ void visualizationWidget::paintEvent( QPaintEvent * )
void visualizationWidget::mousePressEvent( QMouseEvent * _me )
void VisualizationWidget::mousePressEvent( QMouseEvent * _me )
{
if( _me->button() == Qt::LeftButton )
{

View File

@@ -31,7 +31,7 @@
#include "ProjectJournal.h"
#include "string_pair_drag.h"
#include "TrackContainerView.h"
#include "track_label_button.h"
#include "TrackLabelButton.h"
AutomationTrack::AutomationTrack( TrackContainer* tc, bool _hidden ) :
@@ -131,7 +131,7 @@ AutomationTrackView::AutomationTrackView( AutomationTrack * _at, TrackContainerV
trackView( _at, tcv )
{
setFixedHeight( 32 );
trackLabelButton * tlb = new trackLabelButton( this,
TrackLabelButton * tlb = new TrackLabelButton( this,
getTrackSettingsWidget() );
tlb->setIcon( embed::getIconPixmap( "automation_track" ) );
tlb->move( 3, 1 );

View File

@@ -54,14 +54,14 @@
#include "FxMixerView.h"
#include "InstrumentSoundShaping.h"
#include "InstrumentSoundShapingView.h"
#include "fade_button.h"
#include "FadeButton.h"
#include "gui_templates.h"
#include "Instrument.h"
#include "InstrumentFunctionViews.h"
#include "InstrumentMidiIOView.h"
#include "knob.h"
#include "Knob.h"
#include "LcdSpinBox.h"
#include "led_checkbox.h"
#include "LedCheckbox.h"
#include "MainWindow.h"
#include "MidiClient.h"
#include "MidiPortMenu.h"
@@ -73,9 +73,9 @@
#include "SamplePlayHandle.h"
#include "Song.h"
#include "string_pair_drag.h"
#include "tab_widget.h"
#include "tooltip.h"
#include "track_label_button.h"
#include "TabWidget.h"
#include "ToolTip.h"
#include "TrackLabelButton.h"
#include "ValueBuffer.h"
#include "volume.h"
@@ -821,7 +821,7 @@ InstrumentTrackView::InstrumentTrackView( InstrumentTrack * _it, TrackContainerV
setAcceptDrops( true );
setFixedHeight( 32 );
m_tlb = new trackLabelButton( this, getTrackSettingsWidget() );
m_tlb = new TrackLabelButton( this, getTrackSettingsWidget() );
m_tlb->setCheckable( true );
m_tlb->setIcon( embed::getIconPixmap( "instrument_track" ) );
m_tlb->move( 3, 1 );
@@ -845,7 +845,7 @@ InstrumentTrackView::InstrumentTrackView( InstrumentTrack * _it, TrackContainerV
widgetWidth = DEFAULT_SETTINGS_WIDGET_WIDTH;
}
m_volumeKnob = new knob( knobSmall_17, getTrackSettingsWidget(),
m_volumeKnob = new Knob( knobSmall_17, getTrackSettingsWidget(),
tr( "Volume" ) );
m_volumeKnob->setVolumeKnob( true );
m_volumeKnob->setModel( &_it->m_volumeModel );
@@ -855,7 +855,7 @@ InstrumentTrackView::InstrumentTrackView( InstrumentTrack * _it, TrackContainerV
m_volumeKnob->show();
m_volumeKnob->setWhatsThis( tr( volume_help ) );
m_panningKnob = new knob( knobSmall_17, getTrackSettingsWidget(),
m_panningKnob = new Knob( knobSmall_17, getTrackSettingsWidget(),
tr( "Panning" ) );
m_panningKnob->setModel( &_it->m_panningModel );
m_panningKnob->setHintText( tr( "Panning:" ) + " ", "%" );
@@ -898,7 +898,7 @@ InstrumentTrackView::InstrumentTrackView( InstrumentTrack * _it, TrackContainerV
m_midiInputAction->setText( tr( "Input" ) );
m_midiOutputAction->setText( tr( "Output" ) );
m_activityIndicator = new fadeButton( QApplication::palette().color( QPalette::Active,
m_activityIndicator = new FadeButton( QApplication::palette().color( QPalette::Active,
QPalette::Background),
QApplication::palette().color( QPalette::Active,
QPalette::BrightText ),
@@ -1155,7 +1155,7 @@ InstrumentTrackWindow::InstrumentTrackWindow( InstrumentTrackView * _itv ) :
vlayout->setMargin( 0 );
vlayout->setSpacing( 0 );
tabWidget* generalSettingsWidget = new tabWidget( tr( "GENERAL SETTINGS" ), this );
TabWidget* generalSettingsWidget = new TabWidget( tr( "GENERAL SETTINGS" ), this );
QVBoxLayout* generalSettingsLayout = new QVBoxLayout( generalSettingsWidget );
@@ -1174,7 +1174,7 @@ InstrumentTrackWindow::InstrumentTrackWindow( InstrumentTrackView * _itv ) :
basicControlsLayout->setSpacing( 3 );
// set up volume knob
m_volumeKnob = new knob( knobBright_26, NULL, tr( "Instrument volume" ) );
m_volumeKnob = new Knob( knobBright_26, NULL, tr( "Instrument volume" ) );
m_volumeKnob->setVolumeKnob( true );
m_volumeKnob->setHintText( tr( "Volume:" ) + " ", "%" );
m_volumeKnob->setLabel( tr( "VOL" ) );
@@ -1184,7 +1184,7 @@ InstrumentTrackWindow::InstrumentTrackWindow( InstrumentTrackView * _itv ) :
basicControlsLayout->addWidget( m_volumeKnob );
// set up panning knob
m_panningKnob = new knob( knobBright_26, NULL, tr( "Panning" ) );
m_panningKnob = new Knob( knobBright_26, NULL, tr( "Panning" ) );
m_panningKnob->setHintText( tr( "Panning:" ) + " ", "" );
m_panningKnob->setLabel( tr( "PAN" ) );
@@ -1192,7 +1192,7 @@ InstrumentTrackWindow::InstrumentTrackWindow( InstrumentTrackView * _itv ) :
basicControlsLayout->addStretch();
// set up pitch knob
m_pitchKnob = new knob( knobBright_26, NULL, tr( "Pitch" ) );
m_pitchKnob = new Knob( knobBright_26, NULL, tr( "Pitch" ) );
m_pitchKnob->setHintText( tr( "Pitch:" ) + " ", " " + tr( "cents" ) );
m_pitchKnob->setLabel( tr( "PITCH" ) );
@@ -1219,7 +1219,7 @@ InstrumentTrackWindow::InstrumentTrackWindow( InstrumentTrackView * _itv ) :
connect( saveSettingsBtn, SIGNAL( clicked() ), this, SLOT( saveSettingsBtnClicked() ) );
toolTip::add( saveSettingsBtn, tr( "Save current instrument track settings in a preset file" ) );
ToolTip::add( saveSettingsBtn, tr( "Save current instrument track settings in a preset file" ) );
saveSettingsBtn->setWhatsThis(
tr( "Click here, if you want to save current instrument track settings in a preset file. "
"Later you can load this preset by double-clicking it in the preset-browser." ) );
@@ -1229,7 +1229,7 @@ InstrumentTrackWindow::InstrumentTrackWindow( InstrumentTrackView * _itv ) :
generalSettingsLayout->addLayout( basicControlsLayout );
m_tabWidget = new tabWidget( "", this );
m_tabWidget = new TabWidget( "", this );
m_tabWidget->setFixedHeight( INSTRUMENT_HEIGHT + 10 );

View File

@@ -41,11 +41,11 @@
#include "Engine.h"
#include "PianoRoll.h"
#include "TrackContainer.h"
#include "rename_dialog.h"
#include "RenameDialog.h"
#include "SampleBuffer.h"
#include "AudioSampleRecorder.h"
#include "Song.h"
#include "tooltip.h"
#include "ToolTip.h"
#include "BBTrackContainer.h"
#include "string_pair_drag.h"
#include "MainWindow.h"
@@ -637,7 +637,7 @@ PatternView::PatternView( Pattern* pattern, trackView* parent ) :
setFixedHeight( parentWidget()->height() - 2 );
setAutoResizeEnabled( false );
toolTip::add( this,
ToolTip::add( this,
tr( "double-click to open this pattern in piano-roll\n"
"use mouse wheel to set volume of a step" ) );
setStyle( QApplication::style() );
@@ -687,7 +687,7 @@ void PatternView::resetName()
void PatternView::changeName()
{
QString s = m_pat->name();
renameDialog rename_dlg( s );
RenameDialog rename_dlg( s );
rename_dlg.exec();
m_pat->setName( s );
}

View File

@@ -37,15 +37,15 @@
#include "Song.h"
#include "embed.h"
#include "Engine.h"
#include "tooltip.h"
#include "ToolTip.h"
#include "AudioPort.h"
#include "SamplePlayHandle.h"
#include "SampleRecordHandle.h"
#include "string_pair_drag.h"
#include "knob.h"
#include "Knob.h"
#include "MainWindow.h"
#include "EffectRackView.h"
#include "track_label_button.h"
#include "TrackLabelButton.h"
#include "ConfigManager.h"
@@ -221,7 +221,7 @@ void SampleTCOView::updateSample()
update();
// set tooltip to filename so that user can see what sample this
// sample-tco contains
toolTip::add( this, ( m_tco->m_sampleBuffer->audioFile() != "" ) ?
ToolTip::add( this, ( m_tco->m_sampleBuffer->audioFile() != "" ) ?
m_tco->m_sampleBuffer->audioFile() :
tr( "double-click to select sample" ) );
}
@@ -525,7 +525,7 @@ SampleTrackView::SampleTrackView( SampleTrack * _t, TrackContainerView* tcv ) :
{
setFixedHeight( 32 );
trackLabelButton * tlb = new trackLabelButton( this,
TrackLabelButton * tlb = new TrackLabelButton( this,
getTrackSettingsWidget() );
connect( tlb, SIGNAL( clicked( bool ) ),
this, SLOT( showEffects() ) );
@@ -533,7 +533,7 @@ SampleTrackView::SampleTrackView( SampleTrack * _t, TrackContainerView* tcv ) :
tlb->move( 3, 1 );
tlb->show();
m_volumeKnob = new knob( knobSmall_17, getTrackSettingsWidget(),
m_volumeKnob = new Knob( knobSmall_17, getTrackSettingsWidget(),
tr( "Track volume" ) );
m_volumeKnob->setVolumeKnob( true );
m_volumeKnob->setModel( &_t->m_volumeModel );

View File

@@ -35,11 +35,11 @@
#include "gui_templates.h"
#include "MainWindow.h"
#include "Mixer.h"
#include "rename_dialog.h"
#include "RenameDialog.h"
#include "Song.h"
#include "SongEditor.h"
#include "templates.h"
#include "track_label_button.h"
#include "TrackLabelButton.h"
@@ -292,7 +292,7 @@ void bbTCOView::resetName()
void bbTCOView::changeName()
{
QString s = m_bbTCO->name();
renameDialog rename_dlg( s );
RenameDialog rename_dlg( s );
rename_dlg.exec();
m_bbTCO->setName( s );
}
@@ -585,7 +585,7 @@ bbTrackView::bbTrackView( bbTrack * _bbt, TrackContainerView* tcv ) :
// too), so disable it
setAcceptDrops( false );
m_trackLabel = new trackLabelButton( this, getTrackSettingsWidget() );
m_trackLabel = new TrackLabelButton( this, getTrackSettingsWidget() );
m_trackLabel->setIcon( embed::getIconPixmap( "bb_track" ) );
m_trackLabel->move( 3, 1 );
m_trackLabel->show();