Eclipse SDK + PyDev = Python IDE

eclipse_logo 一直不太喜欢的庞大,但是现在也不能容忍IDLE的脆弱,还是尝试使用前者加PyDev来开发Python程序,参考了网上的一些文章基本上在一个小时之内完成了从0到环境的搭建和配置,并且成功的运行了以前的一个Python项目。以下链接和相关说明供参考。

安装配置Django开发环境( + Pydev)

Continue reading Eclipse SDK + PyDev = Python IDE - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

ProjectManager, Project and ProjectFile in Code::Blocks

CB-Project-File IDE的内部实现中,关于项目和文件之间的关系和数据保存主要维护在Project,和ProjectFile这几个类里面。在里面有几个部分:1)View:包括m_pNotebook, m_pTree, m_plugin等;2)Status:包括m_isLoadingProject, m_isclosingProject, m_isCheckingForExternallyModifiedProject等,从字面意义上就可以看出它们的用途;3)Project:包括m_pActiveProject和指针*m_pProjects。这个当前活动的项目m_pActiveProject就是Project类的实例。

Continue reading ProjectManager, Project and ProjectFile in Code::Blocks - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

Debugging With CodeLite - CodeLite调试简介

debugging-catch-bug CBForge.com站内已经有好几篇关于CodeBlocks调试的文章,今天转载并部分翻译一篇关于CodeLite的Debugging文章供大家参考。因为在CodeInsight中不打算支持/GDB等编译、调试相关的功能,所以不打算后续再写关于这部分的代码分析文章了。如果哪位朋友有兴趣的话,可以继续供稿。

这一篇中主要包括了:CodeLite GDB设置;Attach到进程;Debugger 和Debugger Shortcut几部分。CodeLite在GDB之上封装了一层,但是它并没有使用GDB的命令行模式,而是使用了MI模式。所以调试的输出可能看起来不像你平时知道的那样。这儿有一篇关于GDB/MI的语法说明的文章可以参考:GDB/MI command syntax

Continue reading Debugging With CodeLite - CodeLite调试简介 - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

Code::Blocks Debug Shortcut and Example

作为一个优秀的IDE,Code::Blocks自然也提供Debugger的功能,以下我们介绍如何使用Code::Blocks的Debugger和使用实例。下面是CodeBlocks Debug的快捷键定义(Shortcut key):

Debug - F8 ,Continue - Ctrl + F7 ,Step over a code block  - F7

Step into a code block - Shift + F7,Step out of a code block - Ctrl + Shift + F7

Toggle breakpoint - F5Run to cursor - F4

Previous error - Alt + F1Next error - Alt + F2

Continue reading Code::Blocks Debug Shortcut and Example - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

Code::Blocks IDE: 手动安装和配置编译器指南

GCC-Compiler 当第一次运行CodeBlocks IDE,它会自动扫描系统寻找支持的编译器。当扫描结束时,CodeBlocks会配置检测到的编译器,甚至为那些没有发现的编译器也会包括缺省的配置。这篇文章主要是指导你如何手动获取、安装和配置CodeBlocks可以使用的编译器。以下大体上按照操作系统不同分别讨论:,Linux和。同时包含各种编译器的主页/下载地址可以方便你直接访问。

Continue reading Code::Blocks IDE: 手动安装和配置编译器指南 - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

CodeBlocks下SDL编译成功实例

Cartoon-codeblocks-sdl-compile 1 首先去下载一份最新版的 CodeBlocks;2 在SDL官方下载一份SDL-版;3 开始我们的SDL之旅吧

首先建立一个空的项目并且选择编译规则为Gcc;其次在编译和调试选项中设置好SDL的库目录。这里值得注意的是在项目工程属性中 编译目标 中的 选项设置类型为 Gui applications;最后在编译和调试选项中的 连接设置中的 其他链接选项 输入-lmingw32 -lSDLmain –lSDL

Continue reading CodeBlocks下SDL编译成功实例 - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

CodeLite Plugin Internal(2)-Load: 插件加载分析

hat_dll_load 上回书说到接口和众插件之间的关系,这里讲讲插件加载的过程。加载点在系统初始化时Framezhong 调用,上次也说过。这里主要是从PluginManager::Load() 说起。首先读取插件配置文件 config/plugins.xml,并将信息保存到std::map<wxString, PluginInfo> m_pluginsInfo中,这个成员m_pluginsInfo是属于PluginManager,这个map保存了插件名称和Pluginfo的映射关系。接着TagManagerST和LanguageST互相赋值。

现在进入重点循环,针对插件目录下的每个.dll/.so文件,会进行1)加载动态库;2)读插件信息;3)加载插件;4)调用插件相关创建toolbar和menu的函数。下面一一详述:

Continue reading CodeLite Plugin Internal(2)-Load: 插件加载分析 - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

CodeLite Plugin Internal(1) – IPlugin interface

icosahedronFeather 所有的CodeLite插件都以动态库的形式(.dll or .so)保存在/plugins下,通过程序初始化时调用Frame::LoadPlugins加载[CodeLite的初始化分析在另外一篇文章中已有详述,请在ide.cbforge.com站内参阅]。插件相关的配置保存在/config/plugins.xml文件。文件为XML格式,每一插件项都保存有以下几项:SerializedObject Name,Plugin Name,Author,Description and Version。关于插件的实现我们会分几篇文章分析,这个第一篇主要关注IPlugin接口的实现。

IPlugin is the interface that defines a plugin for CodeLite. Each plugin must implement the pure virtual methods of this interface. The plugin gains access to CodeLite data by using the m_mgr member.

Continue reading CodeLite Plugin Internal(1) – IPlugin interface - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

Setting up Code::Blocks to work with SDL - 多媒体编程库

tmobile-sdl - Simple DirectMedia Layer, is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. It is used by MPEG playback software, emulators, and many popular games, including the award winning port of "Civilization: Call To Power."

supports , , CE, BeOS, MacOS, , FreeBSD, NetBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX. The code contains support for AmigaOS, Dreamcast, Atari, AIX, OSF/Tru64, RISC OS, SymbianOS, and OS/2, but these are not officially supported.  is written in C, but works with C++ natively, and has bindings to several other languages, including Ada, C#, D, Eiffel, Erlang, Euphoria, Guile, Haskell, Java, Lisp, Lua, ML, Objective C, Pascal, Perl, PHP, Pike, Pliant, Python, Ruby, Smalltalk, and Tcl.  is distributed under LGPL version 2. This license allows you to use freely in commercial programs as long as you link with the dynamic library. – libsdl.org

Continue reading Setting up Code::Blocks to work with SDL - 多媒体编程库 - 全文阅读

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis
 Page 1 of 4  1  2  3  4 »

Contact us

Admin: Bryan Wu