Laxkit
0.0.7.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
lax
imagedialog.h
1
//
2
//
3
// The Laxkit, a windowing toolkit
4
// Please consult http://laxkit.sourceforge.net about where to send any
5
// correspondence about this software.
6
//
7
// This library is free software; you can redistribute it and/or
8
// modify it under the terms of the GNU Library General Public
9
// License as published by the Free Software Foundation; either
10
// version 2 of the License, or (at your option) any later version.
11
//
12
// This library is distributed in the hope that it will be useful,
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
// Library General Public License for more details.
16
//
17
// You should have received a copy of the GNU Library General Public
18
// License along with this library; if not, write to the Free Software
19
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
//
21
// Copyright (c) 2004-2009 Tom Lechner
22
//
23
#ifndef _LAX_IMAGE_DIALOG_H
24
#define _LAX_IMAGE_DIALOG_H
25
26
#include <lax/rowframe.h>
27
#include <lax/lineinput.h>
28
#include <lax/multilineedit.h>
29
#include <lax/filepreviewer.h>
30
#include <lax/imageinfo.h>
31
#include <lax/dump.h>
32
33
namespace
Laxkit {
34
35
36
//------------------------------ ImageDialog ------------------------------------
37
38
#define IMGD_NO_FINAL_BUTTONS (1<<16)
39
#define IMGD_NO_TITLE (1<<17)
40
#define IMGD_NO_DESCRIPTION (1<<18)
41
#define IMGD_NO_DESTROY (1<<19)
42
#define IMGD_SEND_STRS (1<<20)
43
44
class
ImageDialog
:
public
RowFrame
45
{
46
protected
:
47
//FileLineInput *file,*preview;
48
MultiLineEdit
*desc;
49
LineInput
*file,*preview,*titlee,*side;
50
FilePreviewer
*previewer;
51
ImageInfo
*imageinfo;
52
unsigned
int
dialog_style;
53
virtual
FilePreviewer
*
newFilePreviewer
();
54
virtual
char
*
reallyGeneratePreview
();
55
virtual
int
RegeneratePreview
(
int
force);
56
virtual
void
updateImageInfo
();
57
public
:
58
ImageDialog
(
anXWindow
*parnt,
const
char
*nname,
const
char
*ntitle,
unsigned
long
nstyle,
59
int
xx,
int
yy,
int
ww,
int
hh,
int
brder,
60
anXWindow
*prev,
unsigned
long
nowner,
const
char
*nsend,
61
unsigned
long
ndstyle,
ImageInfo
*inf);
62
virtual
~ImageDialog
();
63
virtual
const
char
*whattype() {
return
"ImageDialog"
; }
64
virtual
int
preinit
();
65
virtual
int
init
();
66
virtual
int
send
();
67
virtual
int
Event
(
const
EventData
*data,
const
char
*mes);
68
virtual
int
CharInput
(
unsigned
int
ch,
const
char
*buffer,
int
len,
unsigned
int
state,
const
LaxKeyboard
*d);
69
virtual
void
closeWindow
();
70
71
//virtual void dump_out(FILE *f,int indent,int what);
72
//virtual LaxFiles::Attribute *dump_out_atts(LaxFiles::Attribute *att,int what);
73
//virtual void dump_in_atts(LaxFiles::Attribute *att,int flag);
74
};
75
76
}
//namespace Laxkit
77
78
#endif
79
Mon Feb 17 2014 11:52:56, Laxkit