Remove custom file-ext support
This commit is contained in:
parent
65bfeba4f6
commit
afd7ebf2d1
1
TODO.txt
1
TODO.txt
|
@ -1,6 +1,5 @@
|
|||
Important Features:
|
||||
* Open As support
|
||||
* File extension support
|
||||
* Show download progress/failures in FeedView's feedlist
|
||||
* Update FeedView's feedlist when feeds added/removed
|
||||
* Show in desktray
|
||||
|
|
|
@ -34,7 +34,6 @@ EntriesView::AttachedToWindow()
|
|||
{
|
||||
fEntryFolderText->SetTarget(this);
|
||||
fEntryFolderBrowseButton->SetTarget(this);
|
||||
fFileExtText->SetTarget(this);
|
||||
|
||||
fOpenAsAutoRadio->SetTarget(this);
|
||||
fOpenAsHtmlRadio->SetTarget(this);
|
||||
|
@ -56,11 +55,6 @@ EntriesView::MessageReceived(BMessage* msg)
|
|||
userFileError(result, fEntryFolderText->Text());
|
||||
break;
|
||||
}
|
||||
case kEntryExtText:
|
||||
{
|
||||
((App*)be_app)->fPreferences->fEntryFileExt = fFileExtText->Text();
|
||||
break;
|
||||
}
|
||||
case kOpenHtmlRadio:
|
||||
{
|
||||
((App*)be_app)->fPreferences->fOpenAs = kOpenAsHtml;
|
||||
|
@ -125,10 +119,6 @@ EntriesView::_InitInterface()
|
|||
fEntryFolderBrowseButton = new BButton("entryFolderBrowse", "Browse…",
|
||||
new BMessage(kEntryFolderBrowse));
|
||||
|
||||
fFileExtLabel = new BStringView("fileExtLabel", "File extension:");
|
||||
fFileExtText = new BTextControl("fileExt", "", "",
|
||||
new BMessage(kEntryExtText));
|
||||
|
||||
// Opening
|
||||
fOpeningBox = new BBox("opening");
|
||||
fOpeningBox->SetLabel("Opening");
|
||||
|
@ -157,7 +147,6 @@ EntriesView::_InitInterface()
|
|||
else
|
||||
fOpenAsAutoRadio->SetValue(B_CONTROL_ON);
|
||||
|
||||
fFileExtText->SetText(prefs->fEntryFileExt);
|
||||
fEntryFolderText->SetText(prefs->EntryDir());
|
||||
|
||||
_PopulateOpenWithMenu();
|
||||
|
@ -168,7 +157,6 @@ EntriesView::_InitInterface()
|
|||
.AddGroup(B_VERTICAL, B_USE_DEFAULT_SPACING)
|
||||
.SetInsets(0, 20, B_USE_ITEM_INSETS, 0)
|
||||
.Add(fEntryFolderLabel)
|
||||
.Add(fFileExtLabel)
|
||||
.End()
|
||||
.AddGroup(B_VERTICAL, B_USE_DEFAULT_SPACING)
|
||||
.SetInsets(0, 20, B_USE_ITEM_INSETS, 0)
|
||||
|
@ -176,7 +164,6 @@ EntriesView::_InitInterface()
|
|||
.Add(fEntryFolderText)
|
||||
.Add(fEntryFolderBrowseButton)
|
||||
.End()
|
||||
.Add(fFileExtText)
|
||||
.End()
|
||||
.End();
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@ enum
|
|||
{
|
||||
kEntryFolderText = 'txef',
|
||||
kEntryFolderBrowse = 'tbef',
|
||||
kEntryExtText = 'txee',
|
||||
kOpenHtmlRadio = 'rdow',
|
||||
kOpenUrlRadio = 'roow',
|
||||
kOpenAutoRadio = 'raow',
|
||||
|
@ -49,8 +48,6 @@ private:
|
|||
BStringView* fEntryFolderLabel;
|
||||
BTextControl* fEntryFolderText;
|
||||
BButton* fEntryFolderBrowseButton;
|
||||
BStringView* fFileExtLabel;
|
||||
BTextControl* fFileExtText;
|
||||
|
||||
BBox* fOpeningBox;
|
||||
BStringView* fOpenAsLabel;
|
||||
|
|
|
@ -33,7 +33,6 @@ Preferences::Load()
|
|||
storage.Unflatten(&file);
|
||||
|
||||
fEntryDir = BString(storage.GetString("entryDir", "/boot/home/feeds/"));
|
||||
fEntryFileExt = BString(storage.GetString("entryExt", ""));
|
||||
fOpenAs = storage.GetInt8("openAs", kOpenAsUrl);
|
||||
fOpenWith = BString(storage.GetString("openWith",
|
||||
"application/x-vnd.Haiku-WebPositive"));
|
||||
|
@ -67,7 +66,6 @@ Preferences::Save()
|
|||
status_t result = file->InitCheck();
|
||||
|
||||
storage.AddString("entryDir", fEntryDir.String());
|
||||
storage.AddString("entryExt", fEntryFileExt.String());
|
||||
storage.AddString("openWith", fOpenWith.String());
|
||||
storage.AddInt8("openAs", fOpenAs);
|
||||
|
||||
|
|
|
@ -38,8 +38,6 @@ public:
|
|||
BString EntryOpenWith();
|
||||
status_t SetEntryOpenWith(const char* binPath);
|
||||
|
||||
|
||||
BString fEntryFileExt;
|
||||
bool fNewNotify;
|
||||
bool fFailureNotify;
|
||||
int8 fOpenAs;
|
||||
|
|
Ŝarĝante…
Reference in New Issue