MySQL Workbench  6.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
progressbar.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; version 2 of the
7  * License.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
17  * 02110-1301 USA
18  */
19 
20 #ifndef _MFORMS_PROGRESSBAR_H_
21 #define _MFORMS_PROGRESSBAR_H_
22 
23 #include <mforms/base.h>
24 #include <mforms/view.h>
25 
26 
27 namespace mforms {
28  class ProgressBar;
29 
30 #ifndef DOXYGEN_SHOULD_SKIP_THIS
31 #ifndef SWIG
32  struct ProgressBarImplPtrs
33  {
34  bool (*create)(ProgressBar *self);
35  void (*set_value)(ProgressBar *self, float pct);
36  void (*set_indeterminate)(ProgressBar *self, bool flag);
37  void (*set_started)(ProgressBar *self, bool flag);
38  };
39 #endif
40 #endif
41 
44  {
45  public:
46  ProgressBar();
47 
49  void set_indeterminate(bool flag);
50 
52  void start();
54  void stop();
56  void set_value(float pct);
57 
58  protected:
59  ProgressBarImplPtrs *_progressbar_impl;
60  };
61 };
62 
63 
64 #endif /* _MFORMS_PROGRESSBAR_H_ */
#define MFORMS_EXPORT
Definition: base.h:33
ProgressBarImplPtrs * _progressbar_impl
Definition: progressbar.h:59
A progress bar to show completion state of a task.
Definition: progressbar.h:43
MySQL Workbench 6.1 documentation