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