• 大小: 25KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-08
  • 语言: C/C++
  • 标签: Qt  mvc  

资源简介

libgitlmvc 是一个基于Qt构建的的C++ MVC 框架 概览: ViewFront ControllerCommandsModel 该框架包括四个部分: 视图: 用户交互界面 前端控制其(Front Controller): 处理所有的视图请求 命令: 前端控制其根据不同的视图请求,调用不同的命令,实现某个特定的功能 模型: 表示程序当前的状态。 已经调试运行了

资源截图

代码片段和文件信息

/*******************************************************************************************
 * Copyright (c) 2013 Huang Li  IIPL 
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms with or without modification
 * are permitted provided that the following conditions are met:
 * * Redistributions of source code must retain the above copyright notice this list
 *   of conditions and the following disclaimer.
 * * Redistributions in binary form must reproduce the above copyright notice this list
 *   of conditions and the following disclaimer in the documentation and/or other
 *   materials provided with the distribution.
 * * Neither the name of the IIPL nor the names of its contributors may be used
 *   to endorse or promote products derived from this software without specific prior
 *   written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“ AND ANY
 * EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
 * SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL
 * SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT
 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *******************************************************************************************/
#include “gitlevent.h“
#include “gitlmodual.h“
#include 
#include “gitleventbus.h“
#include 
GitlEvent::GitlEvent( const QString& strEvtName )
{
    this->m_strEvtName = strEvtName;
}


GitlEvent::GitlEvent()
{
    this->m_strEvtName = “UNKNOWN“;
}

bool GitlEvent::hasParameter(QString strParam) const
{
    return m_cParameters.hasParameter(strParam);
}

QVariant GitlEvent::getParameter(const QString& strParam ) const
{
    return m_cParameters.getParameter(strParam);
}

bool GitlEvent::setParameter(const QString& strParam const QVariant& rvValue)
{
    m_cParameters.setParameter(strParam rvValue);
    return true;
}

void GitlEvent::dispatch() const
{
    GitlEventBus::getInstance()->post(*this);
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       3778  2014-06-11 05:08  MVC\gitldef.h

     文件       2571  2014-06-11 05:08  MVC\gitlevent.cpp

     文件       3665  2014-06-11 05:08  MVC\gitlevent.h

     文件       2557  2016-12-07 14:59  MVC\gitleventbus.cpp

     文件       2670  2014-06-11 05:08  MVC\gitleventbus.h

     文件        674  2014-06-11 05:08  MVC\gitleventparam.cpp

     文件       1069  2014-06-11 05:08  MVC\gitleventparam.h

     文件       2497  2014-06-11 05:08  MVC\gitlmodual.cpp

     文件       3220  2014-06-11 05:08  MVC\gitlmodual.h

     文件       3018  2014-06-11 05:08  MVC\gitlmodualdelegate.cpp

     文件       3544  2014-06-11 05:08  MVC\gitlmodualdelegate.h

     文件       1485  2016-12-07 10:55  MVC\libGitlMVCd\gitlabstractcommand.h

     文件       5304  2015-03-17 20:14  MVC\libGitlMVCd\gitlfrontcontroller.cpp

     文件       2487  2016-12-07 11:59  MVC\libGitlMVCd\gitlfrontcontroller.h

     文件        485  2015-03-17 20:14  MVC\libGitlMVCd\gitlivkcmdevt.cpp

     文件        435  2016-12-07 11:52  MVC\libGitlMVCd\gitlivkcmdevt.h

     文件        528  2015-03-17 20:14  MVC\libGitlMVCd\gitlmodel.h

     文件        214  2015-03-17 20:14  MVC\libGitlMVCd\gitlmvcconst.h

     文件        382  2015-03-17 20:14  MVC\libGitlMVCd\gitlupdateuievt.cpp

     文件        394  2016-12-07 11:26  MVC\libGitlMVCd\gitlupdateuievt.h

     文件       1641  2015-03-17 20:14  MVC\libGitlMVCd\gitlview.cpp

     文件       1576  2016-12-07 10:55  MVC\libGitlMVCd\gitlview.h

     文件       1193  2016-12-07 11:58  MVC\mvc.pro

     文件      18676  2016-12-07 14:59  MVC\mvc.pro.user

     文件        652  2016-12-07 14:42  MVC\test\main.cpp

     文件        895  2016-12-07 14:35  MVC\test\mainwindow.cpp

     文件        528  2016-12-07 12:01  MVC\test\mainwindow.h

     文件       1346  2015-03-17 20:14  MVC\test\mainwindow.ui

     文件        875  2016-12-07 12:00  MVC\test\testcommand.h

     文件        347  2016-12-07 12:00  MVC\test\testmodel.h

............此处省略6个文件信息

评论

共有 条评论