2 * Copyright 2006, 2011, Stephan Aßmus <superstippi@gmx.de>.
3 * Distributed under the terms of the MIT License.
5 #ifndef ICON_EDITOR_APP_H
6 #define ICON_EDITOR_APP_H
9 #include <Application.h>
21 MSG_EXPORT_AS
= 'xpas',
22 MSG_WINDOW_CLOSED
= 'wndc',
27 EXPORT_MODE_MESSAGE
= 0,
28 EXPORT_MODE_FLAT_ICON
,
30 EXPORT_MODE_BITMAP_16
,
31 EXPORT_MODE_BITMAP_32
,
32 EXPORT_MODE_BITMAP_64
,
33 EXPORT_MODE_BITMAP_SET
,
34 EXPORT_MODE_ICON_ATTR
,
35 EXPORT_MODE_ICON_MIME_ATTR
,
36 EXPORT_MODE_ICON_RDEF
,
37 EXPORT_MODE_ICON_SOURCE
,
48 class IconEditorApp
: public BApplication
{
51 virtual ~IconEditorApp();
53 // BApplication interface
54 virtual bool QuitRequested();
55 virtual void MessageReceived(BMessage
* message
);
56 virtual void ReadyToRun();
57 virtual void RefsReceived(BMessage
* message
);
58 virtual void ArgvReceived(int32 argc
, char** argv
);
63 MainWindow
* _NewWindow();
65 void _SyncPanels(BFilePanel
* from
,
68 const char* _LastFilePath(path_kind which
);
70 void _StoreSettings();
71 void _RestoreSettings();
72 void _InstallDocumentMimeType();
76 BMessage fLastWindowSettings
;
77 BRect fLastWindowFrame
;
79 BFilePanel
* fOpenPanel
;
80 SavePanel
* fSavePanel
;
82 BString fLastOpenPath
;
83 BString fLastSavePath
;
84 BString fLastExportPath
;
88 #endif // ICON_EDITOR_APP_H