comparison include/util.h @ 0:2f5584f0d127

first commit.
author pyon@macmini
date Sat, 08 Jun 2019 16:21:40 +0900
parents
children f40a65687079
comparison
equal deleted inserted replaced
-1:000000000000 0:2f5584f0d127
1 // Filename : util.h
2 // Last Change: 2019-06-07 Fri 21:06:32.
3 //
4 #pragma once
5
6 #include <wx/wx.h>
7 #include <wx/dir.h>
8 #include <wx/imaglist.h>
9
10 /*** Utility Class ***/
11 class FileList
12 {
13 private:
14 wxString m_dir;
15 wxArrayString m_files;
16
17 wxImageList m_image1; // zoom1
18 wxImageList m_image2; // zoom2
19 wxImageList m_image3; // zoom3
20
21 public:
22 FileList();
23 ~FileList();
24
25 void SetDirectory( wxString dir ) { m_dir = dir; };
26 int GetFileCount( void ) { return m_files.GetCount(); };
27 wxArrayString GetFiles( void ) { return m_files; };
28 wxArrayString Update( void );
29 };
30
31
32 /*** Utility Function ***/
33 void MsgBox( wxString msg );
34 void MsgBox( int n );
35 wxRect Geo2Rect( wxString geo );
36 wxString Rect2Geo( wxRect rect );
37 void MaskRect( wxImage image, wxRect rect, int r, int g, int b );
38 bool IsBlack( int r, int g, int b );
39