Hugin trunk 0.1
Loading...
Searching...
No Matches
ProgressStatusBar.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
2
11/*
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public
14 * License as published by the Free Software Foundation; either
15 * version 2 of the License, or (at your option) any later version.
16 *
17 * This software is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public
23 * License along with this software. If not, see
24 * <http://www.gnu.org/licenses/>.
25 *
26 */
27
28#ifndef PROGRESSSTATUSBAR_H
29#define PROGRESSSTATUSBAR_H
30
32#include <wx/statusbr.h>
33#include <wx/gauge.h>
34
35class ProgressStatusBar : public wxStatusBar
36{
37public:
39 ProgressStatusBar(wxWindow *parent, wxWindowID id, long style = wxST_SIZEGRIP, const wxString &name = "statusBar");
46 void SetProgress(int progress);
48 int GetProgress();
49
50private:
53};
54
55#endif // PROGRESSSTATUSBAR_H
class for showing a status bar with progress, the progress bar is always in the last field of the sta...
~ProgressStatusBar()
destructor, clean up all stuff
void OnSize(wxSizeEvent &event)
size change handler, correctly position gauge when size has changed
int GetProgress()
return current progress value, should be in range 0 - 100, or -1 if the progress gauge is hidden
void SetProgress(int progress)
update progress bar
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.
Definition threshold.h:41