-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPicture.h
54 lines (38 loc) · 1.29 KB
/
Picture.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//---------------------------------------------------------------------------
#ifndef PictureH
#define PictureH
#include <ExtCtrls.hpp>
#include <Classes.hpp>
#include <iostream.h>
#include <fstream.h>
#include <ExtCtrls.hpp>
#include <jpeg.hpp>
#include <Graphics.hpp>
#include "PopUpMenu.h"
class Picture :public TImage
{
private: // User declarations
TJPEGImage *JPEGImage;
Graphics::TBitmap *BMPImage;
String imageName;
public: // User declarations
static String ImageDir;
static Picture * LastClickedPicture;
static void staticInit(String dir);
bool LoadPictureFromFile(String FileName);
Picture(TWinControl* Owner, int left, int top, int width, int height, String clickCommand, String dblClickCommand);
void __fastcall ImageClick(TObject *Sender);
void __fastcall ImageDblClick(TObject *Sender);
void __fastcall ImageMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
static void command(String s);
void SelectNewPicture();
void Clear();
String getImageName();
void setImageName(String s);
String OnClickCommand;
String OnDubbleClickCommand;
};
String Picture::ImageDir;
Picture * Picture::LastClickedPicture;
//---------------------------------------------------------------------------
#endif