2021-01-01 12:16:42 -06:00
|
|
|
/*
|
2021-01-25 19:39:31 -06:00
|
|
|
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
|
2021-01-01 12:16:42 -06:00
|
|
|
* All rights reserved. Distributed under the terms of the MIT license.
|
|
|
|
*/
|
|
|
|
#ifndef ENTRIESVIEW_H
|
|
|
|
#define ENTRIESVIEW_H
|
|
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
#include <GroupView.h>
|
|
|
|
|
|
|
|
class BBox;
|
|
|
|
class BButton;
|
|
|
|
class BMenuField;
|
|
|
|
class BMessage;
|
|
|
|
class BPopUpMenu;
|
|
|
|
class BRadioButton;
|
|
|
|
class BStringView;
|
|
|
|
class BTextControl;
|
|
|
|
|
|
|
|
|
2021-01-28 00:19:36 -06:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
kEntryFolderText = 'txef',
|
|
|
|
kEntryFolderBrowse = 'tbef',
|
|
|
|
kEntryExtText = 'txee',
|
|
|
|
kOpenHtmlRadio = 'rdow',
|
|
|
|
kOpenUrlRadio = 'roow',
|
|
|
|
kOpenAutoRadio = 'raow',
|
|
|
|
kOpenWithSelect = 'mnow',
|
|
|
|
kOpenWithBrowse = 'tbow'
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2021-01-01 12:16:42 -06:00
|
|
|
class EntriesView : public BGroupView {
|
|
|
|
public:
|
|
|
|
EntriesView(const char* name);
|
|
|
|
|
|
|
|
void MessageReceived(BMessage* msg);
|
|
|
|
void AttachedToWindow();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void _InitInterface();
|
2021-01-28 00:19:36 -06:00
|
|
|
void _PopulateOpenWithMenu();
|
2021-01-01 12:16:42 -06:00
|
|
|
|
|
|
|
|
|
|
|
BBox* fSavingBox;
|
|
|
|
BStringView* fEntryFolderLabel;
|
|
|
|
BTextControl* fEntryFolderText;
|
|
|
|
BButton* fEntryFolderBrowseButton;
|
|
|
|
BStringView* fFileExtLabel;
|
|
|
|
BTextControl* fFileExtText;
|
|
|
|
|
|
|
|
BBox* fOpeningBox;
|
|
|
|
BStringView* fOpenAsLabel;
|
2021-01-28 00:19:36 -06:00
|
|
|
BRadioButton* fOpenAsAutoRadio;
|
2021-01-01 12:16:42 -06:00
|
|
|
BRadioButton* fOpenAsHtmlRadio;
|
|
|
|
BRadioButton* fOpenAsUrlRadio;
|
|
|
|
BStringView* fOpenWithLabel;
|
|
|
|
BPopUpMenu* fOpenWithMenu;
|
|
|
|
BMenuField* fOpenWithMenuField;
|
|
|
|
BButton* fOpenWithSelectButton;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // ENTRIESVIEW_H
|
|
|
|
|