本文整理汇总了C++中createToolBars函数的典型用法代码示例。如果您正苦于以下问题:C++ createToolBars函数的具体用法?C++ createToolBars怎么用?C++ createToolBars使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了createToolBars函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: QMainWindow
BitcoinGUI::BitcoinGUI(QWidget *parent):
QMainWindow(parent),
clientModel(0),
walletModel(0),
encryptWalletAction(0),
changePassphraseAction(0),
aboutQtAction(0),
trayIcon(0),
notificator(0),
rpcConsole(0)
{
resize(850, 550);
setWindowTitle(tr("NobleCoin") + " - " + tr("Wallet"));
#ifndef Q_WS_MAC
qApp->setWindowIcon(QIcon(":icons/bitcoin"));
setWindowIcon(QIcon(":icons/bitcoin"));
#else
setUnifiedTitleAndToolBarOnMac(true);
QApplication::setAttribute(Qt::AA_DontShowIconsInMenus);
#endif
// Accept D&D of URIs
setAcceptDrops(true);
// Create actions for the toolbar, menu bar and tray/dock icon
createActions();
// Create application menu bar
createMenuBar();
// Create the toolbars
createToolBars();
// Create the tray icon (or setup the dock icon)
createTrayIcon();
QPalette p;
p.setColor(QPalette::Window, QColor(0x22, 0x22, 0x22));
p.setColor(QPalette::Button, QColor(0x22, 0x22, 0x22));
p.setColor(QPalette::Mid, QColor(0x22, 0x22, 0x22));
p.setColor(QPalette::Base, QColor(0x22, 0x22, 0x22));
p.setColor(QPalette::AlternateBase, QColor(0x22, 0x22, 0x22));
setPalette(p);
QFile style(":/text/res/text/style.qss");
style.open(QFile::ReadOnly);
setStyleSheet(QString::fromUtf8(style.readAll()));
/* don't override the background color of the toolbar on mac os x due to
the whole component it resides on not being paintable
*/
#ifdef Q_OS_MAC
toolbar->setStyleSheet("QToolBar { background-color: transparent; border: 0px solid black; padding: 3px; }");
#endif
// Create tabs
overviewPage = new OverviewPage();
chatWindow = new ChatWindow(this); //Create Chat Window
blockExplorer = new BlockExplorer(this); //Include Block Explorer
transactionsPage = new QWidget(this);
QVBoxLayout *vbox = new QVBoxLayout();
transactionView = new TransactionView(this);
vbox->addWidget(transactionView);
transactionsPage->setLayout(vbox);
addressBookPage = new AddressBookPage(AddressBookPage::ForEditing, AddressBookPage::SendingTab);
receiveCoinsPage = new AddressBookPage(AddressBookPage::ForEditing, AddressBookPage::ReceivingTab);
sendCoinsPage = new SendCoinsDialog(this);
signVerifyMessageDialog = new SignVerifyMessageDialog(this);
centralWidget = new QStackedWidget(this);
centralWidget->addWidget(chatWindow); //Add Chat Window
centralWidget->addWidget(blockExplorer); //Create Block Explorer
centralWidget->addWidget(overviewPage);
centralWidget->addWidget(transactionsPage);
centralWidget->addWidget(addressBookPage);
centralWidget->addWidget(receiveCoinsPage);
centralWidget->addWidget(sendCoinsPage);
#ifdef FIRST_CLASS_MESSAGING
centralWidget->addWidget(signVerifyMessageDialog);
#endif
setCentralWidget(centralWidget);
// Create status bar
statusBar();
// Status bar notification icons
QFrame *frameBlocks = new QFrame();
frameBlocks->setContentsMargins(0,0,0,0);
frameBlocks->setMinimumWidth(73);
frameBlocks->setMaximumWidth(73);
QHBoxLayout *frameBlocksLayout = new QHBoxLayout(frameBlocks);
frameBlocksLayout->setContentsMargins(3,0,3,0);
frameBlocksLayout->setSpacing(3);
labelEncryptionIcon = new QLabel();
labelConnectionsIcon = new QLabel();
labelBlocksIcon = new QLabel();
frameBlocksLayout->addStretch();
frameBlocksLayout->addWidget(labelEncryptionIcon);
frameBlocksLayout->addStretch();
//.........这里部分代码省略.........
开发者ID:jlcurby,项目名称:NobleCoin,代码行数:101,代码来源:bitcoingui.cpp
示例2: QMainWindow
BitcoinGUI::BitcoinGUI(QWidget *parent):
QMainWindow(parent),
clientModel(0),
walletModel(0),
encryptWalletAction(0),
changePassphraseAction(0),
aboutQtAction(0),
trayIcon(0),
notificator(0),
rpcConsole(0)
{
resize(850, 550);
setWindowTitle(tr("CryptoGold Coin") + " - " + tr("Wallet"));
#ifndef Q_OS_MAC
qApp->setWindowIcon(QIcon(":icons/bitcoin"));
setWindowIcon(QIcon(":icons/bitcoin"));
#else
setUnifiedTitleAndToolBarOnMac(true);
QApplication::setAttribute(Qt::AA_DontShowIconsInMenus);
#endif
// Accept D&D of URIs
setAcceptDrops(true);
// Create actions for the toolbar, menu bar and tray/dock icon
createActions();
// Create application menu bar
createMenuBar();
// Create the toolbars
createToolBars();
// Create the tray icon (or setup the dock icon)
createTrayIcon();
// Create tabs
overviewPage = new OverviewPage();
transactionsPage = new QWidget(this);
QVBoxLayout *vbox = new QVBoxLayout();
transactionView = new TransactionView(this);
vbox->addWidget(transactionView);
transactionsPage->setLayout(vbox);
addressBookPage = new AddressBookPage(AddressBookPage::ForEditing, AddressBookPage::SendingTab);
receiveCoinsPage = new AddressBookPage(AddressBookPage::ForEditing, AddressBookPage::ReceivingTab);
sendCoinsPage = new SendCoinsDialog(this);
signVerifyMessageDialog = new SignVerifyMessageDialog(this);
centralWidget = new QStackedWidget(this);
centralWidget->addWidget(overviewPage);
centralWidget->addWidget(transactionsPage);
centralWidget->addWidget(addressBookPage);
centralWidget->addWidget(receiveCoinsPage);
centralWidget->addWidget(sendCoinsPage);
setCentralWidget(centralWidget);
// Create status bar
statusBar();
// Status bar notification icons
QFrame *frameBlocks = new QFrame();
frameBlocks->setContentsMargins(0,0,0,0);
frameBlocks->setMinimumWidth(56);
frameBlocks->setMaximumWidth(56);
QHBoxLayout *frameBlocksLayout = new QHBoxLayout(frameBlocks);
frameBlocksLayout->setContentsMargins(3,0,3,0);
frameBlocksLayout->setSpacing(3);
labelEncryptionIcon = new QLabel();
labelConnectionsIcon = new QLabel();
labelBlocksIcon = new QLabel();
frameBlocksLayout->addStretch();
frameBlocksLayout->addWidget(labelEncryptionIcon);
frameBlocksLayout->addStretch();
frameBlocksLayout->addWidget(labelConnectionsIcon);
frameBlocksLayout->addStretch();
frameBlocksLayout->addWidget(labelBlocksIcon);
frameBlocksLayout->addStretch();
// Progress bar and label for blocks download
progressBarLabel = new QLabel();
progressBarLabel->setVisible(false);
progressBar = new QProgressBar();
progressBar->setAlignment(Qt::AlignCenter);
progressBar->setVisible(false);
// Override style sheet for progress bar for styles that have a segmented progress bar,
// as they make the text unreadable (workaround for issue #1071)
// See https://qt-project.org/doc/qt-4.8/gallery.html
QString curStyle = qApp->style()->metaObject()->className();
if(curStyle == "QWindowsStyle" || curStyle == "QWindowsXPStyle")
{
progressBar->setStyleSheet("QProgressBar { background-color: #e8e8e8; border: 1px solid grey; border-radius: 7px; padding: 1px; text-align: center; } QProgressBar::chunk { background: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #FF8000, stop: 1 orange); border-radius: 7px; margin: 0px; }");
}
statusBar()->addWidget(progressBarLabel);
statusBar()->addWidget(progressBar);
//.........这里部分代码省略.........
开发者ID:jarno83,项目名称:cryptogold,代码行数:101,代码来源:bitcoingui.cpp
示例3: QMainWindow
BitcoinGUI::BitcoinGUI(QWidget *parent):
QMainWindow(parent),
clientModel(0),
walletModel(0),
toolbar(0),
encryptWalletAction(0),
changePassphraseAction(0),
unlockWalletAction(0),
lockWalletAction(0),
aboutQtAction(0),
trayIcon(0),
notificator(0),
rpcConsole(0),
prevBlocks(0),
nWeight(0)
{
resize(850, 550);
setWindowTitle(tr("CyclingCoin") + " - " + tr("Wallet"));
#ifndef Q_OS_MAC
qApp->setWindowIcon(QIcon(":icons/bitcoin"));
setWindowIcon(QIcon(":icons/bitcoin"));
#else
//setUnifiedTitleAndToolBarOnMac(true);
QApplication::setAttribute(Qt::AA_DontShowIconsInMenus);
#endif
setObjectName("cyclingcoin");
setStyleSheet("#cyclingcoin { background-color: qradialgradient(cx: -0.8, cy: 0, fx: -0.8, fy: 0, radius: 1.4, stop: 0 #efefef, stop: 1 #dedede); }");
// Accept D&D of URIs
setAcceptDrops(true);
// Create actions for the toolbar, menu bar and tray/dock icon
createActions();
// Create application menu bar
createMenuBar();
// Create the toolbars
createToolBars();
// Create the tray icon (or setup the dock icon)
createTrayIcon();
// Create tabs
overviewPage = new OverviewPage();
transactionsPage = new QWidget(this);
QVBoxLayout *vbox = new QVBoxLayout();
transactionView = new TransactionView(this);
vbox->addWidget(transactionView);
transactionsPage->setLayout(vbox);
addressBookPage = new AddressBookPage(AddressBookPage::ForEditing, AddressBookPage::SendingTab);
receiveCoinsPage = new AddressBookPage(AddressBookPage::ForEditing, AddressBookPage::ReceivingTab);
sendCoinsPage = new SendCoinsDialog(this);
signVerifyMessageDialog = new SignVerifyMessageDialog(this);
masternodeManagerPage = new MasternodeManager(this);
messagePage = new MessagePage(this);
centralStackedWidget = new QStackedWidget(this);
centralStackedWidget->setContentsMargins(0, 0, 0, 0);
centralStackedWidget->addWidget(overviewPage);
//centralStackedWidget->addWidget(overviewWidget);
centralStackedWidget->addWidget(transactionsPage);
centralStackedWidget->addWidget(addressBookPage);
centralStackedWidget->addWidget(receiveCoinsPage);
centralStackedWidget->addWidget(sendCoinsPage);
centralStackedWidget->addWidget(masternodeManagerPage);
centralStackedWidget->addWidget(messagePage);
QWidget *centralWidget = new QWidget();
QVBoxLayout *centralLayout = new QVBoxLayout(centralWidget);
centralLayout->setContentsMargins(0,0,0,0);
centralWidget->setContentsMargins(0,0,0,0);
centralLayout->addWidget(centralStackedWidget);
setCentralWidget(centralWidget);
// Create status bar
statusBar();
// Disable size grip because it looks ugly and nobody needs it
statusBar()->setSizeGripEnabled(false);
// Status bar notification icons
QWidget *frameBlocks = new QWidget();
frameBlocks->setContentsMargins(0,0,0,0);
frameBlocks->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
frameBlocks->setStyleSheet("QWidget { background: none; margin-bottom: 5px; }");
QHBoxLayout *frameBlocksLayout = new QHBoxLayout(frameBlocks);
frameBlocksLayout->setContentsMargins(3,0,3,0);
frameBlocksLayout->setSpacing(3);
frameBlocksLayout->setAlignment(Qt::AlignHCenter);
labelEncryptionIcon = new QLabel();
labelStakingIcon = new QLabel();
labelConnectionsIcon = new QLabel();
//.........这里部分代码省略.........
开发者ID:cyclingcoin,项目名称:cyclingcoin,代码行数:101,代码来源:bitcoingui.cpp
示例4: QMainWindow
BitcoinGUI::BitcoinGUI(QWidget *parent):
QMainWindow(parent),
clientModel(0),
walletModel(0),
encryptWalletAction(0),
changePassphraseAction(0),
unlockWalletAction(0),
lockWalletAction(0),
aboutQtAction(0),
trayIcon(0),
notificator(0),
rpcConsole(0)
{
setFixedSize(970, 550);
setWindowTitle(tr("Xuro") + " " + tr("Wallet"));
qApp->setStyleSheet("QMainWindow { background-color:#ecf0f1; font-family:'Open Sans,sans-serif'; } #frame { } QToolBar QLabel { padding-top:15px;padding-bottom:10px;margin:0px; } #spacer { background-color:transparent;border:none; } #toolbar2 { border:none;width:10px; background-color:qlineargradient(y1: 0, y2: 1, stop: 0 rgb(249,0,51), stop: 1 rgb(249,0,51)); } #toolbar { border:none;height:100%;padding-top:20px; background-color:#16151b; text-align: left; color: white; min-width:175px;max-width:175px;} QToolBar QToolButton:hover {background-color:transparent;} QToolBar QToolButton { font-family:Century Gothic;padding-left:20px;padding-right:200px;padding-top:10px;padding-bottom:10px; width:100%; color: white; text-align: left; background-color:transparent; } #labelMiningIcon { padding-left:5px;font-family:Century Gothic;width:100%;font-size:10px;text-align:center;color:white; } QMenu { background-color:#16151b; color:white; padding-bottom:10px; } QMenu::item { color:white; background-color: transparent; } QMenu::item:selected { background-color:transparent; } QMenuBar { background-color:#16151b; color:white; } QMenuBar::item { font-size:12px;padding-bottom:5px;padding-top:5px;padding-left:10px;padding-right:10px;color:white; background-color: transparent; } QMenuBar::item:selected { background-color:transparent; }");
#ifndef Q_OS_MAC
qApp->setWindowIcon(QIcon(":icons/bitcoin"));
setWindowIcon(QIcon(":icons/bitcoin"));
#else
setUnifiedTitleAndToolBarOnMac(true);
QApplication::setAttribute(Qt::AA_DontShowIconsInMenus);
#endif
// Accept D&D of URIs
setAcceptDrops(true);
// Create actions for the toolbar, menu bar and tray/dock icon
createActions();
// Create application menu bar
createMenuBar();
// Create the toolbars
createToolBars();
// Create the tray icon (or setup the dock icon)
createTrayIcon();
// Create tabs
overviewPage = new OverviewPage();
statisticsPage = new StatisticsPage(this);
blockBrowser = new BlockBrowser(this);
// poolBrowser = new PoolBrowser(this);
transactionsPage = new QWidget(this);
QVBoxLayout *vbox = new QVBoxLayout();
transactionView = new TransactionView(this);
vbox->addWidget(transactionView);
transactionsPage->setLayout(vbox);
addressBookPage = new AddressBookPage(AddressBookPage::ForEditing, AddressBookPage::SendingTab);
receiveCoinsPage = new AddressBookPage(AddressBookPage::ForEditing, AddressBookPage::ReceivingTab);
sendCoinsPage = new SendCoinsDialog(this);
signVerifyMessageDialog = new SignVerifyMessageDialog(this);
centralWidget = new QStackedWidget(this);
centralWidget->addWidget(overviewPage);
centralWidget->addWidget(statisticsPage);
centralWidget->addWidget(blockBrowser);
// centralWidget->addWidget(poolBrowser);
centralWidget->addWidget(transactionsPage);
centralWidget->addWidget(addressBookPage);
centralWidget->addWidget(receiveCoinsPage);
centralWidget->addWidget(sendCoinsPage);
setCentralWidget(centralWidget);
// Status bar notification icons
QFrame *frameBlocks = new QFrame();
frameBlocks->setStyleSheet("frameBlocks { background: rgb(0,128,0); }");
frameBlocks->setContentsMargins(0,0,0,0);
frameBlocks->setMinimumWidth(30);
frameBlocks->setMaximumWidth(30);
QVBoxLayout *frameBlocksLayout = new QVBoxLayout(frameBlocks);
frameBlocksLayout->setContentsMargins(1,0,1,0);
frameBlocksLayout->setSpacing(-1);
labelEncryptionIcon = new QLabel();
labelStakingIcon = new QLabel();
labelConnectionsIcon = new QLabel();
labelBlocksIcon = new QLabel();
frameBlocksLayout->addWidget(labelEncryptionIcon);
frameBlocksLayout->addWidget(labelStakingIcon);
frameBlocksLayout->addWidget(labelConnectionsIcon);
frameBlocksLayout->addWidget(labelBlocksIcon);
frameBlocksLayout->addStretch();
if (GetBoolArg("-staking", true))
{
QTimer *timerStakingIcon = new QTimer(labelStakingIcon);
connect(timerStakingIcon, SIGNAL(timeout()), this, SLOT(updateStakingIcon()));
timerStakingIcon->start(30 * 1000);
updateStakingIcon();
}
// Progress bar and label for blocks download
//.........这里部分代码省略.........
开发者ID:Xuro-Project,项目名称:Xuro,代码行数:101,代码来源:bitcoingui.cpp
示例5: QMainWindow
BitcoinGUI::BitcoinGUI(QWidget *parent) :
QMainWindow(parent),
clientModel(0),
encryptWalletAction(0),
changePassphraseAction(0),
aboutQtAction(0),
trayIcon(0),
notificator(0),
rpcConsole(0),
prevBlocks(0)
{
restoreWindowGeometry();
setWindowTitle(tr("Hicoin") + " - " + tr("Wallet"));
#ifndef Q_OS_MAC
QApplication::setWindowIcon(QIcon(":icons/bitcoin"));
setWindowIcon(QIcon(":icons/bitcoin"));
#else
setUnifiedTitleAndToolBarOnMac(true);
QApplication::setAttribute(Qt::AA_DontShowIconsInMenus);
#endif
// Create wallet frame and make it the central widget
walletFrame = new WalletFrame(this);
setCentralWidget(walletFrame);
// Accept D&D of URIs
setAcceptDrops(true);
// Create actions for the toolbar, menu bar and tray/dock icon
// Needs walletFrame to be initialized
createActions();
// Create application menu bar
createMenuBar();
// Create the toolbars
createToolBars();
// Create system tray icon and notification
createTrayIcon();
// Create status bar
statusBar();
// Status bar notification icons
QFrame *frameBlocks = new QFrame();
frameBlocks->setContentsMargins(0,0,0,0);
frameBlocks->setMinimumWidth(56);
frameBlocks->setMaximumWidth(56);
QHBoxLayout *frameBlocksLayout = new QHBoxLayout(frameBlocks);
frameBlocksLayout->setContentsMargins(3,0,3,0);
frameBlocksLayout->setSpacing(3);
labelEncryptionIcon = new QLabel();
labelConnectionsIcon = new QLabel();
labelBlocksIcon = new QLabel();
frameBlocksLayout->addStretch();
frameBlocksLayout->addWidget(labelEncryptionIcon);
frameBlocksLayout->addStretch();
frameBlocksLayout->addWidget(labelConnectionsIcon);
frameBlocksLayout->addStretch();
frameBlocksLayout->addWidget(labelBlocksIcon);
frameBlocksLayout->addStretch();
// Progress bar and label for blocks download
progressBarLabel = new QLabel();
progressBarLabel->setVisible(false);
progressBar = new QProgressBar();
progressBar->setAlignment(Qt::AlignCenter);
progressBar->setVisible(false);
// Override style sheet for progress bar for styles that have a segmented progress bar,
// as they make the text unreadable (workaround for issue #1071)
// See https://qt-project.org/doc/qt-4.8/gallery.html
QString curStyle = QApplication::style()->metaObject()->className();
if(curStyle == "QWindowsStyle" || curStyle == "QWindowsXPStyle")
{
progressBar->setStyleSheet("QProgressBar { background-color: #e8e8e8; border: 1px solid grey; border-radius: 7px; padding: 1px; text-align: center; } QProgressBar::chunk { background: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #FF8000, stop: 1 orange); border-radius: 7px; margin: 0px; }");
}
statusBar()->addWidget(progressBarLabel);
statusBar()->addWidget(progressBar);
statusBar()->addPermanentWidget(frameBlocks);
syncIconMovie = new QMovie(":/movies/update_spinner", "mng", this);
rpcConsole = new RPCConsole(this);
connect(openRPCConsoleAction, SIGNAL(triggered()), rpcConsole, SLOT(show()));
// Install event filter to be able to catch status tip events (QEvent::StatusTip)
this->installEventFilter(this);
// Initially wallet actions should be disabled
setWalletActionsEnabled(false);
}
开发者ID:hicoin,项目名称:hicoin,代码行数:93,代码来源:bitcoingui.cpp
示例6: m_liteApp
LiteEditor::LiteEditor(LiteApi::IApplication *app)
: m_liteApp(app),
m_extension(new Extension),
m_completer(0),
m_funcTip(0),
m_bReadOnly(false)
{
m_widget = new QWidget;
m_editorWidget = new LiteEditorWidget(app,m_widget);
m_editorWidget->setCursorWidth(2);
//m_editorWidget->setAcceptDrops(false);
m_defEditorPalette = m_editorWidget->palette();
createActions();
createToolBars();
createMenu();
m_editorWidget->setContextMenu(m_contextMenu);
QVBoxLayout *layout = new QVBoxLayout;
layout->setMargin(0);
layout->setSpacing(0);
/*
m_toolBar->setStyleSheet("QToolBar {border: 1px ; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #eeeeee, stop: 1 #ababab); }"\
"QToolBar QToolButton { border:1px ; border-radius: 1px; }"\
"QToolBar QToolButton::hover { background-color: #ababab;}"\
"QToolBar::separator {width:2px; margin-left:2px; margin-right:2px; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #dedede, stop: 1 #a0a0a0);}");
*/
QHBoxLayout *toolLayout = new QHBoxLayout;
toolLayout->setMargin(0);
toolLayout->setSpacing(0);
toolLayout->addWidget(m_toolBar);
toolLayout->addWidget(m_infoToolBar);
layout->addLayout(toolLayout);
// QHBoxLayout *hlayout = new QHBoxLayout;
// hlayout->addWidget(m_editorWidget);
// hlayout->addWidget(m_editorWidget->navigateArea());
//layout->addLayout(hlayout);
layout->addWidget(m_editorWidget);
m_widget->setLayout(layout);
m_file = new LiteEditorFile(m_liteApp,this);
m_file->setDocument(m_editorWidget->document());
// QTextOption option = m_editorWidget->document()->defaultTextOption();
// option.setFlags(option.flags() | QTextOption::ShowTabsAndSpaces);
// option.setFlags(option.flags() | QTextOption::AddSpaceForLineAndParagraphSeparators);
// option.setTabs(tabs);
// m_editorWidget->document()->setDefaultTextOption(option);
setEditToolbarVisible(true);
connect(m_file->document(),SIGNAL(modificationChanged(bool)),this,SIGNAL(modificationChanged(bool)));
connect(m_file->document(),SIGNAL(contentsChanged()),this,SIGNAL(contentsChanged()));
connect(m_liteApp->optionManager(),SIGNAL(applyOption(QString)),this,SLOT(applyOption(QString)));
connect(m_liteApp->editorManager(),SIGNAL(colorStyleSchemeChanged()),this,SLOT(loadColorStyleScheme()));
connect(m_liteApp->editorManager(),SIGNAL(editToolbarVisibleChanged(bool)),this,SLOT(setEditToolbarVisible(bool)));
//applyOption("option/liteeditor");
m_extension->addObject("LiteApi.ITextEditor",this);
m_extension->addObject("LiteApi.ILiteEditor",this);
m_extension->addObject("LiteApi.QToolBar",m_toolBar);
m_extension->addObject("LiteApi.QPlainTextEdit",m_editorWidget);
m_extension->addObject("LiteApi.ContextMenu",m_contextMenu);
m_extension->addObject("LiteApi.Menu.Edit",m_editMenu);
m_editorWidget->installEventFilter(m_liteApp->editorManager());
connect(m_editorWidget,SIGNAL(cursorPositionChanged()),this,SLOT(editPositionChanged()));
connect(m_editorWidget,SIGNAL(navigationStateChanged(QByteArray)),this,SLOT(navigationStateChanged(QByteArray)));
connect(m_editorWidget,SIGNAL(overwriteModeChanged(bool)),m_overInfoAct,SLOT(setVisible(bool)));
connect(m_editorWidget,SIGNAL(requestFontZoom(int)),this,SLOT(requestFontZoom(int)));
connect(m_editorWidget,SIGNAL(updateLink(QTextCursor)),this,SIGNAL(updateLink(QTextCursor)));
connect(m_lineInfo,SIGNAL(doubleClickEvent()),this,SLOT(gotoLine()));
connect(m_closeEditorAct,SIGNAL(triggered()),m_liteApp->editorManager(),SLOT(closeEditor()));
}
开发者ID:MichaelLiew1990,项目名称:liteide,代码行数:77,代码来源:liteeditor.cpp
示例7: m_coreImpl
RackWindow::RackWindow() :
m_coreImpl(new CoreImpl(this)),
m_mainSplitter(new RSplitter(Qt::Horizontal)),
m_mapperLoadNewPlugin(new QSignalMapper(this)),
m_mapperClosePlugin(new QSignalMapper(this)),
m_mapperClosePluginHost(new QSignalMapper(this))
{
setContextMenuPolicy(Qt::NoContextMenu);
m_styleSheetName = ":/stylesheets/default.qss";
loadStyleSheet();
m_mainSplitter->setObjectName("rackMainSplitter");
setCentralWidget(m_mainSplitter);
//test webkit crash:
// QPluginLoader pluginLoader("/home/rf/Dokumente/rack-radio-automation-construction-kit/build-release/app/plugins/libwebbrowserplugin.so");
// QObject *plugin = pluginLoader.instance();
// if (plugin)
// {
// IWidgetPlugin *widgetPlugin = qobject_cast<IWidgetPlugin *>(plugin);
// if (widgetPlugin)
// {
// QWidget *newWidget = widgetPlugin->createRWidget(m_coreImpl, this);
// setCentralWidget(newWidget);
// }
// }
//end;
createToolBars();
createPluginHost(0);
RPreviewWidget *previewWidget = new RPreviewWidget(this);
QObject::connect(m_coreImpl, SIGNAL(previewStateChanged(bool)), previewWidget, SLOT(fade(bool)));
QObject::connect(m_mapperLoadNewPlugin, SIGNAL(mapped(QWidget*)), this, SLOT(loadPlugin(QWidget*)));
QObject::connect(m_mapperClosePlugin, SIGNAL(mapped(QObject*)), this, SLOT(deletePluginSwitchAction(QObject*)));
QObject::connect(m_mapperClosePluginHost, SIGNAL(mapped(QWidget*)), this, SLOT(closePluginHost(QWidget*)));
QObject::connect(this, SIGNAL(enterSettingsMode()), m_mainSplitter, SIGNAL(enterSettingsMode()));
QObject::connect(this, SIGNAL(leaveSettingsMode()), m_mainSplitter, SIGNAL(leaveSettingsMode()));
emit leaveSettingsMode();
}
开发者ID:stemuedendron,项目名称:rack-radio-automation-construction-kit,代码行数:62,代码来源:rackwindow.cpp
示例8: QMainWindow
BitcoinGUI::BitcoinGUI(QWidget *parent):
QMainWindow(parent),
clientModel(0),
walletModel(0),
toolbar(0),
encryptWalletAction(0),
changePassphraseAction(0),
unlockWalletAction(0),
lockWalletAction(0),
aboutQtAction(0),
trayIcon(0),
notificator(0),
rpcConsole(0),
prevBlocks(0),
nWeight(0)
{
resize(970, 550);
setWindowTitle(tr("SatoshiChain") + " - " + tr("Wallet"));
qApp->setStyleSheet("QMainWindow { background-image: url(:images/bkg);border:none;font-family:'Open Sans,sans-serif'; } #frame { } QToolBar QLabel { padding-top: 0px;padding-bottom: 0px;spacing: 10px;} QToolBar QLabel:item { padding-top: 0px;padding-bottom: 0px;spacing: 10px;} #spacer { background:rgb(200,200,200);border:none; } #toolbar2 { border:none;width:0px;hight:0px;padding-top:0px;padding-bottom:0px; background: rgb(104,104,104); } #toolbar { border:1px;height:100%;padding-top:20px; background: rgb(200,200,200); text-align: left; color: black;min-width:150px;max-width:150px;} QToolBar QToolButton:hover {background-color:qlineargradient(x1: 0, y1: 0, x2: 2, y2: 2,stop: 0 rgb(200,200,200), stop: 1 rgb(104,104,104),stop: 2 rgb(104,104,104));}"
#ifdef Q_OS_MAC
"QToolBar QToolButton { font-family:sans-serif;font-size:12px;padding-left:20px;padding-right:45px;padding-top:5px;padding-bottom:5px; width:100%; color: rgb(104,104,104); text-align: left; background-color: rgb(200,200,200); }"
#else
"QToolBar QToolButton { font-family:sans-serif;font-size:12px;padding-left:20px;padding-right:150px;padding-top:5px;padding-bottom:5px; width:100%; color: rgb(104,104,104); text-align: left; background-color: rgb(200,200,200); }"
#endif
"#labelMiningIcon { padding-left:5px;font-family:sans-serif;width:100%;font-size:10px;text-align:center;color:black; } QMenu { background: rgb(200,200,200); color:black; padding-bottom:10px; } QMenu::item { color:black; background-color: transparent; } QMenu::item:selected { background-color:qlineargradient(x1: 0, y1: 0, x2: 0.5, y2: 0.5,stop: 0 rgb(200,200,200), stop: 1 rgb(200,200,200)); } QMenuBar { background: rgb(200,200,200); color:black; } QMenuBar::item { font-size:12px;padding-bottom:6px;padding-top:6px;padding-left:15px;padding-right:15px;color:black; background-color: transparent; } QMenuBar::item:selected { background-color:qlineargradient(x1: 0, y1: 0, x2: 0.5, y2: 0.5,stop: 0 rgb(200,200,200), stop: 1 rgb(200,200,200)); }");
#ifndef Q_OS_MAC
qApp->setWindowIcon(QIcon(":icons/bitcoin"));
setWindowIcon(QIcon(":icons/bitcoin"));
#else
setUnifiedTitleAndToolBarOnMac(true);
QApplication::setAttribute(Qt::AA_DontShowIconsInMenus);
#endif
// Accept D&D of URIs
setAcceptDrops(true);
// Create actions for the toolbar, menu bar and tray/dock icon
createActions();
// Create application menu bar
createMenuBar();
// Create the toolbars
createToolBars();
// Create the tray icon (or setup the dock icon)
createTrayIcon();
// Create tabs
overviewPage = new OverviewPage();
//transactionsPage = new QWidget(this);
//QVBoxLayout *vbox = new QVBoxLayout();
//transactionView = new TransactionView(this);
//vbox->addWidget(transactionView);
//transactionsPage->setLayout(vbox);
//addressBookPage = new AddressBookPage(AddressBookPage::ForEditing, AddressBookPage::SendingTab);
//receiveCoinsPage = new AddressBookPage(AddressBookPage::ForEditing, AddressBookPage::ReceivingTab);
//sendCoinsPage = new SendCoinsDialog(this);
signVerifyMessageDialog = new SignVerifyMessageDialog(this);
centralStackedWidget = new QStackedWidget(this);
centralStackedWidget->addWidget(overviewPage);
//centralStackedWidget->addWidget(transactionsPage);
//centralStackedWidget->addWidget(addressBookPage);
//centralStackedWidget->addWidget(receiveCoinsPage);
//centralStackedWidget->addWidget(sendCoinsPage);
QWidget *centralWidget = new QWidget();
QVBoxLayout *centralLayout = new QVBoxLayout(centralWidget);
#ifndef Q_OS_MAC
centralLayout->addWidget(appMenuBar);
#endif
centralLayout->addWidget(centralStackedWidget);
setCentralWidget(centralWidget);
// Status bar notification icons
labelEncryptionIcon = new QLabel();
labelStakingIcon = new QLabel();
labelConnectionsIcon = new QLabel();
labelBlocksIcon = new QLabel();
//actionConvertIcon = new QAction(QIcon(":/icons/statistics"), tr(""), this);
if (GetBoolArg("-staking", true))
{
QTimer *timerStakingIcon = new QTimer(labelStakingIcon);
connect(timerStakingIcon, SIGNAL(timeout()), this, SLOT(updateStakingIcon()));
timerStakingIcon->start(30 * 1000);
updateStakingIcon();
}
// Progress bar and label for blocks download
progressBarLabel = new QLabel();
progressBarLabel->setVisible(false);
progressBar = new QProgressBar();
//.........这里部分代码省略.........
开发者ID:satoshichain,项目名称:satoshichain,代码行数:101,代码来源:bitcoingui.cpp
示例9: QMainWindow
PdfViewer::PdfViewer()
: QMainWindow()
, m_currentPage(0)
, m_showMenuBar(false)
, m_reloadTimer(0)
, m_findWidget(0)
{
//QTime t = QTime::currentTime();
setWindowTitle(QCoreApplication::applicationName());
// set icon theme search paths
QStringList themeSearchPaths;
themeSearchPaths << QDir::homePath() + "/.local/share/icons/";
themeSearchPaths << QIcon::themeSearchPaths();
QIcon::setThemeSearchPaths(themeSearchPaths);
// setup shortcut handler
#ifndef QT_NO_SHORTCUT
ShortcutHandler *shortcutHandler = new ShortcutHandler(this);
#endif // QT_NO_SHORTCUT
QSettings *settingsObject = new QSettings(this);
#ifndef QT_NO_SHORTCUT
shortcutHandler->setSettingsObject(settingsObject);
#endif // QT_NO_SHORTCUT
// setup recent files menu
m_fileOpenRecentAction = new RecentFilesAction(Icon("document-open-recent"), tr("Open &Recent", "Action: open recent file"), this);
m_fileOpenRecentAction->setSettingsObject(settingsObject);
connect(m_fileOpenRecentAction, SIGNAL(fileSelected(QString)), this, SLOT(slotLoadDocument(QString)));
// setup the main view
m_pdfView = new PdfView(this);
connect(m_pdfView, SIGNAL(scrollPositionChanged(qreal,int)), this, SLOT(slotViewScrollPositionChanged(qreal,int)));
connect(m_pdfView, SIGNAL(openTexDocument(QString,int)), this, SLOT(slotOpenTexDocument(QString,int)));
connect(m_pdfView, SIGNAL(mouseToolChanged(PdfView::MouseTool)), this, SLOT(slotSelectMouseTool(PdfView::MouseTool)));
// setup the central widget
QWidget *mainWidget = new QWidget(this);
QVBoxLayout *mainLayout = new QVBoxLayout;
mainLayout->addWidget(m_pdfView);
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setSpacing(0);
mainWidget->setLayout(mainLayout);
setCentralWidget(mainWidget);
createActions(); // must happen after the setup of m_pdfView
QSettings settings;
settings.beginGroup("MainWindow");
m_showMenuBar = settings.value("ShowMenuBar", false).toBool();
settings.endGroup();
if (m_showMenuBar)
{
createMenus();
createToolBars();
}
else
createToolBarsWhenNoMenuBar();
createDocks();
Q_FOREACH(DocumentObserver *obs, m_observers) {
obs->m_viewer = this;
}
// activate AA by default
m_settingsTextAAAction->setChecked(true);
m_settingsGfxAAAction->setChecked(true);
// watch file changes
m_watcher = new QFileSystemWatcher(this);
// commented out by amkhlv:
// connect(m_watcher, SIGNAL(fileChanged(QString)), this, SLOT(slotReloadWhenIdle(QString)));
// setup presentation view (we must do this here in order to have access to the shortcuts)
m_presentationWidget = new PresentationWidget;
connect(m_presentationWidget, SIGNAL(pageChanged(int)), this, SLOT(slotGoToPage(int)));
connect(m_presentationWidget, SIGNAL(doAction(Poppler::LinkAction::ActionType)), this, SLOT(slotDoAction(Poppler::LinkAction::ActionType)));
readSettings();
m_pdfView->setFocus();
//qCritical() << t.msecsTo(QTime::currentTime());
}
开发者ID:amkhlv,项目名称:pdfviewer,代码行数:82,代码来源:viewer.cpp
示例10: QMainWindow
BitcoinGUI::BitcoinGUI(const NetworkStyle *networkStyle, QWidget *parent) :
QMainWindow(parent),
clientModel(0),
walletFrame(0),
unitDisplayControl(0),
labelEncryptionIcon(0),
labelConnectionsIcon(0),
labelBlocksIcon(0),
progressBarLabel(0),
progressBar(0),
progressDialog(0),
appMenuBar(0),
overviewAction(0),
historyAction(0),
quitAction(0),
sendCoinsAction(0),
usedSendingAddressesAction(0),
usedReceivingAddressesAction(0),
signMessageAction(0),
verifyMessageAction(0),
aboutAction(0),
receiveCoinsAction(0),
optionsAction(0),
toggleHideAction(0),
encryptWalletAction(0),
backupWalletAction(0),
changePassphraseAction(0),
aboutQtAction(0),
openRPCConsoleAction(0),
openAction(0),
showHelpMessageAction(0),
trayIcon(0),
trayIconMenu(0),
notificator(0),
rpcConsole(0),
prevBlocks(0),
spinnerFrame(0)
{
/* Open CSS when configured */
this->setStyleSheet(GUIUtil::loadStyleSheet());
GUIUtil::restoreWindowGeometry("nWindow", QSize(850, 550), this);
QString windowTitle = tr("DarkNet Core") + " - ";
#ifdef ENABLE_WALLET
/* if compiled with wallet support, -disablewallet can still disable the wallet */
enableWallet = !GetBoolArg("-disablewallet", false);
#else
enableWallet = false;
#endif // ENABLE_WALLET
if(enableWallet)
{
windowTitle += tr("Wallet");
} else {
windowTitle += tr("Node");
}
QString userWindowTitle = QString::fromStdString(GetArg("-windowtitle", ""));
if(!userWindowTitle.isEmpty()) windowTitle += " - " + userWindowTitle;
windowTitle += " " + networkStyle->getTitleAddText();
#ifndef Q_OS_MAC
QApplication::setWindowIcon(networkStyle->getAppIcon());
setWindowIcon(networkStyle->getAppIcon());
#else
MacDockIconHandler::instance()->setIcon(networkStyle->getAppIcon());
#endif
setWindowTitle(windowTitle);
#if defined(Q_OS_MAC) && QT_VERSION < 0x050000
// This property is not implemented in Qt 5. Setting it has no effect.
// A replacement API (QtMacUnifiedToolBar) is available in QtMacExtras.
setUnifiedTitleAndToolBarOnMac(true);
#endif
rpcConsole = new RPCConsole(enableWallet ? this : 0);
#ifdef ENABLE_WALLET
if(enableWallet)
{
/** Create wallet frame*/
walletFrame = new WalletFrame(this);
} else
#endif // ENABLE_WALLET
{
/* When compiled without wallet or -disablewallet is provided,
* the central widget is the rpc console.
*/
setCentralWidget(rpcConsole);
}
// Accept D&D of URIs
setAcceptDrops(true);
// Create actions for the toolbar, menu bar and tray/dock icon
// Needs walletFrame to be initialized
createActions(networkStyle);
// Create application menu bar
createMenuBar();
// Create the toolbars
createToolBars();
//.........这里部分代码省略.........
开发者ID:Saints97,项目名称:Katana,代码行数:101,代码来源:bitcoingui.cpp
示例11: m_rootPath
LiteApp::LiteApp()
: m_rootPath(LiteApp::getRootPath()),
m_applicationPath(QApplication::applicationDirPath()),
m_toolPath(LiteApp::getToolPath()),
m_pluginPath(LiteApp::getPluginPath()),
m_resourcePath(LiteApp::getResoucePath()),
m_storagePath(LiteApp::getStoragePath())
{
QSettings global(m_resourcePath+"/liteapp/config/global.ini",QSettings::IniFormat);
bool storeLocal = global.value(LITEIDE_STORELOCAL,false).toBool();
if (storeLocal) {
m_settings = new QSettings(m_resourcePath+"/liteapp/config/liteide.ini", QSettings::IniFormat);
} else {
m_settings = new QSettings(QSettings::IniFormat,QSettings::UserScope,"liteide","liteide",this);
}
m_extension = new Extension;
m_mainwindow = new MainWindow(this);
QString style = this->settings()->value(LITEAPP_STYLE,"sidebar").toString();
if (style == "splitter") {
SplitWindowStyle *style = new SplitWindowStyle(this,m_mainwindow);
m_mainwindow->setWindowStyle(style);
} else {
SideWindowStyle *style = new SideWindowStyle(this,m_mainwindow);
m_mainwindow->setWindowStyle(style);
}
m_toolWindowManager = new ToolWindowManager;
m_htmlWidgetManager = new HtmlWidgetManager;
m_actionManager = new ActionManager;
m_projectManager = new ProjectManager;
m_fileManager = new FileManager;
m_editorManager = new EditorManager;
m_mimeTypeManager = new MimeTypeManager;
m_optionManager = new OptionManager;
m_goProxy = new GoProxy(this);
m_actionManager->initWithApp(this);
m_mainwindow->createToolWindowMenu();
m_toolWindowManager->initWithApp(this);
m_mimeTypeManager->initWithApp(this);
m_projectManager->initWithApp(this);
m_fileManager->initWithApp(this);
m_editorManager->initWithApp(this);
m_optionManager->initWithApp(this);
//m_mainwindow->setCentralWidget(m_editorManager->widget());
m_mainwindow->splitter()->addWidget(m_editorManager->widget());
//m_mainwindow->splitter()->addWidget(m_outputManager->widget());
m_mainwindow->splitter()->setStretchFactor(0,50);
//m_mainwindow->setStatusBar(m_outputManager->statusBar());
m_htmlWidgetManager->addFactory(new TextBrowserHtmlWidgetFactory(this));
m_extension->addObject("LiteApi.IMimeTypeManager",m_mimeTypeManager);
m_extension->addObject("LiteApi.IProjectManager",m_projectManager);
m_extension->addObject("LiteApi.IEditManager",m_editorManager);
m_extension->addObject("LiteApi.IOptoinManager",m_optionManager);
m_extension->addObject("LiteApi.IToolWindowManager",m_toolWindowManager);
m_extension->addObject("LiteApi.QMainWindow",m_mainwindow);
m_extension->addObject("LiteApi.QMainWindow.QSplitter",m_mainwindow->splitter());
m_extension->addObject("LiteApi.IHtmlWidgetManager",m_htmlWidgetManager);
//add actions
connect(m_projectManager,SIGNAL(currentProjectChanged(LiteApi::IProject*)),this,SLOT(currentProjectChanged(LiteApi::IProject*)));
connect(m_editorManager,SIGNAL(currentEditorChanged(LiteApi::IEditor*)),m_projectManager,SLOT(currentEditorChanged(LiteApi::IEditor*)));
connect(m_editorManager,SIGNAL(currentEditorChanged(LiteApi::IEditor*)),m_mainwindow,SLOT(currentEditorChanged(LiteApi::IEditor*)));
connect(m_editorManager,SIGNAL(editorModifyChanged(LiteApi::IEditor*,bool)),m_mainwindow,SLOT(editorModifyChanged(LiteApi::IEditor*,bool)));
connect(m_editorManager,SIGNAL(currentEditorChanged(LiteApi::IEditor*)),this,SLOT(currentEditorChanged(LiteApi::IEditor*)));
connect(m_editorManager,SIGNAL(tabAddRequest()),m_fileManager,SLOT(openEditors()));
connect(m_editorManager,SIGNAL(editorSaved(LiteApi::IEditor*)),m_fileManager,SLOT(editorSaved(LiteApi::IEditor*)));
connect(m_editorManager,SIGNAL(editorCreated(LiteApi::IEditor*)),m_fileManager,SLOT(editorCreated(LiteApi::IEditor*)));
connect(m_editorManager,SIGNAL(editorAboutToClose(LiteApi::IEditor*)),m_fileManager,SLOT(editorAboutToClose(LiteApi::IEditor*)));
connect(m_editorManager,SIGNAL(doubleClickedTab()),m_mainwindow,SLOT(showOrHideToolWindow()));
connect(m_optionManager,SIGNAL(applyOption(QString)),m_fileManager,SLOT(applyOption(QString)));
connect(m_optionManager,SIGNAL(applyOption(QString)),m_projectManager,SLOT(applyOption(QString)));
connect(m_optionManager,SIGNAL(applyOption(QString)),this,SLOT(applyOption(QString)));
QAction *esc = new QAction(tr("Escape"),this);
m_actionManager->getActionContext(this,"App")->regAction(esc,"Escape","ESC");
m_mainwindow->addAction(esc);
connect(esc,SIGNAL(triggered()),this,SLOT(escape()));
createActions();
createMenus();
createToolBars();
m_editorManager->createActions();
m_logOutput = new TextOutput(this);
//m_outputManager->addOutuput(m_logOutput,tr("Console"));
m_logAct = m_toolWindowManager->addToolWindow(Qt::BottomDockWidgetArea,m_logOutput,"eventlog",tr("Event Log"),true);
connect(m_logOutput,SIGNAL(dbclickEvent(QTextCursor)),this,SLOT(dbclickLogOutput(QTextCursor)));
m_optionAct = new QAction(tr("Options"),this);
m_optionAct->setMenuRole(QAction::PreferencesRole);
m_actionManager->setViewMenuSeparator("sep/option",true);
m_actionManager->insertViewMenuAction(m_optionAct,"sep/option");
//.........这里部分代码省略.........
开发者ID:russel,项目名称:liteide,代码行数:101,代码来源:liteapp.cpp
示例12: QMainWindow
BitcoinGUI::BitcoinGUI(QWidget *parent):
QMainWindow(parent),
clientModel(0),
walletModel(0),
encryptWalletAction(0),
changePassphraseAction(0),
unlockWalletAction(0),
lockWalletAction(0),
aboutQtAction(0),
trayIcon(0),
notificator(0),
rpcConsole(0)
{
resize(850, 550);
setWindowTitle(tr("StarCoin") + " - " + tr("Wallet"));
// Prevent resizing.
setFixedSize(size());
// Remove "hand" cursor from status bar.
this->statusBar()->setSizeGripEnabled(false);
// this->setStyleSheet(".BitcoinGUI { background-image: url(:/images/background-no-logo); } \
// * { color: rgb(255, 255, 255); \
// background-color: rgba(255, 255, 255, 0); \
// selection-background-color: rgb(2, 6, 150); \
// } \
// QToolTip { color: #ffffff; background-color: #2a82da; border: 1px solid white; } \
// QTableView { background-color: rgb(2, 6, 15); alternate-background-color: rgb(2, 6, 50); } \
// QHeaderView::section { \
// background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, \
// stop:0 rgb(2, 6, 15), stop: 0.5 rgb(2, 6, 70), \
// stop: 0.6 rgb(2, 6, 70), stop:1 rgb(2, 6, 15)); \
// color: white; \
// padding-left: 4px; \
// border: 1px solid #6c6c6c; \
// } \
// QFrame#frameMain, QToolButton:on { \
// background-color: rgba(11, 38, 73, 210); \
// border: 1px solid rgb(0, 186, 255); \
// border-radius: 4px; \
// } \
// QValueComboBox, QLineEdit, QDoubleSpinBox { \
// border: 1px solid rgb(2, 6, 150) \
// }\
// ");
#ifndef Q_OS_MAC
qApp->setWindowIcon(QIcon(":icons/bitcoin"));
setWindowIcon(QIcon(":icons/bitcoin"));
#else
setUnifiedTitleAndToolBarOnMac(true);
QApplication::setAttribute(Qt::AA_DontShowIconsInMenus);
#endif
// Accept D&D of URIs
setAcceptDrops(true);
// Create actions for the toolbar, menu bar and tray/dock icon
createActions();
// Create application menu bar
createMenuBar();
// Create the toolbars
createToolBars();
// Create the tray icon (or setup the dock icon)
createTrayIcon();
// Create tabs
overviewPage = new OverviewPage(this);
{
transactionsPage = new QWidget(this);
QHBoxLayout* hl = new QHBoxLayout(transactionsPage);
QFrame* frameMain = new QFrame(transactionsPage);
hl->addWidget(frameMain);
frameMain->setObjectName(QString("frameMain"));
frameMain->setFrameShape(QFrame::NoFrame);
QVBoxLayout *vbox = new QVBoxLayout(frameMain);
transactionView = new TransactionView(transactionsPage);
vbox->addWidget(transactionView);
frameMain->setLayout(vbox);
}
addressBookPage = new AddressBookPage(AddressBookPage::ForEditing, AddressBookPage::SendingTab);
receiveCoinsPage = new AddressBookPage(AddressBookPage::ForEditing, AddressBookPage::ReceivingTab);
sendCoinsPage = new SendCoinsDialog(this);
signVerifyMessageDialog.reset(new SignVerifyMessageDialog);
centralWidget = new QStackedWidget(this);
centralWidget->addWidget(overviewPage);
centralWidget->addWidget(transactionsPage);
centralWidget->addWidget(addressBookPage);
centralWidget->addWidget(receiveCoinsPage);
centralWidget->addWidget(sendCoinsPage);
setCentralWidget(centralWidget);
// Create status bar
statusBar();
//.........这里部分代码省略.........
开发者ID:coinstar,项目名称:star,代码行数:101,代码来源:bitcoingui.cpp
|
请发表评论