Remove custom file-ext support

This commit is contained in:
Jaidyn Ann 2021-02-20 14:36:20 -06:00
parent 65bfeba4f6
commit afd7ebf2d1
5 changed files with 0 additions and 21 deletions

View File

@ -1,6 +1,5 @@
Important Features: Important Features:
* Open As support * Open As support
* File extension support
* Show download progress/failures in FeedView's feedlist * Show download progress/failures in FeedView's feedlist
* Update FeedView's feedlist when feeds added/removed * Update FeedView's feedlist when feeds added/removed
* Show in desktray * Show in desktray

View File

@ -34,7 +34,6 @@ EntriesView::AttachedToWindow()
{ {
fEntryFolderText->SetTarget(this); fEntryFolderText->SetTarget(this);
fEntryFolderBrowseButton->SetTarget(this); fEntryFolderBrowseButton->SetTarget(this);
fFileExtText->SetTarget(this);
fOpenAsAutoRadio->SetTarget(this); fOpenAsAutoRadio->SetTarget(this);
fOpenAsHtmlRadio->SetTarget(this); fOpenAsHtmlRadio->SetTarget(this);
@ -56,11 +55,6 @@ EntriesView::MessageReceived(BMessage* msg)
userFileError(result, fEntryFolderText->Text()); userFileError(result, fEntryFolderText->Text());
break; break;
} }
case kEntryExtText:
{
((App*)be_app)->fPreferences->fEntryFileExt = fFileExtText->Text();
break;
}
case kOpenHtmlRadio: case kOpenHtmlRadio:
{ {
((App*)be_app)->fPreferences->fOpenAs = kOpenAsHtml; ((App*)be_app)->fPreferences->fOpenAs = kOpenAsHtml;
@ -125,10 +119,6 @@ EntriesView::_InitInterface()
fEntryFolderBrowseButton = new BButton("entryFolderBrowse", "Browse…", fEntryFolderBrowseButton = new BButton("entryFolderBrowse", "Browse…",
new BMessage(kEntryFolderBrowse)); new BMessage(kEntryFolderBrowse));
fFileExtLabel = new BStringView("fileExtLabel", "File extension:");
fFileExtText = new BTextControl("fileExt", "", "",
new BMessage(kEntryExtText));
// Opening // Opening
fOpeningBox = new BBox("opening"); fOpeningBox = new BBox("opening");
fOpeningBox->SetLabel("Opening"); fOpeningBox->SetLabel("Opening");
@ -157,7 +147,6 @@ EntriesView::_InitInterface()
else else
fOpenAsAutoRadio->SetValue(B_CONTROL_ON); fOpenAsAutoRadio->SetValue(B_CONTROL_ON);
fFileExtText->SetText(prefs->fEntryFileExt);
fEntryFolderText->SetText(prefs->EntryDir()); fEntryFolderText->SetText(prefs->EntryDir());
_PopulateOpenWithMenu(); _PopulateOpenWithMenu();
@ -168,7 +157,6 @@ EntriesView::_InitInterface()
.AddGroup(B_VERTICAL, B_USE_DEFAULT_SPACING) .AddGroup(B_VERTICAL, B_USE_DEFAULT_SPACING)
.SetInsets(0, 20, B_USE_ITEM_INSETS, 0) .SetInsets(0, 20, B_USE_ITEM_INSETS, 0)
.Add(fEntryFolderLabel) .Add(fEntryFolderLabel)
.Add(fFileExtLabel)
.End() .End()
.AddGroup(B_VERTICAL, B_USE_DEFAULT_SPACING) .AddGroup(B_VERTICAL, B_USE_DEFAULT_SPACING)
.SetInsets(0, 20, B_USE_ITEM_INSETS, 0) .SetInsets(0, 20, B_USE_ITEM_INSETS, 0)
@ -176,7 +164,6 @@ EntriesView::_InitInterface()
.Add(fEntryFolderText) .Add(fEntryFolderText)
.Add(fEntryFolderBrowseButton) .Add(fEntryFolderBrowseButton)
.End() .End()
.Add(fFileExtText)
.End() .End()
.End(); .End();

View File

@ -23,7 +23,6 @@ enum
{ {
kEntryFolderText = 'txef', kEntryFolderText = 'txef',
kEntryFolderBrowse = 'tbef', kEntryFolderBrowse = 'tbef',
kEntryExtText = 'txee',
kOpenHtmlRadio = 'rdow', kOpenHtmlRadio = 'rdow',
kOpenUrlRadio = 'roow', kOpenUrlRadio = 'roow',
kOpenAutoRadio = 'raow', kOpenAutoRadio = 'raow',
@ -49,8 +48,6 @@ private:
BStringView* fEntryFolderLabel; BStringView* fEntryFolderLabel;
BTextControl* fEntryFolderText; BTextControl* fEntryFolderText;
BButton* fEntryFolderBrowseButton; BButton* fEntryFolderBrowseButton;
BStringView* fFileExtLabel;
BTextControl* fFileExtText;
BBox* fOpeningBox; BBox* fOpeningBox;
BStringView* fOpenAsLabel; BStringView* fOpenAsLabel;

View File

@ -33,7 +33,6 @@ Preferences::Load()
storage.Unflatten(&file); storage.Unflatten(&file);
fEntryDir = BString(storage.GetString("entryDir", "/boot/home/feeds/")); fEntryDir = BString(storage.GetString("entryDir", "/boot/home/feeds/"));
fEntryFileExt = BString(storage.GetString("entryExt", ""));
fOpenAs = storage.GetInt8("openAs", kOpenAsUrl); fOpenAs = storage.GetInt8("openAs", kOpenAsUrl);
fOpenWith = BString(storage.GetString("openWith", fOpenWith = BString(storage.GetString("openWith",
"application/x-vnd.Haiku-WebPositive")); "application/x-vnd.Haiku-WebPositive"));
@ -67,7 +66,6 @@ Preferences::Save()
status_t result = file->InitCheck(); status_t result = file->InitCheck();
storage.AddString("entryDir", fEntryDir.String()); storage.AddString("entryDir", fEntryDir.String());
storage.AddString("entryExt", fEntryFileExt.String());
storage.AddString("openWith", fOpenWith.String()); storage.AddString("openWith", fOpenWith.String());
storage.AddInt8("openAs", fOpenAs); storage.AddInt8("openAs", fOpenAs);

View File

@ -38,8 +38,6 @@ public:
BString EntryOpenWith(); BString EntryOpenWith();
status_t SetEntryOpenWith(const char* binPath); status_t SetEntryOpenWith(const char* binPath);
BString fEntryFileExt;
bool fNewNotify; bool fNewNotify;
bool fFailureNotify; bool fFailureNotify;
int8 fOpenAs; int8 fOpenAs;