haaaim.blogg.se

Code blocks tutorial
Code blocks tutorial









code blocks tutorial

More information can be provided by clicking on the Enter Plugin Info button. The Plugin name field is the name of the plugin interface class which the wizard will create. We will use this later in order to display our message. Tool type plugins are added to the Plugins main menu submenu automatically, and their Execute method is called when they are selected by the user.

code blocks tutorial

We want to build a Tool plugin, so select that from the list. The drop down Plugin type list in the wizard allows you to select which type of plugin you wish to build - essentially which class the main plugin interface class will inherit from. The Code::Blocks SDK contains interfaces for various different types of plugins in the cbPlugin.h file. In the next step you can choose which compiler you want to use for your plugin project. After clicking the next button a new dialog apears and you can edit a bunch of information about your plugin. Let's denote the plugin name with HelloWorld. If you click the Next button you will see the next plugin property dialog: You can see that we denoted the project title as HelloWordPlugin. In the first edit field write the title of your project. Now you will see the following dialog box: You will see a dialog box with some information but you can skip that after reading it. Select the File->New->Project option from the main menu bar and choose the Code::Blocks Plugin Wizard. This could be done completely by hand, but Code::Blocks contains a very useful plugin project generator (which, incidentally, is a plugin itself), so we'll use that. This tutorial will guide you through the creation of a simple "Hello World" plugin, which when activated displays "Hello World!" in the Code::Blocks log tab below the editor. Here you can find instructions:Ĭategory:Installing Code::Blocks from source Overview You have to compile them before you can compile a plugin. This tutorial assumes you have a working version of Code::Blocks installed and some knowledge of how to deal with projects, in particular how to compile them.Īlso you need the source files of Code::Blocks and of wxWidgets. Letting the project know where to find the SDK











Code blocks tutorial