资源简介
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个文件信息
相关资源
- 基于QT的黑白棋游戏
- [近乎免费]QT计算器(一般计算器和多
- 《C++ GUI QT编程》教程配套
- QT treeWidget 加载指定路径所有文件夹和
- 图片版QT黑白棋
- Qt/C++ 网站爬虫源码
- Qt5Twain.rar
- 基于Qt的2048游戏实现
- VTK与Qt整合的
- QT编写DLL 用 QTWinmigrate及,超级值得
- fmod 音频库 c++ Qt编写
- 数据结构课设排序算法的可视化演示
- 简易版的QT5实现RS232通信
- 基于QtQuick的QCustomPlot实现
- QTP 运行报:Microslft Visual C++ Runtime Lib
- C++学习路线视频全套
- 基于Qt5.9Creator的一个简单socket通信C
- 基于qt5.8写的一个贝塞尔曲线非转存
- waterProcess.zip
- QT C++检测计算机软硬件信息
- qt 遮罩背景
- QT C++ 算法 广搜BFS 最小步数解二阶魔
- PyQt5:pyCharts 绘制饼图
- C++ GUI Qt 4编程 (第二版) [超清版1
- C++ QT SMTP 发送邮件(最新,成功的)
- Qt4 For Dev-Cpp Templates
- 基于Qt的C++架构模型MVC在C++后端管理系
- 基于QT的象棋
- 基于QT的用C++编写的中国象棋软件源代
- Qt5利用Qwt实现动态绘图
评论
共有 条评论