From 666a49773d06ac94c19996d763854725c2f7a578 Mon Sep 17 00:00:00 2001 From: harlekin Date: Sun, 22 Feb 2004 23:38:58 +0000 Subject: initial checkin of opie linphone, not really usefull yet, just to make sure I dont loose any data --- (limited to 'noncore/net/linphone/mainwindow.cpp') diff --git a/noncore/net/linphone/mainwindow.cpp b/noncore/net/linphone/mainwindow.cpp new file mode 100644 index 0000000..1bd9987 --- a/dev/null +++ b/noncore/net/linphone/mainwindow.cpp @@ -0,0 +1,37 @@ +#include +#include +#include + +#include "mainwindow.h" +#include "linphoneconfig.h" + +MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) +: QMainWindow( parent, name, flags ) { + + setCaption( tr( "Sip Phone" ) ); + setToolBarsMovable( false ); + + toolBar = new QToolBar( this ); + toolBar->setHorizontalStretchable( true ); + menuBar = new QMenuBar( toolBar ); + prefMenu = new QPopupMenu( menuBar ); + menuBar->insertItem( tr( "Connection" ), prefMenu ); + + settings = new QAction( tr("Settings"), QIconSet( Resource::loadPixmap("SettingsIcon") ), 0, 0, this); + settings->addTo( prefMenu ); + connect( settings, SIGNAL( activated() ), + SLOT( slotSettings() ) ); + + mainWidget = new QLinphoneMainWidget( this, "qlinphone", WStyle_ContextHelp ); + setCentralWidget( mainWidget ); +} + + +MainWindow::~MainWindow() {} + +void MainWindow::slotSettings() { + LinPhoneConfig settings( this, 0, true, WStyle_ContextHelp ); + QPEApplication::execDialog( &settings ); + // FIXME - only in OK case + mainWidget->createLinphoneCore(); +} -- cgit v0.9.0.2