Code::Blocks  SVN r11506
Public Member Functions | Private Member Functions | Static Private Attributes | Friends | List of all members
PersonalityManager Class Reference

Manage different personalities. More...

#include <personalitymanager.h>

Inheritance diagram for PersonalityManager:
Collaboration diagram for PersonalityManager:

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 PersonalityManagerGet ()
 
static void Free ()
 
- Protected Member Functions inherited from Mgr< PersonalityManager >
 Mgr ()
 
virtual ~Mgr ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PersonalityManager()

PersonalityManager::PersonalityManager ( )
private

Definition at line 26 of file personalitymanager.cpp.

References _T, and pers.

Member Function Documentation

◆ GetPersonalitiesList()

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.

◆ GetPersonality()

const wxString PersonalityManager::GetPersonality ( )

Get the working personality string.

Definition at line 36 of file personalitymanager.cpp.

References pers.

◆ SetPersonality()

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().

Friends And Related Function Documentation

◆ Manager

friend class Manager
friend

Definition at line 39 of file personalitymanager.h.

◆ Mgr< PersonalityManager >

friend class Mgr< PersonalityManager >
friend

Definition at line 38 of file personalitymanager.h.

Member Data Documentation

◆ pers

wxString PersonalityManager::pers
staticprivate

The documentation for this class was generated from the following files: