KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_image_editor.h
Go to the documentation of this file.
1
4
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 The 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, see <https://www.gnu.org/licenses/>.
23 */
24
25#ifndef _DIALOG_IMAGE_EDITOR_H_
26#define _DIALOG_IMAGE_EDITOR_H_
27
28#include <dialog_image_editor_base.h>
29
30
31class DIALOG_IMAGE_EDITOR : public DIALOG_IMAGE_EDITOR_BASE
32{
33private:
34 BITMAP_BASE* m_workingImage; // The copy of BITMAP_BASE to be edited
35
36public:
37 DIALOG_IMAGE_EDITOR( wxWindow* aParent, BITMAP_BASE* aItem );
39
40
41public:
46
47private:
48 void OnGreyScaleConvert( wxCommandEvent& event ) override;
49 void OnRedrawPanel( wxPaintEvent& event ) override;
50 bool TransferDataFromWindow() override;
51
53};
54
55
56#endif // _DIALOG_IMAGE_EDITOR_H_
This class handle bitmap images in KiCad.
Definition bitmap_base.h:45
void OnRedrawPanel(wxPaintEvent &event) override
DIALOG_IMAGE_EDITOR(wxWindow *aParent, BITMAP_BASE *aItem)
void OnGreyScaleConvert(wxCommandEvent &event) override
void TransferToImage(BITMAP_BASE *aItem)
Copy edited image to aItem.
bool TransferDataFromWindow() override