wxMaxima
VisiblyInvalidCell.h
1 // -*- mode: c++; c-file-style: "linux"; c-basic-offset: 2; indent-tabs-mode: nil -*-
2 //
3 // Copyright (C) 2004-2015 Andrej Vodopivec <andrej.vodopivec@gmail.com>
4 // (C) 2014-2018 Gunter Königsmann <wxMaxima@physikbuch.de>
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 //
21 // SPDX-License-Identifier: GPL-2.0+
22 
23 #ifndef VISIBLYINVALIDCELL_H
24 #define VISIBLYINVALIDCELL_H
25 
26 #include "TextCell.h"
27 
32 class VisiblyInvalidCell final : public TextCell
33 {
34 public:
36  VisiblyInvalidCell(GroupCell *group, Configuration **config);
38  VisiblyInvalidCell(GroupCell *group, Configuration **config, wxString &&toolTip);
39  VisiblyInvalidCell(GroupCell *group, Configuration **config, const wxString *toolTip);
40  VisiblyInvalidCell(GroupCell *group, const VisiblyInvalidCell &cell);
41 // std::unique_ptr<Cell> Copy(GroupCell *cell) const override;
42  const CellTypeInfo &GetInfo() override;
43 
44 private:
45 //** Bitfield objects (0 bytes)
46 //**
47  void InitBitFields()
48  { // Keep the initialization order below same as the order
49  // of bit fields in this class!
50  }
51 };
52 
53 #endif // VISIBLYINVALIDCELL_H
VisiblyInvalidCell::VisiblyInvalidCell
VisiblyInvalidCell(GroupCell *group, Configuration **config)
The constructor for cell that, if displayed, means that something is amiss.
Definition: VisiblyInvalidCell.cpp:36
TextCell
Definition: TextCell.h:36
Configuration
Definition: Configuration.h:83
GroupCell
Definition: GroupCell.h:68
CellTypeInfo
A class that carries information about the type of a cell.
Definition: Cell.h:90
VisiblyInvalidCell
Definition: VisiblyInvalidCell.h:32
VisiblyInvalidCell::GetInfo
const CellTypeInfo & GetInfo() override
Returns the information about this cell's type.