1
// Stephen Smally © 2012
2
// This program is free software; you can redistribute it and/or modify
3
// it under the terms of the GNU General Public License as published by
4
// the Free Software Foundation; either version 2 of the License, or
5
// (at your option) any later version.
7
// This program is distributed in the hope that it will be useful,
8
// but WITHOUT ANY WARRANTY; without even the implied warranty of
9
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
// GNU General Public License for more details.
12
// You should have received a copy of the GNU General Public License
13
// along with this program; if not, write to the Free Software
14
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15
// MA 02110-1301, USA.
20
namespace Lsc.Widgets {
21
public class ProgressInfo : InfoBar {
24
public ProgressBar progress_bar;
27
public void load_undefined (string label_text) {
29
text.set_label(label_text);
30
progress_bar.set_visible(false);
31
spin.set_visible(true);
35
public void clear () {
37
progress_bar.set_fraction(0.0);
41
public ProgressInfo () {
42
message_type = MessageType.INFO;
43
Box main = get_content_area() as Box;
44
main.orientation = Orientation.HORIZONTAL;
46
orientation = Orientation.HORIZONTAL;
49
text.ellipsize = Pango.EllipsizeMode.END;
51
progress_bar = new ProgressBar();
52
progress_bar.pulse_step = 0.1;
56
main.pack_start(text, false, false, 0);
57
main.pack_end(progress_bar, false, false, 0);
58
main.pack_end(spin, false, false, 0);
b'\\ No newline at end of file'