File: clMainFrameHelper.h

package info (click to toggle)
codelite 10.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 71,364 kB
  • sloc: cpp: 415,397; ansic: 18,277; php: 9,547; lex: 4,181; yacc: 2,820; python: 2,294; sh: 383; makefile: 51; xml: 13
file content (43 lines) | stat: -rw-r--r-- 1,032 bytes parent folder | download | duplicates (3)
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
37
38
39
40
41
42
43
#ifndef CLMAINFRAMEHELPER_H
#define CLMAINFRAMEHELPER_H

#include "codelite_exports.h"
#include <wx/event.h>
#include "smart_ptr.h"

class clMainFrame;
class clDockingManager;

class WXDLLIMPEXP_SDK clMainFrameHelper : public wxEvtHandler
{
    clMainFrame* m_mainFrame;
    clDockingManager* m_mgr;
    size_t m_debuggerFeatures;

public:
    typedef SmartPtr<clMainFrameHelper> Ptr_t;

public:
    clMainFrameHelper(clMainFrame* frame, clDockingManager* dockMgr);
    ~clMainFrameHelper();

    void SetDebuggerFeatures(size_t debuggerFeatures) { this->m_debuggerFeatures = debuggerFeatures; }
    size_t GetDebuggerFeatures() const { return m_debuggerFeatures; }
    
    /**
     * @brief is the toolbar visible?
     */
    bool IsToolbarShown() const;

    /**
     * @brief return true if the various docking windows captions are visible
     */
    bool IsCaptionsVisible() const;

    /**
     * @brief return true if the status bar is visible
     */
    bool IsStatusBarVisible() const;
};

#endif // CLMAINFRAMEHELPER_H