wxMaxima
src
cells
DigitCell.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
// (C) 2020 Kuba Ober <kuba@bertec.com>
6
//
7
// This program is free software; you can redistribute it and/or modify
8
// it under the terms of the GNU General Public License as published by
9
// the Free Software Foundation; either version 2 of the License, or
10
// (at your option) any later version.
11
//
12
// This program is distributed in the hope that it will be useful,
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
// GNU General Public License for more details.
16
//
17
//
18
// You should have received a copy of the GNU General Public License
19
// along with this program; if not, write to the Free Software
20
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
//
22
// SPDX-License-Identifier: GPL-2.0+
23
24
#ifndef DIGITCELL_H
25
#define DIGITCELL_H
26
27
#include <wx/regex.h>
28
#include "TextCell.h"
29
32
class
DigitCell
:
public
TextCell
33
{
34
public
:
35
DigitCell
(
GroupCell
*group,
Configuration
**config,
const
wxString &text = {},
TextStyle
style = TS_NUMBER);
36
DigitCell
(
GroupCell
*group,
const
DigitCell
&cell);
37
~
DigitCell
(){}
38
std::unique_ptr<Cell>
Copy
(
GroupCell
*group)
const override
;
39
const
CellTypeInfo
&
GetInfo
()
override
;
40
41
void
Recalculate
(
AFontSize
fontsize)
override
;
42
void
Draw
(wxPoint point)
override
;
43
};
44
45
#endif // DIGITCELL_H
TextCell
Definition:
TextCell.h:36
TextStyle
TextStyle
Definition:
TextStyle.h:307
DigitCell::GetInfo
const CellTypeInfo & GetInfo() override
Returns the information about this cell's type.
DigitCell::Recalculate
void Recalculate(AFontSize fontsize) override
Definition:
DigitCell.cpp:48
DigitCell::Copy
std::unique_ptr< Cell > Copy(GroupCell *group) const override
DigitCell::Draw
void Draw(wxPoint point) override
Definition:
DigitCell.cpp:62
AFontSize
Definition:
FontAttribs.h:97
Configuration
Definition:
Configuration.h:83
GroupCell
Definition:
GroupCell.h:68
DigitCell
Definition:
DigitCell.h:32
CellTypeInfo
A class that carries information about the type of a cell.
Definition:
Cell.h:90
Generated by
1.8.17