Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2263 kivins 1
//## begin module%1.7%.codegen_version preserve=yes
2
//   Read the documentation to learn more about C++ code generator
3
//   versioning.
4
//## end module%1.7%.codegen_version
5
 
6
//## begin module%42007ECF0011.cm preserve=no
7
//## end module%42007ECF0011.cm
8
 
9
//## begin module%42007ECF0011.cp preserve=no
10
//	C O P Y R I G H T   N O T I C E
11
//	This material is confidential to ERG and may not be disclosed in whole
12
//	or in part to any third party nor used in any manner whatsoever other
13
//	than for the purposes expressly consented to by ERG in writing.
14
//
15
//	This material is also copyright and may not be reproduced, stored in a
16
//	retrieval system or transmitted in any form or by any means in whole or
17
//	in part without the express written consent of ERG.
18
//## end module%42007ECF0011.cp
19
 
20
//## Module: ProgressBar%42007ECF0011; Pseudo Package specification
21
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
22
//## Source file: Z:\MASS_Dev\Tools\TxnTestManager\src\ProgressBar.h
23
 
24
#ifndef ProgressBar_h
25
#define ProgressBar_h 1
26
 
27
//## begin module%42007ECF0011.additionalIncludes preserve=no
28
//## end module%42007ECF0011.additionalIncludes
29
 
30
//## begin module%42007ECF0011.includes preserve=yes
31
#include <vcl.h>
32
#pragma hdrstop
33
//## end module%42007ECF0011.includes
34
 
35
//## begin module%42007ECF0011.additionalDeclarations preserve=yes
36
#define ADV_PROGRESS_BAR
37
#ifdef ADV_PROGRESS_BAR
38
	#include "AdvProgressBar.hpp"
39
	typedef TAdvProgressBar ProgressBar_t;
40
#else
41
	typedef TProgressBar ProgressBar_t;
42
#endif
43
//## end module%42007ECF0011.additionalDeclarations
44
 
45
 
46
//## begin ProgressBar%42007ECF0011.preface preserve=yes
47
//## end ProgressBar%42007ECF0011.preface
48
 
49
//## Class: ProgressBar%42007ECF0011; private
50
//	A convenience wrapper around a progress bar.
51
//## Category: TransactionTestManager::Progress Bar%42007E0B0178
52
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
53
//## Persistence: Transient
54
//## Cardinality/Multiplicity: n
55
 
56
 
57
 
58
class ProgressBar 
59
{
60
  //## begin ProgressBar%42007ECF0011.initialDeclarations preserve=yes
61
  //## end ProgressBar%42007ECF0011.initialDeclarations
62
 
63
  public:
64
    //## Constructors (specified)
65
      //## Operation: ProgressBar%42007F04030F
66
      //	The only constructor.
67
      ProgressBar (TWinControl *owner);
68
 
69
    //## Destructor (generated)
70
      virtual ~ProgressBar();
71
 
72
 
73
    //## Other Operations (specified)
74
      //## Operation: close%4200859302A4
75
      //	Close the progress bar.
76
      void close ();
77
 
78
      //## Operation: increment%4200923803B3
79
      //	Increment the position by the given amount.
80
      void increment (const unsigned int &delta = 1	// The amount by which to increment, which must be in the range 0..total.
81
      );
82
 
83
      //## Operation: open%4200813001F0
84
      //	Open the progress bar.
85
      void open (const unsigned int &total, 	// The progress bar shall be at 100% when the position reaches total.
86
      const unsigned int &position = 0	// The starting position, with 0 being at 0%.
87
      );
88
 
89
      //## Operation: resize%4200826C0074
90
      //	Resize the progress bar.
91
      void resize (const int &top, const int &left, const int &width, const int &height);
92
 
93
      //## Operation: update%420085F6011D
94
      //	Update the position of this progress bar.
95
      void update (const unsigned int &position	// The new position, which must be in the range 0..total.
96
      );
97
 
98
    // Additional Public Declarations
99
      //## begin ProgressBar%42007ECF0011.public preserve=yes
100
      //## end ProgressBar%42007ECF0011.public
101
 
102
  protected:
103
    // Additional Protected Declarations
104
      //## begin ProgressBar%42007ECF0011.protected preserve=yes
105
      //## end ProgressBar%42007ECF0011.protected
106
 
107
  private:
108
    //## Constructors (generated)
109
      ProgressBar();
110
 
111
      ProgressBar(const ProgressBar &right);
112
 
113
    //## Assignment Operation (generated)
114
      ProgressBar & operator=(const ProgressBar &right);
115
 
116
    // Data Members for Class Attributes
117
 
118
      //## Attribute: percent%420084A3037F
119
      //	The current position as percent.
120
      //## begin ProgressBar::percent%420084A3037F.attr preserve=no  private: unsigned int {VA} 0
121
      unsigned int m_percent;
122
      //## end ProgressBar::percent%420084A3037F.attr
123
 
124
      //## Attribute: position%4200929A03A4
125
      //	The current position.
126
      //## begin ProgressBar::position%4200929A03A4.attr preserve=no  private: unsigned int {VA} 0
127
      unsigned int m_position;
128
      //## end ProgressBar::position%4200929A03A4.attr
129
 
130
      //## Attribute: progressBar%42007F430144
131
      //	The underlying progress bar.
132
      //## begin ProgressBar::progressBar%42007F430144.attr preserve=no  private: ProgressBar_t {RA} 0
133
      ProgressBar_t *m_progressBar;
134
      //## end ProgressBar::progressBar%42007F430144.attr
135
 
136
      //## Attribute: total%420084330302
137
      //	The progress bar shall be at 100% when the position reaches total.
138
      //## begin ProgressBar::total%420084330302.attr preserve=no  private: unsigned int {VA} 0
139
      unsigned int m_total;
140
      //## end ProgressBar::total%420084330302.attr
141
 
142
    // Additional Private Declarations
143
      //## begin ProgressBar%42007ECF0011.private preserve=yes
144
      //## end ProgressBar%42007ECF0011.private
145
 
146
  private: //## implementation
147
    // Additional Implementation Declarations
148
      //## begin ProgressBar%42007ECF0011.implementation preserve=yes
149
      //## end ProgressBar%42007ECF0011.implementation
150
 
151
};
152
 
153
//## begin ProgressBar%42007ECF0011.postscript preserve=yes
154
//## end ProgressBar%42007ECF0011.postscript
155
 
156
// Class ProgressBar 
157
 
158
//## begin module%42007ECF0011.epilog preserve=yes
159
//## end module%42007ECF0011.epilog
160
 
161
 
162
#endif