sed: s/( void )/(), s/FALSE/false/, s/TRUE/true

Replaced remaining occurences of old constants and superfluous "void"
on empty argument list of functions.
(cherry picked from commit 166701f9f3)
This commit is contained in:
Tobias Doerffel
2009-08-24 23:25:26 +02:00
parent 1d5cb23385
commit f4dbb2ff5c
175 changed files with 1130 additions and 1130 deletions

View File

@@ -54,11 +54,11 @@ public:
virtual void loadFile( const QString & _file );
virtual QString nodeName( void ) const;
virtual QString nodeName() const;
virtual Uint32 getBeatLen( notePlayHandle * _n ) const;
virtual f_cnt_t desiredReleaseFrames( void ) const
virtual f_cnt_t desiredReleaseFrames() const
{
return( 128 );
}
@@ -67,13 +67,13 @@ public:
public slots:
void setAudioFile( const QString & _audio_file, bool _rename = TRUE );
void setAudioFile( const QString & _audio_file, bool _rename = true );
private slots:
void reverseModelChanged( void );
void ampModelChanged( void );
void loopPointChanged( void );
void reverseModelChanged();
void ampModelChanged();
void loopPointChanged();
private:
@@ -103,8 +103,8 @@ public:
protected slots:
void sampleUpdated( void );
void openAudioFile( void );
void sampleUpdated();
void openAudioFile();
protected:
@@ -114,7 +114,7 @@ protected:
private:
virtual void modelChanged( void );
virtual void modelChanged();
static QPixmap * s_artwork;

View File

@@ -72,7 +72,7 @@ bool bassBoosterEffect::processAudioBuffer( sampleFrame * _buf,
{
if( !isEnabled() || !isRunning () )
{
return( FALSE );
return( false );
}
double out_sum = 0.0;

View File

@@ -41,7 +41,7 @@ public:
virtual bool processAudioBuffer( sampleFrame * _buf,
const fpp_t _frames );
virtual EffectControls * controls( void )
virtual EffectControls * controls()
{
return( &m_bbControls );
}

View File

@@ -35,7 +35,7 @@ bassBoosterControlDialog::bassBoosterControlDialog(
bassBoosterControls * _controls ) :
EffectControlDialog( _controls )
{
setAutoFillBackground( TRUE );
setAutoFillBackground( true );
QPalette pal;
pal.setBrush( backgroundRole(),
PLUGIN_NAME::getIconPixmap( "artwork" ) );

View File

@@ -56,7 +56,7 @@ bassBoosterControls::bassBoosterControls( bassBoosterEffect * _eff ) :
void bassBoosterControls::changeFrequency( void )
void bassBoosterControls::changeFrequency()
{
const sample_t fac = engine::getMixer()->processingSampleRate() /
44100.0f;
@@ -67,7 +67,7 @@ void bassBoosterControls::changeFrequency( void )
void bassBoosterControls::changeGain( void )
void bassBoosterControls::changeGain()
{
m_effect->m_bbFX.leftFX().setGain( m_gainModel.value() );
m_effect->m_bbFX.rightFX().setGain( m_gainModel.value() );
@@ -76,7 +76,7 @@ void bassBoosterControls::changeGain( void )
void bassBoosterControls::changeRatio( void )
void bassBoosterControls::changeRatio()
{
m_effect->m_bbFX.leftFX().setRatio( m_ratioModel.value() );
m_effect->m_bbFX.rightFX().setRatio( m_ratioModel.value() );

View File

@@ -44,26 +44,26 @@ public:
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
virtual void loadSettings( const QDomElement & _this );
inline virtual QString nodeName( void ) const
inline virtual QString nodeName() const
{
return( "bassboostercontrols" );
}
virtual int controlCount( void )
virtual int controlCount()
{
return( 3 );
}
virtual EffectControlDialog * createView( void )
virtual EffectControlDialog * createView()
{
return( new bassBoosterControlDialog( this ) );
}
private slots:
void changeFrequency( void );
void changeGain( void );
void changeRatio( void );
void changeFrequency();
void changeGain();
void changeRatio();
private:

View File

@@ -84,7 +84,7 @@ bSynth::~bSynth()
}
sample_t bSynth::nextStringSample( void )
sample_t bSynth::nextStringSample()
{
float sample_step =
static_cast<float>( sample_length / ( sample_rate / nph->frequency() ) );
@@ -138,8 +138,8 @@ bitInvader::bitInvader( InstrumentTrack * _instrument_track ) :
Instrument( _instrument_track, &bitinvader_plugin_descriptor ),
m_sampleLength( 128, 8, 128, 1, this, tr( "Samplelength" ) ),
m_graph( -1.0f, 1.0f, 128, this ),
m_interpolation( FALSE, this ),
m_normalize( FALSE, this )
m_interpolation( false, this ),
m_normalize( false, this )
{
m_graph.setWaveToSine();
@@ -214,7 +214,7 @@ void bitInvader::loadSettings( const QDomElement & _this )
void bitInvader::lengthChanged( void )
void bitInvader::lengthChanged()
{
m_graph.setLength( (int) m_sampleLength.value() );
@@ -233,7 +233,7 @@ void bitInvader::samplesChanged( int _begin, int _end )
void bitInvader::normalize( void )
void bitInvader::normalize()
{
// analyze
float max = 0;
@@ -249,7 +249,7 @@ void bitInvader::normalize( void )
QString bitInvader::nodeName( void ) const
QString bitInvader::nodeName() const
{
return( bitinvader_plugin_descriptor.name );
}
@@ -324,7 +324,7 @@ bitInvaderView::bitInvaderView( Instrument * _instrument,
QWidget * _parent ) :
InstrumentView( _instrument, _parent )
{
setAutoFillBackground( TRUE );
setAutoFillBackground( true );
QPalette pal;
pal.setBrush( backgroundRole(), PLUGIN_NAME::getIconPixmap(
@@ -337,7 +337,7 @@ bitInvaderView::bitInvaderView( Instrument * _instrument,
m_graph = new graph( this, graph::NearestStyle );
m_graph->move(53,118); // 55,120 - 2px border
m_graph->setAutoFillBackground( TRUE );
m_graph->setAutoFillBackground( true );
toolTip::add( m_graph, tr ( "Draw your own waveform here "
"by dragging your mouse on this graph."
@@ -411,7 +411,7 @@ bitInvaderView::bitInvaderView( Instrument * _instrument,
"smooth" ) );
smoothBtn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
"smooth" ) );
smoothBtn->setChecked( TRUE );
smoothBtn->setChecked( true );
toolTip::add( smoothBtn,
tr( "Click here to smooth waveform." ) );
@@ -426,21 +426,21 @@ bitInvaderView::bitInvaderView( Instrument * _instrument,
m_normalizeToggle->move( 55, 100 );
connect( sinWaveBtn, SIGNAL (clicked ( void ) ),
this, SLOT ( sinWaveClicked( void ) ) );
connect( triangleWaveBtn, SIGNAL ( clicked ( void ) ),
this, SLOT ( triangleWaveClicked( void ) ) );
connect( sawWaveBtn, SIGNAL (clicked ( void ) ),
this, SLOT ( sawWaveClicked( void ) ) );
connect( sqrWaveBtn, SIGNAL ( clicked ( void ) ),
this, SLOT ( sqrWaveClicked( void ) ) );
connect( whiteNoiseWaveBtn, SIGNAL ( clicked ( void ) ),
this, SLOT ( noiseWaveClicked( void ) ) );
connect( usrWaveBtn, SIGNAL ( clicked ( void ) ),
this, SLOT ( usrWaveClicked( void ) ) );
connect( sinWaveBtn, SIGNAL (clicked () ),
this, SLOT ( sinWaveClicked() ) );
connect( triangleWaveBtn, SIGNAL ( clicked () ),
this, SLOT ( triangleWaveClicked() ) );
connect( sawWaveBtn, SIGNAL (clicked () ),
this, SLOT ( sawWaveClicked() ) );
connect( sqrWaveBtn, SIGNAL ( clicked () ),
this, SLOT ( sqrWaveClicked() ) );
connect( whiteNoiseWaveBtn, SIGNAL ( clicked () ),
this, SLOT ( noiseWaveClicked() ) );
connect( usrWaveBtn, SIGNAL ( clicked () ),
this, SLOT ( usrWaveClicked() ) );
connect( smoothBtn, SIGNAL ( clicked ( void ) ),
this, SLOT ( smoothClicked( void ) ) );
connect( smoothBtn, SIGNAL ( clicked () ),
this, SLOT ( smoothClicked() ) );
connect( m_interpolationToggle, SIGNAL( toggled( bool ) ),
this, SLOT ( interpolationToggled( bool ) ) );
@@ -453,7 +453,7 @@ bitInvaderView::bitInvaderView( Instrument * _instrument,
void bitInvaderView::modelChanged( void )
void bitInvaderView::modelChanged()
{
bitInvader * b = castModel<bitInvader>();
@@ -467,7 +467,7 @@ void bitInvaderView::modelChanged( void )
void bitInvaderView::sinWaveClicked( void )
void bitInvaderView::sinWaveClicked()
{
m_graph->model()->setWaveToSine();
engine::getSong()->setModified();
@@ -476,7 +476,7 @@ void bitInvaderView::sinWaveClicked( void )
void bitInvaderView::triangleWaveClicked( void )
void bitInvaderView::triangleWaveClicked()
{
m_graph->model()->setWaveToTriangle();
engine::getSong()->setModified();
@@ -485,7 +485,7 @@ void bitInvaderView::triangleWaveClicked( void )
void bitInvaderView::sawWaveClicked( void )
void bitInvaderView::sawWaveClicked()
{
m_graph->model()->setWaveToSaw();
engine::getSong()->setModified();
@@ -494,7 +494,7 @@ void bitInvaderView::sawWaveClicked( void )
void bitInvaderView::sqrWaveClicked( void )
void bitInvaderView::sqrWaveClicked()
{
m_graph->model()->setWaveToSquare();
engine::getSong()->setModified();
@@ -503,7 +503,7 @@ void bitInvaderView::sqrWaveClicked( void )
void bitInvaderView::noiseWaveClicked( void )
void bitInvaderView::noiseWaveClicked()
{
m_graph->model()->setWaveToNoise();
engine::getSong()->setModified();
@@ -512,7 +512,7 @@ void bitInvaderView::noiseWaveClicked( void )
void bitInvaderView::usrWaveClicked( void )
void bitInvaderView::usrWaveClicked()
{
/*
m_graph->model()->setWaveToNoise();
@@ -546,7 +546,7 @@ void bitInvaderView::usrWaveClicked( void )
void bitInvaderView::smoothClicked( void )
void bitInvaderView::smoothClicked()
{
m_graph->model()->smooth();
engine::getSong()->setModified();

View File

@@ -76,9 +76,9 @@ public:
QDomElement & _parent );
virtual void loadSettings( const QDomElement & _this );
virtual QString nodeName( void ) const;
virtual QString nodeName() const;
virtual f_cnt_t desiredReleaseFrames( void ) const
virtual f_cnt_t desiredReleaseFrames() const
{
return( 64 );
}
@@ -86,10 +86,10 @@ public:
virtual PluginView * instantiateView( QWidget * _parent );
protected slots:
void lengthChanged( void );
void lengthChanged();
void samplesChanged( int, int );
void normalize( void );
void normalize();
private:
@@ -123,17 +123,17 @@ protected slots:
void interpolationToggled( bool value );
void normalizeToggled( bool value );
void sinWaveClicked( void );
void triangleWaveClicked( void );
void sqrWaveClicked( void );
void sawWaveClicked( void );
void noiseWaveClicked( void );
void usrWaveClicked( void );
void sinWaveClicked();
void triangleWaveClicked();
void sqrWaveClicked();
void sawWaveClicked();
void noiseWaveClicked();
void usrWaveClicked();
void smoothClicked( void );
private:
virtual void modelChanged( void );
virtual void modelChanged();
knob * m_sampleLengthKnob;
pixmapButton * sinWaveBtn;

View File

@@ -89,7 +89,7 @@ static AttrStack *stack_of_stacks = NULL;
static AttrStack *stack_of_stacks_top = NULL;
void attr_clear_all( void )
void attr_clear_all()
{
stack_of_stacks = NULL;
stack_of_stacks_top = NULL;
@@ -181,12 +181,12 @@ attr_express_begin (int attr, const char* param) {
case ATTR_CAPS:
if (op->simulate_all_caps)
simulate_allcaps = TRUE;
simulate_allcaps = true;
break;
case ATTR_SMALLCAPS:
if (op->simulate_small_caps)
simulate_smallcaps = TRUE;
simulate_smallcaps = true;
else {
if (op->small_caps_begin)
outstring+=QString().sprintf("%s", op->small_caps_begin);
@@ -281,12 +281,12 @@ attr_express_end (int attr, char *param)
case ATTR_CAPS:
if (op->simulate_all_caps)
simulate_allcaps = FALSE;
simulate_allcaps = false;
break;
case ATTR_SMALLCAPS:
if (op->simulate_small_caps)
simulate_smallcaps = FALSE;
simulate_smallcaps = false;
else {
if (op->small_caps_end)
outstring+=QString().sprintf("%s", op->small_caps_end);
@@ -483,7 +483,7 @@ attr_pop (int attr)
if (!stack) {
warning_handler ("no stack to pop attribute from");
return FALSE;
return false;
}
if(stack->tos>=0 && stack->attr_stack[stack->tos]==attr)
@@ -496,10 +496,10 @@ attr_pop (int attr)
stack->tos--;
return TRUE;
return true;
}
else
return FALSE;
return false;
}
@@ -517,7 +517,7 @@ attr_read() {
AttrStack *stack = stack_of_stacks_top;
if (!stack) {
warning_handler ("no stack to read attribute from");
return FALSE;
return false;
}
if(stack->tos>=0)

View File

@@ -70,7 +70,7 @@ enum {
extern void attr_clear_all( void );
extern void attr_clear_all();
extern void attr_push_core (int attr, char* param);

File diff suppressed because it is too large Load Diff

View File

@@ -53,11 +53,11 @@
#endif
#ifndef TRUE /* daved 0.19.0 */
#define TRUE (1)
#ifndef true /* daved 0.19.0 */
#define true (1)
#endif
#ifndef FALSE /* daved 0.19.0 */
#define FALSE (0)
#ifndef false /* daved 0.19.0 */
#define false (0)
#endif
#if 1 /* daved - 0.19.4 */
#define SKIP_ONE_WORD 2

View File

@@ -1183,9 +1183,9 @@ html_init (void)
op->numericlist_item_begin = "<li>";
op->numericlist_item_end = "</li>\n";
op->simulate_small_caps = TRUE;
op->simulate_all_caps = TRUE;
op->simulate_word_underline = TRUE;
op->simulate_small_caps = true;
op->simulate_all_caps = true;
op->simulate_word_underline = true;
op->ascii_translation_table = ascii;

View File

@@ -131,7 +131,7 @@ op_translate_char (OutputPersonality *op, int charset, CodepageInfo *codepage, i
CHECK_PARAM_NOT_NULL(op);
#if 1 /* daved - 0.20.5 */
if (no_remap_mode == TRUE && ch < 256)
if (no_remap_mode == true && ch < 256)
{
output_buffer[0]=ch;
result=output_buffer;
@@ -229,7 +229,7 @@ void
op_begin_std_fontsize (OutputPersonality *op, int size)
{
size = ( size * 3 ) / 2;
int found_std_expr = FALSE;
int found_std_expr = false;
CHECK_PARAM_NOT_NULL(op);
@@ -239,49 +239,49 @@ op_begin_std_fontsize (OutputPersonality *op, int size)
case 8:
if (op->fontsize8_begin) {
outstring+=QString().sprintf("%s", op->fontsize8_begin);
found_std_expr = TRUE;
found_std_expr = true;
}
break;
case 10:
if (op->fontsize10_begin) {
outstring+=QString().sprintf("%s", op->fontsize10_begin);
found_std_expr = TRUE;
found_std_expr = true;
}
break;
case 12:
if (op->fontsize12_begin) {
outstring+=QString().sprintf("%s", op->fontsize12_begin);
found_std_expr = TRUE;
found_std_expr = true;
}
break;
case 14:
if (op->fontsize14_begin) {
outstring+=QString().sprintf("%s", op->fontsize14_begin);
found_std_expr = TRUE;
found_std_expr = true;
}
break;
case 18:
if (op->fontsize18_begin) {
outstring+=QString().sprintf("%s", op->fontsize18_begin);
found_std_expr = TRUE;
found_std_expr = true;
}
break;
case 24:
if (op->fontsize24_begin) {
outstring+=QString().sprintf("%s", op->fontsize24_begin);
found_std_expr = TRUE;
found_std_expr = true;
}
break;
case 36:
if (op->fontsize36_begin) {
outstring+=QString().sprintf("%s", op->fontsize36_begin);
found_std_expr = TRUE;
found_std_expr = true;
}
break;
case 48:
if (op->fontsize48_begin) {
outstring+=QString().sprintf("%s", op->fontsize48_begin);
found_std_expr = TRUE;
found_std_expr = true;
}
break;
}
@@ -358,7 +358,7 @@ op_begin_std_fontsize (OutputPersonality *op, int size)
void
op_end_std_fontsize (OutputPersonality *op, int size)
{
int found_std_expr = FALSE;
int found_std_expr = false;
CHECK_PARAM_NOT_NULL(op);
@@ -368,49 +368,49 @@ op_end_std_fontsize (OutputPersonality *op, int size)
case 8:
if (op->fontsize8_end) {
outstring+=QString().sprintf("%s", op->fontsize8_end);
found_std_expr = TRUE;
found_std_expr = true;
}
break;
case 10:
if (op->fontsize10_end) {
outstring+=QString().sprintf("%s", op->fontsize10_end);
found_std_expr = TRUE;
found_std_expr = true;
}
break;
case 12:
if (op->fontsize12_end) {
outstring+=QString().sprintf("%s", op->fontsize12_end);
found_std_expr = TRUE;
found_std_expr = true;
}
break;
case 14:
if (op->fontsize14_end) {
outstring+=QString().sprintf("%s", op->fontsize14_end);
found_std_expr = TRUE;
found_std_expr = true;
}
break;
case 18:
if (op->fontsize18_end) {
outstring+=QString().sprintf("%s", op->fontsize18_end);
found_std_expr = TRUE;
found_std_expr = true;
}
break;
case 24:
if (op->fontsize24_end) {
outstring+=QString().sprintf("%s", op->fontsize24_end);
found_std_expr = TRUE;
found_std_expr = true;
}
break;
case 36:
if (op->fontsize36_end) {
outstring+=QString().sprintf("%s", op->fontsize36_end);
found_std_expr = TRUE;
found_std_expr = true;
}
break;
case 48:
if (op->fontsize48_end) {
outstring+=QString().sprintf("%s", op->fontsize48_end);
found_std_expr = TRUE;
found_std_expr = true;
}
break;
}

View File

@@ -220,7 +220,7 @@ expand_word_buffer ()
memcpy (new_ptr, input_str, old_length);
my_free(input_str);
input_str = new_ptr;
return TRUE;
return true;
}
@@ -243,10 +243,10 @@ read_word (QBuffer*f)
int ch, ch2;
unsigned long ix=0;
#endif
int have_whitespace=FALSE;
int is_control_word=FALSE;
int has_numeric_param=FALSE; /* if is_control_word==TRUE */
int need_unget=FALSE;
int have_whitespace=false;
int is_control_word=false;
int has_numeric_param=false; /* if is_control_word==true */
int need_unget=false;
CHECK_PARAM_NOT_NULL(f);
@@ -269,7 +269,7 @@ read_word (QBuffer*f)
*/
while (ch == ' ') {
ch = my_getchar(f);
have_whitespace=TRUE;
have_whitespace=true;
}
if (have_whitespace) {
my_unget_char (ch);
@@ -330,7 +330,7 @@ read_word (QBuffer*f)
return ix;
}
is_control_word=TRUE;
is_control_word=true;
ix=1;
input_str[0]=ch;
ch=ch2;
@@ -356,7 +356,7 @@ read_word (QBuffer*f)
/* Several chars always ends a word, and we need to save them.
*/
if (ch=='\t' || ch=='{' || ch=='}' || ch=='\\') {
need_unget=TRUE;
need_unget=true;
break;
}
@@ -375,7 +375,7 @@ read_word (QBuffer*f)
*/
if (ch==';') {
if (is_control_word) {
need_unget=TRUE;
need_unget=true;
break;
}
}
@@ -386,7 +386,7 @@ read_word (QBuffer*f)
*/
if (ch==' ') {
if (!is_control_word)
need_unget=TRUE;
need_unget=true;
break;
}
@@ -394,11 +394,11 @@ read_word (QBuffer*f)
*/
if (is_control_word) {
if (!has_numeric_param && (isdigit(ch) || ch=='-'))
has_numeric_param = TRUE;
has_numeric_param = true;
else
if (has_numeric_param && !isdigit(ch)) {
if (ch!=' ')
need_unget=TRUE;
need_unget=true;
break;
}
}

View File

@@ -219,7 +219,7 @@ kickerInstrumentView::kickerInstrumentView( Instrument * _instrument,
m_gainKnob->setHintText( tr( "Gain:" ) + " ", "" );
m_gainKnob->move( 203, 124 );
setAutoFillBackground( TRUE );
setAutoFillBackground( true );
QPalette pal;
pal.setBrush( backgroundRole(), PLUGIN_NAME::getIconPixmap(
"artwork" ) );

View File

@@ -50,9 +50,9 @@ public:
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
virtual void loadSettings( const QDomElement & _this );
virtual QString nodeName( void ) const;
virtual QString nodeName() const;
virtual f_cnt_t desiredReleaseFrames( void ) const
virtual f_cnt_t desiredReleaseFrames() const
{
return( 512 );
}
@@ -81,7 +81,7 @@ public:
virtual ~kickerInstrumentView();
private:
virtual void modelChanged( void );
virtual void modelChanged();
knob * m_startFreqKnob;
knob * m_endFreqKnob;

View File

@@ -104,7 +104,7 @@ ladspaBrowserView::ladspaBrowserView( ToolPlugin * _tool ) :
hlayout->setMargin( 0 );
m_tabBar = new tabBar( this, QBoxLayout::TopToBottom );
m_tabBar->setExclusive( TRUE );
m_tabBar->setExclusive( true );
m_tabBar->setFixedWidth( 72 );
QWidget * ws = new QWidget( this );
@@ -119,21 +119,21 @@ ladspaBrowserView::ladspaBrowserView( ToolPlugin * _tool ) :
m_tabBar->addTab( available, tr( "Available Effects" ),
0, FALSE, TRUE
0, false, true
)->setIcon( embed::getIconPixmap( "setup_audio" ) );
m_tabBar->addTab( unavailable, tr( "Unavailable Effects" ),
1, FALSE, TRUE
1, false, true
)->setIcon( embed::getIconPixmap(
"unavailable_sound" ) );
m_tabBar->addTab( instruments, tr( "Instruments" ),
2, FALSE, TRUE
2, false, true
)->setIcon( embed::getIconPixmap(
"setup_midi" ) );
m_tabBar->addTab( analysis, tr( "Analysis Tools" ),
3, FALSE, TRUE
3, false, true
)->setIcon( embed::getIconPixmap( "analysis" ) );
m_tabBar->addTab( other, tr( "Don't know" ),
4, TRUE, TRUE
4, true, true
)->setIcon( embed::getIconPixmap( "uhoh" ) );
@@ -208,7 +208,7 @@ QWidget * ladspaBrowserView::createTab( QWidget * _parent, const QString & _txt,
const QString type = "<b>" + tr( "Type:" ) + "</b> ";
QLabel * title = new QLabel( type + _txt, tab );
QFont f = title->font();
f.setBold( TRUE );
f.setBold( true );
title->setFont( pointSize<12>( f ) );
layout->addSpacing( 5 );

View File

@@ -145,7 +145,7 @@ void ladspaDescription::update( const ladspa_key_t & _key )
maker_label->setAlignment( Qt::AlignTop );
QLabel * maker_content = new QLabel( maker );
maker_content->setText( manager->getMaker( _key ) );
maker_content->setWordWrap( TRUE );
maker_content->setWordWrap( true );
makerLayout->addWidget( maker_label );
makerLayout->addWidget( maker_content, 1 );
@@ -161,7 +161,7 @@ void ladspaDescription::update( const ladspa_key_t & _key )
QLabel * copyright_content = new QLabel( copyright );
copyright_content->setText( manager->getCopyright( _key ) );
copyright_content->setWordWrap( TRUE );
copyright_content->setWordWrap( true );
copyrightLayout->addWidget( copyright_label );
copyrightLayout->addWidget( copyright_content, 1 );

View File

@@ -40,7 +40,7 @@ ladspaPortDialog::ladspaPortDialog( const ladspa_key_t & _key )
setWindowIcon( embed::getIconPixmap( "ports" ) );
setWindowTitle( tr( "Ports" ) );
setModal( TRUE );
setModal( true );
QVBoxLayout * vlayout = new QVBoxLayout( this );
vlayout->setSpacing( 0 );

View File

@@ -64,7 +64,7 @@ void LadspaSubPluginFeatures::fillDescriptionWidget( QWidget * _parent,
maker_label->setAlignment( Qt::AlignTop );
QLabel * maker_content = new QLabel( maker );
maker_content->setText( lm->getMaker( lkey ) );
maker_content->setWordWrap( TRUE );
maker_content->setWordWrap( true );
l->addWidget( maker_label );
l->addWidget( maker_content, 1 );
@@ -80,7 +80,7 @@ void LadspaSubPluginFeatures::fillDescriptionWidget( QWidget * _parent,
QLabel * copyright_content = new QLabel( copyright );
copyright_content->setText( lm->getCopyright( lkey ) );
copyright_content->setWordWrap( TRUE );
copyright_content->setWordWrap( true );
l->addWidget( copyright_label );
l->addWidget( copyright_content, 1 );

View File

@@ -45,7 +45,7 @@ enum parameter_flags
PF_TYPEMASK = 0x000F, ///< bit mask for type
PF_FLOAT = 0x0000, ///< any float value
PF_INT = 0x0001, ///< integer value (still represented as float)
PF_BOOL = 0x0002, ///< bool value (usually >=0.5f is treated as TRUE, which is inconsistent with LV2 etc. which treats anything >0 as TRUE)
PF_BOOL = 0x0002, ///< bool value (usually >=0.5f is treated as true, which is inconsistent with LV2 etc. which treats anything >0 as true)
PF_ENUM = 0x0003, ///< enum value (min, min+1, ..., max, only guaranteed to work when min = 0)
PF_ENUM_MULTI = 0x0004, ///< SET / multiple-choice
PF_STRING = 0x0005, ///< see: http://lv2plug.in/docs/index.php?title=String_port

View File

@@ -753,7 +753,7 @@ public:
}
};
/// 4-input priority multiplexer - without inertia. Outputs the first input if gate_1 is TRUE, else second input if gate_2 is TRUE, else... else "Else" input
/// 4-input priority multiplexer - without inertia. Outputs the first input if gate_1 is true, else second input if gate_2 is true, else... else "Else" input
class prio_mux_c_audio_module: public null_small_audio_module
{
public:

View File

@@ -147,9 +147,9 @@ public:
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
virtual void loadSettings( const QDomElement & _this );
virtual QString nodeName( void ) const;
virtual QString nodeName() const;
virtual f_cnt_t desiredReleaseFrames( void ) const
virtual f_cnt_t desiredReleaseFrames() const
{
return 0; //4048;
}
@@ -180,8 +180,8 @@ private:
public slots:
void filterChanged( void );
void db24Toggled( void );
void filterChanged();
void db24Toggled();
private:
// Oscillator
@@ -246,7 +246,7 @@ public:
virtual ~lb302SynthView();
private:
virtual void modelChanged( void );
virtual void modelChanged();
knob * m_vcfCutKnob;
knob * m_vcfResKnob;

View File

@@ -276,10 +276,10 @@ lb303Synth::lb303Synth( InstrumentTrack * _InstrumentTrack ) :
dist_knob( 0.0f, 0.0f, 1.0f, 0.01f, this, tr( "Distortion" ) ),
wave_knob( 0.0f, 0.0f, 5.0f, 1.0f, this, tr( "Waveform" ) ),
slide_dec_knob( 0.6f, 0.0f, 1.0f, 0.005f, this, tr( "Slide Decay" ) ),
slideToggle( FALSE, this, tr( "Slide" ) ),
accentToggle( FALSE, this, tr( "Accent" ) ),
deadToggle( FALSE, this, tr( "Dead" ) ),
db24Toggle( FALSE, this, tr( "24dB/oct Filter" ) )
slideToggle( false, this, tr( "Slide" ) ),
accentToggle( false, this, tr( "Accent" ) ),
deadToggle( false, this, tr( "Dead" ) ),
db24Toggle( false, this, tr( "24dB/oct Filter" ) )
{
@@ -403,7 +403,7 @@ void lb303Synth::loadSettings( const QDomElement & _this )
// TODO: Split into one function per knob. envdecay doesn't require
// recalcFilter.
void lb303Synth::filterChanged( void )
void lb303Synth::filterChanged()
{
fs.cutoff = vcf_cut_knob.value();
fs.reso = vcf_res_knob.value();
@@ -420,7 +420,7 @@ void lb303Synth::filterChanged( void )
}
void lb303Synth::db24Toggled( void )
void lb303Synth::db24Toggled()
{
delete vcf;
if(db24Toggle.value()) {
@@ -434,7 +434,7 @@ void lb303Synth::db24Toggled( void )
QString lb303Synth::nodeName( void ) const
QString lb303Synth::nodeName() const
{
return( lb303_plugin_descriptor.name );
}
@@ -792,7 +792,7 @@ lb303SynthView::lb303SynthView( Instrument * _instrument, QWidget * _parent ) :
m_waveKnob->setLabel( tr( "WAVE"));
setAutoFillBackground( TRUE );
setAutoFillBackground( true );
QPalette pal;
pal.setBrush( backgroundRole(), PLUGIN_NAME::getIconPixmap(
"artwork" ) );
@@ -805,7 +805,7 @@ lb303SynthView::~lb303SynthView()
}
void lb303SynthView::modelChanged( void )
void lb303SynthView::modelChanged()
{
lb303Synth * syn = castModel<lb303Synth>();

View File

@@ -148,9 +148,9 @@ public:
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
virtual void loadSettings( const QDomElement & _this );
virtual QString nodeName( void ) const;
virtual QString nodeName() const;
virtual f_cnt_t desiredReleaseFrames( void ) const
virtual f_cnt_t desiredReleaseFrames() const
{
return 0; //4048;
}
@@ -181,8 +181,8 @@ private:
public slots:
void filterChanged( void );
void db24Toggled( void );
void filterChanged();
void db24Toggled();
private:
// Oscillator
@@ -247,7 +247,7 @@ public:
virtual ~lb303SynthView();
private:
virtual void modelChanged( void );
virtual void modelChanged();
knob * m_vcfCutKnob;
knob * m_vcfResKnob;

View File

@@ -379,7 +379,7 @@ organicInstrumentView::organicInstrumentView( Instrument * _instrument,
{
organicInstrument * oi = castModel<organicInstrument>();
setAutoFillBackground( TRUE );
setAutoFillBackground( true );
QPalette pal;
pal.setBrush( backgroundRole(), PLUGIN_NAME::getIconPixmap(
"artwork" ) );
@@ -394,7 +394,7 @@ organicInstrumentView::organicInstrumentView( Instrument * _instrument,
// setup volume-knob
m_volKnob = new organicKnob( this );
m_volKnob->setVolumeKnob( TRUE );
m_volKnob->setVolumeKnob( true );
m_volKnob->move( 60, 201 );
m_volKnob->setFixedSize( 37, 47 );
m_volKnob->setHintText( tr( "Volume:" ).arg( 1 ) + " ", "%" );
@@ -455,7 +455,7 @@ void organicInstrumentView::modelChanged()
// setup volume-knob
knob * volKnob = new knob( knobStyled, this );
volKnob->setVolumeKnob( TRUE );
volKnob->setVolumeKnob( true );
volKnob->move( x + i * colWidth, y + rowHeight*1 );
volKnob->setFixedSize( 21, 21 );
volKnob->setHintText( tr( "Osc %1 volume:" ).arg(

View File

@@ -67,9 +67,9 @@ private:
private slots:
void oscButtonChanged( void );
void updateVolume( void );
void updateDetuning( void );
void oscButtonChanged();
void updateVolume();
void updateDetuning();
} ;
@@ -89,13 +89,13 @@ public:
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
virtual void loadSettings( const QDomElement & _this );
virtual QString nodeName( void ) const;
virtual QString nodeName() const;
int intRand( int min, int max );
public slots:
void randomiseSettings( void );
void randomiseSettings();
private:
@@ -126,7 +126,7 @@ private:
virtual PluginView * instantiateView( QWidget * _parent );
private slots:
void updateAllDetuning( void );
void updateAllDetuning();
friend class organicInstrumentView;
} ;
@@ -140,7 +140,7 @@ public:
virtual ~organicInstrumentView();
private:
virtual void modelChanged( void );
virtual void modelChanged();
struct OscillatorKnobs
{

View File

@@ -203,7 +203,7 @@ void papuInstrument::loadSettings( const QDomElement & _this )
m_graphModel.setSamples( (float*) dst );
}
QString papuInstrument::nodeName( void ) const
QString papuInstrument::nodeName() const
{
return( papu_plugin_descriptor.name );
}
@@ -211,7 +211,7 @@ QString papuInstrument::nodeName( void ) const
/*f_cnt_t papuInstrument::desiredReleaseFrames( void ) const
/*f_cnt_t papuInstrument::desiredReleaseFrames() const
{
const float samplerate = engine::getMixer()->processingSampleRate();
int maxrel = 0;
@@ -224,7 +224,7 @@ QString papuInstrument::nodeName( void ) const
return f_cnt_t( float(relTime[maxrel])*samplerate/1000.0 );
}*/
f_cnt_t papuInstrument::desiredReleaseFrames( void ) const
f_cnt_t papuInstrument::desiredReleaseFrames() const
{
return f_cnt_t( 1000 );
}
@@ -689,7 +689,7 @@ papuInstrumentView::~papuInstrumentView()
}
void papuInstrumentView::modelChanged( void )
void papuInstrumentView::modelChanged()
{
papuInstrument * p = castModel<papuInstrument>();

View File

@@ -52,16 +52,16 @@ public:
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
virtual void loadSettings( const QDomElement & _this );
virtual QString nodeName( void ) const;
virtual QString nodeName() const;
virtual f_cnt_t desiredReleaseFrames( void ) const;
virtual f_cnt_t desiredReleaseFrames() const;
virtual PluginView * instantiateView( QWidget * _parent );
/*public slots:
void updateKnobHint( void );
void updateKnobToolTip( void );*/
void updateKnobHint();
void updateKnobToolTip();*/
private:
FloatModel m_ch1SweepTimeModel;
@@ -114,7 +114,7 @@ public:
virtual ~papuInstrumentView();
private:
virtual void modelChanged( void );
virtual void modelChanged();
knob * m_ch1SweepTimeKnob;
pixmapButton * m_ch1SweepDirButton;
@@ -155,8 +155,8 @@ private:
graph * m_graph;
/*protected slots:
void updateKnobHint( void );
void updateKnobToolTip( void );*/
void updateKnobHint();
void updateKnobToolTip();*/
} ;

View File

@@ -73,7 +73,7 @@ public:
public slots:
void setFile( const QString & _patch_file, bool _rename = TRUE );
void setFile( const QString & _patch_file, bool _rename = true );
private:

View File

@@ -92,7 +92,7 @@ sf2Instrument::sf2Instrument( InstrumentTrack * _instrument_track ) :
m_bankNum( 0, 0, 999, this, tr("Bank") ),
m_patchNum( 0, 0, 127, this, tr("Patch") ),
m_gain( 1.0f, 0.0f, 5.0f, 0.01f, this, tr( "Gain" ) ),
m_reverbOn( FALSE, this, tr( "Reverb" ) ),
m_reverbOn( false, this, tr( "Reverb" ) ),
m_reverbRoomSize( FLUID_REVERB_DEFAULT_ROOMSIZE, 0, 1.0, 0.01f,
this, tr( "Reverb Roomsize" ) ),
m_reverbDamping( FLUID_REVERB_DEFAULT_DAMP, 0, 1.0, 0.01,
@@ -101,7 +101,7 @@ sf2Instrument::sf2Instrument( InstrumentTrack * _instrument_track ) :
this, tr( "Reverb Width" ) ),
m_reverbLevel( FLUID_REVERB_DEFAULT_LEVEL, 0, 1.0, 0.01f,
this, tr( "Reverb Level" ) ),
m_chorusOn( FALSE, this, tr( "Chorus" ) ),
m_chorusOn( false, this, tr( "Chorus" ) ),
m_chorusNum( FLUID_CHORUS_DEFAULT_N, 0, 10.0, 1.0,
this, tr( "Chorus Lines" ) ),
m_chorusLevel( FLUID_CHORUS_DEFAULT_LEVEL, 0, 10.0, 0.01,
@@ -309,7 +309,7 @@ void sf2Instrument::freeFont()
{
cout << "Really deleting " << m_filename << endl;
fluid_synth_sfunload( m_synth, m_fontId, TRUE );
fluid_synth_sfunload( m_synth, m_fontId, true );
s_fonts.remove( m_filename );
delete m_font;
}
@@ -360,7 +360,7 @@ void sf2Instrument::openFile( const QString & _sf2File )
// Add to map, if doesn't exist.
else
{
m_fontId = fluid_synth_sfload( m_synth, sf2Ascii, TRUE );
m_fontId = fluid_synth_sfload( m_synth, sf2Ascii, true );
if( fluid_synth_sfcount( m_synth ) > 0 )
{
@@ -807,7 +807,7 @@ sf2InstrumentView::sf2InstrumentView( Instrument * _instrument,
"patches_on" ) );
m_patchDialogButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
"patches_off" ) );
m_patchDialogButton->setEnabled( FALSE );
m_patchDialogButton->setEnabled( false );
m_patchDialogButton->move( 217, 125 );
connect( m_patchDialogButton, SIGNAL( clicked() ),
@@ -819,12 +819,12 @@ sf2InstrumentView::sf2InstrumentView( Instrument * _instrument,
m_bankNumLcd = new lcdSpinBox( 3, "21pink", this );
m_bankNumLcd->move(131, 62);
// m_bankNumLcd->addTextForValue( -1, "---" );
// m_bankNumLcd->setEnabled( FALSE );
// m_bankNumLcd->setEnabled( false );
m_patchNumLcd = new lcdSpinBox( 3, "21pink", this );
m_patchNumLcd->move(190, 62);
// m_patchNumLcd->addTextForValue( -1, "---" );
// m_patchNumLcd->setEnabled( FALSE );
// m_patchNumLcd->setEnabled( false );
/*hl->addWidget( m_fileDialogButton );
hl->addWidget( m_bankNumLcd );
@@ -856,7 +856,7 @@ sf2InstrumentView::sf2InstrumentView( Instrument * _instrument,
m_reverbButton = new pixmapButton( this );
m_reverbButton->setCheckable( TRUE );
m_reverbButton->setCheckable( true );
m_reverbButton->move( 24, 176 );
m_reverbButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
"reverb_on" ) );
@@ -898,7 +898,7 @@ sf2InstrumentView::sf2InstrumentView( Instrument * _instrument,
// hl = new QHBoxLayout();
m_chorusButton = new pixmapButton( this );
m_chorusButton->setCheckable( TRUE );
m_chorusButton->setCheckable( true );
m_chorusButton->move( 24, 222 );
m_chorusButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
"chorus_on" ) );
@@ -934,7 +934,7 @@ sf2InstrumentView::sf2InstrumentView( Instrument * _instrument,
vl->addLayout( hl );
*/
setAutoFillBackground( TRUE );
setAutoFillBackground( true );
QPalette pal;
pal.setBrush( backgroundRole(), PLUGIN_NAME::getIconPixmap(
"artwork" ) );
@@ -1052,7 +1052,7 @@ void sf2InstrumentView::showFileDialog()
if( QFileInfo( f ).isRelative() )
{
f = configManager::inst()->userSamplesDir() + f;
if( QFileInfo( f ).exists() == FALSE )
if( QFileInfo( f ).exists() == false )
{
f = configManager::inst()->factorySamplesDir() +
k->m_filename;

View File

@@ -217,7 +217,7 @@ void sidInstrument::loadSettings( const QDomElement & _this )
QString sidInstrument::nodeName( void ) const
QString sidInstrument::nodeName() const
{
return( sid_plugin_descriptor.name );
}
@@ -225,7 +225,7 @@ QString sidInstrument::nodeName( void ) const
f_cnt_t sidInstrument::desiredReleaseFrames( void ) const
f_cnt_t sidInstrument::desiredReleaseFrames() const
{
const float samplerate = engine::getMixer()->processingSampleRate();
int maxrel = 0;
@@ -477,7 +477,7 @@ sidInstrumentView::sidInstrumentView( Instrument * _instrument,
InstrumentView( _instrument, _parent )
{
setAutoFillBackground( TRUE );
setAutoFillBackground( true );
QPalette pal;
pal.setBrush( backgroundRole(), PLUGIN_NAME::getIconPixmap( "artwork" ) );
setPalette( pal );
@@ -518,7 +518,7 @@ sidInstrumentView::sidInstrumentView( Instrument * _instrument,
m_passBtnGrp->addButton( lp_btn );
m_offButton = new pixmapButton( this, NULL );
m_offButton->setCheckable( TRUE );
m_offButton->setCheckable( true );
m_offButton->move( 176 + 3*14, 53 );
m_offButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "3offred" ) );
m_offButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "3off" ) );
@@ -624,7 +624,7 @@ sidInstrumentView::sidInstrumentView( Instrument * _instrument,
int syncRingWidth[] = { 3, 1, 2 };
pixmapButton * sync_btn = new pixmapButton( this, NULL );
sync_btn->setCheckable( TRUE );
sync_btn->setCheckable( true );
sync_btn->move( 191, 117 + i*50 );
sync_btn->setActiveGraphic(
PLUGIN_NAME::getIconPixmap( "syncred" ) );
@@ -637,7 +637,7 @@ sidInstrumentView::sidInstrumentView( Instrument * _instrument,
.arg( syncRingWidth[i] ) );
pixmapButton * ringMod_btn = new pixmapButton( this, NULL );
ringMod_btn->setCheckable( TRUE );
ringMod_btn->setCheckable( true );
ringMod_btn->move( 191 + 2*14, 117 + i*50 );
ringMod_btn->setActiveGraphic(
PLUGIN_NAME::getIconPixmap( "ringred" ) );
@@ -650,7 +650,7 @@ sidInstrumentView::sidInstrumentView( Instrument * _instrument,
.arg( syncRingWidth[i] ) );
pixmapButton * filter_btn = new pixmapButton( this, NULL );
filter_btn->setCheckable( TRUE );
filter_btn->setCheckable( true );
filter_btn->move( 191, 131 + i*50 );
filter_btn->setActiveGraphic(
PLUGIN_NAME::getIconPixmap( "filterred" ) );
@@ -663,7 +663,7 @@ sidInstrumentView::sidInstrumentView( Instrument * _instrument,
"it." ).arg( i+1 ) );
pixmapButton * test_btn = new pixmapButton( this, NULL );
test_btn->setCheckable( TRUE );
test_btn->setCheckable( true );
test_btn->move( 191 +2*14, 131 + i*50 );
test_btn->setActiveGraphic(
PLUGIN_NAME::getIconPixmap( "testred" ) );
@@ -683,7 +683,7 @@ sidInstrumentView::~sidInstrumentView()
{
}
void sidInstrumentView::updateKnobHint( void )
void sidInstrumentView::updateKnobHint()
{
sidInstrument * k = castModel<sidInstrument>();
@@ -724,7 +724,7 @@ void sidInstrumentView::updateKnobHint( void )
void sidInstrumentView::updateKnobToolTip( void )
void sidInstrumentView::updateKnobToolTip()
{
sidInstrument * k = castModel<sidInstrument>();
for( int i = 0; i < 3; ++i )
@@ -744,7 +744,7 @@ void sidInstrumentView::updateKnobToolTip( void )
void sidInstrumentView::modelChanged( void )
void sidInstrumentView::modelChanged()
{
sidInstrument * k = castModel<sidInstrument>();

View File

@@ -99,16 +99,16 @@ public:
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
virtual void loadSettings( const QDomElement & _this );
virtual QString nodeName( void ) const;
virtual QString nodeName() const;
virtual f_cnt_t desiredReleaseFrames( void ) const;
virtual f_cnt_t desiredReleaseFrames() const;
virtual PluginView * instantiateView( QWidget * _parent );
/*public slots:
void updateKnobHint( void );
void updateKnobToolTip( void );*/
void updateKnobHint();
void updateKnobToolTip();*/
private:
// voices
@@ -139,7 +139,7 @@ public:
virtual ~sidInstrumentView();
private:
virtual void modelChanged( void );
virtual void modelChanged();
automatableButtonGroup * m_passBtnGrp;
automatableButtonGroup * m_sidTypeBtnGrp;
@@ -194,8 +194,8 @@ private:
pixmapButton * m_offButton;
protected slots:
void updateKnobHint( void );
void updateKnobToolTip( void );
void updateKnobHint();
void updateKnobToolTip();
} ;

View File

@@ -79,7 +79,7 @@ bool spectrumAnalyzer::processAudioBuffer( sampleFrame * _buf,
{
if( !isEnabled() || !isRunning () )
{
return( FALSE );
return( false );
}
fpp_t f = 0;

View File

@@ -50,7 +50,7 @@ public:
virtual bool processAudioBuffer( sampleFrame * _buf,
const fpp_t _frames );
virtual EffectControls * controls( void )
virtual EffectControls * controls()
{
return( &m_saControls );
}

View File

@@ -62,7 +62,7 @@ public:
setFixedSize( 249, 151 );
connect( engine::mainWindow(), SIGNAL( periodicUpdate() ),
this, SLOT( update() ) );
setAttribute( Qt::WA_OpaquePaintEvent, TRUE );
setAttribute( Qt::WA_OpaquePaintEvent, true );
}
virtual ~spectrumView()
@@ -151,7 +151,7 @@ spectrumAnalyzerControlDialog::spectrumAnalyzerControlDialog(
m_logXAxis( PLUGIN_NAME::getIconPixmap( "log_x_axis" ) ),
m_logYAxis( PLUGIN_NAME::getIconPixmap( "log_y_axis" ) )
{
setAutoFillBackground( TRUE );
setAutoFillBackground( true );
QPalette pal;
pal.setBrush( backgroundRole(),
PLUGIN_NAME::getIconPixmap( "background" ) );

View File

@@ -30,8 +30,8 @@
spectrumAnalyzerControls::spectrumAnalyzerControls( spectrumAnalyzer * _eff ) :
EffectControls( _eff ),
m_effect( _eff ),
m_linearSpec( FALSE, this, tr( "Linear spectrum" ) ),
m_linearYAxis( FALSE, this, tr( "Linear Y-axis" ) ),
m_linearSpec( false, this, tr( "Linear spectrum" ) ),
m_linearYAxis( false, this, tr( "Linear Y-axis" ) ),
m_channelMode( spectrumAnalyzer::MergeChannels,
spectrumAnalyzer::MergeChannels,
spectrumAnalyzer::RightChannel,

View File

@@ -44,17 +44,17 @@ public:
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
virtual void loadSettings( const QDomElement & _this );
inline virtual QString nodeName( void ) const
inline virtual QString nodeName() const
{
return( "spectrumanaylzercontrols" );
}
virtual int controlCount( void )
virtual int controlCount()
{
return( 1 );
}
virtual EffectControlDialog * createView( void )
virtual EffectControlDialog * createView()
{
return( new spectrumAnalyzerControlDialog( this ) );
}

View File

@@ -93,7 +93,7 @@ bool stereoEnhancerEffect::processAudioBuffer( sampleFrame * _buf,
if( !isEnabled() || !isRunning() )
{
return( FALSE );
return( false );
}
const float d = dryLevel();

View File

@@ -40,7 +40,7 @@ public:
virtual bool processAudioBuffer( sampleFrame * _buf,
const fpp_t _frames );
virtual EffectControls * controls( void )
virtual EffectControls * controls()
{
return( &m_bbControls );
}

View File

@@ -34,15 +34,15 @@ stereoEnhancerControls::stereoEnhancerControls( stereoEnhancerEffect * _eff ) :
m_effect( _eff ),
m_widthModel(0.0f, 0.0f, 180.0f, 1.0f, this, tr( "Width" ) )
{
connect( &m_widthModel, SIGNAL( dataChanged( void ) ),
this, SLOT( changeWideCoeff( void ) ) );
connect( &m_widthModel, SIGNAL( dataChanged() ),
this, SLOT( changeWideCoeff() ) );
changeWideCoeff();
}
void stereoEnhancerControls::changeWideCoeff( void )
void stereoEnhancerControls::changeWideCoeff()
{
m_effect->m_seFX.setWideCoeff( m_widthModel.value() );
}

View File

@@ -42,24 +42,24 @@ public:
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
virtual void loadSettings( const QDomElement & _this );
inline virtual QString nodeName( void ) const
inline virtual QString nodeName() const
{
return( "stereoenhancercontrols" );
}
virtual int controlCount( void )
virtual int controlCount()
{
return( 1 );
}
virtual EffectControlDialog * createView( void )
virtual EffectControlDialog * createView()
{
return new stereoEnhancerControlDialog( this );
}
private slots:
void changeWideCoeff( void );
void changeWideCoeff();
private:

View File

@@ -74,7 +74,7 @@ bool stereoMatrixEffect::processAudioBuffer( sampleFrame * _buf,
// audio with this effect
if( !isEnabled() || !isRunning() )
{
return( FALSE );
return( false );
}
double out_sum = 0.0;

View File

@@ -38,7 +38,7 @@ public:
virtual bool processAudioBuffer( sampleFrame * _buf,
const fpp_t _frames );
virtual EffectControls * controls( void )
virtual EffectControls * controls()
{
return( &m_smControls );
}

View File

@@ -40,7 +40,7 @@ stereoMatrixControlDialog::stereoMatrixControlDialog(
setFixedSize( 105, 115);
setAutoFillBackground( TRUE );
setAutoFillBackground( true );
QPalette pal;
pal.setBrush( backgroundRole(),
PLUGIN_NAME::getIconPixmap( "artwork" ) );

View File

@@ -37,21 +37,21 @@ stereoMatrixControls::stereoMatrixControls( stereoMatrixEffect * _eff ) :
m_rlModel( 0.0f, -1.0f, 1.0f, 0.01f, this, tr( "Right to Left" ) ),
m_rrModel( 1.0f, -1.0f, 1.0f, 0.01f, this, tr( "Right to Right" ) )
{
connect( &m_llModel, SIGNAL( dataChanged( void ) ),
this, SLOT( changeMatrix( void ) ) );
connect( &m_lrModel, SIGNAL( dataChanged( void ) ),
this, SLOT( changeMatrix( void ) ) );
connect( &m_rlModel, SIGNAL( dataChanged( void ) ),
this, SLOT( changeMatrix( void ) ) );
connect( &m_rrModel, SIGNAL( dataChanged( void ) ),
this, SLOT( changeMatrix( void ) ) );
connect( &m_llModel, SIGNAL( dataChanged() ),
this, SLOT( changeMatrix() ) );
connect( &m_lrModel, SIGNAL( dataChanged() ),
this, SLOT( changeMatrix() ) );
connect( &m_rlModel, SIGNAL( dataChanged() ),
this, SLOT( changeMatrix() ) );
connect( &m_rrModel, SIGNAL( dataChanged() ),
this, SLOT( changeMatrix() ) );
changeMatrix();
}
void stereoMatrixControls::changeMatrix( void )
void stereoMatrixControls::changeMatrix()
{
}

View File

@@ -42,24 +42,24 @@ public:
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
virtual void loadSettings( const QDomElement & _this );
inline virtual QString nodeName( void ) const
inline virtual QString nodeName() const
{
return( "stereomatrixcontrols" );
}
virtual int controlCount( void )
virtual int controlCount()
{
return( 1 );
}
virtual EffectControlDialog * createView( void )
virtual EffectControlDialog * createView()
{
return new stereoMatrixControlDialog( this );
}
private slots:
void changeMatrix( void );
void changeMatrix();
private:

View File

@@ -73,7 +73,7 @@ malletsInstrument::malletsInstrument( InstrumentTrack * _instrument_track ):
m_pressureModel(64.0f, 0.0f, 128.0f, 0.1f, this, tr( "Pressure" )),
m_motionModel(64.0f, 0.0f, 128.0f, 0.1f, this, tr( "Motion" )),
m_velocityModel(64.0f, 0.0f, 128.0f, 0.1f, this, tr( "Speed" )),
m_strikeModel( FALSE, this, tr( "Bowed" ) ),
m_strikeModel( false, this, tr( "Bowed" ) ),
m_presetsModel(this),
m_spreadModel(0, 0, 255, 1, this, tr( "Spread" )),
m_filesMissing( !QDir( configManager::inst()->stkDir() ).exists() ||
@@ -195,7 +195,7 @@ void malletsInstrument::loadSettings( const QDomElement & _this )
QString malletsInstrument::nodeName( void ) const
QString malletsInstrument::nodeName() const
{
return( malletsstk_plugin_descriptor.name );
}
@@ -342,7 +342,7 @@ malletsInstrumentView::~malletsInstrumentView()
void malletsInstrumentView::setWidgetBackground( QWidget * _widget, const QString & _pic )
{
_widget->setAutoFillBackground( TRUE );
_widget->setAutoFillBackground( true );
QPalette pal;
pal.setBrush( _widget->backgroundRole(),
PLUGIN_NAME::getIconPixmap( _pic.toAscii().constData() ) );
@@ -459,7 +459,7 @@ QWidget * malletsInstrumentView::setupBandedWGControls( QWidget * _parent )
void malletsInstrumentView::modelChanged( void )
void malletsInstrumentView::modelChanged()
{
malletsInstrument * inst = castModel<malletsInstrument>();
m_hardnessKnob->setModel( &inst->m_hardnessModel );

View File

@@ -76,14 +76,14 @@ public:
const Uint8 _delay,
const sample_rate_t _sample_rate );
inline ~malletsSynth( void )
inline ~malletsSynth()
{
m_voice->noteOff( 0.0 );
delete[] m_delay;
delete m_voice;
}
inline sample_t nextSampleLeft( void )
inline sample_t nextSampleLeft()
{
if( m_voice == NULL )
{
@@ -98,7 +98,7 @@ public:
}
}
inline sample_t nextSampleRight( void )
inline sample_t nextSampleRight()
{
StkFloat s = m_delay[m_delayRead];
m_delayRead++;
@@ -129,7 +129,7 @@ class malletsInstrument : public Instrument
{
public:
malletsInstrument( InstrumentTrack * _instrument_track );
virtual ~malletsInstrument( void );
virtual ~malletsInstrument();
virtual void playNote( notePlayHandle * _n,
sampleFrame * _working_buffer );
@@ -139,7 +139,7 @@ public:
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
virtual void loadSettings( const QDomElement & _this );
virtual QString nodeName( void ) const;
virtual QString nodeName() const;
virtual PluginView * instantiateView( QWidget * _parent );
@@ -183,13 +183,13 @@ class malletsInstrumentView: public InstrumentView
public:
malletsInstrumentView( malletsInstrument * _instrument,
QWidget * _parent );
virtual ~malletsInstrumentView( void );
virtual ~malletsInstrumentView();
public slots:
void changePreset( void );
void changePreset();
private:
virtual void modelChanged( void );
virtual void modelChanged();
void setWidgetBackground( QWidget * _widget, const QString & _pic );
QWidget * setupModalBarControls( QWidget * _parent );

View File

@@ -421,7 +421,7 @@ TripleOscillatorView::TripleOscillatorView( Instrument * _instrument,
QWidget * _parent ) :
InstrumentView( _instrument, _parent )
{
setAutoFillBackground( TRUE );
setAutoFillBackground( true );
QPalette pal;
pal.setBrush( backgroundRole(),
PLUGIN_NAME::getIconPixmap( "artwork" ) );
@@ -552,7 +552,7 @@ TripleOscillatorView::TripleOscillatorView( Instrument * _instrument,
// setup volume-knob
knob * vk = new knob( knobStyled, this );
vk->setVolumeKnob( TRUE );
vk->setVolumeKnob( true );
vk->setFixedSize( 28, 35 );
vk->move( 6, knob_y );
vk->setHintText( tr( "Osc %1 volume:" ).arg(

View File

@@ -55,7 +55,7 @@ nineButtonSelector::nineButtonSelector( QPixmap _button0_on,
QWidget * _parent ):
QWidget( _parent ),
IntModelView( new nineButtonSelectorModel(0, 8, _default, NULL,
QString::null, TRUE ), this )
QString::null, true ), this )
{
setFixedSize( 50, 50 );
move( _x, _y );
@@ -64,85 +64,85 @@ nineButtonSelector::nineButtonSelector( QPixmap _button0_on,
m_button->move( 1, 1 );
m_button->setActiveGraphic( _button0_on );
m_button->setInactiveGraphic( _button0_off );
m_button->setChecked( FALSE );
connect( m_button, SIGNAL ( clicked ( void ) ),
this, SLOT ( button0Clicked( void ) ) );
m_button->setChecked( false );
connect( m_button, SIGNAL ( clicked () ),
this, SLOT ( button0Clicked() ) );
m_buttons.append( m_button );
m_button = new pixmapButton( this, NULL );
m_button->move( 18, 1 );
m_button->setActiveGraphic( _button1_on );
m_button->setInactiveGraphic( _button1_off );
m_button->setChecked( FALSE );
connect( m_button, SIGNAL ( clicked ( void ) ),
this, SLOT ( button1Clicked( void ) ) );
m_button->setChecked( false );
connect( m_button, SIGNAL ( clicked () ),
this, SLOT ( button1Clicked() ) );
m_buttons.append( m_button );
m_button = new pixmapButton( this, NULL );
m_button->move( 35, 1 );
m_button->setActiveGraphic( _button2_on );
m_button->setInactiveGraphic( _button2_off );
m_button->setChecked( FALSE );
connect( m_button, SIGNAL ( clicked ( void ) ),
this, SLOT ( button2Clicked( void ) ) );
m_button->setChecked( false );
connect( m_button, SIGNAL ( clicked () ),
this, SLOT ( button2Clicked() ) );
m_buttons.append( m_button );
m_button = new pixmapButton( this, NULL );
m_button->move( 1, 18 );
m_button->setActiveGraphic( _button3_on );
m_button->setInactiveGraphic( _button3_off );
m_button->setChecked( FALSE );
connect( m_button, SIGNAL ( clicked ( void ) ),
this, SLOT ( button3Clicked( void ) ) );
m_button->setChecked( false );
connect( m_button, SIGNAL ( clicked () ),
this, SLOT ( button3Clicked() ) );
m_buttons.append( m_button );
m_button = new pixmapButton( this, NULL );
m_button->move( 18, 18 );
m_button->setActiveGraphic( _button4_on );
m_button->setInactiveGraphic( _button4_off );
m_button->setChecked( FALSE );
connect( m_button, SIGNAL ( clicked ( void ) ),
this, SLOT ( button4Clicked( void ) ) );
m_button->setChecked( false );
connect( m_button, SIGNAL ( clicked () ),
this, SLOT ( button4Clicked() ) );
m_buttons.append( m_button );
m_button = new pixmapButton( this, NULL );
m_button->move( 35, 18 );
m_button->setActiveGraphic( _button5_on );
m_button->setInactiveGraphic( _button5_off );
m_button->setChecked( FALSE );
connect( m_button, SIGNAL ( clicked ( void ) ),
this, SLOT ( button5Clicked( void ) ) );
m_button->setChecked( false );
connect( m_button, SIGNAL ( clicked () ),
this, SLOT ( button5Clicked() ) );
m_buttons.append( m_button );
m_button = new pixmapButton( this, NULL );
m_button->move( 1, 35 );
m_button->setActiveGraphic( _button6_on );
m_button->setInactiveGraphic( _button6_off );
m_button->setChecked( FALSE );
connect( m_button, SIGNAL ( clicked ( void ) ),
this, SLOT ( button6Clicked( void ) ) );
m_button->setChecked( false );
connect( m_button, SIGNAL ( clicked () ),
this, SLOT ( button6Clicked() ) );
m_buttons.append( m_button );
m_button = new pixmapButton( this, NULL );
m_button->move( 18, 35 );
m_button->setActiveGraphic( _button7_on );
m_button->setInactiveGraphic( _button7_off );
m_button->setChecked( FALSE );
connect( m_button, SIGNAL ( clicked ( void ) ),
this, SLOT ( button7Clicked( void ) ) );
m_button->setChecked( false );
connect( m_button, SIGNAL ( clicked () ),
this, SLOT ( button7Clicked() ) );
m_buttons.append( m_button );
m_button = new pixmapButton( this, NULL );
m_button->move( 35, 35 );
m_button->setActiveGraphic( _button8_on );
m_button->setInactiveGraphic( _button8_off );
m_button->setChecked( FALSE );
connect( m_button, SIGNAL ( clicked ( void ) ),
this, SLOT ( button8Clicked( void ) ) );
m_button->setChecked( false );
connect( m_button, SIGNAL ( clicked () ),
this, SLOT ( button8Clicked() ) );
m_buttons.append( m_button );
m_lastBtn = m_buttons[_default];
m_lastBtn->setChecked( TRUE );
m_lastBtn->setChecked( true );
}
@@ -157,7 +157,7 @@ nineButtonSelector::~ nineButtonSelector()
void nineButtonSelector::button0Clicked( void )
void nineButtonSelector::button0Clicked()
{
setSelected( 0 );
}
@@ -165,7 +165,7 @@ void nineButtonSelector::button0Clicked( void )
void nineButtonSelector::button1Clicked( void )
void nineButtonSelector::button1Clicked()
{
setSelected( 1 );
}
@@ -173,7 +173,7 @@ void nineButtonSelector::button1Clicked( void )
void nineButtonSelector::button2Clicked( void )
void nineButtonSelector::button2Clicked()
{
setSelected( 2 );
}
@@ -181,7 +181,7 @@ void nineButtonSelector::button2Clicked( void )
void nineButtonSelector::button3Clicked( void )
void nineButtonSelector::button3Clicked()
{
setSelected( 3 );
}
@@ -189,7 +189,7 @@ void nineButtonSelector::button3Clicked( void )
void nineButtonSelector::button4Clicked( void )
void nineButtonSelector::button4Clicked()
{
setSelected( 4 );
}
@@ -197,7 +197,7 @@ void nineButtonSelector::button4Clicked( void )
void nineButtonSelector::button5Clicked( void )
void nineButtonSelector::button5Clicked()
{
setSelected( 5 );
}
@@ -205,7 +205,7 @@ void nineButtonSelector::button5Clicked( void )
void nineButtonSelector::button6Clicked( void )
void nineButtonSelector::button6Clicked()
{
setSelected( 6 );
}
@@ -213,7 +213,7 @@ void nineButtonSelector::button6Clicked( void )
void nineButtonSelector::button7Clicked( void )
void nineButtonSelector::button7Clicked()
{
setSelected( 7 );
}
@@ -221,12 +221,12 @@ void nineButtonSelector::button7Clicked( void )
void nineButtonSelector::button8Clicked( void )
void nineButtonSelector::button8Clicked()
{
setSelected( 8 );
}
void nineButtonSelector::modelChanged( void )
void nineButtonSelector::modelChanged()
{
updateButton( model()->value() );
}
@@ -239,11 +239,11 @@ void nineButtonSelector::setSelected( Uint8 _new_button )
void nineButtonSelector::updateButton( Uint8 _new_button )
{
m_lastBtn->setChecked( FALSE );
m_lastBtn->setChecked( false );
m_lastBtn->update();
m_lastBtn = m_buttons[_new_button];
m_lastBtn->setChecked( TRUE );
m_lastBtn->setChecked( true );
m_lastBtn->update();
emit nineButtonSelection( _new_button );
@@ -260,7 +260,7 @@ void nineButtonSelector::contextMenuEvent( QContextMenuEvent * )
void nineButtonSelector::displayHelp( void )
void nineButtonSelector::displayHelp()
{
QWhatsThis::showText( mapToGlobal( rect().bottomRight() ),
whatsThis() );

View File

@@ -64,23 +64,23 @@ protected:
void setSelected( Uint8 _new_button );
public slots:
void button0Clicked( void );
void button1Clicked( void );
void button2Clicked( void );
void button3Clicked( void );
void button4Clicked( void );
void button5Clicked( void );
void button6Clicked( void );
void button7Clicked( void );
void button8Clicked( void );
void button0Clicked();
void button1Clicked();
void button2Clicked();
void button3Clicked();
void button4Clicked();
void button5Clicked();
void button6Clicked();
void button7Clicked();
void button8Clicked();
void contextMenuEvent( QContextMenuEvent * );
void displayHelp( void );
void displayHelp();
signals:
void nineButtonSelection( Uint8 );
private:
virtual void modelChanged( void );
virtual void modelChanged();
void updateButton( Uint8 );
QList<pixmapButton *> m_buttons;

View File

@@ -35,7 +35,7 @@ stringContainer::stringContainer(const float _pitch,
{
for( Uint8 i = 0; i < _strings; i++ )
{
m_exists.append( FALSE );
m_exists.append( false );
}
}
@@ -98,5 +98,5 @@ void stringContainer::addString(Uint8 _harm,
_string_loss,
_detune,
_state ) );
m_exists[_id] = TRUE;
m_exists[_id] = true;
}

View File

@@ -105,7 +105,7 @@ vibed::vibed( InstrumentTrack * _instrumentTrack ) :
tr( "Length %1" ).arg( harm+1 ) );
m_lengthKnobs.append( knob );
led = new BoolModel( FALSE, this,
led = new BoolModel( false, this,
tr( "Impulse %1" ).arg( harm+1 ) );
m_impulses.append( led );
@@ -264,7 +264,7 @@ void vibed::loadSettings( const QDomElement & _this )
QString vibed::nodeName( void ) const
QString vibed::nodeName() const
{
return( vibedstrings_plugin_descriptor.name );
}
@@ -355,14 +355,14 @@ vibedView::vibedView( Instrument * _instrument,
QWidget * _parent ) :
InstrumentView( _instrument, _parent )
{
setAutoFillBackground( TRUE );
setAutoFillBackground( true );
QPalette pal;
pal.setBrush( backgroundRole(), PLUGIN_NAME::getIconPixmap(
"artwork" ) );
setPalette( pal );
m_volumeKnob = new knob( knobBright_26, this );
m_volumeKnob->setVolumeKnob( TRUE );
m_volumeKnob->setVolumeKnob( true );
m_volumeKnob->move( 103, 142 );
m_volumeKnob->setHintText( tr( "Volume:" ) + " ", "" );
m_volumeKnob->setWhatsThis( tr( "The 'V' knob sets the volume "
@@ -561,8 +561,8 @@ vibedView::vibedView( Instrument * _instrument,
toolTip::add( m_sinWaveBtn,
tr( "Use a sine-wave for "
"current oscillator." ) );
connect( m_sinWaveBtn, SIGNAL (clicked ( void ) ),
this, SLOT ( sinWaveClicked( void ) ) );
connect( m_sinWaveBtn, SIGNAL (clicked () ),
this, SLOT ( sinWaveClicked() ) );
m_triangleWaveBtn = new pixmapButton( this, tr( "Triangle wave" ) );
@@ -574,7 +574,7 @@ vibedView::vibedView( Instrument * _instrument,
toolTip::add( m_triangleWaveBtn,
tr( "Use a triangle-wave "
"for current oscillator." ) );
connect( m_triangleWaveBtn, SIGNAL ( clicked ( void ) ),
connect( m_triangleWaveBtn, SIGNAL ( clicked () ),
this, SLOT ( triangleWaveClicked( ) ) );
@@ -587,8 +587,8 @@ vibedView::vibedView( Instrument * _instrument,
toolTip::add( m_sawWaveBtn,
tr( "Use a saw-wave for "
"current oscillator." ) );
connect( m_sawWaveBtn, SIGNAL (clicked ( void ) ),
this, SLOT ( sawWaveClicked( void ) ) );
connect( m_sawWaveBtn, SIGNAL (clicked () ),
this, SLOT ( sawWaveClicked() ) );
m_sqrWaveBtn = new pixmapButton( this, tr( "Square wave" ) );
@@ -600,8 +600,8 @@ vibedView::vibedView( Instrument * _instrument,
toolTip::add( m_sqrWaveBtn,
tr( "Use a square-wave for "
"current oscillator." ) );
connect( m_sqrWaveBtn, SIGNAL ( clicked ( void ) ),
this, SLOT ( sqrWaveClicked( void ) ) );
connect( m_sqrWaveBtn, SIGNAL ( clicked () ),
this, SLOT ( sqrWaveClicked() ) );
m_whiteNoiseWaveBtn = new pixmapButton( this, tr( "White noise wave" ) );
@@ -613,8 +613,8 @@ vibedView::vibedView( Instrument * _instrument,
toolTip::add( m_whiteNoiseWaveBtn,
tr( "Use white-noise for "
"current oscillator." ) );
connect( m_whiteNoiseWaveBtn, SIGNAL ( clicked ( void ) ),
this, SLOT ( noiseWaveClicked( void ) ) );
connect( m_whiteNoiseWaveBtn, SIGNAL ( clicked () ),
this, SLOT ( noiseWaveClicked() ) );
m_usrWaveBtn = new pixmapButton( this, tr( "User defined wave" ) );
@@ -626,8 +626,8 @@ vibedView::vibedView( Instrument * _instrument,
toolTip::add( m_usrWaveBtn,
tr( "Use a user-defined "
"waveform for current oscillator." ) );
connect( m_usrWaveBtn, SIGNAL ( clicked ( void ) ),
this, SLOT ( usrWaveClicked( void ) ) );
connect( m_usrWaveBtn, SIGNAL ( clicked () ),
this, SLOT ( usrWaveClicked() ) );
m_smoothBtn = new pixmapButton( this, tr( "Smooth" ) );
@@ -636,11 +636,11 @@ vibedView::vibedView( Instrument * _instrument,
"smooth_active" ) );
m_smoothBtn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
"smooth_inactive" ) );
m_smoothBtn->setChecked( FALSE );
m_smoothBtn->setChecked( false );
toolTip::add( m_smoothBtn,
tr( "Click here to smooth waveform." ) );
connect( m_smoothBtn, SIGNAL ( clicked ( void ) ),
this, SLOT ( smoothClicked( void ) ) );
connect( m_smoothBtn, SIGNAL ( clicked () ),
this, SLOT ( smoothClicked() ) );
m_normalizeBtn = new pixmapButton( this, tr( "Normalize" ) );
m_normalizeBtn->move( 96, 129 );
@@ -648,19 +648,19 @@ vibedView::vibedView( Instrument * _instrument,
"normalize_active" ) );
m_normalizeBtn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
"normalize_inactive" ) );
m_normalizeBtn->setChecked( FALSE );
m_normalizeBtn->setChecked( false );
toolTip::add( m_normalizeBtn,
tr( "Click here to normalize waveform." ) );
connect( m_normalizeBtn, SIGNAL ( clicked ( void ) ),
this, SLOT ( normalizeClicked( void ) ) );
connect( m_normalizeBtn, SIGNAL ( clicked () ),
this, SLOT ( normalizeClicked() ) );
}
void vibedView::modelChanged( void )
void vibedView::modelChanged()
{
showString( 0 );
}
@@ -690,7 +690,7 @@ void vibedView::showString( Uint8 _string )
void vibedView::sinWaveClicked( void )
void vibedView::sinWaveClicked()
{
m_graph->model()->setWaveToSine();
engine::getSong()->setModified();
@@ -698,7 +698,7 @@ void vibedView::sinWaveClicked( void )
void vibedView::triangleWaveClicked( void )
void vibedView::triangleWaveClicked()
{
m_graph->model()->setWaveToTriangle();
engine::getSong()->setModified();
@@ -706,7 +706,7 @@ void vibedView::triangleWaveClicked( void )
void vibedView::sawWaveClicked( void )
void vibedView::sawWaveClicked()
{
m_graph->model()->setWaveToSaw();
engine::getSong()->setModified();
@@ -714,7 +714,7 @@ void vibedView::sawWaveClicked( void )
void vibedView::sqrWaveClicked( void )
void vibedView::sqrWaveClicked()
{
m_graph->model()->setWaveToSquare();
engine::getSong()->setModified();
@@ -722,7 +722,7 @@ void vibedView::sqrWaveClicked( void )
void vibedView::noiseWaveClicked( void )
void vibedView::noiseWaveClicked()
{
m_graph->model()->setWaveToNoise();
engine::getSong()->setModified();
@@ -730,7 +730,7 @@ void vibedView::noiseWaveClicked( void )
void vibedView::usrWaveClicked( void )
void vibedView::usrWaveClicked()
{
// TODO: load file
//m_graph->model()->setWaveToUser();
@@ -739,7 +739,7 @@ void vibedView::usrWaveClicked( void )
void vibedView::smoothClicked( void )
void vibedView::smoothClicked()
{
m_graph->model()->smooth();
engine::getSong()->setModified();
@@ -747,7 +747,7 @@ void vibedView::smoothClicked( void )
void vibedView::normalizeClicked( void )
void vibedView::normalizeClicked()
{
m_graph->model()->normalize();
engine::getSong()->setModified();
@@ -769,7 +769,7 @@ void vibedView::contextMenuEvent( QContextMenuEvent * )
void vibedView::displayHelp( void )
void vibedView::displayHelp()
{
QWhatsThis::showText( mapToGlobal( rect().bottomRight() ),
whatsThis() );

View File

@@ -51,9 +51,9 @@ public:
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
virtual void loadSettings( const QDomElement & _this );
virtual QString nodeName( void ) const;
virtual QString nodeName() const;
inline virtual bool isBendable( void ) const
inline virtual bool isBendable() const
{
return( false );
}
@@ -93,20 +93,20 @@ public:
public slots:
void showString( Uint8 _string );
void contextMenuEvent( QContextMenuEvent * );
void displayHelp( void );
void displayHelp();
protected slots:
void sinWaveClicked( void );
void triangleWaveClicked( void );
void sawWaveClicked( void );
void sqrWaveClicked( void );
void noiseWaveClicked( void );
void usrWaveClicked( void );
void smoothClicked( void );
void normalizeClicked( void );
void sinWaveClicked();
void triangleWaveClicked();
void sawWaveClicked();
void sqrWaveClicked();
void noiseWaveClicked();
void usrWaveClicked();
void smoothClicked();
void normalizeClicked();
private:
virtual void modelChanged( void );
virtual void modelChanged();
// String-related

View File

@@ -45,7 +45,7 @@ public:
float _detune,
bool _state );
inline ~vibratingString( void )
inline ~vibratingString()
{
delete[] m_outsamp;
delete[] m_impulse;
@@ -53,7 +53,7 @@ public:
vibratingString::freeDelayLine( m_toBridge );
}
inline sample_t nextSample( void )
inline sample_t nextSample()
{
sample_t ym0;
sample_t ypM;

View File

@@ -29,7 +29,7 @@ int main()
{
struct jpeg_decompress_struct cinfo;
jpeg_create_decompress(&cinfo);
jpeg_read_header(&cinfo, TRUE);
jpeg_read_header(&cinfo, true);
return 1;
}

View File

@@ -128,7 +128,7 @@ HDC fl_makeDC(HBITMAP bitmap) {
SetTextAlign(new_gc, TA_BASELINE|TA_LEFT);
SetBkMode(new_gc, TRANSPARENT);
#if USE_COLORMAP
if (fl_palette) SelectPalette(new_gc, fl_palette, FALSE);
if (fl_palette) SelectPalette(new_gc, fl_palette, false);
#endif
SelectObject(new_gc, bitmap);
return new_gc;

View File

@@ -144,7 +144,7 @@ void Fl_File_Input::update_buttons() {
\param[in] str new string value
\param[in] len lengh of value
*/
int // O - TRUE on success
int // O - true on success
Fl_File_Input::value(const char *str, // I - New string value
int len) { // I - Length of value
damage(FL_DAMAGE_BAR);
@@ -157,7 +157,7 @@ Fl_File_Input::value(const char *str, // I - New string value
Returns non 0 on success.
\param[in] str new string value
*/
int // O - TRUE on success
int // O - true on success
Fl_File_Input::value(const char *str) { // I - New string value
damage(FL_DAMAGE_BAR);
return Fl_Input::value(str);
@@ -187,7 +187,7 @@ void Fl_File_Input::draw() {
Return non zero if event is handled.
\param[in] event
*/
int // O - TRUE if we handled event
int // O - true if we handled event
Fl_File_Input::handle(int event) // I - Event
{
// printf("handle(event = %d)\n", event);
@@ -230,7 +230,7 @@ Fl_File_Input::handle(int event) // I - Event
Return non zero if event is handled.
\param[in] event
*/
int // O - TRUE if we handled event
int // O - true if we handled event
Fl_File_Input::handle_button(int event) // I - Event
{
int i, // Looping var

View File

@@ -398,7 +398,7 @@ int fl_wait(double time_to_wait) {
time_to_wait = (time_to_wait > 10000 ? 10000 : time_to_wait);
int t_msec = (int) (time_to_wait * 1000.0 + 0.5);
MsgWaitForMultipleObjects(0, NULL, FALSE, t_msec, QS_ALLINPUT);
MsgWaitForMultipleObjects(0, NULL, false, t_msec, QS_ALLINPUT);
fl_lock_function();
@@ -1127,7 +1127,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
#if USE_COLORMAP
case WM_QUERYNEWPALETTE :
fl_GetDC(hWnd);
if (fl_select_palette()) InvalidateRect(hWnd, NULL, FALSE);
if (fl_select_palette()) InvalidateRect(hWnd, NULL, false);
break;
case WM_PALETTECHANGED:
@@ -1215,7 +1215,7 @@ int Fl_X::fake_X_wm(const Fl_Window* w,int &X,int &Y, int &bt,int &bx, int &by)
r.right = w->x()+w->w();
r.bottom = w->y()+w->h();
// get the decoration rectangle for the desired client rectangle
BOOL ok = AdjustWindowRectEx(&r, style, FALSE, exstyle);
BOOL ok = AdjustWindowRectEx(&r, style, false, exstyle);
if (ok) {
X = r.left;
Y = r.top;
@@ -1557,7 +1557,7 @@ Fl_X* Fl_X::make(Fl_Window* w) {
CoCreateInstance(CLSID_CActiveIMM, NULL, CLSCTX_INPROC_SERVER,
IID_IActiveIMMApp, (void**) &fl_aimm);
if (fl_aimm) {
fl_aimm->Activate(TRUE);
fl_aimm->Activate(true);
}
}
#endif // !__GNUC__ || __GNUC__ >= 3

View File

@@ -241,7 +241,7 @@ fl_select_palette(void)
fl_palette = CreatePalette(pPal);
}
if (fl_palette) {
SelectPalette(fl_gc, fl_palette, FALSE);
SelectPalette(fl_gc, fl_palette, false);
RealizePalette(fl_gc);
}
return fl_palette;

View File

@@ -343,7 +343,7 @@ public:
}
HRESULT __stdcall Next(ULONG celt, FORMATETC * rgelt, ULONG *pceltFetched) {
if (n > 0) return S_FALSE;
if (n > 0) return S_false;
for (ULONG i = 0; i < celt; i++) {
n++;
rgelt->cfFormat = CF_HDROP;
@@ -358,7 +358,7 @@ public:
HRESULT __stdcall Skip(ULONG celt) {
n += celt;
return (n == 0) ? S_OK : S_FALSE;
return (n == 0) ? S_OK : S_false;
}
HRESULT __stdcall Reset(void) {
@@ -434,14 +434,14 @@ public:
// df->pFiles = sizeof(DROPFILES);
// df->pt.x = 0;
// df->pt.y = 0;
// df->fNC = FALSE;
// df->fNC = false;
// for (int i = 0; i < fl_selection_length[0]; i++) {
// if (fl_selection_buffer[0][i] == '\n') {
// fl_selection_buffer[0][i] = '\0';
// }
// }
//
// df->fWide = TRUE;
// df->fWide = true;
// l = fl_utf2unicode((unsigned char*)fl_selection_buffer[0],
// fl_selection_length[0], (xchar*)(((char*)pMem)
// + sizeof(DROPFILES)));

View File

@@ -44,8 +44,8 @@ Fl_Font_Descriptor::Fl_Font_Descriptor(const char* name, Fl_Fontsize size) {
fl_angle_*10, // base-line orientation angle
weight,
italic,
FALSE, // underline attribute flag
FALSE, // strikeout attribute flag
false, // underline attribute flag
false, // strikeout attribute flag
DEFAULT_CHARSET, // character set identifier
OUT_DEFAULT_PRECIS, // output precision
CLIP_DEFAULT_PRECIS,// clipping precision

View File

@@ -58,7 +58,7 @@ static fl_gmi_func fl_gmi = NULL; // used to get a proc pointer for GetMonitorIn
static RECT screens[16];
static BOOL CALLBACK screen_cb(HMONITOR mon, HDC, LPRECT r, LPARAM) {
if (num_screens >= 16) return TRUE;
if (num_screens >= 16) return true;
MONITORINFO mi;
mi.cbSize = sizeof(mi);
@@ -69,7 +69,7 @@ static BOOL CALLBACK screen_cb(HMONITOR mon, HDC, LPRECT r, LPARAM) {
screens[num_screens] = mi.rcWork;
num_screens ++;
}
return TRUE;
return true;
}
static void screen_init() {

View File

@@ -208,7 +208,7 @@ DllMain(HINSTANCE hinst, /* I - DLL module handle */
{
case DLL_PROCESS_ATTACH : /* Called on library initialization */
if ((_mxml_tls_index = TlsAlloc()) == TLS_OUT_OF_INDEXES)
return (FALSE);
return (false);
break;
case DLL_THREAD_DETACH : /* Called when a thread terminates */
@@ -227,7 +227,7 @@ DllMain(HINSTANCE hinst, /* I - DLL module handle */
break;
}
return (TRUE);
return (true);
}