Pogger/src/EntriesView.h

65 lines
1.2 KiB
C
Raw Normal View History

/*
2021-01-25 19:39:31 -06:00
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
* 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;
2021-02-19 18:14:09 -06:00
class BFilePanel;
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',
kOpenHtmlRadio = 'rdow',
kOpenUrlRadio = 'roow',
kOpenWithSelect = 'mnow',
2021-02-19 18:14:09 -06:00
kOpenWithPath = 'pbow',
2021-01-28 00:19:36 -06:00
kOpenWithBrowse = 'tbow'
};
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();
BBox* fSavingBox;
BStringView* fEntryFolderLabel;
BTextControl* fEntryFolderText;
BButton* fEntryFolderBrowseButton;
BBox* fOpeningBox;
BStringView* fOpenAsLabel;
BRadioButton* fOpenAsHtmlRadio;
BRadioButton* fOpenAsUrlRadio;
BStringView* fOpenWithLabel;
BPopUpMenu* fOpenWithMenu;
BMenuField* fOpenWithMenuField;
BButton* fOpenWithSelectButton;
2021-02-19 18:14:09 -06:00
BFilePanel* fOpenWithPanel;
};
#endif // ENTRIESVIEW_H