KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_image_editor.h
Go to the documentation of this file.
1
5/*
6 * This program source code file is part of KICAD, a free EDA CAD application.
7 *
8 * Copyright (C) 2018 jean-pierre.charras
9 * Copyright (C) 2018 Kicad Developers, see AUTHORS.txt for contributors.
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, you may find one here:
23 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
24 * or you may search the http://www.gnu.org website for the version 2 license,
25 * or you may write to the Free Software Foundation, Inc.,
26 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
27 */
28
29#ifndef _DIALOG_IMAGE_EDITOR_H_
30#define _DIALOG_IMAGE_EDITOR_H_
31
32#include <dialog_image_editor_base.h>
33
34
35class DIALOG_IMAGE_EDITOR : public DIALOG_IMAGE_EDITOR_BASE
36{
37private:
38 BITMAP_BASE* m_workingImage; // The copy of BITMAP_BASE to be edited
39
40public:
41 DIALOG_IMAGE_EDITOR( wxWindow* aParent, BITMAP_BASE* aItem );
43
44
45public:
51
52private:
53 void OnGreyScaleConvert( wxCommandEvent& event ) override;
54 void OnRedrawPanel( wxPaintEvent& event ) override;
55 bool TransferDataFromWindow() override;
56
58};
59
60
61#endif // _DIALOG_IMAGE_EDITOR_H_
This class handle bitmap images in KiCad.
Definition: bitmap_base.h:48
void OnRedrawPanel(wxPaintEvent &event) override
BITMAP_BASE * m_workingImage
DIALOG_IMAGE_EDITOR(wxWindow *aParent, BITMAP_BASE *aItem)
void OnGreyScaleConvert(wxCommandEvent &event) override
void TransferToImage(BITMAP_BASE *aItem)
Function TransferToImage copy edited image to aItem.
bool TransferDataFromWindow() override