summaryrefslogtreecommitdiff
path: root/noncore/tools/euroconv/main.cpp
blob: 8b417fe1406a61ca05d8d6f3fa87ddc9d722d1f2 (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
/****************************************************************************
 *
 * File:        main.cpp
 *
 * Description: main file for OPIE Euroconv aapp
 *
 *
 * Authors:     Eric Santonacci <Eric.Santonacci@talc.fr>
 *
 * Requirements:    Qt
 *
 *
 ***************************************************************************/

#include <qpe/qpeapplication.h>
#include <qvbox.h>

#include "calcdisplay.h"
#include "calckeypad.h"

#include <opie2/oapplicationfactory.h>

struct Layout : QVBox{
    static QString appName() { return QString::fromLatin1("euroconv"); }
    Layout(QWidget *p, const char* n, WFlags)
	:QVBox(0,"fond" )
    {
        LCDDisplay *lcd = new LCDDisplay(this, "lcd");
	(void)new KeyPad(lcd, this, "keypad");

        setCaption( QObject::tr("Euroconv") );
    };

};

using namespace Opie::Core;

OPIE_EXPORT_APP( OApplicationFactory<Layout> )