KiCad PCB EDA Suite
Loading...
Searching...
No Matches
mergetool_frame.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your
9 * 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 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, you may find one here:
18 * http://www.gnu.org/licenses/gpl-3.0.html
19 * or you may search the http://www.gnu.org website for the version 3 license,
20 * or you may write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22 */
23
24#ifndef KICAD_MERGETOOL_FRAME_H
25#define KICAD_MERGETOOL_FRAME_H
26
27#include <kiway_player.h>
28
29
51{
52 wxString ancestor;
53 wxString ours;
54 wxString theirs;
55 wxString output;
56};
57
58
60{
61public:
62 MERGETOOL_FRAME( KIWAY* aKiway, wxWindow* aParent, const MERGETOOL_PATHS& aPaths );
63
64 ~MERGETOOL_FRAME() override;
65
68 int RunMerge();
69
72 wxWindow* GetToolCanvas() const override { return nullptr; }
73
81 APP_SETTINGS_BASE* config() const override { return nullptr; }
82
83protected:
84 void doCloseWindow() override;
85
86private:
88};
89
90#endif // KICAD_MERGETOOL_FRAME_H
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
KIWAY_PLAYER(KIWAY *aKiway, wxWindow *aParent, FRAME_T aFrameType, const wxString &aTitle, const wxPoint &aPos, const wxSize &aSize, long aStyle, const wxString &aFrameName, const EDA_IU_SCALE &aIuScale)
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
Definition kiway.h:311
~MERGETOOL_FRAME() override
MERGETOOL_FRAME(KIWAY *aKiway, wxWindow *aParent, const MERGETOOL_PATHS &aPaths)
wxWindow * GetToolCanvas() const override
The mergetool has no canvas; this frame exists only to host the modal resolution dialog.
int RunMerge()
Run the merge synchronously.
void doCloseWindow() override
MERGETOOL_PATHS m_paths
APP_SETTINGS_BASE * config() const override
Override the inherited config getter to return null.
Top-level host frame for the 3-way merge resolution dialog.