File: clProfileHandler.h

package info (click to toggle)
codelite 12.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 95,112 kB
  • sloc: cpp: 424,040; ansic: 18,284; php: 9,569; lex: 4,186; yacc: 2,820; python: 2,294; sh: 312; makefile: 51; xml: 13
file content (36 lines) | stat: -rw-r--r-- 1,054 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef CLPROFILEHANDLER_H
#define CLPROFILEHANDLER_H

#include <wx/event.h>
#include "codelite_exports.h"
#include "wxStringHash.h"
#include "macros.h"
#include "cl_command_event.h"
#include "Notebook.h"

class WXDLLIMPEXP_SDK clProfileHandler : public wxEvtHandler
{
    wxStringSet_t m_cxxOutputTabs;
    wxStringSet_t m_cxxWorkspaceTabs;
    wxStringSet_t m_cxxOutputTabsToRestore;
    wxStringSet_t m_cxxWorkspaceTabsToRestore;

protected:
    clProfileHandler();
    virtual ~clProfileHandler();

    void OnWorkspaceClosed(wxCommandEvent& e);
    void OnWorkspaceLoaded(wxCommandEvent& e);
    void OnGoingDown(clCommandEvent& e);
    void HandleWorkspaceTabs(bool show);
    void HandleOutputTabs(bool show);

    bool IsPageExistsInBook(Notebook* book, const wxString& label) const;
    void RestoreTabs(wxStringSet_t& tabs, wxEventType eventType);
    void HideTabs(const wxStringSet_t& candidates, Notebook* book, wxEventType eventType, wxStringSet_t& tabsHidden);

public:
    static clProfileHandler& Get();
};

#endif // CLPROFILEHANDLER_H