Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

OpenFilesListPlus plugin

(1/5) > >>

earlgrey:
I made an enhanced version of the classic OpenFilesList plugin, called OpenFilesListPlus :

screenshot 1
screenshot 2

It is available on github here

Only for codeblocks versions >= svn revision 10502 - C::B compilation mandatory

Installation instructions are on the wiki, but are only complete for Linux at the moment.

Feedback welcome on this thread.

( and thanx to the C::B team for having added my patch )

oBFusCATed:
You can check this plugin https://github.com/obfuscated/cb_gdbmi for an example how to implement an autotools based build system for your plugin.

p.s. What are these cci and hhi files?
p.p.s. If you ask me the code is close to unreadable with all this aligning that you're using.

earlgrey:

--- Quote from: oBFusCATed on September 27, 2015, 05:28:28 pm ---You can check this plugin https://github.com/obfuscated/cb_gdbmi for an example how to implement an autotools based build system for your plugin.

--- End quote ---
-> My work for this week.


--- Quote from: oBFusCATed on September 27, 2015, 05:28:28 pm ---p.s. What are these cci and hhi files?

--- End quote ---
cci = c++ code include file
hhi = c++ header include file
only 3 (big) files in which the .cci and .hhi files are included are compiled.
It's a ( bad ? ) habbit


--- Quote from: oBFusCATed on September 27, 2015, 05:28:28 pm ---p.p.s. If you ask me the code is close to unreadable with all this aligning that you're using.

--- End quote ---
I read other's code with difficulty because all seems scattered...

p.s. And I often use goto-s, getting lost with all those brackets

ollydbg:

--- Quote from: earlgrey on September 27, 2015, 05:42:22 pm ---
--- Quote from: oBFusCATed on September 27, 2015, 05:28:28 pm ---p.s. What are these cci and hhi files?

--- End quote ---
cci = c++ code include file
hhi = c++ header include file
only 3 (big) files in which the .cci and .hhi files are included are compiled.
It's a ( bad ? ) habbit

--- End quote ---
Why not use the standard .h and .cpp files?

earlgrey:
I group class functionalities by  ".hhi" and ".cci" file.

* I dont waste time searching in too big files
* when I get too much ".hhi" & ".cci" files I create other classes :for example, at a moment, the OpenFilesListPlus class went overweighted, so I created the OflpModxxx classes, leaving only the event handlers and the cbPlugin stuff in OpenFileListPlus classAnd it avoids me too many paste & copy of things like this :

--- Code: ---#include "sdk.h"                                                                // Code::Blocks SDK
//  ............................................................................
#ifndef CB_PRECOMP
    #include "manager.h"
    #include "configmanager.h"
    #include "configurationpanel.h"
    #include "editormanager.h"
    #include "projectmanager.h"
    #include "logmanager.h"
    #include "editorbase.h"
    #include "cbeditor.h"
    #include "sdk_events.h"
    #include "misctreeitemdata.h"

    #include "cbworkspace.h"
    #include "cbproject.h"
    #include "projectmanager.h"
#endif

--- End code ---
, just #include the ".cci" & ".hhi" file

But I have never pretented beeing a good software designer :)
By the way,

* did you try it ? Found it useful ? I always wanted to have at least separators in the OpenFilesList plugin.
* what do you think is a simple way to track memory leaks in a C::B plugin ? How do you do ?

Navigation

[0] Message Index

[#] Next page

Go to full version