您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ toggleHidden函数代码示例

51自学网 2021-06-03 08:54:58
  C++
这篇教程C++ toggleHidden函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中toggleHidden函数的典型用法代码示例。如果您正苦于以下问题:C++ toggleHidden函数的具体用法?C++ toggleHidden怎么用?C++ toggleHidden使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了toggleHidden函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: QActionGroup

//.........这里部分代码省略.........    sendCoinsMenuAction->setToolTip(sendCoinsMenuAction->statusTip());    receiveCoinsAction = new QAction(platformStyle->SingleColorIcon(":/icons/receiving_addresses"), tr("&Receive"), this);    receiveCoinsAction->setStatusTip(tr("Request payments (generates QR codes and bitcoin: URIs)"));    receiveCoinsAction->setToolTip(receiveCoinsAction->statusTip());    receiveCoinsAction->setCheckable(true);    receiveCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_3));    tabGroup->addAction(receiveCoinsAction);    receiveCoinsMenuAction = new QAction(platformStyle->TextColorIcon(":/icons/receiving_addresses"), receiveCoinsAction->text(), this);    receiveCoinsMenuAction->setStatusTip(receiveCoinsAction->statusTip());    receiveCoinsMenuAction->setToolTip(receiveCoinsMenuAction->statusTip());    historyAction = new QAction(platformStyle->SingleColorIcon(":/icons/history"), tr("&Transactions"), this);    historyAction->setStatusTip(tr("Browse transaction history"));    historyAction->setToolTip(historyAction->statusTip());    historyAction->setCheckable(true);    historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4));    tabGroup->addAction(historyAction);#ifdef ENABLE_WALLET    // These showNormalIfMinimized are needed because Send Coins and Receive Coins    // can be triggered from the tray menu, and need to show the GUI to be useful.    connect(overviewAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(overviewAction, SIGNAL(triggered()), this, SLOT(gotoOverviewPage()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage()));    connect(sendCoinsMenuAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(sendCoinsMenuAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage()));    connect(receiveCoinsMenuAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(receiveCoinsMenuAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage()));#endif // ENABLE_WALLET    quitAction = new QAction(platformStyle->TextColorIcon(":/icons/quit"), tr("E&xit"), this);    quitAction->setStatusTip(tr("Quit application"));    quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));    quitAction->setMenuRole(QAction::QuitRole);    aboutAction = new QAction(platformStyle->TextColorIcon(":/icons/about"), tr("&About Bitcoin Core"), this);    aboutAction->setStatusTip(tr("Show information about VCoin Core"));    aboutAction->setMenuRole(QAction::AboutRole);    aboutQtAction = new QAction(platformStyle->TextColorIcon(":/icons/about_qt"), tr("About &Qt"), this);    aboutQtAction->setStatusTip(tr("Show information about Qt"));    aboutQtAction->setMenuRole(QAction::AboutQtRole);    optionsAction = new QAction(platformStyle->TextColorIcon(":/icons/options"), tr("&Options..."), this);    optionsAction->setStatusTip(tr("Modify configuration options for VCoin"));    optionsAction->setMenuRole(QAction::PreferencesRole);    toggleHideAction = new QAction(platformStyle->TextColorIcon(":/icons/about"), tr("&Show / Hide"), this);    toggleHideAction->setStatusTip(tr("Show or hide the main Window"));    encryptWalletAction = new QAction(platformStyle->TextColorIcon(":/icons/lock_closed"), tr("&Encrypt Wallet..."), this);    encryptWalletAction->setStatusTip(tr("Encrypt the private keys that belong to your wallet"));    encryptWalletAction->setCheckable(true);    backupWalletAction = new QAction(platformStyle->TextColorIcon(":/icons/filesave"), tr("&Backup Wallet..."), this);    backupWalletAction->setStatusTip(tr("Backup wallet to another location"));    changePassphraseAction = new QAction(platformStyle->TextColorIcon(":/icons/key"), tr("&Change Passphrase..."), this);    changePassphraseAction->setStatusTip(tr("Change the passphrase used for wallet encryption"));    signMessageAction = new QAction(platformStyle->TextColorIcon(":/icons/edit"), tr("Sign &message..."), this);    signMessageAction->setStatusTip(tr("Sign messages with your VCoin addresses to prove you own them"));    verifyMessageAction = new QAction(platformStyle->TextColorIcon(":/icons/verify"), tr("&Verify message..."), this);    verifyMessageAction->setStatusTip(tr("Verify messages to ensure they were signed with specified VCoin addresses"));    openRPCConsoleAction = new QAction(platformStyle->TextColorIcon(":/icons/debugwindow"), tr("&Debug window"), this);    openRPCConsoleAction->setStatusTip(tr("Open debugging and diagnostic console"));    usedSendingAddressesAction = new QAction(platformStyle->TextColorIcon(":/icons/address-book"), tr("&Sending addresses..."), this);    usedSendingAddressesAction->setStatusTip(tr("Show the list of used sending addresses and labels"));    usedReceivingAddressesAction = new QAction(platformStyle->TextColorIcon(":/icons/address-book"), tr("&Receiving addresses..."), this);    usedReceivingAddressesAction->setStatusTip(tr("Show the list of used receiving addresses and labels"));    openAction = new QAction(platformStyle->TextColorIcon(":/icons/open"), tr("Open &URI..."), this);    openAction->setStatusTip(tr("Open a vcoin: URI or payment request"));    showHelpMessageAction = new QAction(platformStyle->TextColorIcon(":/icons/info"), tr("&Command-line options"), this);    showHelpMessageAction->setMenuRole(QAction::NoRole);    showHelpMessageAction->setStatusTip(tr("Show the VCoin Core help message to get a list with possible VCoin command-line options"));    connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));    connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked()));    connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt()));    connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked()));    connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden()));    connect(showHelpMessageAction, SIGNAL(triggered()), this, SLOT(showHelpMessageClicked()));#ifdef ENABLE_WALLET    if(walletFrame)    {        connect(encryptWalletAction, SIGNAL(triggered(bool)), walletFrame, SLOT(encryptWallet(bool)));        connect(backupWalletAction, SIGNAL(triggered()), walletFrame, SLOT(backupWallet()));        connect(changePassphraseAction, SIGNAL(triggered()), walletFrame, SLOT(changePassphrase()));        connect(signMessageAction, SIGNAL(triggered()), this, SLOT(gotoSignMessageTab()));        connect(verifyMessageAction, SIGNAL(triggered()), this, SLOT(gotoVerifyMessageTab()));        connect(usedSendingAddressesAction, SIGNAL(triggered()), walletFrame, SLOT(usedSendingAddresses()));        connect(usedReceivingAddressesAction, SIGNAL(triggered()), walletFrame, SLOT(usedReceivingAddresses()));        connect(openAction, SIGNAL(triggered()), this, SLOT(openClicked()));    }#endif // ENABLE_WALLET}
开发者ID:vcoin-project,项目名称:vcoincore,代码行数:101,


示例2: QActionGroup

void BitcoinGUI::createActions(){    QActionGroup *tabGroup = new QActionGroup(this);    overviewAction = new QAction(QIcon(":/icons/overview"), tr("&Overview"), this);    overviewAction->setToolTip(tr("Show general overview of wallet"));    overviewAction->setCheckable(true);    overviewAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_1));    tabGroup->addAction(overviewAction);    sendCoinsAction = new QAction(QIcon(":/icons/send"), tr("&Send coins"), this);    sendCoinsAction->setToolTip(tr("Send coins to a Faucet address"));    sendCoinsAction->setCheckable(true);    sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2));    tabGroup->addAction(sendCoinsAction);    receiveCoinsAction = new QAction(QIcon(":/icons/receiving_addresses"), tr("&Receive coins"), this);    receiveCoinsAction->setToolTip(tr("Show the list of addresses for receiving payments"));    receiveCoinsAction->setCheckable(true);    receiveCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_3));    tabGroup->addAction(receiveCoinsAction);    historyAction = new QAction(QIcon(":/icons/history"), tr("&Transactions"), this);    historyAction->setToolTip(tr("Browse transaction history"));    historyAction->setCheckable(true);    historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4));    tabGroup->addAction(historyAction);    addressBookAction = new QAction(QIcon(":/icons/address-book"), tr("&Address Book"), this);    addressBookAction->setToolTip(tr("Edit the list of stored addresses and labels"));    addressBookAction->setCheckable(true);    addressBookAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_5));    tabGroup->addAction(addressBookAction);    statisticsAction = new QAction(QIcon(":/icons/statistics"), tr("&Statistics"), this);    statisticsAction->setToolTip(tr("View statistics"));    statisticsAction->setCheckable(true);    tabGroup->addAction(statisticsAction);    blockAction = new QAction(QIcon(":/icons/block"), tr("&Block Browser"), this);    blockAction->setToolTip(tr("Explore the BlockChain"));    blockAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_6));    blockAction->setCheckable(true);    tabGroup->addAction(blockAction);    connect(overviewAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(overviewAction, SIGNAL(triggered()), this, SLOT(gotoOverviewPage()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage()));    connect(addressBookAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(addressBookAction, SIGNAL(triggered()), this, SLOT(gotoAddressBookPage()));    connect(statisticsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(statisticsAction, SIGNAL(triggered()), this, SLOT(gotoStatisticsPage()));    connect(blockAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(blockAction, SIGNAL(triggered()), this, SLOT(gotoBlockBrowser()));    quitAction = new QAction(QIcon(":/icons/quit"), tr("E&xit"), this);    quitAction->setToolTip(tr("Quit application"));    quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));    quitAction->setMenuRole(QAction::QuitRole);    aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About Faucet"), this);    aboutAction->setToolTip(tr("Show information about Faucet"));    aboutAction->setMenuRole(QAction::AboutRole);    aboutQtAction = new QAction(QIcon(":/trolltech/qmessagebox/images/qtlogo-64.png"), tr("About &Qt"), this);    aboutQtAction->setToolTip(tr("Show information about Qt"));    aboutQtAction->setMenuRole(QAction::AboutQtRole);    optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this);    optionsAction->setToolTip(tr("Modify configuration options for Faucet"));    optionsAction->setMenuRole(QAction::PreferencesRole);    toggleHideAction = new QAction(QIcon(":/icons/bitcoin"), tr("&Show / Hide"), this);    encryptWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Encrypt Wallet..."), this);    encryptWalletAction->setToolTip(tr("Encrypt or decrypt wallet"));    encryptWalletAction->setCheckable(true);    backupWalletAction = new QAction(QIcon(":/icons/filesave"), tr("&Backup Wallet..."), this);    backupWalletAction->setToolTip(tr("Backup wallet to another location"));    changePassphraseAction = new QAction(QIcon(":/icons/key"), tr("&Change Passphrase..."), this);    changePassphraseAction->setToolTip(tr("Change the passphrase used for wallet encryption"));    unlockWalletAction = new QAction(QIcon(":/icons/lock_open"), tr("&Unlock Wallet..."), this);    unlockWalletAction->setToolTip(tr("Unlock wallet"));    lockWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Lock Wallet"), this);    lockWalletAction->setToolTip(tr("Lock wallet"));    signMessageAction = new QAction(QIcon(":/icons/edit"), tr("Sign &message..."), this);    verifyMessageAction = new QAction(QIcon(":/icons/transaction_0"), tr("&Verify message..."), this);    exportAction = new QAction(QIcon(":/icons/export"), tr("&Export..."), this);    exportAction->setToolTip(tr("Export the data in the current tab to a file"));    openRPCConsoleAction = new QAction(QIcon(":/icons/debugwindow"), tr("&Debug window"), this);    openRPCConsoleAction->setToolTip(tr("Open debugging and diagnostic console"));    connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));    connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked()));    connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt()));    connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked()));    connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden()));    connect(encryptWalletAction, SIGNAL(triggered(bool)), this, SLOT(encryptWallet(bool)));    connect(backupWalletAction, SIGNAL(triggered()), this, SLOT(backupWallet()));//.........这里部分代码省略.........
开发者ID:basharbm1,项目名称:Faucet,代码行数:101,


示例3: QActionGroup

void BitcoinGUI::createActions(){    QActionGroup *tabGroup = new QActionGroup(this);    overviewAction = new QAction(QIcon(":/icons/overview"), tr("&Overview"), this);    overviewAction->setToolTip(tr("Show general overview of wallet"));    overviewAction->setCheckable(true);    overviewAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_1));    tabGroup->addAction(overviewAction);    historyAction = new QAction(QIcon(":/icons/history"), tr("&Transactions"), this);    historyAction->setToolTip(tr("Browse transaction history"));    historyAction->setCheckable(true);    historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4));    tabGroup->addAction(historyAction);    addressBookAction = new QAction(QIcon(":/icons/address-book"), tr("&Address Book"), this);    addressBookAction->setToolTip(tr("Edit the list of stored addresses and labels"));    addressBookAction->setCheckable(true);    addressBookAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_5));    tabGroup->addAction(addressBookAction);    receiveCoinsAction = new QAction(QIcon(":/icons/receiving_addresses"), tr("&Receive coins"), this);    receiveCoinsAction->setToolTip(tr("Show the list of addresses for receiving payments"));    receiveCoinsAction->setCheckable(true);    receiveCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_3));    tabGroup->addAction(receiveCoinsAction);    sendCoinsAction = new QAction(QIcon(":/icons/send"), tr("&Send coins"), this);    sendCoinsAction->setToolTip(tr("Send coins to a " COIN_NAME " address"));    sendCoinsAction->setCheckable(true);    sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2));    tabGroup->addAction(sendCoinsAction);    messageAction = new QAction(QIcon(":/icons/edit"), tr("Sign &message"), this);    messageAction->setToolTip(tr("Prove you control an address"));#ifdef FIRST_CLASS_MESSAGING    messageAction->setCheckable(true);#endif    tabGroup->addAction(messageAction);    connect(overviewAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(overviewAction, SIGNAL(triggered()), this, SLOT(gotoOverviewPage()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage()));    connect(addressBookAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(addressBookAction, SIGNAL(triggered()), this, SLOT(gotoAddressBookPage()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage()));    connect(messageAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(messageAction, SIGNAL(triggered()), this, SLOT(gotoMessagePage()));    quitAction = new QAction(QIcon(":/icons/quit"), tr("E&xit"), this);    quitAction->setToolTip(tr("Quit application"));    quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));    quitAction->setMenuRole(QAction::QuitRole);    aboutAction = new QAction(QIcon(":/icons/coin"), tr("&About %1").arg(qApp->applicationName()), this);    aboutAction->setToolTip(tr("Show information about " COIN_NAME));    aboutAction->setMenuRole(QAction::AboutRole);    aboutQtAction = new QAction(tr("About &Qt"), this);    aboutQtAction->setToolTip(tr("Show information about Qt"));    aboutQtAction->setMenuRole(QAction::AboutQtRole);    optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this);    optionsAction->setToolTip(tr("Modify configuration options for " COIN_NAME));    optionsAction->setMenuRole(QAction::PreferencesRole);    toggleHideAction = new QAction(QIcon(":/icons/coin"), tr("Show/Hide &" COIN_NAME), this);    toggleHideAction->setToolTip(tr("Show or hide the " COIN_NAME " window"));    exportAction = new QAction(QIcon(":/icons/export"), tr("&Export..."), this);    exportAction->setToolTip(tr("Export the data in the current tab to a file"));    encryptWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Encrypt Wallet"), this);    encryptWalletAction->setToolTip(tr("Encrypt or decrypt wallet"));    encryptWalletAction->setCheckable(true);    backupWalletAction = new QAction(QIcon(":/icons/filesave"), tr("&Backup Wallet"), this);    backupWalletAction->setToolTip(tr("Backup wallet to another location"));    changePassphraseAction = new QAction(QIcon(":/icons/key"), tr("&Change Passphrase"), this);    changePassphraseAction->setToolTip(tr("Change the passphrase used for wallet encryption"));    openRPCConsoleAction = new QAction(tr("&Debug window"), this);    openRPCConsoleAction->setToolTip(tr("Open debugging and diagnostic console"));    connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));    connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked()));    connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked()));    connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt()));    connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden()));    connect(encryptWalletAction, SIGNAL(triggered(bool)), this, SLOT(encryptWallet(bool)));    connect(backupWalletAction, SIGNAL(triggered()), this, SLOT(backupWallet()));    connect(changePassphraseAction, SIGNAL(triggered()), this, SLOT(changePassphrase()));}
开发者ID:neudork,项目名称:neucoin,代码行数:90,


示例4: QActionGroup

//.........这里部分代码省略.........    miningAction->setToolTip(tr("Configure mining"));    miningAction->setCheckable(true);    tabGroup->addAction(miningAction);    historyAction = new QAction(QIcon(":/icons/history"), tr("&Transactions"), this);    historyAction->setToolTip(tr("Browse transaction history"));    historyAction->setCheckable(true);    historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4));    tabGroup->addAction(historyAction);    addressBookAction = new QAction(QIcon(":/icons/address-book"), tr("&Address Book"), this);    addressBookAction->setToolTip(tr("Edit the list of stored addresses and labels"));    addressBookAction->setCheckable(true);    addressBookAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_5));    tabGroup->addAction(addressBookAction);    receiveCoinsAction = new QAction(QIcon(":/icons/receiving_addresses"), tr("&Receive coins"), this);    receiveCoinsAction->setToolTip(tr("Show the list of addresses for receiving payments"));    receiveCoinsAction->setCheckable(true);    receiveCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_3));    tabGroup->addAction(receiveCoinsAction);    sendCoinsAction = new QAction(QIcon(":/icons/send"), tr("&Send coins"), this);    sendCoinsAction->setToolTip(tr("Send coins to a BatCoin address"));    sendCoinsAction->setCheckable(true);    sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2));    tabGroup->addAction(sendCoinsAction);    signMessageAction = new QAction(QIcon(":/icons/edit"), tr("Sign &message..."), this);    signMessageAction->setToolTip(tr("Sign a message to prove you own a Bitcoin address"));    tabGroup->addAction(signMessageAction);    verifyMessageAction = new QAction(QIcon(":/icons/transaction_0"), tr("&Verify message..."), this);    verifyMessageAction->setToolTip(tr("Verify a message to ensure it was signed with a specified Bitcoin address"));    tabGroup->addAction(verifyMessageAction);#ifdef FIRST_CLASS_MESSAGING    firstClassMessagingAction = new QAction(QIcon(":/icons/edit"), tr("S&ignatures"), this);    firstClassMessagingAction->setToolTip(signMessageAction->toolTip() + QString(". / ") + verifyMessageAction->toolTip() + QString("."));    firstClassMessagingAction->setCheckable(true);    tabGroup->addAction(firstClassMessagingAction);#endif    connect(overviewAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(overviewAction, SIGNAL(triggered()), this, SLOT(gotoOverviewPage()));    connect(miningAction, SIGNAL(triggered()), this, SLOT(gotoMiningPage()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage()));    connect(addressBookAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(addressBookAction, SIGNAL(triggered()), this, SLOT(gotoAddressBookPage()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage()));    connect(signMessageAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(signMessageAction, SIGNAL(triggered()), this, SLOT(gotoSignMessageTab()));    connect(verifyMessageAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(verifyMessageAction, SIGNAL(triggered()), this, SLOT(gotoVerifyMessageTab()));#ifdef FIRST_CLASS_MESSAGING    connect(firstClassMessagingAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    // Always start with the sign message tab for FIRST_CLASS_MESSAGING    connect(firstClassMessagingAction, SIGNAL(triggered()), this, SLOT(gotoSignMessageTab()));#endif    quitAction = new QAction(QIcon(":/icons/quit"), tr("E&xit"), this);    quitAction->setToolTip(tr("Quit application"));    quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));    quitAction->setMenuRole(QAction::QuitRole);    aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About BatCoin"), this);    aboutAction->setToolTip(tr("Show information about BatCoin"));    aboutAction->setMenuRole(QAction::AboutRole);    aboutQtAction = new QAction(tr("About &Qt"), this);    aboutQtAction->setToolTip(tr("Show information about Qt"));    aboutQtAction->setMenuRole(QAction::AboutQtRole);    optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this);    optionsAction->setToolTip(tr("Modify configuration options for BatCoin"));    optionsAction->setMenuRole(QAction::PreferencesRole);    toggleHideAction = new QAction(QIcon(":/icons/bitcoin"), tr("Show/Hide &BatCoin"), this);    toggleHideAction->setToolTip(tr("Show or hide the BatCoin window"));    exportAction = new QAction(QIcon(":/icons/export"), tr("&Export..."), this);    exportAction->setToolTip(tr("Export the data in the current tab to a file"));    encryptWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Encrypt Wallet..."), this);    encryptWalletAction->setToolTip(tr("Encrypt or decrypt wallet"));    encryptWalletAction->setCheckable(true);    backupWalletAction = new QAction(QIcon(":/icons/filesave"), tr("&Backup Wallet..."), this);    backupWalletAction->setToolTip(tr("Backup wallet to another location"));    changePassphraseAction = new QAction(QIcon(":/icons/key"), tr("&Change Passphrase..."), this);    changePassphraseAction->setToolTip(tr("Change the passphrase used for wallet encryption"));    openRPCConsoleAction = new QAction(QIcon(":/icons/debugwindow"), tr("&Debug window"), this);    openRPCConsoleAction->setToolTip(tr("Open debugging and diagnostic console"));    connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));    connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked()));    connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked()));    connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt()));    connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden()));    connect(encryptWalletAction, SIGNAL(triggered(bool)), this, SLOT(encryptWallet(bool)));    connect(backupWalletAction, SIGNAL(triggered()), this, SLOT(backupWallet()));    connect(changePassphraseAction, SIGNAL(triggered()), this, SLOT(changePassphrase()));}
开发者ID:DeepCoin,项目名称:BatCoin,代码行数:101,


示例5: QActionGroup

//.........这里部分代码省略.........    historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4));#endif    tabGroup->addAction(historyAction);    // These showNormalIfMinimized are needed because Send Coins and Receive Coins    // can be triggered from the tray menu, and need to show the GUI to be useful.    connect(overviewAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(overviewAction, SIGNAL(triggered()), this, SLOT(gotoOverviewPage()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage()));    quitAction = new QAction(QIcon(":/icons/quit"), tr("E&xit"), this);    quitAction->setStatusTip(tr("Quit application"));    quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));    quitAction->setMenuRole(QAction::QuitRole);    if (!fIsTestnet)        aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About Mobicoin Core"), this);    else        aboutAction = new QAction(QIcon(":/icons/bitcoin_testnet"), tr("&About Mobicoin Core"), this);    aboutAction->setStatusTip(tr("Show information about Mobicoin"));    aboutAction->setMenuRole(QAction::AboutRole);#if QT_VERSION < 0x050000    aboutQtAction = new QAction(QIcon(":/trolltech/qmessagebox/images/qtlogo-64.png"), tr("About &Qt"), this);#else    aboutQtAction = new QAction(QIcon(":/qt-project.org/qmessagebox/images/qtlogo-64.png"), tr("About &Qt"), this);#endif    aboutQtAction->setStatusTip(tr("Show information about Qt"));    aboutQtAction->setMenuRole(QAction::AboutQtRole);    optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this);    optionsAction->setStatusTip(tr("Modify configuration options for Mobicoin"));    optionsAction->setMenuRole(QAction::PreferencesRole);    if (!fIsTestnet)        toggleHideAction = new QAction(QIcon(":/icons/bitcoin"), tr("&Show / Hide"), this);    else        toggleHideAction = new QAction(QIcon(":/icons/bitcoin_testnet"), tr("&Show / Hide"), this);    toggleHideAction->setStatusTip(tr("Show or hide the main Window"));    encryptWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Encrypt Wallet..."), this);    encryptWalletAction->setStatusTip(tr("Encrypt the private keys that belong to your wallet"));    encryptWalletAction->setCheckable(true);    backupWalletAction = new QAction(QIcon(":/icons/filesave"), tr("&Backup Wallet..."), this);    backupWalletAction->setStatusTip(tr("Backup wallet to another location"));    changePassphraseAction = new QAction(QIcon(":/icons/key"), tr("&Change Passphrase..."), this);    changePassphraseAction->setStatusTip(tr("Change the passphrase used for wallet encryption"));    unlockWalletAction = new QAction(tr("&Unlock Wallet..."), this);    unlockWalletAction->setToolTip(tr("Unlock wallet"));    lockWalletAction = new QAction(tr("&Lock Wallet"), this);    signMessageAction = new QAction(QIcon(":/icons/edit"), tr("Sign &message..."), this);    signMessageAction->setStatusTip(tr("Sign messages with your Mobicoin addresses to prove you own them"));    verifyMessageAction = new QAction(QIcon(":/icons/transaction_0"), tr("&Verify message..."), this);    verifyMessageAction->setStatusTip(tr("Verify messages to ensure they were signed with specified Mobicoin addresses"));    openInfoAction = new QAction(QApplication::style()->standardIcon(QStyle::SP_MessageBoxInformation), tr("&Information"), this);    openInfoAction->setStatusTip(tr("Show diagnostic information"));    openRPCConsoleAction = new QAction(QIcon(":/icons/debugwindow"), tr("&Debug console"), this);    openRPCConsoleAction->setStatusTip(tr("Open debugging console"));    openNetworkAction = new QAction(QIcon(":/icons/connect_4"), tr("&Network Monitor"), this);    openNetworkAction->setStatusTip(tr("Show network monitor"));	openConfEditorAction = new QAction(QIcon(":/icons/edit"), tr("Open &Configuration File"), this);    openConfEditorAction->setStatusTip(tr("Open configuration file"));    showBackupsAction = new QAction(QIcon(":/icons/browse"), tr("Show Automatic &Backups"), this);    showBackupsAction->setStatusTip(tr("Show automatically created wallet backups"));    usedSendingAddressesAction = new QAction(QIcon(":/icons/address-book"), tr("&Sending addresses..."), this);    usedSendingAddressesAction->setStatusTip(tr("Show the list of used sending addresses and labels"));    usedReceivingAddressesAction = new QAction(QIcon(":/icons/address-book"), tr("&Receiving addresses..."), this);    usedReceivingAddressesAction->setStatusTip(tr("Show the list of used receiving addresses and labels"));    openAction = new QAction(QApplication::style()->standardIcon(QStyle::SP_FileIcon), tr("Open &URI..."), this);    openAction->setStatusTip(tr("Open a mobicoin: URI or payment request"));    showHelpMessageAction = new QAction(QApplication::style()->standardIcon(QStyle::SP_MessageBoxInformation), tr("&Command-line options"), this);    showHelpMessageAction->setStatusTip(tr("Show the Mobicoin Core help message to get a list with possible Mobicoin command-line options"));    connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));    connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked()));    connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt()));    connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked()));    connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden()));    connect(showHelpMessageAction, SIGNAL(triggered()), this, SLOT(showHelpMessageClicked()));#ifdef ENABLE_WALLET    if(walletFrame)    {        connect(encryptWalletAction, SIGNAL(triggered(bool)), walletFrame, SLOT(encryptWallet(bool)));        connect(backupWalletAction, SIGNAL(triggered()), walletFrame, SLOT(backupWallet()));        connect(changePassphraseAction, SIGNAL(triggered()), walletFrame, SLOT(changePassphrase()));        connect(unlockWalletAction, SIGNAL(triggered()), walletFrame, SLOT(unlockWallet()));        connect(lockWalletAction, SIGNAL(triggered()), walletFrame, SLOT(lockWallet()));        connect(signMessageAction, SIGNAL(triggered()), this, SLOT(gotoSignMessageTab()));        connect(verifyMessageAction, SIGNAL(triggered()), this, SLOT(gotoVerifyMessageTab()));        connect(usedSendingAddressesAction, SIGNAL(triggered()), walletFrame, SLOT(usedSendingAddresses()));        connect(usedReceivingAddressesAction, SIGNAL(triggered()), walletFrame, SLOT(usedReceivingAddresses()));        connect(openAction, SIGNAL(triggered()), this, SLOT(openClicked()));    }#endif}
开发者ID:mobicoins,项目名称:mobicoin-core,代码行数:101,


示例6: QActionGroup

//.........这里部分代码省略.........		statisticsAction = new QAction(QIcon(":/icons/statistics"), tr("&Statistics"), this);    statisticsAction->setStatusTip(tr(""));	statisticsAction->setToolTip(tr("View statistics"));    statisticsAction->setCheckable(true);    tabGroup->addAction(statisticsAction);	    chatAction = new QAction(QIcon(":/icons/social"), tr("&Social"), this);	chatAction->setStatusTip(tr(""));    chatAction->setToolTip(tr("View chat"));    chatAction->setCheckable(true);    tabGroup->addAction(chatAction);	    blockAction = new QAction(QIcon(":/icons/block"), tr("&Block Explorer"), this);	blockAction->setStatusTip(tr(""));    blockAction->setToolTip(tr("Explore the BlockChain"));    blockAction->setCheckable(true);    tabGroup->addAction(blockAction);    sendCoinsAction = new QAction(QIcon(":/icons/send"), tr("&Send"), this);    sendCoinsAction->setStatusTip(tr(""));    sendCoinsAction->setToolTip(tr("Send coins to a Aiden address"));    sendCoinsAction->setCheckable(true);    tabGroup->addAction(sendCoinsAction);    receiveCoinsAction = new QAction(QIcon(":/icons/receiving_addresses"), tr("&Receive"), this);    receiveCoinsAction->setStatusTip(tr(""));    receiveCoinsAction->setToolTip(tr("Show the list of addresses for receiving payments"));    receiveCoinsAction->setCheckable(true);    tabGroup->addAction(receiveCoinsAction);    historyAction = new QAction(QIcon(":/icons/history"), tr("&Transactions"), this);    historyAction->setStatusTip(tr(""));    historyAction->setToolTip(tr("Browse transaction history"));    historyAction->setCheckable(true);    tabGroup->addAction(historyAction);    addressBookAction = new QAction(QIcon(":/icons/address-book"), tr("&Addresses"), this);    addressBookAction->setStatusTip(tr(""));    addressBookAction->setToolTip(tr("Edit the list of stored addresses and labels"));    addressBookAction->setCheckable(true);    tabGroup->addAction(addressBookAction);    connect(overviewAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(overviewAction, SIGNAL(triggered()), this, SLOT(gotoOverviewPage()));	connect(statisticsAction, SIGNAL(triggered()), this, SLOT(gotoStatisticsPage()));	connect(blockAction, SIGNAL(triggered()), this, SLOT(gotoBlockBrowser()));	connect(chatAction, SIGNAL(triggered()), this, SLOT(gotoChatPage()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage()));    connect(addressBookAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(addressBookAction, SIGNAL(triggered()), this, SLOT(gotoAddressBookPage()));    quitAction = new QAction(QIcon(":/icons/quit"), tr("E&xit"), this);    quitAction->setStatusTip(tr(""));    quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));    quitAction->setMenuRole(QAction::QuitRole);    aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About Aiden"), this);    aboutAction->setStatusTip(tr(""));    aboutAction->setMenuRole(QAction::AboutRole);    aboutQtAction = new QAction(QIcon(":/icons/qtlogo"), tr("About &Qt"), this);    aboutQtAction->setStatusTip(tr(""));    aboutQtAction->setMenuRole(QAction::AboutQtRole);    optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this);    optionsAction->setStatusTip(tr(""));    optionsAction->setMenuRole(QAction::PreferencesRole);    toggleHideAction = new QAction(QIcon(":/icons/bitcoin"), tr("&Show / Hide"), this);    toggleHideAction->setStatusTip(tr(""));    encryptWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Encrypt Wallet..."), this);    encryptWalletAction->setStatusTip(tr(""));    encryptWalletAction->setCheckable(true);    backupWalletAction = new QAction(QIcon(":/icons/filesave"), tr("&Backup Wallet..."), this);    backupWalletAction->setStatusTip(tr(""));    changePassphraseAction = new QAction(QIcon(":/icons/key"), tr("&Change Passphrase..."), this);    changePassphraseAction->setStatusTip(tr(""));    signMessageAction = new QAction(QIcon(":/icons/edit"), tr("Sign &message..."), this);    signMessageAction->setStatusTip(tr(""));    verifyMessageAction = new QAction(QIcon(":/icons/transaction_0"), tr("&Verify message..."), this);    verifyMessageAction->setStatusTip(tr(""));    //exportAction = new QAction(QIcon(":/icons/export"), tr("&Export..."), this);    //exportAction->setToolTip(tr("Export the data in the current tab to a file"));    openRPCConsoleAction = new QAction(QIcon(":/icons/debugwindow"), tr("&Debug window"), this);    openRPCConsoleAction->setStatusTip(tr(""));    connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));    connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked()));    connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt()));    connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked()));    connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden()));    connect(encryptWalletAction, SIGNAL(triggered(bool)), walletFrame, SLOT(encryptWallet(bool)));    connect(backupWalletAction, SIGNAL(triggered()), walletFrame, SLOT(backupWallet()));    connect(changePassphraseAction, SIGNAL(triggered()), walletFrame, SLOT(changePassphrase()));    connect(signMessageAction, SIGNAL(triggered()), this, SLOT(gotoSignMessageTab()));    connect(verifyMessageAction, SIGNAL(triggered()), this, SLOT(gotoVerifyMessageTab()));}
开发者ID:chrisfranko,项目名称:aiden-newgui,代码行数:101,


示例7: QActionGroup

void BitcoinGUI::createActions(bool fIsTestnet){    QActionGroup *tabGroup = new QActionGroup(this);    overviewAction = new QAction(QIcon(":/icons/overview"), tr("&Eye of Cthuhlu"), this);    overviewAction->setStatusTip(tr("Gaze upon thine offerings"));    overviewAction->setToolTip(overviewAction->statusTip());    overviewAction->setCheckable(true);    overviewAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_1));    tabGroup->addAction(overviewAction);    sendCoinsAction = new QAction(QIcon(":/icons/send"), tr("&Give Offering"), this);    sendCoinsAction->setStatusTip(tr("Share Offerings with another cultist"));    sendCoinsAction->setToolTip(sendCoinsAction->statusTip());    sendCoinsAction->setCheckable(true);    sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2));    tabGroup->addAction(sendCoinsAction);    receiveCoinsAction = new QAction(QIcon(":/icons/receiving_addresses"), tr("&Take Offering"), this);    receiveCoinsAction->setStatusTip(tr("Allow thy fellow cultists to bestow honor upon thee"));    receiveCoinsAction->setToolTip(receiveCoinsAction->statusTip());    receiveCoinsAction->setCheckable(true);    receiveCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_3));    tabGroup->addAction(receiveCoinsAction);    historyAction = new QAction(QIcon(":/icons/history"), tr("&Transgressions"), this);    historyAction->setStatusTip(tr("A list of your sins"));    historyAction->setToolTip(historyAction->statusTip());    historyAction->setCheckable(true);    historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4));    tabGroup->addAction(historyAction);    // These showNormalIfMinimized are needed because Send Coins and Receive Coins    // can be triggered from the tray menu, and need to show the GUI to be useful.    connect(overviewAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(overviewAction, SIGNAL(triggered()), this, SLOT(gotoOverviewPage()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage()));    quitAction = new QAction(QIcon(":/icons/quit"), tr("E&xit"), this);    quitAction->setStatusTip(tr("Quit application"));    quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));    quitAction->setMenuRole(QAction::QuitRole);    if (!fIsTestnet)        aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About Offerings Core"), this);    else        aboutAction = new QAction(QIcon(":/icons/bitcoin_testnet"), tr("&About Offerings Core"), this);    aboutAction->setStatusTip(tr("Show information about Offerings"));    aboutAction->setMenuRole(QAction::AboutRole);#if QT_VERSION < 0x050000    aboutQtAction = new QAction(QIcon(":/trolltech/qmessagebox/images/qtlogo-64.png"), tr("About &Qt"), this);#else    aboutQtAction = new QAction(QIcon(":/qt-project.org/qmessagebox/images/qtlogo-64.png"), tr("About &Qt"), this);#endif    aboutQtAction->setStatusTip(tr("Show information about Qt"));    aboutQtAction->setMenuRole(QAction::AboutQtRole);    optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this);    optionsAction->setStatusTip(tr("Modify configuration options for Offerings"));    optionsAction->setMenuRole(QAction::PreferencesRole);    if (!fIsTestnet)        toggleHideAction = new QAction(QIcon(":/icons/bitcoin"), tr("&Show / Hide"), this);    else        toggleHideAction = new QAction(QIcon(":/icons/bitcoin_testnet"), tr("&Show / Hide"), this);    toggleHideAction->setStatusTip(tr("Show or hide the main Window"));    encryptWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Spellbind Altar..."), this);    encryptWalletAction->setStatusTip(tr("Encrypt your altar with 2d20 power."));    encryptWalletAction->setCheckable(true);    backupWalletAction = new QAction(QIcon(":/icons/filesave"), tr("&Reconstruct Altar..."), this);    backupWalletAction->setStatusTip(tr("Copy altar to another location"));    changePassphraseAction = new QAction(QIcon(":/icons/key"), tr("&Change Words of Power..."), this);    changePassphraseAction->setStatusTip(tr("Change the passphrase used for spellbinding your altar"));    signMessageAction = new QAction(QIcon(":/icons/edit"), tr("Spellbind &message..."), this);    signMessageAction->setStatusTip(tr("Mark messages with your Offering prove you thou art justified"));    verifyMessageAction = new QAction(QIcon(":/icons/transaction_0"), tr("&Decode message..."), this);    verifyMessageAction->setStatusTip(tr("Verify messages to ensure they were signed with specified Offerings addresses"));    openRPCConsoleAction = new QAction(QIcon(":/icons/debugwindow"), tr("&Text Based Worship"), this);    openRPCConsoleAction->setStatusTip(tr("Speak directly to the Great Old Ones using human language"));    usedSendingAddressesAction = new QAction(QIcon(":/icons/address-book"), tr("&Sending addresses..."), this);    usedSendingAddressesAction->setStatusTip(tr("Show the list of used sending addresses and labels"));    usedReceivingAddressesAction = new QAction(QIcon(":/icons/address-book"), tr("&Receiving addresses..."), this);    usedReceivingAddressesAction->setStatusTip(tr("Show the list of used receiving addresses and labels"));    openAction = new QAction(QApplication::style()->standardIcon(QStyle::SP_FileIcon), tr("Open &URI..."), this);    openAction->setStatusTip(tr("Open a Offerings: URI or payment request"));    showHelpMessageAction = new QAction(QApplication::style()->standardIcon(QStyle::SP_MessageBoxInformation), tr("&Command-line options"), this);    showHelpMessageAction->setStatusTip(tr("Show the Offerings Core help message to get a list with possible Offerings Command-line options"));    connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));    connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked()));    connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt()));    connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked()));    connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden()));//.........这里部分代码省略.........
开发者ID:thegreatoldone,项目名称:offerings,代码行数:101,


示例8: QActionGroup

//.........这里部分代码省略.........    historyAction = new QAction(QIcon(":/icons/history"), tr("&Transactions"), this);    historyAction->setToolTip(tr("Browse transaction history"));    historyAction->setCheckable(true);    historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4));    tabGroup->addAction(historyAction);    mintingAction = new QAction(QIcon(":/icons/history"), tr("&Minting"), this);    mintingAction->setToolTip(tr("Show your minting capacity"));    mintingAction->setCheckable(true);    mintingAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_5));    tabGroup->addAction(mintingAction);    addressBookAction = new QAction(QIcon(":/icons/address-book"), tr("&Address Book"), this);    addressBookAction->setToolTip(tr("Edit the list of stored addresses and labels"));    addressBookAction->setCheckable(true);    addressBookAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_6));    tabGroup->addAction(addressBookAction);    receiveCoinsAction = new QAction(QIcon(":/icons/receiving_addresses"), tr("&Receive coins"), this);    receiveCoinsAction->setToolTip(tr("Show the list of addresses for receiving payments"));    receiveCoinsAction->setCheckable(true);    receiveCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_3));    tabGroup->addAction(receiveCoinsAction);    sendCoinsAction = new QAction(QIcon(":/icons/send"), tr("&Send coins"), this);    sendCoinsAction->setToolTip(tr("Send coins to a Paycoin address"));    sendCoinsAction->setCheckable(true);    sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2));    tabGroup->addAction(sendCoinsAction);    messageAction = new QAction(QIcon(":/icons/edit"), tr("Sign &message..."), this);    messageAction->setToolTip(tr("Prove you control an address"));#ifdef FIRST_CLASS_MESSAGING    messageAction->setCheckable(true);#endif    tabGroup->addAction(messageAction);    multisigAction = new QAction(QIcon(":/icons/send"), tr("Multisig"), this);    tabGroup->addAction(multisigAction);    connect(overviewAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(overviewAction, SIGNAL(triggered()), this, SLOT(gotoOverviewPage()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage()));    connect(mintingAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(mintingAction, SIGNAL(triggered()), this, SLOT(gotoMintingPage()));    connect(addressBookAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(addressBookAction, SIGNAL(triggered()), this, SLOT(gotoAddressBookPage()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage()));    connect(messageAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(messageAction, SIGNAL(triggered()), this, SLOT(gotoMessagePage()));    connect(multisigAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(multisigAction, SIGNAL(triggered()), this, SLOT(gotoMultisigPage()));    quitAction = new QAction(QIcon(":/icons/quit"), tr("E&xit"), this);    quitAction->setToolTip(tr("Quit application"));    quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));    quitAction->setMenuRole(QAction::QuitRole);    aboutAction = new QAction(QIcon(":/icons/paycoin_tooltip"), tr("&About Paycoin"), this);    aboutAction->setToolTip(tr("Show information about Paycoin"));    aboutAction->setMenuRole(QAction::AboutRole);    aboutQtAction = new QAction(QIcon(":/trolltech/qmessagebox/images/qtlogo-64.png"), tr("About &Qt"), this);    aboutQtAction->setToolTip(tr("Show information about Qt"));    aboutQtAction->setMenuRole(QAction::AboutQtRole);    optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this);    optionsAction->setToolTip(tr("Modify configuration options for Paycoin"));    optionsAction->setMenuRole(QAction::PreferencesRole);    toggleHideAction = new QAction(QIcon(":/icons/paycoin_tooltip"), tr("Show/Hide &Paycoin"), this);    toggleHideAction->setToolTip(tr("Show or hide the Paycoin window"));    exportAction = new QAction(QIcon(":/icons/export"), tr("&Export..."), this);    exportAction->setToolTip(tr("Export the data in the current tab to a file"));    encryptWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Encrypt Wallet..."), this);    encryptWalletAction->setToolTip(tr("Encrypt or decrypt wallet"));    encryptWalletAction->setCheckable(true);    unlockForMintingAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Unlock Wallet for Minting Only"), this);    unlockForMintingAction->setToolTip(tr("Unlock wallet only for minting. Sending coins will still require the passphrase."));    unlockForMintingAction->setCheckable(true);    backupWalletAction = new QAction(QIcon(":/icons/filesave"), tr("&Backup Wallet..."), this);    backupWalletAction->setToolTip(tr("Backup wallet to another location"));    changePassphraseAction = new QAction(QIcon(":/icons/key"), tr("&Change Passphrase..."), this);    changePassphraseAction->setToolTip(tr("Change the passphrase used for wallet encryption"));    openRPCConsoleAction = new QAction(QIcon(":/icons/debugwindow"), tr("&Debug window"), this);    openRPCConsoleAction->setToolTip(tr("Open debugging and diagnostic console"));    editConfigAction = new QAction(QIcon(":/icons/options"), tr("&Edit config..."), this);    editConfigAction->setToolTip(tr("Edit the paycoin.conf file in the default text editor"));    connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));    connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked()));    connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked()));    connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt()));    connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden()));    connect(encryptWalletAction, SIGNAL(triggered(bool)), this, SLOT(encryptWallet(bool)));    connect(unlockForMintingAction, SIGNAL(triggered(bool)), this, SLOT(unlockForMinting(bool)));    connect(backupWalletAction, SIGNAL(triggered()), this, SLOT(backupWallet()));    connect(changePassphraseAction, SIGNAL(triggered()), this, SLOT(changePassphrase()));    connect(editConfigAction, SIGNAL(triggered()), this, SLOT(editConfig()));}
开发者ID:itayzrihan,项目名称:paycoin,代码行数:101,


示例9: QAction

voidGist::addActions() {    /// Expand current node    auto expand_action = new QAction("Expand", this);    expand_action->setShortcut(QKeySequence("Return"));    addAction(expand_action);    connect(expand_action, SIGNAL(triggered()), m_Canvas, SLOT(expandCurrentNode()));    reset = new QAction("Reset", this);    addAction(reset);    connect(reset, SIGNAL(triggered()), m_Canvas, SLOT(reset()));    // reset->setShortcut(QKeySequence("Ctrl+R"));    showPixelTree = new QAction("Pixel Tree View", this);    addAction(showPixelTree);    connect(showPixelTree, SIGNAL(triggered()), m_Canvas, SLOT(showPixelTree()));    showIcicleTree = new QAction("Icicle Tree View", this);    addAction(showIcicleTree);    connect(showIcicleTree, SIGNAL(triggered()), m_Canvas, SLOT(showIcicleTree()));    showWebscript = new QAction("Webscript View", this);    addAction(showWebscript);    connect(showWebscript, SIGNAL(triggered()), m_Canvas, SLOT(showWebscript()));    followPath = new QAction("Follow Path", this);    addAction(followPath);    connect(followPath, SIGNAL(triggered()), m_Canvas, SLOT(followPath()));    /// Collect ML stats    auto collectMLStats_action = new QAction("Collect ML stats", this);    addAction(collectMLStats_action);    connect(collectMLStats_action, SIGNAL(triggered()), m_Canvas, SLOT(collectMLStats()));    deleteWhiteNodes = new QAction{"Delete Unexplored Nodes", this};    addAction(deleteWhiteNodes);    connect(deleteWhiteNodes, &QAction::triggered, m_Canvas, &TreeCanvas::deleteWhiteNodes);    navUp = new QAction("Up", this);    addAction(navUp);    navUp->setShortcut(QKeySequence("Up"));    connect(navUp, SIGNAL(triggered()), m_Canvas, SLOT(navUp()));    navDown = new QAction("Down", this);    addAction(navDown);    navDown->setShortcut(QKeySequence("Down"));    connect(navDown, SIGNAL(triggered()), m_Canvas, SLOT(navDown()));    navLeft = new QAction("Left", this);    addAction(navLeft);    navLeft->setShortcut(QKeySequence("Left"));    connect(navLeft, SIGNAL(triggered()), m_Canvas, SLOT(navLeft()));    navRight = new QAction("Right", this);    addAction(navRight);    navRight->setShortcut(QKeySequence("Right"));    connect(navRight, SIGNAL(triggered()), m_Canvas, SLOT(navRight()));    navRoot = new QAction("Root", this);    addAction(navRoot);    navRoot->setShortcut(QKeySequence("R"));    connect(navRoot, SIGNAL(triggered()), m_Canvas, SLOT(navRoot()));    navNextSol = new QAction("To next solution", this);    addAction(navNextSol);    navNextSol->setShortcut(QKeySequence("Shift+Right"));    connect(navNextSol, SIGNAL(triggered()), m_Canvas, SLOT(navNextSol()));    navPrevSol = new QAction("To previous solution", this);    addAction(navPrevSol);    navPrevSol->setShortcut(QKeySequence("Shift+Left"));    connect(navPrevSol, SIGNAL(triggered()), m_Canvas, SLOT(navPrevSol()));    navNextLeaf = new QAction("To next leaf", this);    addAction(navNextLeaf);    navNextLeaf->setShortcut(QKeySequence("Ctrl+Right"));    connect(navNextLeaf, SIGNAL(triggered()), m_Canvas, SLOT(navNextLeaf()));    navPrevLeaf = new QAction("To previous leaf", this);    addAction(navPrevLeaf);    navPrevLeaf->setShortcut(QKeySequence("Ctrl+Left"));    connect(navPrevLeaf, SIGNAL(triggered()), m_Canvas, SLOT(navPrevLeaf()));    searchNext = new QAction("Next solution", this);    addAction(searchNext);    searchNext->setShortcut(QKeySequence("N"));    searchAll = new QAction("All solutions", this);    addAction(searchAll);    searchAll->setShortcut(QKeySequence("A"));    toggleHidden = new QAction("Hide/unhide", this);    addAction(toggleHidden);    toggleHidden->setShortcut(QKeySequence("H"));    connect(toggleHidden, SIGNAL(triggered()), m_Canvas, SLOT(toggleHidden()));    hideFailed = new QAction("Hide failed subtrees", this);    addAction(hideFailed);    hideFailed->setShortcut(QKeySequence("F"));//.........这里部分代码省略.........
开发者ID:cmears,项目名称:cp-profiler,代码行数:101,


示例10: locker

  void  TreeCanvas::inspectCurrentNode(bool fix, int inspectorNo) {    QMutexLocker locker(&mutex);    if (currentNode->isHidden()) {      toggleHidden();      return;    }    int failedInspectorType = -1;    int failedInspector = -1;    bool needCentering = false;    try {      switch (currentNode->getStatus()) {      case UNDETERMINED:          {            unsigned int kids =                currentNode->getNumberOfChildNodes(*na,curBest,stats,c_d,a_d);            int depth = -1;            for (VisualNode* p = currentNode; p != NULL; p=p->getParent(*na))              depth++;            if (kids > 0) {              needCentering = true;              depth++;            }            stats.maxDepth =              std::max(stats.maxDepth, depth);            if (currentNode->getStatus() == SOLVED) {              assert(currentNode->hasCopy());              emit solution(currentNode->getWorkingSpace());              currentNode->purge(*na);            }            emit statusChanged(currentNode,stats,true);            for (int i=0; i<moveInspectors.size(); i++) {              if (moveInspectors[i].second) {                failedInspectorType = 0;                failedInspector = i;                moveInspectors[i].first->                  inspect(*currentNode->getWorkingSpace());                failedInspectorType = -1;              }            }          }          break;      case FAILED:      case STOP:      case UNSTOP:      case BRANCH:      case SOLVED:        {          // SizeCursor sc(currentNode);          // PreorderNodeVisitor<SizeCursor> pnv(sc);          // int nodes = 1;          // while (pnv.next()) { nodes++; }          // std::cout << "sizeof(VisualNode): " << sizeof(VisualNode)          //           << std::endl;          // std::cout << "Size: " << (pnv.getCursor().s)/1024 << std::endl;          // std::cout << "Nodes: " << nodes << std::endl;          // std::cout << "Size / node: " << (pnv.getCursor().s)/nodes          //           << std::endl;          Space* curSpace;                  if (fix) {            if (currentNode->isRoot() && currentNode->getStatus() == FAILED)              break;            curSpace = currentNode->getSpace(*na,curBest,c_d,a_d);            if (currentNode->getStatus() == SOLVED &&                curSpace->status() != SS_SOLVED) {              // in the presence of weakly monotonic propagators, we may have to              // use search to find the solution here              Space* dfsSpace = Gecode::dfs(curSpace);              delete curSpace;              curSpace = dfsSpace;            }                    } else {            if (currentNode->isRoot())              break;            VisualNode* p = currentNode->getParent(*na);            curSpace = p->getSpace(*na,curBest,c_d,a_d);            switch (curSpace->status()) {            case SS_SOLVED:            case SS_FAILED:              break;            case SS_BRANCH:              curSpace->commit(*p->getChoice(),                                currentNode->getAlternative(*na));              break;            default:              GECODE_NEVER;            }          }          if (inspectorNo==-1) {            for (int i=0; i<doubleClickInspectors.size(); i++) {              if (doubleClickInspectors[i].second) {                failedInspectorType = 1;                failedInspector = i;                doubleClickInspectors[i].first->inspect(*curSpace);                failedInspectorType = -1;//.........这里部分代码省略.........
开发者ID:akiernan,项目名称:gecode,代码行数:101,


示例11: QActionGroup

void BitcoinGUI::createActions(){    QActionGroup *tabGroup = new QActionGroup(this);    overviewAction = new QAction(QIcon(":/icons/overview"), tr("&Dashboard"), this);    overviewAction->setToolTip(tr("Show general overview of wallet"));    overviewAction->setCheckable(true);    overviewAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_1));    tabGroup->addAction(overviewAction);    receiveCoinsAction = new QAction(QIcon(":/icons/receiving_addresses"), tr("&Receive"), this);    receiveCoinsAction->setToolTip(tr("Show the list of addresses for receiving payments"));    receiveCoinsAction->setCheckable(true);    receiveCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2));    tabGroup->addAction(receiveCoinsAction);    sendCoinsAction = new QAction(QIcon(":/icons/send"), tr("&Send"), this);    sendCoinsAction->setToolTip(tr("Send coins to a CYC address"));    sendCoinsAction->setCheckable(true);    sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_3));    tabGroup->addAction(sendCoinsAction);    historyAction = new QAction(QIcon(":/icons/history"), tr("&Transactions"), this);    historyAction->setToolTip(tr("Browse transaction history"));    historyAction->setCheckable(true);    historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4));    tabGroup->addAction(historyAction);    addressBookAction = new QAction(QIcon(":/icons/address-book"), tr("&Address Book"), this);    addressBookAction->setToolTip(tr("Edit the list of stored addresses and labels"));    addressBookAction->setCheckable(true);    addressBookAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_5));    tabGroup->addAction(addressBookAction);    masternodeManagerAction = new QAction(QIcon(":/icons/bitcoin"), tr("&CyclingCoin Masternodes"), this);    masternodeManagerAction->setToolTip(tr("Show CyclingCoin Masternode Nodes status and configure your nodes."));    masternodeManagerAction->setCheckable(true);    tabGroup->addAction(masternodeManagerAction);    messageAction = new QAction(QIcon(":/icons/edit"), tr("CryptoMessage"), this);    messageAction->setToolTip(tr("View and Send Encrypted messages"));    messageAction->setCheckable(true);    tabGroup->addAction(messageAction);    connect(overviewAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(overviewAction, SIGNAL(triggered()), this, SLOT(gotoOverviewPage()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage()));    connect(addressBookAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(addressBookAction, SIGNAL(triggered()), this, SLOT(gotoAddressBookPage()));    connect(masternodeManagerAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(masternodeManagerAction, SIGNAL(triggered()), this, SLOT(gotoMasternodeManagerPage()));    connect(messageAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(messageAction, SIGNAL(triggered()), this, SLOT(gotoMessagePage()));    quitAction = new QAction(tr("E&xit"), this);    quitAction->setToolTip(tr("Quit application"));    quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));    quitAction->setMenuRole(QAction::QuitRole);    aboutAction = new QAction(tr("&About CyclingCoin"), this);    aboutAction->setToolTip(tr("Show information about CyclingCoin"));    aboutAction->setMenuRole(QAction::AboutRole);    aboutQtAction = new QAction(tr("About &Qt"), this);    aboutQtAction->setToolTip(tr("Show information about Qt"));    aboutQtAction->setMenuRole(QAction::AboutQtRole);    optionsAction = new QAction(tr("&Options..."), this);    optionsAction->setToolTip(tr("Modify configuration options for CyclingCoin"));    optionsAction->setMenuRole(QAction::PreferencesRole);    toggleHideAction = new QAction(QIcon(":/icons/bitcoin"), tr("&Show / Hide"), this);    encryptWalletAction = new QAction(tr("&Encrypt Wallet..."), this);    encryptWalletAction->setToolTip(tr("Encrypt or decrypt wallet"));    backupWalletAction = new QAction(tr("&Backup Wallet..."), this);    backupWalletAction->setToolTip(tr("Backup wallet to another location"));    changePassphraseAction = new QAction(tr("&Change Passphrase..."), this);    changePassphraseAction->setToolTip(tr("Change the passphrase used for wallet encryption"));    unlockWalletAction = new QAction(tr("&Unlock Wallet..."), this);    unlockWalletAction->setToolTip(tr("Unlock wallet"));    lockWalletAction = new QAction(tr("&Lock Wallet"), this);    lockWalletAction->setToolTip(tr("Lock wallet"));    signMessageAction = new QAction(tr("Sign &message..."), this);    verifyMessageAction = new QAction(tr("&Verify message..."), this);    exportAction = new QAction(tr("&Export..."), this);    exportAction->setToolTip(tr("Export the data in the current tab to a file"));    openRPCConsoleAction = new QAction(tr("&Debug window"), this);    openRPCConsoleAction->setToolTip(tr("Open debugging and diagnostic console"));    connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));    connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked()));    connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt()));    connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked()));    connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden()));    connect(encryptWalletAction, SIGNAL(triggered()), this, SLOT(encryptWallet()));    connect(backupWalletAction, SIGNAL(triggered()), this, SLOT(backupWallet()));    connect(changePassphraseAction, SIGNAL(triggered()), this, SLOT(changePassphrase()));    connect(unlockWalletAction, SIGNAL(triggered()), this, SLOT(unlockWallet()));//.........这里部分代码省略.........
开发者ID:cyclingcoin,项目名称:cyclingcoin,代码行数:101,


示例12: QActionGroup

//.........这里部分代码省略.........    historyAction = new QAction(historyIcon, tr("&Transactions"), this);    historyAction->setToolTip(tr("Browse transaction history"));    historyAction->setCheckable(true);    historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4));    tabGroup->addAction(historyAction);//    sendCoinsAction = new QAction(QIcon(":/icons/send"), tr("&Send"), this);    QIcon sendIcon;    sendIcon.addFile(":/icons/grey_send", QSize(), QIcon::Normal, QIcon::Off);    sendIcon.addFile(":/icons/orange_send", QSize(), QIcon::Active, QIcon::Off);    sendIcon.addFile(":/icons/orange_send", QSize(), QIcon::Normal, QIcon::On);    sendCoinsAction = new QAction(sendIcon, tr("&Send"), this);    sendCoinsAction->setToolTip(sendCoinsAction->statusTip());    sendCoinsAction->setCheckable(true);    sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2));    tabGroup->addAction(sendCoinsAction);//    receiveCoinsAction = new QAction(QIcon(":/icons/receiving_addresses"), tr("&Receive"), this);    QIcon receiveIcon;    receiveIcon.addFile(":/icons/grey_receive", QSize(), QIcon::Normal, QIcon::Off);    receiveIcon.addFile(":/icons/orange_receive", QSize(), QIcon::Active, QIcon::Off);    receiveIcon.addFile(":/icons/orange_receive", QSize(), QIcon::Normal, QIcon::On);    receiveCoinsAction = new QAction(receiveIcon, tr("&Receive"), this);    receiveCoinsAction->setToolTip(tr("Show the list of addresses for receiving payments"));    receiveCoinsAction->setCheckable(true);    receiveCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_3));    tabGroup->addAction(receiveCoinsAction);//    addressBookAction = new QAction(QIcon(":/icons/address-book"), tr("&Address Book"), this);    QIcon addressBookIcon;    addressBookIcon.addFile(":/icons/grey_addressbook", QSize(), QIcon::Normal, QIcon::Off);    addressBookIcon.addFile(":/icons/orange_addressbook", QSize(), QIcon::Active, QIcon::Off);    addressBookIcon.addFile(":/icons/orange_addressbook", QSize(), QIcon::Normal, QIcon::On);    addressBookAction = new QAction(addressBookIcon, tr("&Address Book"), this);    addressBookAction->setToolTip(tr("Edit the list of stored addresses and labels"));    addressBookAction->setCheckable(true);    addressBookAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_5));    tabGroup->addAction(addressBookAction);    connect(overviewAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(overviewAction, SIGNAL(triggered()), this, SLOT(gotoOverviewPage()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage()));    connect(addressBookAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(addressBookAction, SIGNAL(triggered()), this, SLOT(gotoAddressBookPage()));    quitAction = new QAction(QIcon(":/icons/quit"), tr("E&xit"), this);    quitAction->setToolTip(tr("Quit application"));    quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));    quitAction->setMenuRole(QAction::QuitRole);    aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About LEOcoin"), this);    aboutAction->setToolTip(tr("Show information about LEOcoin"));    aboutAction->setMenuRole(QAction::AboutRole);    aboutQtAction = new QAction(QIcon(":/trolltech/qmessagebox/images/qtlogo-64.png"), tr("About &Qt"), this);    aboutQtAction->setToolTip(tr("Show information about Qt"));    aboutQtAction->setMenuRole(QAction::AboutQtRole);//    optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this);    QIcon optionsIcon;    optionsIcon.addFile(":/icons/grey_settings", QSize(), QIcon::Normal, QIcon::Off);    optionsIcon.addFile(":/icons/orange_settings", QSize(), QIcon::Active, QIcon::Off);    optionsIcon.addFile(":/icons/orange_settings", QSize(), QIcon::Normal, QIcon::On);    optionsAction = new QAction(optionsIcon, tr("&Options..."), this);    optionsAction->setToolTip(tr("Modify configuration options for LEOcoin"));    optionsAction->setMenuRole(QAction::PreferencesRole);    toggleHideAction = new QAction(QIcon(":/icons/bitcoin"), tr("&Show / Hide"), this);    encryptWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Encrypt Wallet..."), this);    encryptWalletAction->setToolTip(tr("Encrypt or decrypt wallet"));    encryptWalletAction->setCheckable(true);    backupWalletAction = new QAction(QIcon(":/icons/filesave"), tr("&Backup Wallet..."), this);    backupWalletAction->setToolTip(tr("Backup wallet to another location"));    changePassphraseAction = new QAction(QIcon(":/icons/key"), tr("&Change Passphrase..."), this);    changePassphraseAction->setToolTip(tr("Change the passphrase used for wallet encryption"));    signMessageAction = new QAction(QIcon(":/icons/edit"), tr("Sign &message..."), this);    verifyMessageAction = new QAction(QIcon(":/icons/transaction_0"), tr("&Verify message..."), this);//    exportAction = new QAction(QIcon(":/icons/export"), tr("&Export..."), this);    QIcon exportIcon;    exportIcon.addFile(":/icons/grey_export", QSize(), QIcon::Normal, QIcon::Off);    exportIcon.addFile(":/icons/orange_export", QSize(), QIcon::Active, QIcon::Off);    exportIcon.addFile(":/icons/orange_export", QSize(), QIcon::Normal, QIcon::On);    exportAction = new QAction(exportIcon, tr("&Export..."), this);    exportAction->setToolTip(tr("Export the data in the current tab to a file"));    openRPCConsoleAction = new QAction(QIcon(":/icons/debugwindow"), tr("&Debug window"), this);    openRPCConsoleAction->setToolTip(tr("Open debugging and diagnostic console"));    connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));    connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked()));    connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt()));    connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked()));    connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden()));    connect(encryptWalletAction, SIGNAL(triggered(bool)), this, SLOT(encryptWallet(bool)));    connect(backupWalletAction, SIGNAL(triggered()), this, SLOT(backupWallet()));    connect(changePassphraseAction, SIGNAL(triggered()), this, SLOT(changePassphrase()));    connect(signMessageAction, SIGNAL(triggered()), this, SLOT(gotoSignMessageTab()));    connect(verifyMessageAction, SIGNAL(triggered()), this, SLOT(gotoVerifyMessageTab()));}
开发者ID:Aminulhaq,项目名称:LEOcoin,代码行数:101,


示例13: QActionGroup

//.........这里部分代码省略.........		blockAction = new QAction(QIcon(":/icons/block"), tr("&Block Explorer"), this);    blockAction->setToolTip(tr("Explore the BlockChain"));    blockAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_6));    blockAction->setCheckable(true);    tabGroup->addAction(blockAction);	connect(blockAction, SIGNAL(triggered()), this, SLOT(gotoBlockBrowser()));    connect(overviewAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(overviewAction, SIGNAL(triggered()), this, SLOT(gotoOverviewPage()));	connect(statisticsAction, SIGNAL(triggered()), this, SLOT(gotoStatisticsPage()));	connect(chatAction, SIGNAL(triggered()), this, SLOT(gotoChatPage()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage()));    connect(addressBookAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(addressBookAction, SIGNAL(triggered()), this, SLOT(gotoAddressBookPage()));    quitAction = new QAction(QIcon(":/icons/quit"), tr("E&xit"), this);    quitAction->setToolTip(tr("Quit application"));    quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));    quitAction->setMenuRole(QAction::QuitRole);    aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About ColossusCoin2"), this);    aboutAction->setToolTip(tr("Show information about ColossusCoin2"));    aboutAction->setMenuRole(QAction::AboutRole);		charityAction = new QAction(QIcon(":/icons/bitcoin"), tr("&Stake For Charity"), this);    charityAction->setToolTip(tr("Enable Stake For Charity"));    charityAction->setMenuRole(QAction::AboutRole);	    aboutQtAction = new QAction(QIcon(":/trolltech/qmessagebox/images/qtlogo-64.png"), tr("About &Qt"), this);    aboutQtAction->setToolTip(tr("Show information about Qt"));    aboutQtAction->setMenuRole(QAction::AboutQtRole);    optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this);    optionsAction->setToolTip(tr("Modify configuration options for ColossusCoin2"));    optionsAction->setMenuRole(QAction::PreferencesRole);    toggleHideAction = new QAction(QIcon(":/icons/bitcoin"), tr("&Show / Hide"), this);    encryptWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Encrypt Wallet..."), this);    encryptWalletAction->setToolTip(tr("Encrypt or decrypt wallet"));    encryptWalletAction->setCheckable(true);    backupWalletAction = new QAction(QIcon(":/icons/filesave"), tr("&Backup Wallet..."), this);    backupWalletAction->setToolTip(tr("Backup wallet to another location"));    changePassphraseAction = new QAction(QIcon(":/icons/key"), tr("&Change Passphrase..."), this);    changePassphraseAction->setToolTip(tr("Change the passphrase used for wallet encryption"));    unlockWalletAction = new QAction(QIcon(":/icons/lock_open"), tr("&Unlock Wallet..."), this);    unlockWalletAction->setToolTip(tr("Unlock wallet"));    lockWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Lock Wallet"), this);    lockWalletAction->setToolTip(tr("Lock wallet"));    signMessageAction = new QAction(QIcon(":/icons/edit"), tr("Sign &message..."), this);    verifyMessageAction = new QAction(QIcon(":/icons/transaction_0"), tr("&Verify message..."), this);	checkWalletAction = new QAction(QIcon(":/icons/transaction_confirmed"), tr("&Check Wallet..."), this);	checkWalletAction->setStatusTip(tr("Check wallet integrity and report findings"));	repairWalletAction = new QAction(QIcon(":/icons/options"), tr("&Repair Wallet..."), this);	repairWalletAction->setStatusTip(tr("Fix wallet integrity and remove orphans"));    exportAction = new QAction(QIcon(":/icons/export"), tr("&Export..."), this);    exportAction->setToolTip(tr("Export the data in the current tab to a file"));    openRPCConsoleAction = new QAction(QIcon(":/icons/debugwindow"), tr("&Debug window"), this);    openRPCConsoleAction->setToolTip(tr("Open debugging and diagnostic console"));    connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));    connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked()));	connect(charityAction, SIGNAL(triggered()), this, SLOT(charityClicked()));    connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt()));    connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked()));    connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden()));    connect(encryptWalletAction, SIGNAL(triggered(bool)), this, SLOT(encryptWallet(bool)));	connect(checkWalletAction, SIGNAL(triggered()), this, SLOT(checkWallet()));	connect(repairWalletAction, SIGNAL(triggered()), this, SLOT(repairWallet()));    connect(backupWalletAction, SIGNAL(triggered()), this, SLOT(backupWallet()));    connect(changePassphraseAction, SIGNAL(triggered()), this, SLOT(changePassphrase()));    connect(unlockWalletAction, SIGNAL(triggered()), this, SLOT(unlockWallet()));    connect(lockWalletAction, SIGNAL(triggered()), this, SLOT(lockWallet()));    connect(signMessageAction, SIGNAL(triggered()), this, SLOT(gotoSignMessageTab()));    connect(verifyMessageAction, SIGNAL(triggered()), this, SLOT(gotoVerifyMessageTab()));		/* zeewolf: Hot swappable wallet themes */    if (themesList.count()>0)    {        QSignalMapper* signalMapper = new QSignalMapper (this) ;        //QActionGroup* menuActionGroup = new QActionGroup( this );        //menuActionGroup->setExclusive(true);        // Add custom themes (themes directory)        for( int i=0; i < themesList.count(); i++ )        {            QString theme=themesList[i];            customActions[i] = new QAction(QIcon(":/icons/options"), theme, this);            customActions[i]->setToolTip(QString("Switch to " + theme + " theme"));            customActions[i]->setStatusTip(QString("Switch to " + theme + " theme"));            //customActions[i]->setActionGroup(menuActionGroup);            signalMapper->setMapping(customActions[i], theme);            connect(customActions[i], SIGNAL(triggered()), signalMapper, SLOT (map()));        }        connect(signalMapper, SIGNAL(mapped(QString)), this, SLOT(changeTheme(QString)));    }    /* zeewolf: Hot swappable wallet themes */}
开发者ID:muddafudda,项目名称:ColossusCoin2,代码行数:101,


示例14: QActionGroup

void BitcoinGUI::createActions(){    QActionGroup *tabGroup = new QActionGroup(this);    overviewAction = new QAction(QIcon(":/icons/overview"), tr("&Your Piggy Bank"), this);    overviewAction->setToolTip(tr("A virtual teller window at your own piggy bank"));    overviewAction->setCheckable(true);    overviewAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_1));    tabGroup->addAction(overviewAction);    sendCoinsAction = new QAction(QIcon(":/icons/send"), tr("&Transfer Pennies"), this);    sendCoinsAction->setToolTip(tr("Send pennies to another piggy bank"));    sendCoinsAction->setCheckable(true);    sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2));    tabGroup->addAction(sendCoinsAction);    receiveCoinsAction = new QAction(QIcon(":/icons/receiving_addresses"), tr("&Save Pennies"), this);    receiveCoinsAction->setToolTip(tr("Deposit pennies in to your piggy bank"));    receiveCoinsAction->setCheckable(true);    receiveCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_3));    tabGroup->addAction(receiveCoinsAction);    historyAction = new QAction(QIcon(":/icons/history"), tr("&Register"), this);    historyAction->setToolTip(tr("Statement of transaction history"));    historyAction->setCheckable(true);    historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4));    tabGroup->addAction(historyAction);    addressBookAction = new QAction(QIcon(":/icons/address-book"), tr("&Directory"), this);    addressBookAction->setToolTip(tr("A list of other piggy banks with unique identifiers"));    addressBookAction->setCheckable(true);    addressBookAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_5));    tabGroup->addAction(addressBookAction);    connect(overviewAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(overviewAction, SIGNAL(triggered()), this, SLOT(gotoOverviewPage()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage()));    connect(addressBookAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));    connect(addressBookAction, SIGNAL(triggered()), this, SLOT(gotoAddressBookPage()));    quitAction = new QAction(QIcon(":/icons/quit"), tr("E&xit"), this);    quitAction->setToolTip(tr("Quit application"));    quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));    quitAction->setMenuRole(QAction::QuitRole);    aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About Pennies"), this);    aboutAction->setToolTip(tr("Show information about Pennies"));    aboutAction->setMenuRole(QAction::AboutRole);    aboutQtAction = new QAction(QIcon(":/trolltech/qmessagebox/images/qtlogo-64.png"), tr("About &Qt"), this);    aboutQtAction->setToolTip(tr("Show information about Qt"));    aboutQtAction->setMenuRole(QAction::AboutQtRole);    optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this);    optionsAction->setToolTip(tr("Modify configuration options for Pennies"));    optionsAction->setMenuRole(QAction::PreferencesRole);    toggleHideAction = new QAction(QIcon(":/icons/bitcoin"), tr("&Show / Hide"), this);    encryptWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Encrypt Piggy Bank..."), this);    encryptWalletAction->setToolTip(tr("Encrypt or decrypt Piggy Bank"));    encryptWalletAction->setCheckable(true);    backupWalletAction = new QAction(QIcon(":/icons/filesave"), tr("&Backup Piggy Bank..."), this);    backupWalletAction->setToolTip(tr("Backup wallet to another location"));    changePassphraseAction = new QAction(QIcon(":/icons/key"), tr("&Change Passphrase..."), this);    changePassphraseAction->setToolTip(tr("Change the passphrase used for wallet encryption"));    signMessageAction = new QAction(QIcon(":/icons/edit"), tr("Sign &message..."), this);    verifyMessageAction = new QAction(QIcon(":/icons/transaction_0"), tr("&Verify message..."), this);    exportAction = new QAction(QIcon(":/icons/export"), tr("&Export..."), this);    exportAction->setToolTip(tr("Export information for use in other financial programs"));    openRPCConsoleAction = new QAction(QIcon(":/icons/debugwindow"), tr("&Command Line Banking"), this);    openRPCConsoleAction->setToolTip(tr("Banking by text, for those who prefer less clicking"));    connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));    connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked()));    connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt()));    connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked()));    connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden()));    connect(encryptWalletAction, SIGNAL(triggered(bool)), this, SLOT(encryptWallet(bool)));    connect(backupWalletAction, SIGNAL(triggered()), this, SLOT(backupWallet()));    connect(changePassphraseAction, SIGNAL(triggered()), this, SLOT(changePassphrase()));    connect(signMessageAction, SIGNAL(triggered()), this, SLOT(gotoSignMessageTab()));    connect(verifyMessageAction, SIGNAL(triggered()), this, SLOT(gotoVerifyMessageTab()));}
开发者ID:CryptocoinMuseum,项目名称:pennies,代码行数:85,



注:本文中的toggleHidden函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ toggled函数代码示例
C++ toggle函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。