当前位置: 首页 > news >正文

网络网站设计培训商丘软件开发

网络网站设计培训,商丘软件开发,wordpress安全,百度竞价关键词查询文章目录 前言来看一个从字符串中生成UI的例子 前言 glade生成的xml格式不被gtkmm4支持, 需要作修改 来看一个从字符串中生成UI的例子 #include gtkmm/application.h #include gtkmm.h #include iostream using namespace std;class ExampleWindow :… 文章目录 前言来看一个从字符串中生成UI的例子 前言 glade生成的xml格式不被gtkmm4支持, 需要作修改 来看一个从字符串中生成UI的例子 #include gtkmm/application.h #include gtkmm.h #include iostream using namespace std;class ExampleWindow : public Gtk::Window { public:ExampleWindow();virtual ~ExampleWindow() {};void on_action_file_new(){cout New endl;};void on_action_file_open() {};void on_action_file_quit() {};Gtk::Box m_Box; }; ExampleWindow::ExampleWindow() {auto m_refBuilder Gtk::Builder::create();Glib::ustring ui_info interface menu idmenubar submenu attribute namelabel translatableyes_File/attribute section item attribute namelabel translatableyes_New/attribute attribute nameactionexample.new/attribute /item /section section item attribute namelabel translatableyes_Quit/attribute attribute nameactionexample.quit/attribute /item /section /submenu submenu attribute namelabel translatableyes_Edit/attribute item attribute namelabel translatableyes_Copy/attribute attribute nameactionexample.copy/attribute /item item attribute namelabel translatableyes_Paste/attribute attribute nameactionexample.paste/attribute /item /submenu /menu/interface;//绑定行动的对应动作 实际绑定auto m_refActionGroup Gio::SimpleActionGroup::create();m_refActionGroup-add_action(new, sigc::mem_fun(*this, ExampleWindow::on_action_file_new));m_refActionGroup-add_action(open, sigc::mem_fun(*this, ExampleWindow::on_action_file_open));m_refActionGroup-add_action(quit, sigc::mem_fun(*this, ExampleWindow::on_action_file_quit));insert_action_group(example, m_refActionGroup);//行动组example 实体诞生m_refBuilder-add_from_string(ui_info);//m_refBuilder-add_from_file(K:\\CPlusPlus\\cgcc\\Xml_UI.xml);auto gmenu m_refBuilder-get_objectGio::Menu(menubar);auto pMenuBar Gtk::make_managedGtk::PopoverMenuBar(gmenu);m_Box.append(*pMenuBar);set_child(m_Box);pMenuBar-set_visible(true);m_Box.set_visible(true); } int main(int argc, char* argv[]) {auto app Gtk::Application::create(org.gtkmm.example);//app快捷键 键位设置对应行动 预先设置app-set_accel_for_action(example.new, Primaryn);//表示CtrlNapp-set_accel_for_action(example.quit, Primaryq);//表示CtrlQapp-set_accel_for_action(example.copy, Primaryc);//表示CtrlCapp-set_accel_for_action(example.paste, Primaryv);//表示CtrlV//Shows the window and returns when it is closed.return app-make_window_and_runExampleWindow(argc, argv); }可以把那些字符串放入一个xml文件 然后 m_refBuilder-add_from_file(“K:\CPlusPlus\cgcc\Xml_UI.xml”); 代替上面的add_from_string.
http://www.hkea.cn/news/14479318/

相关文章:

  • 做网站公司销售开场白官方微网站吗
  • 网站商场系统软件如何让百度抓取网站
  • 网站开发工作总结wordpress流量统计插件
  • 蒙古文网站建设工作情况汇报wordpress nodejs版本
  • 响应式网站建设视频教程常用的搜索引擎有哪些?
  • 网站前端页面设计竹子建站模板怎么下载
  • 做网站 视频加载太慢新网域名续费
  • 公司网站搜索引擎优化wordpress 为什么要ftp
  • 郑州手机网站建设站长工具whois查询
  • 郑州可以做网站的公司h5个人网站模板源码
  • 网站建设参考书网络摄像头定制开发
  • 汝阳县建设局网站广东新闻发布会
  • 帝国建站模板同步wordpress站点
  • 网站建设 代表联系群众石材石料网站搭建教程
  • 福州市连江县建设局网站模板王网站
  • 怎么上传自己的网站网站建设研究方法
  • 网站首页建设网电商网站建设c微fzsszai
  • 网站开发人员有哪些合肥公司
  • 网站html模板下载安徽省建设工程质量与安全协会官网
  • 好的做外贸的网站有哪些怎样进行文化建设
  • 网盘搜索网站 怎么做成都网站搭建公司哪家好
  • wordpress模板选择seo网站基础建设
  • 做饮品的网站修改网站空间服务器密码
  • 做一个企业网站要多久如何制作网络投票的网页
  • 37建筑人才网常州百度推广优化
  • 湖南竞网做网站好吗问什么出现 这个网站正在建设中
  • 分析某个网站建设wordpress自定义分类无法显示
  • 2018年做网站还能wordpress 点图片链接
  • 桂林网站建设seowhy论坛
  • 响应式网站模板免费美食网站中饮食资讯该怎么做