2 * Copyright (c) 2007, Digital Signal Processing Laboratory, Universit� degli studi di Perugia (UPG), Italy
\r
3 * All rights reserved.
\r
5 * Redistribution and use in source and binary forms, with or without
\r
6 * modification, are permitted provided that the following conditions
\r
8 * 1. Redistributions of source code must retain the above copyright
\r
9 * notice, this list of conditions and the following disclaimer.
\r
10 * 2. Redistributions in binary form must reproduce the above copyright
\r
11 * notice, this list of conditions and the following disclaimer in the
\r
12 * documentation and/or other materials provided with the distribution.
\r
14 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'
\r
15 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
\r
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
\r
17 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
\r
18 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
\r
19 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
\r
20 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
\r
21 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
\r
22 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
\r
23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
\r
24 * POSSIBILITY OF SUCH DAMAGE.
\r
26 /////////////////////////////////////////////////////////////////////////////
\r
28 // Purpose: Layout window/sash sample
\r
29 // Author: Julian Smart
\r
31 // Created: 04/01/98
\r
32 // RCS-ID: $Id: sashtest.h,v 1.5 2005/06/02 12:04:24 JS Exp $
\r
33 // Copyright: (c) Julian Smart
\r
34 // Licence: wxWindows license
\r
35 /////////////////////////////////////////////////////////////////////////////
\r
36 /////////////////////////////////////////////////////////////////////////////
\r
38 // Purpose: wxTreeCtrl sample
\r
39 // Author: Julian Smart
\r
41 // Created: 04/01/98
\r
42 // RCS-ID: $Id: treetest.h,v 1.50 2006/11/04 11:26:51 VZ Exp $
\r
43 // Copyright: (c) Julian Smart
\r
44 // Licence: wxWindows license
\r
45 /////////////////////////////////////////////////////////////////////////////
\r
46 /////////////////////////////////////////////////////////////////////////////
\r
48 // Purpose: Common dialogs demo
\r
49 // Author: Julian Smart
\r
50 // Modified by: ABX (2004) - adjustementd for conditional building
\r
51 // Created: 04/01/98
\r
52 // RCS-ID: $Id: dialogs.h,v 1.50 2006/10/08 14:12:59 VZ Exp $
\r
53 // Copyright: (c) Julian Smart
\r
54 // Licence: wxWindows license
\r
55 /////////////////////////////////////////////////////////////////////////////
\r
57 #ifndef __OPJ_VIEWER_H__
\r
58 #define __OPJ_VIEWER_H__
\r
60 // For compilers that support precompilation, includes "wx/wx.h".
\r
61 #include "wx/wxprec.h"
\r
72 #include "wx/toolbar.h"
\r
73 #include "wx/laywin.h"
\r
74 #include "wx/treectrl.h"
\r
76 #include "icon1.xpm"
\r
77 #include "icon2.xpm"
\r
78 #include "icon3.xpm"
\r
79 #include "icon4.xpm"
\r
80 #include "icon5.xpm"
\r
82 #include "wx/filedlg.h"
\r
83 #include "wx/toolbar.h"
\r
84 #include <wx/filename.h>
\r
85 #include <wx/busyinfo.h>
\r
86 #include <wx/cmdline.h>
\r
87 #include <wx/file.h>
\r
88 #include "wx/notebook.h"
\r
89 #include <wx/numdlg.h>
\r
91 #include "wx/propdlg.h"
\r
92 #include "wx/spinctrl.h"
\r
95 #include "wx/wxhtml.h"
\r
96 #include "wx/statline.h"
\r
97 #include <wx/fs_mem.h>
\r
99 #include <wx/imaglist.h>
\r
101 #include "wx/toolbar.h"
\r
102 #include "wx/artprov.h"
\r
104 #include "libopenjpeg/openjpeg.h"
\r
106 #include "imagj2k.h"
\r
107 #include "imagjp2.h"
\r
108 #include "imagmj2.h"
\r
111 typedef unsigned __int64 int8byte;
\r
112 #endif // __WXMSW__
\r
115 typedef unsigned long long int8byte;
\r
116 #endif // __WXGTK__
\r
118 #define USE_GENERIC_TREECTRL 0
\r
119 #define USE_PENCIL_ON_CANVAS 0
\r
121 #if USE_GENERIC_TREECTRL
\r
122 #include "wx/generic/treectlg.h"
\r
124 #define wxTreeCtrl wxGenericTreeCtrl
\r
125 #define sm_classwxTreeCtrl sm_classwxGenericTreeCtrl
\r
129 #define OPJ_APPLICATION wxT("OPJViewer")
\r
130 #define OPJ_APPLICATION_NAME wxT("OpenJPEG Viewer")
\r
131 #define OPJ_APPLICATION_VERSION wxT("0.3 alpha")
\r
132 #define OPJ_APPLICATION_TITLEBAR OPJ_APPLICATION_NAME wxT(" ") OPJ_APPLICATION_VERSION
\r
133 #define OPJ_APPLICATION_COPYRIGHT wxT("(C) 2007, Giuseppe Baruffa")
\r
134 #define OPJ_APPLICATION_VENDOR wxT("OpenJPEG")
\r
137 #define OPJ_APPLICATION_PLATFORM wxT("Windows")
\r
141 #define OPJ_APPLICATION_PLATFORM wxT("Linux")
\r
144 #define OPJ_FRAME_WIDTH 800
\r
145 #define OPJ_FRAME_HEIGHT 600
\r
147 #define OPJ_BROWSER_WIDTH 300
\r
148 #define OPJ_PEEKER_HEIGHT 130
\r
150 #define OPJ_CANVAS_BORDER 10
\r
151 #define OPJ_CANVAS_COLOUR *wxWHITE
\r
153 class OPJDecoThread;
\r
154 class OPJParseThread;
\r
155 WX_DEFINE_ARRAY_PTR(wxThread *, wxArrayThread);
\r
156 class OPJChildFrame;
\r
158 //////////////////////////////////
\r
159 // this is our main application //
\r
160 //////////////////////////////////
\r
161 class OPJViewerApp: public wxApp
\r
163 // public methods and variables
\r
166 // class constructor
\r
167 OPJViewerApp() { m_showImages = true; m_showButtons = false; }
\r
172 void SetShowImages(bool show) { m_showImages = show; }
\r
173 bool ShowImages() const { return m_showImages; }
\r
174 void ShowCmdLine(const wxCmdLineParser& parser);
\r
176 // all the threads currently alive - as soon as the thread terminates, it's
\r
177 // removed from the array
\r
178 wxArrayThread m_deco_threads, m_parse_threads;
\r
180 // crit section protects access to all of the arrays below
\r
181 wxCriticalSection m_deco_critsect, m_parse_critsect;
\r
183 // semaphore used to wait for the threads to exit, see OPJFrame::OnQuit()
\r
184 wxSemaphore m_deco_semAllDone, m_parse_semAllDone;
\r
186 // the last exiting thread should post to m_semAllDone if this is true
\r
187 // (protected by the same m_critsect)
\r
188 bool m_deco_waitingUntilAllDone, m_parse_waitingUntilAllDone;
\r
190 // the list of all filenames written in the command line
\r
191 wxArrayString m_filelist;
\r
193 // displaying engine parameters
\r
194 int m_resizemethod;
\r
196 // decoding engine parameters
\r
197 bool m_enabledeco, m_enableparse;
\r
198 int m_reducefactor, m_qualitylayers, m_components, m_framenum;
\r
201 int m_expcomps, m_maxtiles;
\r
202 int m_framewidth, m_frameheight;
\r
205 // some layout settings
\r
206 bool m_showtoolbar, m_showbrowser, m_showpeeker;
\r
207 int m_browserwidth, m_peekerheight;
\r
209 // application configuration
\r
210 wxConfig *OPJconfig;
\r
212 // private methods and variables
\r
214 bool m_showImages, m_showButtons;
\r
218 DECLARE_APP(OPJViewerApp)
\r
220 ///////////////////////////////////////////
\r
221 // this canvas is used to draw the image //
\r
222 ///////////////////////////////////////////
\r
223 class OPJCanvas: public wxScrolledWindow
\r
225 // public methods and variables
\r
228 // class constructor
\r
229 OPJCanvas(wxFileName fname, wxWindow *parent, const wxPoint& pos, const wxSize& size);
\r
231 virtual void OnDraw(wxDC& dc);
\r
232 void OnEvent(wxMouseEvent& event);
\r
233 void WriteText(const wxString& text) {
\r
237 wxLogMessage(text);
\r
242 OPJDecoThread *CreateDecoThread(void);
\r
243 OPJChildFrame *m_childframe;
\r
245 wxBitmap m_image, m_image100;
\r
246 wxFileName m_fname;
\r
249 DECLARE_EVENT_TABLE()
\r
252 ///////////////////////////////////////////////////
\r
253 // the data associated to each tree leaf or node //
\r
254 ///////////////////////////////////////////////////
\r
255 class OPJMarkerData : public wxTreeItemData
\r
257 // public methods and variables
\r
260 // class constructor
\r
261 OPJMarkerData(const wxString& desc, const wxString& fname = wxT(""), wxFileOffset start = 0, wxFileOffset length = 0) : m_desc(desc), m_filestring(fname) { m_start = start; m_length = length; }
\r
263 void ShowInfo(wxTreeCtrl *tree);
\r
264 const wxChar *GetDesc1() const { return m_desc.c_str(); }
\r
265 const wxChar *GetDesc2() const { return m_filestring.c_str(); }
\r
266 wxFileOffset m_start, m_length;
\r
268 // private methods and variables
\r
271 wxString m_filestring;
\r
275 class OPJMarkerTree : public wxTreeCtrl
\r
281 TreeCtrlIcon_FileSelected,
\r
282 TreeCtrlIcon_Folder,
\r
283 TreeCtrlIcon_FolderSelected,
\r
284 TreeCtrlIcon_FolderOpened
\r
287 OPJMarkerTree() { };
\r
288 OPJMarkerTree(wxWindow *parent, OPJChildFrame *subframe, wxFileName fname, wxString name, const wxWindowID id,
\r
289 const wxPoint& pos, const wxSize& size,
\r
291 virtual ~OPJMarkerTree(){};
\r
292 OPJParseThread *CreateParseThread(wxTreeItemId parentid = 0x00, OPJChildFrame *subframe = NULL);
\r
293 void WriteText(const wxString& text) { wxMutexGuiEnter(); wxLogMessage(text); wxMutexGuiLeave(); }
\r
295 wxFileName m_fname;
\r
296 wxTextCtrl *m_peektextCtrl;
\r
297 OPJChildFrame *m_childframe;
\r
299 /*void OnBeginDrag(wxTreeEvent& event);
\r
300 void OnBeginRDrag(wxTreeEvent& event);
\r
301 void OnEndDrag(wxTreeEvent& event);*/
\r
302 /*void OnBeginLabelEdit(wxTreeEvent& event);
\r
303 void OnEndLabelEdit(wxTreeEvent& event);*/
\r
304 /*void OnDeleteItem(wxTreeEvent& event);*/
\r
305 /*void OnContextMenu(wxContextMenuEvent& event);*/
\r
306 void OnItemMenu(wxTreeEvent& event);
\r
307 /*void OnGetInfo(wxTreeEvent& event);
\r
308 void OnSetInfo(wxTreeEvent& event);*/
\r
309 /*void OnItemExpanded(wxTreeEvent& event);*/
\r
310 void OnItemExpanding(wxTreeEvent& event);
\r
311 /*void OnItemCollapsed(wxTreeEvent& event);
\r
312 void OnItemCollapsing(wxTreeEvent& event);*/
\r
313 void OnSelChanged(wxTreeEvent& event);
\r
314 /*void OnSelChanging(wxTreeEvent& event);*/
\r
315 /*void OnTreeKeyDown(wxTreeEvent& event);*/
\r
316 /*void OnItemActivated(wxTreeEvent& event);*/
\r
317 /*void OnItemRClick(wxTreeEvent& event);*/
\r
318 /*void OnRMouseDown(wxMouseEvent& event);
\r
319 void OnRMouseUp(wxMouseEvent& event);
\r
320 void OnRMouseDClick(wxMouseEvent& event);*/
\r
321 /*void GetItemsRecursively(const wxTreeItemId& idParent,
\r
322 wxTreeItemIdValue cookie = 0);*/
\r
324 void CreateImageList(int size = 16);
\r
325 void CreateButtonsImageList(int size = 11);
\r
327 /*void AddTestItemsToTree(size_t numChildren, size_t depth);*/
\r
328 /*void DoSortChildren(const wxTreeItemId& item, bool reverse = false)
\r
329 { m_reverseSort = reverse; wxTreeCtrl::SortChildren(item); }*/
\r
330 /*void DoEnsureVisible() { if (m_lastItem.IsOk()) EnsureVisible(m_lastItem); }*/
\r
331 /*void DoToggleIcon(const wxTreeItemId& item);*/
\r
332 /*void ShowMenu(wxTreeItemId id, const wxPoint& pt);*/
\r
334 int ImageSize(void) const { return m_imageSize; }
\r
336 void SetLastItem(wxTreeItemId id) { m_lastItem = id; }
\r
339 /*virtual int OnCompareItems(const wxTreeItemId& i1, const wxTreeItemId& i2);*/
\r
341 // is this the test item which we use in several event handlers?
\r
342 /*bool IsTestItem(const wxTreeItemId& item)
\r
344 // the test item is the first child folder
\r
345 return GetItemParent(item) == GetRootItem() && !GetPrevSibling(item);
\r
349 /*void AddItemsRecursively(const wxTreeItemId& idParent,
\r
354 void LogEvent(const wxChar *name, const wxTreeEvent& event);
\r
356 int m_imageSize; // current size of images
\r
357 bool m_reverseSort; // flag for OnCompareItems
\r
358 wxTreeItemId m_lastItem, // for OnEnsureVisible()
\r
359 m_draggedItem; // item being dragged right now
\r
361 // NB: due to an ugly wxMSW hack you _must_ use DECLARE_DYNAMIC_CLASS()
\r
362 // if you want your overloaded OnCompareItems() to be called.
\r
363 // OTOH, if you don't want it you may omit the next line - this will
\r
364 // make default (alphabetical) sorting much faster under wxMSW.
\r
365 DECLARE_DYNAMIC_CLASS(OPJMarkerTree)
\r
366 DECLARE_EVENT_TABLE()
\r
369 // this hash map stores all the trees of currently opened images, with an integer key
\r
370 WX_DECLARE_HASH_MAP(int, OPJMarkerTree*, wxIntegerHash, wxIntegerEqual, OPJMarkerTreeHash);
\r
372 // this hash map stores all the children of currently opened images, with an integer key
\r
373 WX_DECLARE_HASH_MAP(int, OPJChildFrame*, wxIntegerHash, wxIntegerEqual, OPJChildFrameHash);
\r
375 // Define a new frame
\r
376 class OPJFrame: public wxMDIParentFrame
\r
380 OPJFrame(wxWindow *parent, const wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, const long style);
\r
383 void OnSize(wxSizeEvent& WXUNUSED(event));
\r
384 void OnAbout(wxCommandEvent& WXUNUSED(event));
\r
385 void OnFileOpen(wxCommandEvent& WXUNUSED(event));
\r
386 void OnQuit(wxCommandEvent& WXUNUSED(event));
\r
387 void OnClose(wxCommandEvent& WXUNUSED(event));
\r
388 void OnZoom(wxCommandEvent& WXUNUSED(event));
\r
389 void OnFit(wxCommandEvent& WXUNUSED(event));
\r
390 void OnToggleBrowser(wxCommandEvent& WXUNUSED(event));
\r
391 void OnTogglePeeker(wxCommandEvent& WXUNUSED(event));
\r
392 void OnToggleToolbar(wxCommandEvent& WXUNUSED(event));
\r
393 void OnReload(wxCommandEvent& event);
\r
394 void OnSetsEnco(wxCommandEvent& event);
\r
395 void OnSetsDeco(wxCommandEvent& event);
\r
396 void OnSashDrag(wxSashEvent& event);
\r
397 void OpenFiles(wxArrayString paths, wxArrayString filenames);
\r
398 void OnNotebook(wxNotebookEvent& event);
\r
399 void Rescale(int scale, OPJChildFrame *child);
\r
401 OPJMarkerTreeHash m_treehash;
\r
402 OPJChildFrameHash m_childhash;
\r
403 wxSashLayoutWindow* markerTreeWindow;
\r
404 wxSashLayoutWindow* loggingWindow;
\r
405 wxToolBar* tool_bar;
\r
406 void Resize(int number);
\r
407 wxNotebook *m_bookCtrl;
\r
408 wxNotebook *m_bookCtrlbottom;
\r
409 wxTextCtrl *m_textCtrlbrowse;
\r
412 void TogStyle(int id, long flag);
\r
414 void DoSort(bool reverse = false);
\r
417 wxTextCtrl *m_textCtrl;
\r
419 void DoSetBold(bool bold = true);
\r
422 wxSashLayoutWindow* m_topWindow;
\r
423 wxSashLayoutWindow* m_leftWindow2;
\r
425 DECLARE_EVENT_TABLE()
\r
428 class OPJChildFrame: public wxMDIChildFrame
\r
431 OPJCanvas *m_canvas;
\r
432 OPJChildFrame(OPJFrame *parent, wxFileName fname, int winnumber, const wxString& title, const wxPoint& pos, const wxSize& size, const long style);
\r
433 ~OPJChildFrame(void);
\r
434 void OnActivate(wxActivateEvent& event);
\r
435 /*void OnQuit(wxCommandEvent& WXUNUSED(event));*/
\r
436 void OnClose(wxCloseEvent& event);
\r
437 void OnGotFocus(wxFocusEvent& event);
\r
438 void OnLostFocus(wxFocusEvent& event);
\r
440 wxFileName m_fname;
\r
443 unsigned long m_twidth, m_theight, m_tx, m_ty;
\r
445 DECLARE_EVENT_TABLE()
\r
448 // frame and main menu ids
\r
450 OPJFRAME_FILEEXIT = wxID_EXIT,
\r
451 OPJFRAME_HELPABOUT = wxID_ABOUT,
\r
453 OPJFRAME_FILESAVEAS,
\r
454 OPJFRAME_FILETOGGLEB,
\r
455 OPJFRAME_FILETOGGLEP,
\r
456 OPJFRAME_FILETOGGLET,
\r
459 OPJFRAME_VIEWRELOAD,
\r
460 OPJFRAME_FILECLOSE,
\r
464 OPJFRAME_BROWSEWIN = 10000,
\r
470 // menu and control ids
\r
473 TreeTest_Quit = wxID_EXIT,
\r
474 TreeTest_About = wxID_ABOUT,
\r
475 TreeTest_TogButtons = wxID_HIGHEST,
\r
479 TreeTest_TogHideRoot,
\r
480 TreeTest_TogRootLines,
\r
481 TreeTest_TogBorder,
\r
482 TreeTest_TogFullHighlight,
\r
483 TreeTest_SetFgColour,
\r
484 TreeTest_SetBgColour,
\r
485 TreeTest_ResetStyle,
\r
486 TreeTest_Highlight,
\r
488 TreeTest_DumpSelected,
\r
494 TreeTest_ClearBold,
\r
497 TreeTest_DeleteChildren,
\r
498 TreeTest_DeleteAll,
\r
500 TreeTest_ToggleImages,
\r
501 TreeTest_ToggleButtons,
\r
502 TreeTest_SetImageSize,
\r
503 TreeTest_ToggleSel,
\r
504 TreeTest_CollapseAndReset,
\r
505 TreeTest_EnsureVisible,
\r
507 TreeTest_InsertItem,
\r
508 TreeTest_IncIndent,
\r
509 TreeTest_DecIndent,
\r
510 TreeTest_IncSpacing,
\r
511 TreeTest_DecSpacing,
\r
512 TreeTest_ToggleIcon,
\r
515 TreeTest_SelectRoot,
\r
516 TreeTest_Ctrl = 1000,
\r
517 BOTTOM_NOTEBOOK_ID,
\r
521 class OPJDecoThread : public wxThread
\r
524 OPJDecoThread(OPJCanvas *canvas);
\r
526 // thread execution starts here
\r
527 virtual void *Entry();
\r
529 // called when the thread exits - whether it terminates normally or is
\r
530 // stopped with Delete() (but not when it is Kill()ed!)
\r
531 virtual void OnExit();
\r
533 // write something to the text control
\r
534 void WriteText(const wxString& text);
\r
538 OPJCanvas *m_canvas;
\r
541 class OPJParseThread : public wxThread
\r
544 OPJParseThread(OPJMarkerTree *tree, wxTreeItemId parentid = 0x00);
\r
546 // thread execution starts here
\r
547 virtual void *Entry();
\r
549 // called when the thread exits - whether it terminates normally or is
\r
550 // stopped with Delete() (but not when it is Kill()ed!)
\r
551 virtual void OnExit();
\r
553 // write something to the text control
\r
554 void WriteText(const wxString& text);
\r
555 void LoadFile(wxFileName fname);
\r
556 void ParseJ2KFile(wxFile *m_file, wxFileOffset offset, wxFileOffset length, wxTreeItemId parentid);
\r
557 void ParseJP2File(wxFile *fileid, wxFileOffset filepoint, wxFileOffset filelimit, wxTreeItemId parentid);
\r
560 OPJMarkerTree *m_tree;
\r
561 wxTreeItemId m_parentid;
\r
564 int jpeg2000parse(wxFile *fileid, wxFileOffset filepoint, wxFileOffset filelimit,
\r
565 wxTreeItemId parentid, int level, char *scansign, unsigned long int *scanpoint);
\r
566 int box_handler_function(int boxtype, wxFile *fileid, wxFileOffset filepoint, wxFileOffset filelimit,
\r
567 wxTreeItemId parentid, int level, char *scansign, unsigned long int *scanpoint);
\r
572 // Drag and drop files target
\r
573 class OPJDnDFile: public wxFileDropTarget
\r
576 OPJDnDFile(OPJFrame *pOwner) { m_pOwner = pOwner; }
\r
577 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
\r
580 OPJFrame *m_pOwner;
\r
585 // Property sheet dialog: encoder
\r
586 class OPJEncoderDialog: public wxPropertySheetDialog
\r
588 DECLARE_CLASS(OPJEncoderDialog)
\r
590 OPJEncoderDialog(wxWindow* parent, int dialogType);
\r
591 ~OPJEncoderDialog();
\r
593 wxBookCtrlBase* m_settingsNotebook;
\r
595 wxPanel* CreateMainSettingsPage(wxWindow* parent);
\r
596 wxPanel* CreatePart1SettingsPage(wxWindow* parent);
\r
597 /* wxPanel* CreatePart3SettingsPage(wxWindow* parent);*/
\r
599 void OnEnableJPWL(wxCommandEvent& event);
\r
600 /* wxPanel* CreatePart11SettingsPage(wxWindow* parent);
\r
601 wxCheckBox *m_enablejpwlCheck;*/
\r
608 OPJENCO_ENABLEJPWL = 100,
\r
609 OPJENCO_RATEFACTOR,
\r
610 OPJENCO_QUALITYFACTOR,
\r
612 OPJENCO_CODEBLOCKSIZE,
\r
613 OPJENCO_PRECINCTSIZE,
\r
615 OPJENCO_PROGRESSION,
\r
616 OPJENCO_SUBSAMPLING,
\r
619 OPJENCO_ENABLEBYPASS,
\r
620 OPJENCO_ENABLERESET,
\r
621 OPJENCO_ENABLERESTART,
\r
623 OPJENCO_ENABLEERTERM,
\r
624 OPJENCO_ENABLESEGMARK,
\r
629 OPJENCO_ENABLEIRREV,
\r
630 OPJENCO_ENABLEINDEX,
\r
634 DECLARE_EVENT_TABLE()
\r
637 // Property sheet dialog: decoder
\r
638 class OPJDecoderDialog: public wxPropertySheetDialog
\r
640 DECLARE_CLASS(OPJDecoderDialog)
\r
642 OPJDecoderDialog(wxWindow* parent, int dialogType);
\r
643 ~OPJDecoderDialog();
\r
645 wxBookCtrlBase* m_settingsNotebook;
\r
646 wxCheckBox *m_enabledecoCheck, *m_enableparseCheck;
\r
647 wxSpinCtrl *m_reduceCtrl, *m_layerCtrl, *m_numcompsCtrl;
\r
648 wxRadioBox* m_resizeBox;
\r
650 void OnEnableDeco(wxCommandEvent& event);
\r
652 wxPanel* CreateMainSettingsPage(wxWindow* parent);
\r
653 wxPanel* CreatePart1SettingsPage(wxWindow* parent);
\r
654 wxPanel* CreatePart3SettingsPage(wxWindow* parent);
\r
656 void OnEnableJPWL(wxCommandEvent& event);
\r
657 wxPanel* CreatePart11SettingsPage(wxWindow* parent);
\r
658 wxSpinCtrl *m_expcompsCtrl, *m_framenumCtrl, *m_maxtilesCtrl;
\r
659 wxCheckBox *m_enablejpwlCheck;
\r
666 OPJDECO_RESMETHOD = 100,
\r
667 OPJDECO_REDUCEFACTOR,
\r
668 OPJDECO_QUALITYLAYERS,
\r
670 OPJDECO_ENABLEDECO,
\r
671 OPJDECO_ENABLEPARSE,
\r
672 OPJDECO_ENABLEJPWL,
\r
678 DECLARE_EVENT_TABLE()
\r
681 #endif //__OPJ_VIEWER_H__
\r