Skip to content
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 .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
  • 1 commit
  • 9 files changed
  • 0 commit comments
  • 1 contributor
@@ -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);
@@ -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()
{
@@ -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;
@@ -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

This file was deleted.

No commit comments for this range

You can’t perform that action at this time.