~ubuntu-branches/ubuntu/lucid/codelite/lucid

« back to all changes in this revision

Viewing changes to LiteEditor/customstatusbar.h

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2009-01-12 15:46:55 UTC
  • Revision ID: james.westby@ubuntu.com-20090112154655-sdynrljcb6u167yw
Tags: upstream-1.0.2674+dfsg
ImportĀ upstreamĀ versionĀ 1.0.2674+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//////////////////////////////////////////////////////////////////////////////
 
2
//////////////////////////////////////////////////////////////////////////////
 
3
//
 
4
// copyright            : (C) 2008 by Eran Ifrah                            
 
5
// file name            : customstatusbar.h              
 
6
//                                                                          
 
7
// -------------------------------------------------------------------------
 
8
// A                                                                        
 
9
//              _____           _      _     _ _                            
 
10
//             /  __ \         | |    | |   (_) |                           
 
11
//             | /  \/ ___   __| | ___| |    _| |_ ___                      
 
12
//             | |    / _ \ / _  |/ _ \ |   | | __/ _ )                     
 
13
//             | \__/\ (_) | (_| |  __/ |___| | ||  __/                     
 
14
//              \____/\___/ \__,_|\___\_____/_|\__\___|                     
 
15
//                                                                          
 
16
//                                                  F i l e                 
 
17
//                                                                          
 
18
//    This program is free software; you can redistribute it and/or modify  
 
19
//    it under the terms of the GNU General Public License as published by  
 
20
//    the Free Software Foundation; either version 2 of the License, or     
 
21
//    (at your option) any later version.                                   
 
22
//                                                                          
 
23
//////////////////////////////////////////////////////////////////////////////
 
24
//////////////////////////////////////////////////////////////////////////////
 
25
 #ifndef __customstatusbar__
 
26
#define __customstatusbar__
 
27
 
 
28
#include <wx/statusbr.h>
 
29
#include <wx/gauge.h>
 
30
 
 
31
class ProgressCtrl;
 
32
 
 
33
class CustomStatusBar : public wxStatusBar {
 
34
        ProgressCtrl *m_gauge; 
 
35
public:
 
36
        CustomStatusBar(wxWindow *parent, wxWindowID id = wxID_ANY);
 
37
        virtual ~CustomStatusBar();
 
38
        
 
39
        /**
 
40
         * @brief clear the gauge and set its max range
 
41
         * @param range new gauge range
 
42
         */
 
43
        void ResetGauge(int range);
 
44
        
 
45
        /**
 
46
         * @brief 
 
47
         * @param vlaue
 
48
         * @param message
 
49
         */
 
50
        void Update(int vlaue, const wxString &message);
 
51
        
 
52
        // event handlers
 
53
        DECLARE_EVENT_TABLE()
 
54
    void OnSize(wxSizeEvent& event); 
 
55
};
 
56
#endif // __customstatusbar__