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

BETA - Image Editor plugin

<< < (8/20) > >>

seb_seb0:
Hello,

I am back - sorry for not giving more feedback, I was overloaded with work.

I have uploaded a working version of the plugin in the svn repository.

So here is the status:
    What is new:
      1 - interface using wxAUI (a panel is managed by wxAUIManager): it allows to move all the controls outside the painting area, for users with small screens
           The plugin will read the wxAUI configuration from CodeBlocks, and will apply the same colours.
           BTW, is there a way to know when the user made a modification to these settings (event generated by CodeBlocks) ?
      2 - Improved the colour picker, for better integration in a resizeable panel
              better size calculation
              scrollbars available
              choose automatically to draw itselft in a vertical or horizontal direction
      3 - use an improved wxFoldPanelBar (contrib lib of wxWidgets 2.8.10) to hide/show the controls
              This improved version use sizers instead of absolute X,Y calculations. Scrollbars are automatically managed
              In addition, there is the possibility to use 3 kinds of caption bars : the normal one, programmed by Jorgen Bodde, or a flat wxButton (like wxSmith) or a wxButton


     Known Bugs:
      1 - Copy / Paste:
           before copy : bitmap put in clipboard has a Mask
           after paste : bitmap does not have mask
      2 - Zoom + Pen does not work good after moving selection
      3 - Selection is not drawn when it is overlapping bitmap edges + zoom
      4 - Redraw background: the bottom right corner is not covered when zooming out

     Planned:
     1 - Tools panel is a bit too big : sizer layout to review
     2 - Implement JPG and PNG compression quality options (not too difficult, wxImage.SetOptions is straightforward)
     3 - Write some help displayed in a dialog box, for quick introduction
     4 - misc improvements which can wait (see the todo.txt)

In parallel, I am trying to install Ubuntu 10.04 on my laptop using Wubi (@ptDev : thanks for the tip !), for improved testing (It is too bad that I can currently only test Windows version.)

I have 2 questions for the Code::Blocks experts here:
     1 - XPMEditor is basically a MIME plugin (derive from cbMimePlugin).
          When opening the codeblocks project from the "Start Here" welcome page, CodeBlocks automatically opens the XPMEditorPanel.cpp file, and also the test.bmp file.
          The plugin is already loaded in Code::Blocks
          The question is : why does code::blocks opens the file "test.bmp" automatically in TEXT mode (as if the file was a source file) ? When I close it and reopen it, the XPMEditor plugin is called, as expected.
(see 1st screenshot)

     2 - I would like to display the images files that the XPMEditor can open in a specific virtual folder (such as "images" or "resources").
(see 2nd screenshot)

Regards,

Sébastien


[attachment deleted by admin]

oBFusCATed:

--- Quote from: seb_seb0 on July 11, 2010, 08:49:39 pm ---     2 - I would like to display the images files that the XPMEditor can open in a specific virtual folder (such as "images" or "resources").
(see 2nd screenshot)

--- End quote ---
You can define that *.bmp files can go to folder "images", somewhere in the Project menu. The menu option should be something related to file types/file associations.

MortenMacFly:
Right click on project, select:
- project tree -> edit file types and categories
-> setup ad desired
Enable:
- project tree -> categorize by file types
(- project tree -> hide folder names)

seb_seb0:

--- Quote from: MortenMacFly on July 12, 2010, 04:18:59 pm ---Right click on project, select:
- project tree -> edit file types and categories
-> setup ad desired
Enable:
- project tree -> categorize by file types
(- project tree -> hide folder names)


--- End quote ---

Thank you, that worked.
Is it possible to add this programmaticaly ? It is not necessarily needed, since it is very simple to do, but it is for my curiosity...

seb_seb0:
I have installed Ubuntu 10.04 on dual boot on my laptop.
I have also successfully installed Code::Blocks 10.05 on it (and it is running ! Yeah !)
Now I am fighting with the configuration (I cannot compile anything, because cb cannot find wxWidgets. I would like to help him, but I do not know myself where it is located... )

Please be patient ! Hopefully I will soon be able to test and debug my plugin on Ubuntu !

Sebastien

PS: 1st impression: it is a lot faster than on Vista (same laptop...) Code completions is much more reactive, load time of the codeblocks project took only a few seconds (against 30 seconds approximately on Vista). Do you know why there are so much differences ?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version