wxMaxima
Loading...
Searching...
No Matches
ArtProvider.h
Go to the documentation of this file.
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) 2008-2009 Ziga Lenarcic <zigalenarcic@users.sourceforge.net>
5// (C) 2012-2013 Doug Ilijev <doug.ilijev@gmail.com>
6// (C) 2015-2016 Gunter Königsmann <wxMaxima@physikbuch.de>
7//
8// This program is free software; you can redistribute it and/or modify
9// it under the terms of the GNU General Public License as published by
10// the Free Software Foundation; either version 2 of the License, or
11// (at your option) any later version.
12//
13// This program is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU General Public License for more details.
17//
18//
19// You should have received a copy of the GNU General Public License
20// along with this program; if not, write to the Free Software
21// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22//
23// SPDX-License-Identifier: GPL-2.0+
24
29#include <wx/bitmap.h>
30#include <wx/window.h>
31#if wxCHECK_VERSION(3, 2, 0)
32#include <wx/bmpbndl.h>
33#endif
34
35#ifndef _ARTPROVIDER_H
36#define _ARTPROVIDER_H
37
39{
40public:
41 ArtProvider(){}
42 static wxBitmap GetImage(wxWindow *win, const wxString &name, int width,
43 unsigned const char *data,
44 std::size_t dataLen);
45 static wxBitmap GetQuestionmarkBitmap(wxWindow *win, wxSize siz);
46#if wxCHECK_VERSION(3, 2, 0)
47 static wxBitmapBundle GetQuestionmarkBundle(){return m_questionmarkBundle;}
48 static wxBitmapBundle GetDivideCellBundle(){return m_dividecellBundle;}
49 static wxBitmapBundle GetAddToWatchlistBundle(){return m_addToWatchlistBundle;}
50 static wxBitmapBundle GetCellMergeBundle(){return m_cellMergeBundle;}
51private:
52 static wxBitmapBundle m_questionmarkBundle;
53 static wxBitmapBundle m_dividecellBundle;
54 static wxBitmapBundle m_addToWatchlistBundle;
55 static wxBitmapBundle m_cellMergeBundle;
56#endif
57};
58
59#endif
Definition: ArtProvider.h:39