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
50
56 void SetEllipsedTextField( const wxString& aText, int aFieldId );
57
61 void ShowBackgroundProgressBar( bool aCancellable = false );
62
66 void HideBackgroundProgressBar();
67
71 void SetBackgroundProgress( int aAmount );
72
76 void SetBackgroundProgressMax( int aAmount );
77
81 void SetBackgroundStatusText( const wxString& aTxt );
82
87 void SetNotificationCount( int aCount );
88
89private:
90 void onSize( wxSizeEvent& aEvent );
91 void onBackgroundProgressClick( wxMouseEvent& aEvent );
92 void onNotificationsIconClick( wxCommandEvent& aEvent );
93
94private:
97 wxStaticText* m_backgroundTxt;
100};
101
102#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:98
int m_normalFieldsCount
Definition: kistatusbar.h:99
wxGauge * m_backgroundProgressBar
Definition: kistatusbar.h:95
wxButton * m_backgroundStopButton
Definition: kistatusbar.h:96
wxStaticText * m_backgroundTxt
Definition: kistatusbar.h:97
#define KICOMMON_API
Definition: kicommon.h:28