Ejemplo n.º 1
0
void BitcoinGUI::createToolBars()
{
    mainIcon = new QLabel (this);
    mainIcon->setPixmap(QPixmap(":images/vertical"));
    mainIcon->show();

    mainToolbar = addToolBar(tr("Tabs toolbar"));
    mainToolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
    mainToolbar->addWidget(mainIcon);
    mainToolbar->addAction(overviewAction);
    mainToolbar->addAction(sendCoinsAction);
    mainToolbar->addAction(receiveCoinsAction);
    mainToolbar->addAction(historyAction);
    mainToolbar->addAction(addressBookAction);
    mainToolbar->addAction(messageAction);
	mainToolbar->addAction(statisticsAction);
	mainToolbar->addAction(blockAction);

    secondaryToolbar = addToolBar(tr("Actions toolbar"));
    secondaryToolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
    secondaryToolbar->addAction(exportAction);

    connect(mainToolbar,      SIGNAL(orientationChanged(Qt::Orientation)), this, SLOT(mainToolbarOrientation(Qt::Orientation)));
    connect(secondaryToolbar, SIGNAL(orientationChanged(Qt::Orientation)), this, SLOT(secondaryToolbarOrientation(Qt::Orientation)));
    mainToolbarOrientation(mainToolbar->orientation());
    secondaryToolbarOrientation(secondaryToolbar->orientation());
}
Ejemplo n.º 2
0
void BitcoinGUI::createToolBars()
{
    /*
    mainIcon = new QLabel (this);
    //mainIcon->setPixmap(QPixmap(":images/gns-vertical"));
    mainIcon->show();

    mainToolbar = addToolBar(tr("Tabs toolbar"));
    mainToolbar->setObjectName("main");
    mainToolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
    mainToolbar->addWidget(mainIcon);
    */
    //mainIcon = new QLabel (this);
    //mainIcon->show();
    mainToolbar = addToolBar(tr("Tabs toolbar"));
    mainToolbar->setObjectName("main");
    mainToolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
    mainToolbar->addAction(overviewAction);
    mainToolbar->addAction(sendCoinsAction);
    mainToolbar->addAction(receiveCoinsAction);
    mainToolbar->addAction(historyAction);
    mainToolbar->addAction(addressBookAction);
    mainToolbar->setContextMenuPolicy(Qt::NoContextMenu);

    secondaryToolbar = addToolBar(tr("Actions toolbar"));
    secondaryToolbar->setObjectName("actions");
    secondaryToolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
    secondaryToolbar->addAction(exportAction);
    secondaryToolbar->setContextMenuPolicy(Qt::NoContextMenu);

    connect(mainToolbar,      SIGNAL(orientationChanged(Qt::Orientation)), this, SLOT(mainToolbarOrientation(Qt::Orientation)));
    connect(secondaryToolbar, SIGNAL(orientationChanged(Qt::Orientation)), this, SLOT(secondaryToolbarOrientation(Qt::Orientation)));
    mainToolbarOrientation(mainToolbar->orientation());
    secondaryToolbarOrientation(secondaryToolbar->orientation());
}
Ejemplo n.º 3
0
void BitcoinGUI::createToolBars()
{

    mainToolbar = addToolBar(tr("Tabs toolbar"));
    mainToolbar->setObjectName("main");
    mainToolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
    mainToolbar->addAction(overviewAction);
    mainToolbar->addAction(sendCoinsAction);
    mainToolbar->addAction(receiveCoinsAction);
    mainToolbar->addAction(historyAction);
    mainToolbar->addAction(addressBookAction);
    mainToolbar->setContextMenuPolicy(Qt::NoContextMenu);

    connect(mainToolbar,      SIGNAL(orientationChanged(Qt::Orientation)), this, SLOT(mainToolbarOrientation(Qt::Orientation)));
    mainToolbarOrientation(mainToolbar->orientation());
}
Ejemplo n.º 4
0
void BitcoinGUI::createToolBars()
{
    mainIcon = new QLabel (this);
    mainIcon->setObjectName("mainIcon");
    mainIcon->setStyleSheet("#mainIcon { width:146;background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 #BCBDBE, stop:1.0 #F3F4F4);border:0px; }");
    mainIcon->setPixmap(QPixmap(":images/sdc-vertical"));
    mainIcon->show();

    mainToolbar = addToolBar(tr("Tabs toolbar"));

    addToolBar(Qt::LeftToolBarArea,mainToolbar);
    mainToolbar->setOrientation(Qt::Vertical);
    mainToolbar->setMovable( false );
    mainToolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
    mainToolbar->setIconSize(QSize(50,25));

    mainToolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
    mainToolbar->addWidget(mainIcon);
    mainToolbar->addAction(overviewAction);
    mainToolbar->addAction(sendCoinsAction);
    mainToolbar->addAction(receiveCoinsAction);
    mainToolbar->addAction(historyAction);
    mainToolbar->addAction(addressBookAction);
    //mainToolbar->addAction(messageAction);
    mainToolbar->addAction(xvisionAction);
    mainToolbar->addAction(chatAction);

    //secondaryToolbar = addToolBar(tr("Actions toolbar"));
    //addToolBar(Qt::LeftToolBarArea, secondaryToolbar);
    //secondaryToolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
    //secondaryToolbar->setIconSize(QSize(50,25));
    //secondaryToolbar->addAction(exportAction);
    mainToolbar->addAction(exportAction);

    //connect(mainToolbar,      SIGNAL(orientationChanged(Qt::Orientation)), this, SLOT(mainToolbarOrientation(Qt::Orientation)));
    //connect(secondaryToolbar, SIGNAL(orientationChanged(Qt::Orientation)), this, SLOT(secondaryToolbarOrientation(Qt::Orientation)));

    mainToolbar->setStyleSheet("QToolBar { background: #5D5D5D; border:none; } QToolButton { min-width:171px;min-height:50px;color:#ffffff;background-color: #5D5D5D; font-weight:bold;margin:0px;padding-left:50px;border:none;border-bottom-width: 2px; border-bottom-color: #343431;} QToolButton:hover { min-width:171px;color: #ffffff; background-color: #343431; margin:0px; padding-left:50px; border:none; } QToolButton:checked { min-width:171px; color: #ffffff; background-color: #343431; margin:0px; padding-left:50px; border-bottom-width: 2px; border-bottom-color: #343431; } QToolButton:pressed { min-width:171px; color: #ffffff; background-color: #343431; margin:0px; padding-left:50px; border-bottom-width: 2px; border-bottom-color: #343431; } QToolButton:selected { min-width:171px; color: #ffffff; background-color: #343431; margin:0px; padding-left:50px; border-bottom-width: 2px; border-bottom-color: #343431; }");

    mainToolbarOrientation(mainToolbar->orientation());
    //secondaryToolbarOrientation(secondaryToolbar->orientation());
}