Skip to content

Commit

Permalink
Updating copyright headers
Browse files Browse the repository at this point in the history
  • Loading branch information
marigostra committed Oct 24, 2021
1 parent 75e43c0 commit 4a80232
Show file tree
Hide file tree
Showing 9 changed files with 138 additions and 57 deletions.
40 changes: 0 additions & 40 deletions src/main/java/org/luwrain/app/news/Actions

This file was deleted.

21 changes: 17 additions & 4 deletions src/main/java/org/luwrain/app/news/App.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
/*
Copyright 2012-2021 Michael Pozhidaev <[email protected]>
package org.luwrain.app.news2;
This file is part of LUWRAIN.
LUWRAIN is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
LUWRAIN is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/

package org.luwrain.app.news;

import java.util.*;

Expand All @@ -9,8 +24,6 @@
import org.luwrain.pim.news.*;
import org.luwrain.app.base.*;

import org.luwrain.app.news.Strings;

public final class App extends AppBase<Strings> implements MonoApp
{
private NewsStoring storing = null;
Expand Down Expand Up @@ -49,7 +62,7 @@ boolean openGroup(NewsGroup newGroup)

void loadGroups()
{
final List<GroupWrapper> w = new LinkedList();
final List<GroupWrapper> w = new ArrayList<>();
final NewsGroup[] g = storing.getGroups().load();
Arrays.sort(g);
int[] newCounts = storing.getArticles().countNewInGroups(g);
Expand Down
19 changes: 16 additions & 3 deletions src/main/java/org/luwrain/app/news/Conversations.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
/*
Copyright 2012-2021 Michael Pozhidaev <[email protected]>
package org.luwrain.app.news2;
This file is part of LUWRAIN.
LUWRAIN is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
LUWRAIN is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/

package org.luwrain.app.news;

import java.net.*;

import org.luwrain.core.*;
import org.luwrain.popups.*;

import org.luwrain.app.news.Strings;

final class Conversations
{
private final Luwrain luwrain;
Expand Down
17 changes: 16 additions & 1 deletion src/main/java/org/luwrain/app/news/DateUtils.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
/*
Copyright 2012-2021 Michael Pozhidaev <[email protected]>
package org.luwrain.app.news2;
This file is part of LUWRAIN.
LUWRAIN is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
LUWRAIN is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/

package org.luwrain.app.news;

import java.util.*;

Expand Down
4 changes: 1 addition & 3 deletions src/main/java/org/luwrain/app/news/Extension.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2012-2019 Michael Pozhidaev <[email protected]>
Copyright 2012-2021 Michael Pozhidaev <[email protected]>
This file is part of LUWRAIN.
Expand All @@ -24,15 +24,13 @@ public final class Extension extends EmptyExtension
{
return new Command[]{
new SimpleShortcutCommand("news"),
new SimpleShortcutCommand("news2")
};
}

@Override public ExtensionObject[] getExtObjects(Luwrain luwrain)
{
return new ExtensionObject[]{
new SimpleShortcut("news", App.class),
new SimpleShortcut("news2", org.luwrain.app.news2.App.class)
};
}
}
17 changes: 16 additions & 1 deletion src/main/java/org/luwrain/app/news/GroupWrapper.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
/*
Copyright 2012-2021 Michael Pozhidaev <[email protected]>
package org.luwrain.app.news2;
This file is part of LUWRAIN.
LUWRAIN is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
LUWRAIN is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/

package org.luwrain.app.news;

import org.luwrain.core.*;
import org.luwrain.pim.news.*;
Expand Down
58 changes: 55 additions & 3 deletions src/main/java/org/luwrain/app/news/MainLayout.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
/*
Copyright 2012-2021 Michael Pozhidaev <[email protected]>
package org.luwrain.app.news2;
This file is part of LUWRAIN.
LUWRAIN is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
LUWRAIN is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/

package org.luwrain.app.news;

import java.util.*;

Expand All @@ -15,8 +30,6 @@

import static org.luwrain.core.DefaultEventResponse.*;

import org.luwrain.app.news.Strings;

final class MainLayout extends LayoutBase
{
private final App app;
Expand Down Expand Up @@ -281,6 +294,45 @@ private boolean markAsRead(NewsArticle article)
return true;
}

/*
boolean setShowAllGroupsMode(ListArea groupsArea, boolean value)
{
NullCheck.notNull(groupsArea, "groupsArea");
base.setShowAllGroups(value);
groupsArea.refresh();
luwrain.playSound(Sounds.OK);
return true;
}
boolean markAsReadWholeGroup(ListArea groupsArea, ListArea summaryArea, GroupWrapper group)
{
NullCheck.notNull(groupsArea, "groupsArea");
NullCheck.notNull(summaryArea, "summaryArea");
NullCheck.notNull(group, "group");
if (base.markAsReadWholeGroup(group.group))
{
groupsArea.refresh();
groupsArea.announceSelected();
}
base.closeGroup();
summaryArea.refresh();
return true;
}
boolean onOpenUrl(ReaderArea area)
{
NullCheck.notNull(area, "area");
final Document doc = area.getDocument();
if (doc == null || doc.getUrl() == null)
return false;
luwrain.launchApp("reader", new String[]{doc.getUrl().toString()});
return true;
}
}
*/

final class SummaryAppearance implements ListArea.Appearance<NewsArticle>
{
@Override public void announceItem(NewsArticle article, Set<Flags> flags)
Expand Down
17 changes: 16 additions & 1 deletion src/main/java/org/luwrain/app/news/PropertiesLayout.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
/*
Copyright 2012-2021 Michael Pozhidaev <[email protected]>
package org.luwrain.app.news2;
This file is part of LUWRAIN.
LUWRAIN is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
LUWRAIN is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/

package org.luwrain.app.news;

import java.util.*;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/luwrain/app/news/Strings.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2012-2019 Michael Pozhidaev <[email protected]>
Copyright 2012-2021 Michael Pozhidaev <[email protected]>
This file is part of LUWRAIN.
Expand Down

0 comments on commit 4a80232

Please sign in to comment.