Code::Blocks
SVN r11506
|
Manage different personalities. More...
#include <personalitymanager.h>
Public Member Functions | |
void | SetPersonality (const wxString &personality, bool createIfNotExist=false) |
Use this once, on program startup to set the working personality. More... | |
const wxString | GetPersonality () |
Get the working personality string. More... | |
const wxArrayString | GetPersonalitiesList () |
Get a list of all the known personalities. More... | |
Private Member Functions | |
PersonalityManager () | |
Static Private Attributes | |
static wxString | pers |
Friends | |
class | Mgr< PersonalityManager > |
class | Manager |
Additional Inherited Members | |
Static Public Member Functions inherited from Mgr< PersonalityManager > | |
static bool | Valid () |
static PersonalityManager * | Get () |
static void | Free () |
Protected Member Functions inherited from Mgr< PersonalityManager > | |
Mgr () | |
virtual | ~Mgr () |
Manage different personalities.
Personalities are different profiles of appearence for Code::Blocks. For instance, the default personality is the full IDE. You could create a "Text editor" personality that is light-weight, tailored to "simple" text editing. In this example "Text editor" personality, the manager windows would be hidden and no plugins would be loaded, making Code::Blocks perfect for text editing (with all the powerful features of its embedded editor).
The user can create as many personalities as needed. The work-in-progress file associations manager (win32 only) will work with personalities so that different file types launch Code::Blocks using a different personality...
To select the desired personality when launching Code::Blocks, the user can use the command-line switch "--personality". If "--personality=ask" is passed in the command line, a selection box will be displayed for the user to choose the desired personality.
Definition at line 31 of file personalitymanager.h.
|
private |
Definition at line 26 of file personalitymanager.cpp.
const wxArrayString PersonalityManager::GetPersonalitiesList | ( | ) |
Get a list of all the known personalities.
Definition at line 41 of file personalitymanager.cpp.
References _T, wxDir::GetAllFiles(), ConfigManager::GetConfigFolder(), wxArrayString::GetCount(), wxFileName::GetName(), pers, and wxDIR_FILES.
const wxString PersonalityManager::GetPersonality | ( | ) |
Get the working personality string.
Definition at line 36 of file personalitymanager.cpp.
References pers.
void PersonalityManager::SetPersonality | ( | const wxString & | personality, |
bool | createIfNotExist = false |
||
) |
Use this once, on program startup to set the working personality.
Definition at line 31 of file personalitymanager.cpp.
References pers.
Referenced by CodeBlocksApp::SetupPersonality().
|
friend |
Definition at line 39 of file personalitymanager.h.
|
friend |
Definition at line 38 of file personalitymanager.h.
|
staticprivate |
Definition at line 33 of file personalitymanager.h.
Referenced by GetPersonalitiesList(), GetPersonality(), PersonalityManager(), and SetPersonality().