KiCad PCB EDA Suite
Loading...
Searching...
No Matches
kistatusbar.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 (C) 2023 Mark Roszko <[email protected]>
5 * Copyright (C) 2023 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, you may find one here:
19 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20 * or you may search the http://www.gnu.org website for the version 2 license,
21 * or you may write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 */
24
25#ifndef KISTATUSBAR_H
26#define KISTATUSBAR_H
27
28#include <kicommon.h>
29
30class wxGauge;
31class wxButton;
32class wxStaticText;
33class BITMAP_BUTTON;
34
44class KICOMMON_API KISTATUSBAR : public wxStatusBar
45{
46public:
47 KISTATUSBAR( int aNumberFields, wxWindow* parent, wxWindowID id );
48
49public:
55 void SetEllipsedTextField( const wxString& aText, int aFieldId );
56
60 void ShowBackgroundProgressBar( bool aCancellable = false );
61
65 void HideBackgroundProgressBar();
66
70 void SetBackgroundProgress( int aAmount );
71
75 void SetBackgroundProgressMax( int aAmount );
76
80 void SetBackgroundStatusText( const wxString& aTxt );
81
86 void SetNotificationCount( int aCount );
87
88private:
89 void onSize( wxSizeEvent& aEvent );
90 void onBackgroundProgressClick( wxMouseEvent& aEvent );
91 void onNotificationsIconClick( wxCommandEvent& aEvent );
92
93private:
96 wxStaticText* m_backgroundTxt;
99};
100
101#endif
A bitmap button widget that behaves like an AUI toolbar item's button when it is drawn.
Definition: bitmap_button.h:42
KISTATUSBAR is a wxStatusBar suitable for Kicad manager.
Definition: kistatusbar.h:45
BITMAP_BUTTON * m_notificationsButton
Definition: kistatusbar.h:97
int m_normalFieldsCount
Definition: kistatusbar.h:98
wxGauge * m_backgroundProgressBar
Definition: kistatusbar.h:94
wxButton * m_backgroundStopButton
Definition: kistatusbar.h:95
wxStaticText * m_backgroundTxt
Definition: kistatusbar.h:96
#define KICOMMON_API
Definition: kicommon.h:28