Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: devilsclaw on March 31, 2007, 01:49:21 pm

Title: Where to put new options
Post by: devilsclaw on March 31, 2007, 01:49:21 pm
Currently the Arrows and spacing of the project tree are to spread for me.

so in the projectmanager.h i added

Code
        ///Set Project Tree Open Folder indentation
        void SetTreeIndent(int n){m_pTree->SetIndent(n);RebuildTree();}
       
        ///Set Project Arror spacing
        void SetTreeSpacing(int n){m_pTree->SetSpacing(n);RebuildTree();}
       
        ///Get Project Tree Open Folder indentation
        int GetTreeIndent(){m_pTree->GetIndent();}
       
        ///Get Project Arror spacing
        int GetTreeSpacing(){m_pTree->GetSpacing();}

but since the project manage really is focused one projects and that is something that would be global
im not sure where to put the code that sets it and what catagorie to put it under.

This picture is with defaults settings
(http://www.devilsclaws.net/proj2.jpg)






This picture is with these settings
Code
    SetTreeIndent(10);
    SetTreeSpacing(4);

(http://www.devilsclaws.net/proj1.jpg)