Beispiel #1
0
void BrowserView::initialize()
{
    connect(m_zoomStrip, SIGNAL(zoomInClicked()), SLOT(zoomIn()));
    connect(m_zoomStrip, SIGNAL(zoomOutClicked()), SLOT(zoomOut()));

    connect(m_controlStrip, SIGNAL(menuClicked()), SIGNAL(menuButtonClicked()));
    connect(m_controlStrip, SIGNAL(backClicked()), m_webView, SLOT(back()));
    connect(m_controlStrip, SIGNAL(forwardClicked()), m_webView, SLOT(forward()));
    connect(m_controlStrip, SIGNAL(closeClicked()), qApp, SLOT(quit()));

    QPalette pal = m_webView->palette();
    pal.setBrush(QPalette::Base, Qt::white);
    m_webView->setPalette(pal);

    FlickCharm *flickCharm = new FlickCharm(this);
    flickCharm->activateOn(m_webView);

    m_webView->setZoomFactor(static_cast<qreal>(m_currentZoom)/100.0);
    connect(m_webView, SIGNAL(loadStarted()), SLOT(start()));
    connect(m_webView, SIGNAL(loadProgress(int)), SLOT(setProgress(int)));
    connect(m_webView, SIGNAL(loadFinished(bool)), SLOT(finish(bool)));
    connect(m_webView, SIGNAL(urlChanged(QUrl)), SLOT(updateTitleBar()));

    m_webView->setHtml("about:blank");
    m_webView->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
    m_webView->setFocus();
}
Beispiel #2
0
void ZoomStrip::mousePressEvent(QMouseEvent *event)
{
    if (event->pos().y() < height() / 2)
        emit zoomInClicked();
    else
        emit zoomOutClicked();
}
Beispiel #3
0
void BrowserView::initialize()
{
    connect(m_zoomStrip, SIGNAL(zoomInClicked()), SLOT(zoomIn()));
    connect(m_zoomStrip, SIGNAL(zoomOutClicked()), SLOT(zoomOut()));

    connect(m_controlStrip, SIGNAL(menuClicked()), SIGNAL(menuButtonClicked()));
    connect(m_controlStrip, SIGNAL(backClicked()), m_webView, SLOT(back()));
    connect(m_controlStrip, SIGNAL(forwardClicked()), m_webView, SLOT(forward()));

    QPalette pal = m_webView->palette();
    pal.setBrush(QPalette::Base, Qt::white);
    m_webView->setPalette(pal);

    FlickCharm *flickCharm = new FlickCharm(this);
    flickCharm->activateOn(m_webView);

    m_webView->setZoomFactor(static_cast<qreal>(m_currentZoom)/100.0);
    connect(m_webView, SIGNAL(loadStarted()), SLOT(start()));
    connect(m_webView, SIGNAL(loadProgress(int)), SLOT(setProgress(int)));
    connect(m_webView, SIGNAL(loadFinished(bool)), SLOT(finish(bool)));
    connect(m_webView, SIGNAL(urlChanged(QUrl)), SLOT(updateTitleBar()));

    m_webView->setHtml("Will try to load page soon!");
    m_webView->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
    m_webView->setFocus();
#ifdef Q_OS_SYMBIAN
    QTimer::singleShot(0, this, SLOT(setDefaultIap()));
#endif
}
Beispiel #4
0
int ZoomStrip::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: zoomInClicked(); break;
        case 1: zoomOutClicked(); break;
        default: ;
        }
        _id -= 2;
    }
    return _id;
}
MainWindow::MainWindow()
{

    waveformWidget = new WaveformWidget("./test.wav");

    waveformWidget->setGeometry(0,0, 8192000, this->height());

    layout  = new QGridLayout(this);

    scrollArea = new QScrollArea(this);
    scrollArea->setBackgroundRole(QPalette::Dark);
    scrollArea->setWidget(waveformWidget);
    scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
    scrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
    scrollArea->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);

    layout->addWidget(scrollArea, 0, 0, 12, 12);

    zoomInButton = new QPushButton("zoom in", this);
    zoomOutButton = new QPushButton("zoom out", this);
    setFileButton = new QPushButton("set source", this);
    layout->addWidget(zoomInButton, 12,3,1,2 );
    layout->addWidget(zoomOutButton, 12, 5, 1, 2);
    layout->addWidget(setFileButton, 12, 7, 1, 2);



   this->setGeometry(50,50,500,300);


    waveformWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);

    waveformWidget->setGeometry(0,0,waveformWidget->width(), scrollArea->height());


    waveformWidget->repaint();

    QObject::connect(this->zoomInButton, SIGNAL(clicked()),this, SLOT(zoomInClicked()));
    QObject::connect(this->zoomOutButton, SIGNAL(clicked()), this, SLOT(zoomOutClicked()));
    QObject::connect(this->setFileButton, SIGNAL(clicked()), this, SLOT(setSourceClicked()));


}
Beispiel #6
0
PreviewWidget::PreviewWidget(QWidget* parent)
             : QGraphicsView(parent), d(new PreviewWidgetPriv)
{
    QString whatsThis = i18n("<p>This widget will display a correction "
            "preview for the currently selected image</p>"
            "<p><ul>"
            "<li>Move the mouse <b>over</b> the preview to display the original image</li>"
            "<li>Move the mouse <b>out of</b> the preview to display the corrected image</li>"
            "<li><b>Click on</b> the preview to display the correction mask</li>"
            "</ul></p>"
            "<p>The zoom buttons and panning widget allow you to view certain parts of the image "
            "more closely.</p>");

    setWhatsThis(whatsThis);

    // --------------------------------------------------------

    setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
    setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
    setCacheMode(QGraphicsView::CacheBackground);

    // --------------------------------------------------------

    d->locked               = true;

    d->busyLabel            = new QLabel;
    d->correctedLabel       = new QLabel;
    d->maskLabel            = new QLabel;
    d->noSelectionLabel     = new QLabel;
    d->originalLabel        = new QLabel;

    d->correctedLabel->setScaledContents(true);
    d->maskLabel->setScaledContents(true);
    d->originalLabel->setScaledContents(true);

    d->noSelectionLabel->clear();

    d->busyLabel->setText(i18n("<h2>generating preview...</h2>"));
    d->busyLabel->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter);

    // --------------------------------------------------------

    d->stack = new QStackedWidget;
    d->stack->insertWidget(BusyMode,          d->busyLabel);
    d->stack->insertWidget(LockedMode,        d->noSelectionLabel);
    d->stack->insertWidget(OriginalMode,      d->originalLabel);
    d->stack->insertWidget(CorrectedMode,     d->correctedLabel);
    d->stack->insertWidget(MaskMode,          d->maskLabel);

    // --------------------------------------------------------

    QGraphicsScene* scene = new QGraphicsScene;
    scene->addWidget(d->stack);
    setScene(scene);

    // --------------------------------------------------------

    // floating widgets
    d->modeInfo = new InfoMessageWidget(this);
    d->controller = new ControlWidget(this);

    // --------------------------------------------------------

    connect(this, SIGNAL(settingsChanged()),
            this, SLOT(updateSettings()));

    connect(d->controller, SIGNAL(zoomInClicked()),
            this, SLOT(zoomInClicked()));

    connect(d->controller, SIGNAL(zoomOutClicked()),
            this, SLOT(zoomOutClicked()));

    connect(d->controller, SIGNAL(originalClicked()),
            this, SLOT(originalClicked()));

    connect(d->controller, SIGNAL(correctedClicked()),
            this, SLOT(correctedClicked()));

    connect(d->controller, SIGNAL(maskClicked()),
            this, SLOT(maskClicked()));

    // --------------------------------------------------------

    reset();
}
void MainWindow::initialize()
{
    MyPreferences::m_prefInstance = new MyPreferences(this);
    SEMPERMERK_PREFS->hide();
    SEMPERMERK_PREFS->resize(size());
    SEMPERMERK_PREFS->move(0, 0);

    m_controlStrip = new ControlStrip(this);
    m_controlStrip->resizeBar(size(), true);
    m_controlStrip->show();

    m_homeView = new HomeView(this);

    m_mapView = new MapView(this);
    m_mapView->show();
    m_mapView->resize(QSize(width(), height()));

    loadTemplateDocument(":/doc/initial.mdc");
    m_mapView->setDocument(m_document);

//    ImageMapLayer* ilayer = m_document->addImageLayer();
//    ilayer->setMapAdapter(TMS_ADAPTER_UUID, "OSM Mapnik");
//    ilayer->setVisible(true);

    M_PREFS->initialPosition(m_mapView);
    m_mapView->launch(new EditInteraction(m_mapView));
    m_mapView->invalidate(true, true);

    m_homeView->resize(QSize(width(), height()));
    m_homeView->move(width(), m_homeView->y());
    m_homeView->show();

    m_gpsview = new QGPS(this);
#if defined(Q_OS_SYMBIAN) || defined(Q_WS_SIMULATOR)
    QGPSMobileDevice* aGps = new QGPSMobileDevice();
    if (aGps->openDevice()) {
        connect(aGps, SIGNAL(updatePosition(qreal, qreal, QDateTime, qreal, qreal, qreal)),
            this, SLOT(updateGpsPosition(qreal, qreal, QDateTime, qreal, qreal, qreal)));

//        ui->gpsConnectAction->setEnabled(false);
//        ui->gpsReplayAction->setEnabled(false);
//        ui->gpsDisconnectAction->setEnabled(true);
//        ui->gpsRecordAction->setEnabled(true);
//        ui->gpsPauseAction->setEnabled(true);
        m_gpsview->setGpsDevice(aGps);
        m_gpsview->resetGpsStatus();
        m_gpsview->startGps();
    }
#elif defined(Q_WS_SIMULATOR)
    QGPSFileDevice* aGps = new QGPSFileDevice(":/test/test.nma");
    if (aGps->openDevice()) {
        connect(aGps, SIGNAL(updatePosition(qreal, qreal, QDateTime, qreal, qreal, qreal)),
            this, SLOT(updateGpsPosition(qreal, qreal, QDateTime, qreal, qreal, qreal)));

//        ui->gpsConnectAction->setEnabled(false);
//        ui->gpsReplayAction->setEnabled(false);
//        ui->gpsDisconnectAction->setEnabled(true);
//        ui->gpsRecordAction->setEnabled(true);
//        ui->gpsPauseAction->setEnabled(true);
        m_gpsview->setGpsDevice(aGps);
        m_gpsview->resetGpsStatus();
        m_gpsview->startGps();
    }
#endif
    m_gpsview->resize(QSize(width(), height()));
    m_gpsview->move(width(), m_gpsview->y());
    m_gpsview->show();

    SEMPERMERK_PREFS->show();

    m_controlStrip->raise();

    connect(m_homeView, SIGNAL(addressEntered(QString)), SLOT(gotoAddress(QString)));

//    connect(m_mapView, SIGNAL(menuButtonClicked()), SLOT(showHomeView()));

//    connect(m_controlStrip, SIGNAL(backClicked()), m_mapView, SLOT(backView()));
//    connect(m_controlStrip, SIGNAL(forwardClicked()), m_mapView, SLOT(fwdView()));
//    connect(m_controlStrip, SIGNAL(stopClicked()), m_mapView, SLOT(stop()));
//    connect(m_controlStrip, SIGNAL(zoomBestClicked()), m_mapView, SLOT(zoomBest()));
//    connect(m_controlStrip, SIGNAL(refreshClicked()), m_mapView, SLOT(reload()));
//    connect(m_controlStrip, SIGNAL(bookmarkClicked()), m_mapView, SIGNAL(menuButtonClicked()));
    connect(m_controlStrip, SIGNAL(zoomInClicked()), m_mapView, SLOT(zoomIn()));
    connect(m_controlStrip, SIGNAL(zoomOutClicked()), m_mapView, SLOT(zoomOut()));
    connect(m_controlStrip, SIGNAL(prefClicked()), SLOT(showPreferencesView()));
    connect(m_controlStrip, SIGNAL(menuClicked()), SLOT(showMenu()));

//    m_controlStrip->bookmarkBt->show();
//    m_controlStrip->searchBt->show();
//    m_controlStrip->editBt->hide();

    downSlide(0);

//    QTimer::singleShot(2000, this, SLOT(showHomeView()));
}
Beispiel #8
0
Spinwidget::Spinwidget(double *x, double *y, double *z, int *n, int *colors, int* cols, double *max, char** names, char **colnames, QWidget *parent) : QWidget(parent) {

	// icon dialog first
	Icondialog icondialog(this);
	Iconview::Icon selectedIcon = Iconview::Cross;
	
	if(icondialog.exec()) {
		Iconview *iv = static_cast<Iconview *>(icondialog.focusWidget());
		selectedIcon = iv->getIcon();
	}

	// Layouts
	gridLayout = new QGridLayout(this);
	QVBoxLayout *leftLayout = new QVBoxLayout(0);
	QVBoxLayout *rightLayout = new QVBoxLayout(0);

	// OpenGL View
        view = new Spinview(x, y, z, n, colors, max, selectedIcon, names, colnames, cols, this);
	//gridLayout->addWidget(view, 0, 1, 7, 4);

	// Zoom In Button
	QPushButton *button_zoomin = new QPushButton("+");
	QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
	sizePolicy.setHorizontalStretch(0);
	sizePolicy.setVerticalStretch(0);
	sizePolicy.setHeightForWidth(button_zoomin->sizePolicy().hasHeightForWidth());
	button_zoomin->setSizePolicy(sizePolicy);
	button_zoomin->setFixedSize(QSize(35, 35));
	button_zoomin->setToolTip(tr("Zoom in"));
	//gridLayout->addWidget(button_zoomin, 0, 5, 1, 1);
	rightLayout->addWidget(button_zoomin);
	connect(button_zoomin, SIGNAL(clicked()), this, SLOT(zoomInClicked()));

	// Zoom Slider
	slider_zoom = new QSlider(this);
	slider_zoom->setMinimumSize(QSize(30, 0));
	slider_zoom->setOrientation(Qt::Vertical);
	slider_zoom->setMinimum(1);
	slider_zoom->setMaximum(100);
	slider_zoom->setSingleStep(1);
	slider_zoom->setPageStep(10);
	slider_zoom->setValue(30);
	slider_zoom->setInvertedAppearance(true);
	slider_zoom->setInvertedControls(true);
	slider_zoom->setToolTip(tr("Zoom in/out"));
	//gridLayout->addWidget(slider_zoom, 1, 5, 5, 1);
	rightLayout->addWidget(slider_zoom);
	connect(slider_zoom, SIGNAL(valueChanged(int)), this, SLOT(zoomChanged(int)));

	// ZoomOut Button
	QPushButton *button_zoomout = new QPushButton("-");
	sizePolicy.setHeightForWidth(button_zoomout->sizePolicy().hasHeightForWidth());
	button_zoomout->setSizePolicy(sizePolicy);
	button_zoomout->setFixedSize(QSize(35, 35));
	button_zoomout->setToolTip(tr("Zoom out"));
	//gridLayout->addWidget(button_zoomout, 6, 5, 1, 1);
	rightLayout->addWidget(button_zoomout);
	connect(button_zoomout, SIGNAL(clicked()), this, SLOT(zoomOutClicked()));

	// info label
	info = new QLabel(this);
	gridLayout->addWidget(info, 1, 1);

	// exit button
	QPushButton *button_exit = new QPushButton(this);
	button_exit->setFixedSize(QSize(35, 35));
	button_exit->setToolTip(tr("Exit"));
	QIcon icon7;
	icon7.addPixmap(QPixmap(QString::fromUtf8(":/images/exit.png")), QIcon::Normal, QIcon::Off);
	button_exit->setIcon(icon7);
	gridLayout->addWidget(button_exit, 1, 2);
	connect(button_exit, SIGNAL(clicked()), this, SLOT(close()));

	// Rotate Mode Button
	QPushButton *button_rotate = new QPushButton(this);
	connect(button_rotate, SIGNAL(clicked()), this, SLOT(setRotateMode()));
	button_rotate->setFixedSize(QSize(35, 35));
	QIcon icon;
	icon.addPixmap(QPixmap(QString::fromUtf8(":/images/rotate.png")), QIcon::Normal, QIcon::Off);
	button_rotate->setIcon(icon);
	button_rotate->setAutoExclusive(true);
	button_rotate->setCheckable(true);
	button_rotate->setToolTip(tr("Spin"));
	//gridLayout->addWidget(button_rotate, 0, 0, 1, 1);
	leftLayout->addWidget(button_rotate);

	// Move Mode Button
	QPushButton *button_move = new QPushButton(this);
	button_move->setFixedSize(QSize(35, 35));
	QIcon icon1;
	icon1.addPixmap(QPixmap(QString::fromUtf8(":/images/move.png")), QIcon::Normal, QIcon::Off);
	button_move->setIcon(icon1);
	button_move->setAutoExclusive(true);
	button_move->setCheckable(true);
	button_move->setToolTip(tr("Move"));
	//gridLayout->addWidget(button_move, 1, 0, 1, 1);
	leftLayout->addWidget(button_move);
	connect(button_move, SIGNAL(clicked()), this, SLOT(setMoveMode()));

	// Brush Mode Button
	QPushButton *button_brush = new QPushButton(this);
	button_brush->setFixedSize(QSize(35, 35));
	QIcon icon2;
	icon2.addPixmap(QPixmap(QString::fromUtf8(":/images/brush.png")), QIcon::Normal, QIcon::Off);
	button_brush->setIcon(icon2);
	button_brush->setAutoExclusive(true);
	button_brush->setCheckable(true);
	button_brush->setToolTip(tr("Brush"));
	//gridLayout->addWidget(button_brush, 2, 0, 1, 1);
	leftLayout->addWidget(button_brush);
	connect(button_brush, SIGNAL(clicked()), this, SLOT(setBrushMode()));

	// Info Mode Button
	QPushButton *button_info = new QPushButton(this);
	button_info->setFixedSize(QSize(35, 35));
	QIcon icon3;
	icon3.addPixmap(QPixmap(QString::fromUtf8(":/images/info.png")), QIcon::Normal, QIcon::Off);
	button_info->setIcon(icon3);
	button_info->setAutoExclusive(true);
	button_info->setCheckable(true);
	button_info->setToolTip(tr("Info"));
	//gridLayout->addWidget(button_brush, 2, 0, 1, 1);
	leftLayout->addWidget(button_info);
	connect(button_info, SIGNAL(clicked()), this, SLOT(setInfoMode()));

	QPushButton *button_identify = new QPushButton(this);
	button_identify->setFixedSize(QSize(35, 35));
        QIcon icon8;
        icon8.addPixmap(QPixmap(QString::fromUtf8(":/images/identify.png")), QIcon::Normal, QIcon::Off);
        button_identify->setIcon(icon8);
	button_identify->setAutoExclusive(true);
	button_identify->setCheckable(true);
	button_identify->setToolTip(tr("Identify"));
	//gridLayout->addWidget(button_brush, 2, 0, 1, 1);
	leftLayout->addWidget(button_identify);
	connect(button_identify, SIGNAL(clicked()), this, SLOT(setIdentifyMode()));


	// Spacer
	leftLayout->addStretch(1);

	// item change button
	QPushButton *button_item = new QPushButton(this);
	button_item->setFixedSize(QSize(35, 35));
	QIcon icon6;
	icon6.addPixmap(QPixmap(QString::fromUtf8(":/images/icons.png")), QIcon::Normal, QIcon::Off);
	button_item->setIcon(icon6);
	button_item->setToolTip(tr("Change Item type"));
	leftLayout->addWidget(button_item);
	connect(button_item, SIGNAL(clicked()), this, SLOT(changeIcon()));

	// Spacer
	leftLayout->addStretch(1);

	Aboutwidget *about = new Aboutwidget(this);

	// about S&B Button
	QPushButton *button_sb = new QPushButton(this);
	button_sb->setFixedSize(QSize(35, 35));
	QIcon icon5;
	icon5.addPixmap(QPixmap(QString::fromUtf8(":/images/logo.png")), QIcon::Normal, QIcon::Off);
	button_sb->setIcon(icon5);
	button_sb->setToolTip(tr("About"));
	leftLayout->addWidget(button_sb);
	connect(button_sb, SIGNAL(clicked()), about, SLOT(exec()));

	// about Qt Button
	QPushButton *button_qt = new QPushButton(this);
	button_qt->setFixedSize(QSize(35, 35));
	QIcon icon4;
	icon4.addPixmap(QPixmap(QString::fromUtf8(":/images/qt.png")), QIcon::Normal, QIcon::Off);
	button_qt->setIcon(icon4);
	button_qt->setToolTip(tr("About Qt"));
	//gridLayout->addWidget(button_qt, 6, 0, 1, 1);
	leftLayout->addWidget(button_qt);
	connect(button_qt, SIGNAL(clicked()), qApp, SLOT(aboutQt()));
	
	move(200, 200); // move widget on screen
	
	// Group Widget
        Groupwidget *groupWidget = new Groupwidget(view, this);
	groupWidget->setWindowIcon(icon2);
	connect(button_brush, SIGNAL(toggled(bool)), groupWidget, SLOT(setVisible(bool)));
	connect(groupWidget, SIGNAL(indexChanged(const int &)), view, SLOT(setGroupIndex(const int &)));
	connect(groupWidget, SIGNAL(colorChanged(const int &, const QColor &)), view, SLOT(setColor(const int &, const QColor &)));	

	// Rotate Widget
	Rotatewidget *rotateWidget = new Rotatewidget(view, this);
	rotateWidget->setWindowIcon(icon);
	connect(button_rotate, SIGNAL(toggled(bool)), rotateWidget, SLOT(setVisible(bool)));

	// Identify Widget
        Identifywidget *identifyWidget = new Identifywidget(*n, names, this);
        identifyWidget->setWindowIcon(icon8);
        connect(button_identify, SIGNAL(toggled(bool)), identifyWidget, SLOT(setVisible(bool)));
        connect(identifyWidget, SIGNAL(identify(int)), view, SLOT(identify(int)));


	gridLayout->addLayout(leftLayout, 0, 0);
	gridLayout->addWidget(view, 0, 1);
	gridLayout->addLayout(rightLayout, 0, 2);
	setLayout(gridLayout);
        setWindowTitle(tr("Spin & Brush"));
	setWindowIcon(icon5);

	button_rotate->click(); // click() instead of setChecked(true) ist used to emit signal 
	connect(view, SIGNAL(zoomChanged(int)), slider_zoom, SLOT(setValue(int)));

	Legendwidget *legend = new Legendwidget(colnames, this);
	legend->show();
}
void RoutingWidget::createButtons()
{
	QHBoxLayout *hbox = new QHBoxLayout(RoutingWidgetLayout);


	pbRoutingNormal = new QPushButton(this);
	pbRoutingNormal->setIconSet(QIconSet(QPixmap((const char**)routing_normal)));
	hbox->addWidget(pbRoutingNormal);
	pbRoutingNormal->setToggleButton(true);

	pbRoutingFX = new QPushButton(this);
	pbRoutingFX->setIconSet(QIconSet(QPixmap((const char**)routing_fx)));
	hbox->addWidget(pbRoutingFX);
	pbRoutingFX->setToggleButton(true);

	pbRoutingIn = new QPushButton(this);
	pbRoutingIn->setIconSet(QIconSet(QPixmap((const char**)routing_in)));
	hbox->addWidget(pbRoutingIn);
	pbRoutingIn->setToggleButton(true);

	pbRoutingOut = new QPushButton(this);
	pbRoutingOut->setIconSet(QIconSet(QPixmap((const char**)routing_out)));
	hbox->addWidget(pbRoutingOut);
	pbRoutingOut->setToggleButton(true);

	pbRoutingRoute = new QPushButton(this);
	pbRoutingRoute->setIconSet(QIconSet(QPixmap((const char**)routing_route)));
	hbox->addWidget(pbRoutingRoute);
	pbRoutingRoute->setToggleButton(true);

	pbRoutingEffect = new QPushButton(this);
	pbRoutingEffect->setIconSet(QIconSet(QPixmap((const char**)routing_effect)));
	hbox->addWidget(pbRoutingEffect);
	pbRoutingEffect->setToggleButton(true);

	pbRoutingEffectStack = new QPushButton(this);
	pbRoutingEffectStack->setIconSet(QIconSet(QPixmap((const char**)routing_effect_stack)));
	hbox->addWidget(pbRoutingEffectStack);
	pbRoutingEffectStack->setToggleButton(true);
	
	pbRoutingEffectStack->hide();

	QSpacerItem *spacer1 = new QSpacerItem(10, 0, QSizePolicy::Minimum, QSizePolicy::Minimum);
	hbox->addItem(spacer1);

	QPushButton *pbRoutingZoomPlus = new QPushButton(this);
	pbRoutingZoomPlus->setIconSet(QIconSet(QPixmap((const char**)routing_zoom_plus)));
	hbox->addWidget(pbRoutingZoomPlus);

	sbRoutingZoom = new QSpinBox(this);
	hbox->addWidget(sbRoutingZoom);
	sbRoutingZoom->setMinValue(10);
	sbRoutingZoom->setMaxValue(500);

	QPushButton *pbRoutingZoomMinus = new QPushButton(this);
	pbRoutingZoomMinus->setIconSet(QIconSet(QPixmap((const char**)routing_zoom_minus)));
	hbox->addWidget(pbRoutingZoomMinus);


	QSpacerItem *spacer = new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
	hbox->addItem(spacer);

	connect(pbRoutingNormal, SIGNAL(clicked()), this, SLOT(modeNormalClicked()));
	connect(pbRoutingFX, SIGNAL(clicked()), this, SLOT(modeFxClicked()));
	connect(pbRoutingIn, SIGNAL(clicked()), this, SLOT(modeInClicked()));
	connect(pbRoutingOut, SIGNAL(clicked()), this, SLOT(modeOutClicked()));
	connect(pbRoutingRoute, SIGNAL(clicked()), this, SLOT(modeRouteClicked()));
	connect(pbRoutingEffect, SIGNAL(clicked()), this, SLOT(modeEffectClicked()));
	connect(pbRoutingEffectStack, SIGNAL(clicked()), this, SLOT(modeEffectStackClicked()));

	connect(sbRoutingZoom, SIGNAL(valueChanged(int)), this, SLOT(zoomValueChanged(int)));

	connect(pbRoutingZoomMinus, SIGNAL(clicked()), this, SLOT(zoomOutClicked()));
	connect(pbRoutingZoomPlus, SIGNAL(clicked()), this, SLOT(zoomInClicked()));
}