ostinato/client/mainwindow.cpp
2008-05-03 14:37:10 +00:00

31 lines
742 B
C++

#include <QtGui>
#include "mainwindow.h"
#include "portswindow.h"
#include "portstatswindow.h"
#include "portgrouplist.h"
PortGroupList *pgl;
MainWindow::MainWindow(QWidget *parent)
: QMainWindow (parent)
{
pgl = new PortGroupList;
PortsWindow *portsWindow = new PortsWindow(pgl, this);
PortStatsWindow *statsWindow = new PortStatsWindow(pgl, this);
QDockWidget *dock = new QDockWidget(tr("Ports"), this);
QDockWidget *dock2 = new QDockWidget(tr("Stats"), this);
setupUi(this);
dock->setWidget(portsWindow);
addDockWidget(Qt::TopDockWidgetArea, dock);
dock2->setWidget(statsWindow);
addDockWidget(Qt::BottomDockWidgetArea, dock2);
}
void MainWindow::on_actionPreferences_triggered()
{
}