summaryrefslogtreecommitdiffstats
path: root/arts/gui/kde/dbtest.cpp
blob: fef8b0b97b6508be783e793f3ccf963a5ce00612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

#include <kapplication.h>
#include <kcmdlineargs.h>
#include <kaboutdata.h>
#include <klocale.h>
#include <kstdaction.h>
#include <kactioncollection.h>
#include <kdebug.h>

#include <dbtest.h>
#include <dbtest.moc>

dBTestWidget::dBTestWidget( TQWidget* p, const char* n ) : TQWidget( p,n ), dB2VolCalc( -24,6 ) {
kdDebug() << k_funcinfo << endl;
	( void* ) KStdAction::quit( this, TQT_SLOT( close() ), new KActionCollection( this ) );

	for ( float i=0; i<=1; i+=0.25 )
		kdDebug() << i << " : " << amptodb( i ) << "dB" <<endl;

	for ( int i=-24; i<=0; i++ )
		kdDebug() << i <<"db : " << dbtoamp( i ) << endl;
}
dBTestWidget::~dBTestWidget() {
kdDebug() << k_funcinfo << endl;
}

int main( int argc, char* argv[] ) {

	KAboutData aboutData(  "dbtest", I18N_NOOP( "dBTest" ),
		"0.1", "", KAboutData::License_GPL,
		"(c) 2002, Arnold Krille" );
	aboutData.addAuthor( "Arnold Krille", I18N_NOOP(  "Creator" ), "arnold@arnoldarts.de");
	KCmdLineArgs::init( argc, argv, &aboutData );

	KApplication app;

	dBTestWidget* w = new dBTestWidget( 0 );
	w->show();
	app.setMainWidget( w );

	return app.exec();
}