wxMaxima
Loading...
Searching...
No Matches
BinaryNameCtrl.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// Copyright (C) 2017-2018 Gunter Königsmann <wxMaxima@physikbuch.de>
5//
6// This program is free software; you can redistribute it and/or modify
7// it under the terms of the GNU General Public License as published by
8// the Free Software Foundation; either version 2 of the License, or
9// (at your 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//
17// You should have received a copy of the GNU General Public License
18// along with this program; if not, write to the Free Software
19// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20//
21// SPDX-License-Identifier: GPL-2.0+
22
27#ifndef BINARYNAMECTRL_H
28#define BINARYNAMECTRL_H
29
30#include "precomp.h"
31#include <wx/wx.h>
32#include <wx/button.h>
33#include <wx/textctrl.h>
34#include <wx/panel.h>
35#include "../Configuration.h"
36
37
39class BinaryNameCtrl : public wxPanel
40{
41public:
42 explicit BinaryNameCtrl(wxWindow *parent, int id = wxID_ANY);
43 wxString GetValue() const {return m_binaryName->GetValue();}
44 void SetValue(const wxString &val) {m_binaryName->SetValue(val);}
45 void SetToolTip(const wxString tip){m_binaryName->SetToolTip(tip);}
46protected:
47 void TextChangedEvent(wxCommandEvent &evt);
48 void TextChanged();
49 void OnBrowse(wxCommandEvent &event);
50private:
51 wxTextCtrl *m_binaryName;
52 wxButton *m_browseButton;
53};
54
55#endif // BINARYNAMECTRL_H
A dialog that shows the program's license.
Definition: BinaryNameCtrl.h:40