Skip to content
Why GitHub?
Features
→
Code review
Project management
Integrations
Actions
Packages
Security
Team management
Hosting
Customer stories
→
Security
→
Team
Enterprise
Explore
Explore GitHub
→
Learn & contribute
Topics
Collections
Trending
Learning Lab
Open source guides
Connect with others
Events
Community forum
GitHub Education
Marketplace
Pricing
Plans
→
Compare plans
Contact Sales
Nonprofit
→
Education
→
In this repository
All GitHub
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub
↵
Jump to
↵
In this repository
All GitHub
↵
Jump to
↵
Sign in
Sign up
HaikuArchives
/
BePodder
Watch
12
Star
2
Fork
8
Code
Issues
21
Pull requests
0
Actions
Security
Insights
Permalink
Comparing changes
Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also
compare across forks
.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also
compare across forks
.
base repository:
HaikuArchives/BePodder
Choose a Base Repository
HaikuArchives/BePodder
Damillora/BePodder
FabianReidinger/BePodder
Haikeek/BePodder
R4H33M/BePodder
humdingerb/BePodder
janus2/BePodder
korli/BePodder
nnaik39/BePodder
Nothing to show
base:
8b768321c613
head repository:
HaikuArchives/BePodder
Choose a Head Repository
HaikuArchives/BePodder
Damillora/BePodder
FabianReidinger/BePodder
Haikeek/BePodder
R4H33M/BePodder
humdingerb/BePodder
janus2/BePodder
korli/BePodder
nnaik39/BePodder
Nothing to show
compare:
98e9eb3791fc
1
commit
9
files changed
0
commit comments
1
contributor
Commits on Mar 15, 2018
janus2
CleanUp and Correct data format in episode info
…
98e9eb3
*
Fixes
#58
Unified
Split
Showing
9 changed files
with
27 additions
and
399 deletions
.
+2
−6
sources-experimental/HelpWindow.cpp
+21
−43
sources-experimental/MainWindow.cpp
+0
−3
sources-experimental/MainWindow.h
+2
−28
sources-experimental/MemoryArchive.cpp
+0
−26
sources-experimental/R5Locale.cpp
+0
−238
sources-experimental/SectionSelector.cpp
+0
−47
sources-experimental/SectionSelector.h
+2
−7
sources-experimental/SubscriptionListView.cpp
+0
−1
sources/Makefile
8
sources-experimental/HelpWindow.cpp
Show comments
View file
Edit file
Delete file
@@ -59,14 +59,10 @@ HelpWindow::HelpWindow() :
rgb_color white = {
255
,
255
,
255
,
255
};
hv->
SetForeColor
(black) ;
hv->
SetBackColor
(white);
BString
where
(
GetAppRelativePath
());
#
ifdef
ZETA
where <<
"
/help.xml
"
;
#
else
where <<
"
/helpR5.xml
"
;
#
endif
where <<
"
/helpR5.xml
"
;
hv->
LoadFile
(where.
String
());
hv->
SetGotoHandler
(
this
);
hv->
SetOpenUrlHandler
(be_app);
64
sources-experimental/MainWindow.cpp
Show comments
View file
Edit file
Delete file
@@ -9,6 +9,8 @@
#
include
<
MenuItem.h
>
#
include
<
Alert.h
>
#
include
<
Button.h
>
#
include
<
DateFormat.h
>
#
include
<
DateTimeFormat.h
>
#
include
<
View.h
>
#
include
<
Box.h
>
#
include
<
LayoutBuilder.h
>
@@ -41,9 +43,7 @@
#
include
"
runview/Theme.h
"
#
include
"
RVActionBP.h
"
#
include
"
RVActionBPOpenURL.h
"
#
include
"
SectionSelector.h
"
#
include
"
RVActionBPOpenURL.h
"
#
include
"
DownloadListView.h
"
#
include
"
DownloadListItem.h
"
@@ -278,11 +278,8 @@ MainWindow::init(MainController* controller){
sx_list=
new
SubscriptionListView
(
BRect
(
0
,
0
,
210
,
377
));
BView *multyView =
new
BView
(
"
MultyView
"
, B_WILL_DRAW);
fSelector
=
new
SectionSelector
(
BRect
(
0
,
0
,
100
,
100
),
new
BMessage
(SECTION_SELECTED));
fSelector
->
SetTarget
(
this
);
BRect k =
Bounds
();
dxsplit =
new
SplitPane
(
BRect
(
451
,
52
,
860
,
477
),theStack,multyView,B_FOLLOW_ALL);
dxsplit->
SetViewInsetBy
(
BPoint
(
0
,
0
));
dxsplit->
SetAlignment
(B_HORIZONTAL);
@@ -305,13 +302,9 @@ MainWindow::init(MainController* controller){
BLayoutBuilder::Group<>(multyView, B_VERTICAL,
0
)
.
Add
(tabView);
BView* fakeView=
new
BView
(
fSelector
->
Bounds
(),
B_TRANSLATE
(
"
Downloads
"
),B_FOLLOW_ALL,B_WILL_DRAW);
BView* fakeView=
new
BView
(
multyView
->
Bounds
(),
B_TRANSLATE
(
"
Downloads
"
),B_FOLLOW_ALL,B_WILL_DRAW);
fakeView->
AddChild
(down_list=
new
DownloadListView
(fakeView->
Bounds
()));
/*
fSelector->AddSection("info0.png",CreateItemInfoView(), B_TRANSLATE("Show episode info") );
fSelector->AddSection("info1.png",CreateChannelInfoView(), B_TRANSLATE("Show subscription info"));
fSelector->AddSection("info2.png",fakeView, B_TRANSLATE("Show downloads info") );
fSelector->Select(0);
*/
BView *xview;
tabView->
AddTab
(xview =
CreateItemInfoView
());
xview->
SetExplicitMinSize
(
BSize
(
0
,
0
));
@@ -1220,17 +1213,28 @@ MainWindow::ShowItemDescription(MemoryArchive* archive){
}
time_t
*curtime =
0
;
if
(archive->
GetData
(ITEM_PUBDATE,(
const
void
**)&curtime) >
0
){
//
TODO should be converted in local time?
//
if so, time in ColumnView and in the info could be different
//
Should be converted in the metadata?
char
dateString[
256
];
/*
char dateString[256];
tm time_data;
time_t datetime=*curtime;
localtime_r(&datetime, &time_data);
//"%A, %B %d %Y, %I:%M:%S %p"
strftime(dateString, 256, "%a, %B %d %Y, %I:%M:%S %p", &time_data);
fItemText->Append(" - ",C_TEXT,C_ACTION,F_TIMESTAMP);
fItemText->Append(dateString,C_TEXT,C_ACTION,F_TIMESTAMP);
*/
BDateTimeFormat formatter;
BString dateString;
if
(formatter.
Format
(dateString, *curtime, B_FULL_DATE_FORMAT,
B_LONG_TIME_FORMAT) == B_OK) {
fItemText
->
Append
(
"
-
"
,C_TEXT,C_ACTION,F_TIMESTAMP);
fItemText
->
Append
(dateString.
String
(),C_TEXT,C_ACTION,F_TIMESTAMP);
}
}
else
fItemText
->
Append
(
"
"
,C_TEXT,C_ACTION,F_TIMESTAMP);
@@ -1442,33 +1446,6 @@ MainWindow::SetFullscreen(bool fullscreen){
BRect
frect
(
Bounds
());
dxsplit->
SetBarPosition
(
BPoint
(frect.
Width
()/
2
.
0f
-
170
, frect.
Height
()/
2
));
}
/*
void
MainWindow::SetToolbarVisible(bool visible){
BPoint point(0,42);
if(!visible) {
notoolbar->SetMarked(false);
view->ScrollTo(point);
split->ResizeBy(point.x,point.y);
dxsplit->SetBarPosition(dxsplit->GetBarPosition()+=point);
if(!itemsView->IsHidden())
itemsView->Hide();
if(!channelView->IsHidden())
channelView->Hide();
} else {
notoolbar->SetMarked(true);
view->ScrollTo(BPoint(0,0));
split->ResizeBy(point.x,-point.y);
dxsplit->SetBarPosition(dxsplit->GetBarPosition()-=point);
if(itemsView->IsHidden())
itemsView->Show();
if(channelView->IsHidden())
channelView->Show();
}
}
*/
void
MainWindow::SetToolbarVisible
(
bool
visible){
@@ -1490,6 +1467,7 @@ MainWindow::SetToolbarVisible(bool visible){
fToolBar
->
Show
();
}
}
void
MainWindow::MenusBeginning
()
{
3
sources-experimental/MainWindow.h
Show comments
View file
Edit file
Delete file
@@ -30,7 +30,6 @@ class RunView;
class
MemoryArchive
;
class
MainController
;
class
DownloadListItem
;
class
SectionSelector
;
class
GroupItem
;
class
OPMLTree
;
@@ -195,8 +194,6 @@ class MainWindow: public BWindow
BPopUpMenu*
fItemMenu
;
BPopUpMenu*
fDownloadMenu
;
BPopUpMenu*
fGroupMenu
;
SectionSelector*
fSelector
;
BFilePanel *importFilePanel;
BFilePanel *exportFilePanel;
30
sources-experimental/MemoryArchive.cpp
Show comments
View file
Edit file
Delete file
@@ -99,38 +99,13 @@ MemoryArchive::KeyModified(int32 key, void* data, ssize_t numBytes){
void
MemoryArchive::FillListener
(Notifier*
fListener
){
#
ifdef
ZETA
//
now update all my info! (is always true?)
void
*cookie =
NULL
;
char
*name;
uint32 type=
0
;
int32 count =
0
;
while
(
fData
.
GetNextName
(&cookie, (
const
char
**)&name,
NULL
,
NULL
) == B_OK) {
void
* data =
NULL
;
ssize_t
numBytes;
if
(
fData
.
FindData
(name,B_ANY_TYPE,
0
,(
const
void
**)&data,&numBytes)==B_OK)
{
//
FIX MANCA SSIZE_T! (unmangling the name..)
BString
uname
(name);
uname.
RemoveAll
(
"
key_
"
);
int32 key =
atol
(uname.
String
());
fListener
->
SetKey
((ItemProperty)key,data,numBytes);
//
if(data && numBytes>0)free(data);
}
}
#
else
//
now update all my info! (is always true?)
//
void *cookie = NULL;
char
*name;
uint32 type=
0
;
int32 count =
fData
.
CountNames
(B_ANY_TYPE);
for
(
int
i=
0
;i<count;i++)
//
while (fData.GetNextName(&cookie, (const char**)&name,NULL,NULL) == B_OK)
{
for
(
int
i=
0
;i<count;i++) {
fData
.
GetInfo
(B_ANY_TYPE,i,(
char
**)&name,&type);
void
* data =
NULL
;
ssize_t
numBytes;
@@ -145,7 +120,6 @@ MemoryArchive::FillListener(Notifier* fListener){
//
if(data && numBytes>0)free(data);
}
}
#
endif
}
void
26
sources-experimental/R5Locale.cpp
Show comments
View file
Edit file
Delete file
Load diff
This file was deleted.
Oops, something went wrong.
Retry
Oops, something went wrong.
Retry
Toggle all file notes
No commit comments for this range
You can’t perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
This file was deleted.