forked from phoudoin/sanity
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathTranslatorSavePanel.h
44 lines (36 loc) · 1.15 KB
/
TranslatorSavePanel.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
#ifndef TRANSLATORSAVEPANEL_H
#define TRANSLATORSAVEPANEL_H
#include <storage/FilePanel.h>
#include <interface/PopUpMenu.h>
#include <interface/MenuField.h>
#include <interface/MenuItem.h>
#include <interface/Window.h>
#include <app/Handler.h>
#include <translation/TranslationDefs.h>
class TranslatorMenuItem : public BMenuItem {
public:
TranslatorMenuItem(const char *name, BMessage *message, translator_id id, uint32 format);
translator_id id;
uint32 format;
};
class TranslatorSavePanel : public BFilePanel, public BHandler {
public:
TranslatorSavePanel(const char *name, BMessenger *target, entry_ref *start_directory,
uint32 node_flavors, bool allow_multiple_selection, BMessage *message,
BRefFilter *filter = NULL, bool modal = false, bool hide_when_done = true);
void MessageReceived(BMessage *message);
TranslatorMenuItem *GetCurrentMenuItem();
~TranslatorSavePanel();
enum {
SAVE_FILE_PANEL_FORMAT = 'sfpf',
SAVE_FILE_PANEL_SETTINGS = 'sfps'
};
private:
void BuildMenu();
void TranslatorSettings();
BWindow *configwindow;
BPopUpMenu *formatpopupmenu;
BMenuField *formatmenufield;
uint32 what;
};
#endif