File: buildtabsettingsdata.h

package info (click to toggle)
codelite 12.0+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • 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 (100 lines) | stat: -rw-r--r-- 4,592 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//
// copyright            : (C) 2008 by Eran Ifrah
// file name            : buildtabsettingsdata.h
//
// -------------------------------------------------------------------------
// A
//              _____           _      _     _ _
//             /  __ \         | |    | |   (_) |
//             | /  \/ ___   __| | ___| |    _| |_ ___
//             | |    / _ \ / _  |/ _ \ |   | | __/ _ )
//             | \__/\ (_) | (_| |  __/ |___| | ||  __/
//              \____/\___/ \__,_|\___\_____/_|\__\___|
//
//                                                  F i l e
//
//    This program is free software; you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation; either version 2 of the License, or
//    (at your option) any later version.
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
#ifndef __buildtabsettingsdata__
#define __buildtabsettingsdata__

#include "serialized_object.h"
#include <wx/font.h>

class BuildTabSettingsData : public SerializedObject
{
    bool m_skipWarnings;
    wxString m_warnColour;
    wxString m_errorColour;
    wxString m_warnColourBg;
    wxString m_errorColourBg;
    bool m_boldErrFont;
    bool m_boldWarnFont;
    int m_showBuildPane;
    bool m_autoHide;
    bool m_autoShow;
    bool m_errorsFirstLine;
    int m_errorWarningStyle;
    int m_buildpaneScrollTo;
    wxFont m_buildFont;

private:
    BuildTabSettingsData(const BuildTabSettingsData& rhs);
    BuildTabSettingsData& operator=(const BuildTabSettingsData& rhs);

public:
    enum ErrorsWarningStyle { EWS_NoMarkers = 0x00000000, EWS_Bookmarks = 0x00000002, EWS_Annotate = 0x00000004 };

    enum ShowBuildPane { ShowOnStart, ShowOnEnd, DontShow };

    BuildTabSettingsData();
    ~BuildTabSettingsData();

    void Serialize(Archive& arch);
    void DeSerialize(Archive& arch);

    void SetBuildFont(const wxFont& buildFont) { this->m_buildFont = buildFont; }
    const wxFont& GetBuildFont() const { return m_buildFont; }
    
    // Setters
    void SetBoldErrFont(const bool& boldErrFont) { this->m_boldErrFont = boldErrFont; }
    void SetBoldWarnFont(const bool& boldWarnFont) { this->m_boldWarnFont = boldWarnFont; }
    void SetErrorColour(const wxString& errorColour) { this->m_errorColour = errorColour; }
    void SetErrorColourBg(const wxString& errorColourBg) { this->m_errorColourBg = errorColourBg; }
    void SetShowBuildPane(int showBuildPane) { this->m_showBuildPane = showBuildPane; }
    void SetSkipWarnings(const bool& skipWarnings) { this->m_skipWarnings = skipWarnings; }
    void SetBuildPaneScrollDestination(int buildpaneScrollTo) { this->m_buildpaneScrollTo = buildpaneScrollTo; }
    void SetWarnColour(const wxString& warnColour) { this->m_warnColour = warnColour; }
    void SetWarnColourBg(const wxString& warnColourBg) { this->m_warnColourBg = warnColourBg; }
    // Getters
    const bool& GetBoldErrFont() const { return m_boldErrFont; }
    const bool& GetBoldWarnFont() const { return m_boldWarnFont; }
    const wxString& GetErrorColour() const { return m_errorColour; }
    const wxString& GetErrorColourBg() const { return m_errorColourBg; }
    int GetShowBuildPane() const { return m_showBuildPane; }
    const bool& GetSkipWarnings() const { return m_skipWarnings; }
    int GetBuildPaneScrollDestination() const { return m_buildpaneScrollTo; }
    const wxString& GetWarnColour() const { return m_warnColour; }
    const wxString& GetWarnColourBg() const { return m_warnColourBg; }

    // Setters
    void SetAutoHide(const bool& autoHide) { this->m_autoHide = autoHide; }
    const bool& GetAutoHide() const { return m_autoHide; }

    void SetAutoShow(const bool& autoShow) { this->m_autoShow = autoShow; }
    const bool& GetAutoShow() const { return m_autoShow; }

    void SetErrorsFirstLine(const bool& errorsFirstLine) { this->m_errorsFirstLine = errorsFirstLine; }
    const bool& GetErrorsFirstLine() const { return m_errorsFirstLine; }

    void SetErrorWarningStyle(const int& errorWarningStyle) { this->m_errorWarningStyle = errorWarningStyle; }
    const int& GetErrorWarningStyle() const { return m_errorWarningStyle; }
};
#endif // __buildtabsettingsdata__