first commit
This commit is contained in:
113
Lab7/button.cpp
Normal file
113
Lab7/button.cpp
Normal file
@@ -0,0 +1,113 @@
|
||||
//## begin module.cm preserve=no
|
||||
|
||||
// %X% %Q% %Z% %W%
|
||||
|
||||
//## end module.cm
|
||||
|
||||
|
||||
|
||||
//## begin module.cp preserve=no
|
||||
|
||||
//## end module.cp
|
||||
|
||||
|
||||
|
||||
//## Module: Button; Pseudo Package body
|
||||
|
||||
//## Subsystem: lab7
|
||||
|
||||
//## Source file: H:\kurs\avC++\lab7\Button.cpp
|
||||
|
||||
|
||||
|
||||
//## begin module.additionalIncludes preserve=no
|
||||
|
||||
//## end module.additionalIncludes
|
||||
|
||||
|
||||
|
||||
//## begin module.includes preserve=yes
|
||||
|
||||
#include <iostream.h>
|
||||
|
||||
//## end module.includes
|
||||
|
||||
|
||||
|
||||
// Button
|
||||
|
||||
#include "Button.h"
|
||||
|
||||
//## begin module.additionalDeclarations preserve=yes
|
||||
|
||||
//## end module.additionalDeclarations
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Class Button
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Button::Button()
|
||||
|
||||
//## begin Button::Button%.hasinit preserve=no
|
||||
|
||||
//## end Button::Button%.hasinit
|
||||
|
||||
//## begin Button::Button%.initialization preserve=yes
|
||||
|
||||
//## end Button::Button%.initialization
|
||||
|
||||
{
|
||||
|
||||
//## begin Button::Button%.body preserve=yes
|
||||
|
||||
//## end Button::Button%.body
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Button::Button (int xpos, int ypos, int width, int height, char* text)
|
||||
|
||||
//## begin Button::Button%940854117.hasinit preserve=no
|
||||
|
||||
//## end Button::Button%940854117.hasinit
|
||||
|
||||
//## begin Button::Button%940854117.initialization preserve=yes
|
||||
|
||||
//## end Button::Button%940854117.initialization
|
||||
|
||||
{
|
||||
|
||||
//## begin Button::Button%940854117.body preserve=yes
|
||||
|
||||
Button::xpos = xpos;
|
||||
|
||||
Button::ypos = ypos;
|
||||
|
||||
Button::width = width;
|
||||
|
||||
Button::height = height;
|
||||
|
||||
Button::text = text;
|
||||
|
||||
//## end Button::Button%940854117.body
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Button::~Button()
|
||||
|
||||
{
|
||||
|
||||
//## begin Button::~Button%.body preserve=yes
|
||||
Reference in New Issue
Block a user