资源简介

购买官方的QtitanRibbon3源代码,完整的应用实例代码,有需要的同学可以下载来看看,分享出来仅供学习用,如需要商用请使用正版。。。。。

资源截图

代码片段和文件信息


#include 
#include 

#include 
#include “backstagepages.h“


/* BackstagePageInfo */
BackstagePageInfo::BackstagePageInfo(QWidget* parent)
    : Qtitan::RibbonBackstagePage(parent)
{
    ui.setupUi(this);
    createActions();
    createMenus();
}

BackstagePageInfo::~BackstagePageInfo()
{
}

void BackstagePageInfo::createActions()
{
    m_actMark = new QAction(tr(“Mark as &Final“) this);
    m_actMark->setStatusTip(tr(“Let readers know the document is final and make it read-only.“));
    m_actPassword = new QAction(QIcon(“:/res/ProtectDocument.png“) tr(“Encrypt with Password“) this);
    m_actMark->setStatusTip(tr(“Requare a password to open this document“));

    m_actInspect = new QAction(tr(“&Inspect Document“) this);
    m_actMark->setStatusTip(tr(“Check the document for hidden properties or personal information.“));
    m_actAccessibility = new QAction(tr(“Check Accessibility“) this);
    m_actMark->setStatusTip(tr(“Check the document for content that people with disabilities might find difficult to read.“));

}

void BackstagePageInfo::createMenus()
{
    QMenu* menu = new QMenu(this);
    menu->addAction(m_actMark);
    menu->addAction(m_actPassword);
    ui.protectDocumentBut->setMenu(menu);

    menu = new QMenu(this);
    menu->addAction(m_actInspect);
    menu->addAction(m_actAccessibility);
    ui.checkIssuesBut->setMenu(menu);
}


/* BackstagePageSaveEmail */
BackstagePageSaveEmail::BackstagePageSaveEmail(QWidget* parent)
    : Qtitan::RibbonBackstagePage(parent)
{
    ui.setupUi(this);
}

BackstagePageSaveEmail::~BackstagePageSaveEmail()
{
}


/* BackstagePageSaveEmail */
BackstagePageSaveWeb::BackstagePageSaveWeb(QWidget* parent)
    : Qtitan::RibbonBackstagePage(parent)
{
    ui.setupUi(this);
}

BackstagePageSaveWeb::~BackstagePageSaveWeb()
{
}


/* BackstagePageSave */
BackstagePageSave::BackstagePageSave(QWidget* parent)
    : Qtitan::RibbonBackstagePage(parent)
{
    m_separator = new Qtitan::RibbonBackstageSeparator(this);
    m_separator->setOrientation(Qt::Vertical);

    ui.setupUi(this);

    ui.pageWrapper->setText(““);

    m_pageSaveEmail = new BackstagePageSaveEmail(ui.pageWrapper);
    m_pageSaveWeb = new BackstagePageSaveWeb(ui.pageWrapper);
    m_pageSaveWeb->hide();

    QActionGroup* actGroup = new QActionGroup(this);

    m_actSendEmailButton = actGroup->addAction(ui.sendEmailButton->icon() ui.sendEmailButton->text());
    m_actSendEmailButton->setCheckable(true);
    m_actSaveWebButton = actGroup->addAction(ui.saveWebButton->icon() ui.saveWebButton->text());
    m_actSaveWebButton->setCheckable(true);
    m_actSharePointButton = actGroup->addAction(ui.sharePointButton->icon() ui.sharePointButton->text());
    m_actSharePointButton->setCheckable(true);
    m_actBlogPostButton = actGroup->addAction(ui.blogPostButton->icon() ui.blogPostButton->text());
    m_actBlogPos

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-07-19 13:52  QtitanRibbon3\
     目录           0  2014-07-19 13:54  QtitanRibbon3\bin\
     文件      146944  2014-07-19 13:53  QtitanRibbon3\bin\guioffice.exe
     文件    17956864  2014-07-19 13:53  QtitanRibbon3\bin\icudt49.dll
     文件     1330688  2014-07-19 13:53  QtitanRibbon3\bin\icuin49.dll
     文件     1053184  2014-07-19 13:53  QtitanRibbon3\bin\icuuc49.dll
     目录           0  2014-07-19 13:53  QtitanRibbon3\bin\imageformats\
     文件       22016  2014-07-19 13:53  QtitanRibbon3\bin\imageformats\qgif.dll
     文件       21504  2014-07-19 13:53  QtitanRibbon3\bin\imageformats\qico.dll
     文件      205312  2014-07-19 13:53  QtitanRibbon3\bin\imageformats\qjpeg.dll
     文件      282112  2014-07-19 13:53  QtitanRibbon3\bin\imageformats\qtiff.dll
     文件       60416  2014-07-19 13:53  QtitanRibbon3\bin\libEGL.dll
     文件      679936  2014-07-19 13:53  QtitanRibbon3\bin\libGLESv2.dll
     文件      421200  2014-07-19 13:53  QtitanRibbon3\bin\msvcp100.dll
     文件      770384  2014-07-19 13:53  QtitanRibbon3\bin\msvcr100.dll
     目录           0  2014-07-19 13:53  QtitanRibbon3\bin\platforms\
     文件       22016  2014-07-19 13:53  QtitanRibbon3\bin\platforms\qminimal.dll
     文件      818176  2014-07-19 13:53  QtitanRibbon3\bin\platforms\qwindows.dll
     文件      135680  2014-07-19 13:53  QtitanRibbon3\bin\popupwindow.exe
     文件     3675136  2014-07-19 13:53  QtitanRibbon3\bin\Qt5Core.dll
     文件     2832896  2014-07-19 13:54  QtitanRibbon3\bin\Qt5Gui.dll
     文件      246272  2014-07-19 13:53  QtitanRibbon3\bin\Qt5OpenGL.dll
     文件      223232  2014-07-19 13:53  QtitanRibbon3\bin\Qt5PrintSupport.dll
     文件      145920  2014-07-19 13:53  QtitanRibbon3\bin\Qt5Sql.dll
     文件     4253696  2014-07-19 13:54  QtitanRibbon3\bin\Qt5Widgets.dll
     文件      155136  2014-07-19 13:53  QtitanRibbon3\bin\Qt5xml.dll
     文件     3230208  2014-07-19 13:54  QtitanRibbon3\bin\qtnribbon3.dll
     文件      262144  2014-07-19 13:53  QtitanRibbon3\bin\ribbonbackstage.exe
     文件      222208  2014-07-19 13:53  QtitanRibbon3\bin\ribboncontrols.exe
     文件      196096  2014-07-19 13:53  QtitanRibbon3\bin\ribbongalleries.exe
     文件      290816  2014-07-19 13:53  QtitanRibbon3\bin\ribbonmdi.exe
............此处省略1916个文件信息

评论

共有 条评论