Initial import of News module.

News module displays information feeds like Rss or Atom,
its not finished yet, but its usable and should be stable too.

enjoy =)


SVN revision: 30004
enlightenment-0.17
kiwi 16 years ago committed by kiwi
commit 480a7c0a6e
  1. 0
      ABOUT-NLS
  2. 8
      AUTHORS
  3. 340
      COPYING
  4. 0
      ChangeLog
  5. 39
      IDEAS
  6. 5
      INSTALL
  7. 8
      Makefile.am
  8. 0
      NEWS
  9. 6
      README
  10. 144
      TODO
  11. 19
      autogen.sh
  12. 166
      configure.in
  13. 2
      data/Makefile.am
  14. 2
      data/images/Makefile.am
  15. 6
      data/images/categories/Makefile.am
  16. BIN
      data/images/categories/blue.png
  17. BIN
      data/images/categories/default.png
  18. BIN
      data/images/categories/red.png
  19. 22
      data/images/feeds/Makefile.am
  20. BIN
      data/images/feeds/afp.png
  21. BIN
      data/images/feeds/barrapunto.png
  22. BIN
      data/images/feeds/bbcworld.png
  23. BIN
      data/images/feeds/bouletcorp.png
  24. BIN
      data/images/feeds/cnn.png
  25. BIN
      data/images/feeds/courrierinternational.png
  26. BIN
      data/images/feeds/default.png
  27. BIN
      data/images/feeds/digg.png
  28. BIN
      data/images/feeds/e_cvs.png
  29. BIN
      data/images/feeds/e_fr.png
  30. BIN
      data/images/feeds/freshmeat.png
  31. BIN
      data/images/feeds/futurasciences.png
  32. BIN
      data/images/feeds/google.png
  33. BIN
      data/images/feeds/google_fr.png
  34. BIN
      data/images/feeds/lemonde.png
  35. BIN
      data/images/feeds/meneame.png
  36. BIN
      data/images/feeds/news.png
  37. BIN
      data/images/feeds/osnews.png
  38. BIN
      data/images/feeds/slashdot.png
  39. 36
      data/theme/Makefile.am
  40. BIN
      data/theme/fonts/Vera.ttf
  41. BIN
      data/theme/fonts/VeraBd.ttf
  42. BIN
      data/theme/images/article_background_new.png
  43. BIN
      data/theme/images/article_border.png
  44. BIN
      data/theme/images/feed_background_new.png
  45. BIN
      data/theme/images/feed_border.png
  46. BIN
      data/theme/images/feed_loading_1.png
  47. BIN
      data/theme/images/feed_loading_done.png
  48. BIN
      data/theme/images/icon_article_read.png
  49. BIN
      data/theme/images/icon_article_unread.png
  50. BIN
      data/theme/images/icon_infos.png
  51. BIN
      data/theme/images/icon_logo.png
  52. BIN
      data/theme/images/icon_setasread.png
  53. BIN
      data/theme/images/icon_update.png
  54. BIN
      data/theme/images/icon_viewer.png
  55. BIN
      data/theme/images/item_border.png
  56. BIN
      data/theme/images/item_feed_back.png
  57. BIN
      data/theme/images/popup_warn_background.png
  58. BIN
      data/theme/images/popup_warn_disable.png
  59. BIN
      data/theme/images/popup_warn_disable_clicked.png
  60. BIN
      data/theme/images/popup_warn_logo_error.png
  61. BIN
      data/theme/images/popup_warn_logo_info.png
  62. BIN
      data/theme/images/viewer_background.png
  63. 44
      data/theme/module.edc
  64. 16
      data/theme/module_feed.edc
  65. 155
      data/theme/module_feed_parts.edc
  66. 61
      data/theme/module_feed_programs.edc
  67. 16
      data/theme/module_feedone.edc
  68. 143
      data/theme/module_feedone_parts.edc
  69. 61
      data/theme/module_feedone_programs.edc
  70. 169
      data/theme/module_icon.edc
  71. 21
      data/theme/module_item.edc
  72. 42
      data/theme/module_item_parts.edc
  73. 12
      data/theme/module_item_programs.edc
  74. 52
      data/theme/module_popw.edc
  75. 218
      data/theme/module_popw_parts.edc
  76. 96
      data/theme/module_popw_programs.edc
  77. 21
      data/theme/module_viewer.edc
  78. 49
      data/theme/module_viewer_parts.edc
  79. 10
      data/theme/module_viewer_programs.edc
  80. 50
      e_modules-news.spec.in
  81. 138
      m4/ac_path_generic.m4
  82. 4
      module.desktop.in
  83. BIN
      module.edj
  84. 2
      src/Makefile.am
  85. 51
      src/module/Makefile.am
  86. 61
      src/module/News.h
  87. 20
      src/module/News_includes.h
  88. 233
      src/module/e_mod_main.c
  89. 40
      src/module/e_mod_main.h
  90. 270
      src/module/news_config.c
  91. 98
      src/module/news_config.h
  92. 502
      src/module/news_config_dialog.c
  93. 14
      src/module/news_config_dialog.h
  94. 293
      src/module/news_config_dialog_category.c
  95. 14
      src/module/news_config_dialog_category.h
  96. 640
      src/module/news_config_dialog_feed.c
  97. 17
      src/module/news_config_dialog_feed.h
  98. 760
      src/module/news_config_dialog_feeds.c
  99. 17
      src/module/news_config_dialog_feeds.h
  100. 177
      src/module/news_config_dialog_item.c
  101. Some files were not shown because too many files have changed in this diff Show More

@ -0,0 +1,8 @@
Laurent 'kiwi' Ghigonis
ooookiwi@gmail.com
http://oooo.zapto.org
irc.freenode.net, #e.fr, kiwi_
Thanks to <lok> and <watchwolf> from #e.fr, and to Juan J. <udobito>, for their ideas and reports
Feeds icons are from the respective websites, sometimes a bit modified to look better

@ -0,0 +1,340 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program 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 2 of the License, or
(at your option) any later version.
This program 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.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

39
IDEAS

@ -0,0 +1,39 @@
* Main *
- take from MacOS X spirit
- take from dEvian
- fix charset bugs (look at tmsnc)
- fix proxy bugs (config dialog)
- multiples rss in one rss item, like tabs
general view of all rss feeds wich are inside one item
* Rss general view *
- when one has a news, it goes red
when you click/over one, it switches to it
- autoscroll under mouse option
- view mode : icons, icons and text, text
* Rss headlines view *
- when youre mouse go over one rss, it set all rss of the source as red
- autoscroll under mouse option
- you can configure the font and font size
- view mode : date, date and text, text
* Rss content view *
- popup under the shelf or centered at the middle of the screen
- autoscroll under mouse option
- you can configure the font and font size
* Rss List *
- sort by categories
the user can add his feeds in one category
- the user can move up and down a feed in the list, within a category
- he select the category of a feed in the feed config dialog
- many rss already here by default
- display language for each feed

@ -0,0 +1,5 @@
To install Enlightenment News module, just do
./autogen.sh
make
make install

@ -0,0 +1,8 @@
MAINTAINERCLEANFILES = Makefile.in
SUBDIRS = src data
filesdir = $(datadir)
files_DATA = module.desktop
pkgdir = $(datadir)/$(MODULE_ARCH)

@ -0,0 +1,6 @@
Enlightenment News Module
Module to display information feeds like Rss or Atom
on youre Enlightenment desktop
enjoy =)

144
TODO

@ -0,0 +1,144 @@
make install CFLAGS="-g -Wall -Werror -DDEBUG -DDEBUG_MAIN -DDEBUG_CONFIG -DDEBUG_ITEM -DDEBUG_FEED -DDEBUG_PARSE -DDEBUG_BROWSER -DDEBUG_POPUP_WARN -DDEBUG_VIEWER"
----------------------------------------------------
BUGS
----------------------------------------------------
----------------------------------------------------
NEEDED (to do more or less in this order)
----------------------------------------------------
- feed icons (new file ?)
Evas_Object *news_feed_icon_add(News_Feed *feed)
void news_feed_icon_del(Evas_Object *obj)
void news_feed_icon_refresh(Evas_Object *obj)
evas_object_data_set the feed on the icon
evas_object_event_callback_add(EVAS_CALLBACK_FREE) on the icon, that remove the obj from feed->icons
to get a feeds icon : an edje obj, with icon swallowed
so we can put in menu / item / ilists, to have animated things every where, linked and consistant (state refresh calls news_feed_icon_refresh(feed))
add an "attached" state, to show that the feed is attached to an item. for example, a circle border aroung the icon ?
enable/disable state changes for each icon, with options on the _icon_add() and "can_..." data attached to the icon's evas_object
so mybe then no feed for news_viewer_feed_refresh() and config_dialog_refresh_feed() ...
- feeds option "icon glint on news"
- news_feed_ilist_get(News_Item *item)
+ news_feed_category_ilist_get()
if item is not NULL, get the selected feeds (= feeds of the item)
is NULL, get the whole feeds list (with categories ...)
(implement multi sel everywhere in main dialog, feeds list; usefull for delete feeds)
news_category_ilist_get
- news_viewer_feed_refresh -> refresh label and icon of a feed
news_config_dialog_refresh_feed
news_config_dialog_item_refresh_feed
items_get
while { nth_data_get() == feed }
nth_icon_set
nth_label_set
to avoid refresh the ilist
--- WAIT FOR FEED ICONS ---
- viewer: dont reselect current feed in viewer when a feed has updated with changes
- viewer: when an article goes to "as read" and "feeds first" option, refresh the feeds list but don't reselect the feed, go on top of the list
- use a "changed" attribute to things, to detect what has to be refresh when refresh() is called. to avoid refresh things for nothing, so avoid user ilists changer for nothing
---
[Parse]
- parse html chars (in _item_clean ?)
- reparse infos every time, if changes ... ?
- handle the fact that sometimes we loose feeds (connection timeout ...) so sometimes, keep feeds that are READ, to avoid having feeds marked as unread, but wich where read before
-> compare description of feed just parsed with suspect precedent one
its not that slow (use memcmp, keep description_size)
[Item]
- show as selected the feed selected in viewer
- mouse over -> bump icon a bit
- unread feeds : glint every /10s ? on a global beat ?
- unread feeds : put the red color on top if icon alpha = 0
- item actions on mouse over / left click / wheel, like in photo
- option to have label on each feed icon
- wheel on an item makes the viewer go to next/prev (unread?) article
- loading state
- maybe a BUG with add / remove feeds in an item (MODE_FEED)
it has hang on time, in while(o = e_box_..._first(box)) { unpack }
... needs testing
[Config_Dialog]
- e patch for ilist : e_widget_ilist_selected_set, when there are labels, selects the good feed but the view goes at the end of the ilist
- e patch for ilist : (dialog_item/viewer when refresh and dont selected_set after, the view goes up of one item
- when changing order / modify feeds / categories
in the main config panel, make the state of the
config panel as INCHANGED
= dont enable "ok" and "apply"
- ? dont allow move categories ?
- ? item: category ilist to quickly find a feed ?
- e_config_dialog_find for all config dialogs ...
it needs E patch
- clean config_dialog_data (use sub structs ...)
- ? news_widget_feeds ? an ilist of feeds, sorted ... other things like that ?
- ? dialog: default button for viewer font, needs rewrite some things ... ?
- ? main/item: show language flag in ilist
e patch : add ability to have a 2nd image on the right of ilist items (we can show module activation in modules list. (raster adreed, go!, and send to ml) ?
is it really usefull ? language offen appears in the name, and we have a language selector ...
[Viewer]
- appear with sliding animation in option ?
- when refresh viewer, try not to move the ilist view,
cause when you are watching it at the same time, its very anoying
needs e ilist patch ?
- news viewer refresh position function ?
- ? viewer: instead of having 'own lists', get the pos of feeds/articles via going through ilist items (e_widget_ilist_items_get && e_widget_ilist_nth_data_get), counting and looking data field ?
[Popup_Warn]
- everything
[Feed]
- patch to ecore_con to avoid segv when ecore_con_server_del on a server wich has not astablished connection yet
- popup an error if the feed doesnt want to refresh
(with a timeout timer on waiting reply ...)
- proxy tests
- add default feeds
- save articles on unload ?
- DIDNT FIND BETTER ... :
rethink the stupid system that _detach, but not really.
linked with the Feed_Ref thing
-> ??? detach feeds, feed refs
when shutdown the module, specify if whe want a real delete (done)
but why is it unsur ? we should be able to know is the shutdown call
comes from my code (->detach) or outside ???
[*]
- move some things from .h to .c (private things ...)
- help dialog (mouse on viewer vcontent for example ...)
- fix all TODO and FIXME in the code
[Parse]
- ? charset ? already ok ? i believe not =)
- display feed language
- images
for items :
<enclosure url="..">, look if its an image
for channels :
<image> -> <url>
<rss:image> for <= 1.0
favicon.ico
- get the favicon.ico for the feed icon, or set a genereric icon if not
[Viewer]
- capacitee de suivre des flux d'images, et de sav les images
pour que Photo par exemple les reprenne derriere ds le repertoire où on a save la photo
"mode images" genre entice, pour voir toutes les images d'un coup (cf <lok>) ?
[Config Dialog]
- add an auto attach dialog, when you create a new feed
(disable option)
[Browser]
- possibility to have a little browser window in front of
the shelf, to see a news options to remember, place ...
----------------------------------------------------
FUTUR
----------------------------------------------------
- think about a new way of interaction with the wm
- search info about getting feeds where youre need to be logged

@ -0,0 +1,19 @@
#!/bin/sh
rm -Rf aclocal.m4 autom4te.cache/ ltmain.sh config.log config.status config.cache configure configure.scan libtool Makefile \
data/Makefile.in data/Makefile \
data/images/Makefile.in data/images/Makefile \
data/themes/Makefile.in data/themes/Makefile \
data/themes/minimal/Makefile.in data/themes/minimal/Makefile \
src/Makefile src/Makefile.in \
src/module/Makefile src/module/Makefile.in
echo "Running aclocal..." ; aclocal $ACLOCAL_FLAGS -I m4 || exit 1
echo "Running autoheader..." ; autoheader || exit 1
echo "Running autoconf..." ; autoconf || exit 1
echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1
echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
if [ -z "$NOCONFIGURE" ]; then
./configure "$@"
fi

@ -0,0 +1,166 @@
dnl Process this file with autoconf to produce a configure script.
# get rid of that stupid cache mechanism
rm -f config.cache
#news module version
version="0.1.0"
AC_INIT(configure.in)
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE(news, $version)
AM_CONFIG_HEADER(config.h)
AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_C_CONST
AM_ENABLE_SHARED
AM_PROG_LIBTOOL
ALL_LINGUAS="fi it ja ru sv"
AC_SUBST(ALL_LINGUAS)
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION(0.14)
MODULE_ARCH="$host_os-$host_cpu"
AC_SUBST(MODULE_ARCH)
AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
AC_DEFINE_UNQUOTED(MODULE_VERSION, "$version", "Module version")
if test "x${bindir}" = 'x${exec_prefix}/bin'; then
if test "x${exec_prefix}" = "xNONE"; then
if test "x${prefix}" = "xNONE"; then
bindir="${ac_default_prefix}/bin";
else
bindir="${prefix}/bin";
fi
else
if test "x${prefix}" = "xNONE"; then
bindir="${ac_default_prefix}/bin";
else
bindir="${prefix}/bin";
fi
fi
fi
if test "x${libdir}" = 'x${exec_prefix}/lib'; then
if test "x${exec_prefix}" = "xNONE"; then
if test "x${prefix}" = "xNONE"; then
libdir="${ac_default_prefix}/lib";
else
libdir="${prefix}/lib";
fi
else
if test "x${prefix}" = "xNONE"; then
libdir="${ac_default_prefix}/lib";
else
libdir="${prefix}/lib";
fi
fi
fi
dnl Set PACKAGE_BIN_DIR in config.h.
if test "x${bindir}" = 'xNONE'; then
if test "x${prefix}" = "xNONE"; then
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${ac_default_prefix}/bin", "Package installed binaries destination")
else
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${prefix}/bin", "Package installed binaries destination")
fi
else
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${bindir}", "Package installed binaries destination")
fi
dnl Set PACKAGE_LIB_DIR in config.h.
if test "x${libdir}" = 'xNONE'; then
if test "x${prefix}" = "xNONE"; then
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${ac_default_prefix}/lib", "Package installed libraries destination")
else
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${prefix}/lib", "Package installed libraries destination")
fi
else
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${libdir}", "Package installed libraries destination")
fi
dnl Set PACKAGE_DATA_DIR in config.h.
if test "x${prefix}" = "xNONE"; then
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${HOME}/.e/e/modules/${PACKAGE}", "Package installed data destination")
datadir="${HOME}/.e/e/modules/${PACKAGE}"
else
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/lib/enlightenment/modules/${PACKAGE}", "Package installed data destination")
datadir="${prefix}/lib/enlightenment/modules/${PACKAGE}"
fi
AC_PREFIX_DEFAULT(${HOME}/.e/e)
if test "x$prefix" = "xNONE"; then
datarootdir=${ac_default_prefix}
else
datarootdir=${prefix}/share
fi
localedir=${datarootdir}/locale
AC_SUBST(LOCALEDIR, "${localedir}")
AC_DEFINE_UNQUOTED(LOCALEDIR, "${localedir}", [Module Locale Directory])
#AC_CHECK_LIB(dl, dlopen, dlopen_libs=-ldl)
#AC_SUBST(dlopen_libs)
AC_ARG_WITH(edje-config,
[ --with-edje-config=EDJE_CONFIG use edje-config specified ],
[
EDJE_CONFIG=$withval;
echo "using "$EDJE_CONFIG" for edje-config";
/
],[
PROG="edje-config";
AC_PATH_PROG(EDJE_CONFIG, $PROG, "", $PATH)
])
edje_cflags=`$EDJE_CONFIG --cflags`
edje_libs=`$EDJE_CONFIG --libs`
AC_SUBST(edje_cflags)
AC_SUBST(edje_libs)
edje_cc="`$EDJE_CONFIG --prefix`/bin/edje_cc"
AC_ARG_WITH(edje-cc,
[ --with-edje-cc=PATH specify a specific path to edje_cc],
[
v=$withval;
edje_cc=$v
echo " Enlightenment edje_cc explicitly set to "$edje_cc;
],[
edje_cc="`$EDJE_CONFIG --prefix`/bin/edje_cc"
])
AC_SUBST(edje_cc)
AC_ARG_WITH(enlightenment-config,
[ --with-enlightenment-config=E_CONFIG use enlightenment-config specified ],
[
E_CONFIG=$withval;
echo "using "$E_CONFIG" for enlightenment-config";
],[
PROG="enlightenment-config";
AC_PATH_PROG(E_CONFIG, $PROG, "", $PATH)
])
e_cflags=`$E_CONFIG --cflags`
e_libs=`$E_CONFIG --libs`
e_modules=`$E_CONFIG --module-dir`
AC_SUBST(e_cflags)
AC_SUBST(e_libs)
AC_SUBST(e_modules)
AC_OUTPUT([
e_modules-news.spec
module.desktop
Makefile
data/Makefile
data/images/Makefile
data/images/feeds/Makefile
data/images/categories/Makefile
data/theme/Makefile
src/Makefile
src/module/Makefile
],[
])

@ -0,0 +1,2 @@
MAINTAINERCLEANFILES = Makefile.in
SUBDIRS = images theme

@ -0,0 +1,2 @@
MAINTAINERCLEANFILES = Makefile.in
SUBDIRS = feeds categories

@ -0,0 +1,6 @@
MAINTAINERCLEANFILES = Makefile.in
filesdir = $(datadir)/images/categories
files_DATA = blue.png \
default.png \
red.png

Binary file not shown.

Binary file not shown.

@ -0,0 +1,22 @@
MAINTAINERCLEANFILES = Makefile.in
filesdir = $(datadir)/images/feeds
files_DATA = afp.png \
barrapunto.png \
bbcworld.png \
bouletcorp.png \
cnn.png \
courrierinternational.png \
default.png \
digg.png \
e_cvs.png \
e_fr.png \
freshmeat.png \
futurasciences.png \
google_fr.png \
google.png \
lemonde.png \
meneame.png \
news.png \
osnews.png \
slashdot.png

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1,36 @@
MAINTAINERCLEANFILES = Makefile.in
EDJE_CC = @edje_cc@
EDJE_FLAGS = -v \
-id images \
-fd fonts
EXTRA_DIST = \
module.edc \
module_feed.edc \
module_feed_parts.edc \
module_feed_programs.edc \
module_feedone.edc \
module_feedone_parts.edc \
module_feedone_programs.edc \
module_icon.edc \
module_item.edc \
module_item_parts.edc \
module_item_programs.edc \
module_popw.edc \
module_popw_parts.edc \
module_popw_programs.edc \
module_viewer.edc \
module_viewer_parts.edc \
module_viewer_programs.edc
filesdir = $(datadir)
files_DATA = e-module-news.edj
e-module-news.edj: Makefile $(EXTRA_DIST)
$(EDJE_CC) $(EDJE_FLAGS) \
$(top_srcdir)/data/theme/module.edc \
$(top_builddir)/data/theme/e-module-news.edj
clean-local:
rm -f e-module-news.edj

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1,44 @@
/* Enlightenment News Module theme */
images
{
image: "item_border.png" COMP;
image: "item_feed_back.png" COMP;
image: "feed_background_new.png" COMP;
image: "feed_border.png" COMP;
image: "popup_warn_background.png" COMP;
image: "popup_warn_disable_clicked.png" COMP;
image: "popup_warn_disable.png" COMP;
image: "popup_warn_logo_error.png" COMP;
image: "popup_warn_logo_info.png" COMP;
image: "viewer_background.png" COMP;
image: "icon_logo.png" COMP;
image: "icon_infos.png" COMP;
image: "icon_viewer.png" COMP;
image: "icon_article_read.png" COMP;
image: "icon_article_unread.png" COMP;
image: "icon_update.png" COMP;
image: "icon_setasread.png" COMP;
}
fonts
{
font: "Vera.ttf" "Vera";
font: "VeraBd.ttf" "VeraBd";
}
collections
{
/* Groups */
#include "module_item.edc"
#include "module_feed.edc"
#include "module_feedone.edc"
#include "module_popw.edc"
#include "module_viewer.edc"
#include "module_icon.edc"
}

@ -0,0 +1,16 @@
/* Feed group */
group
{
name: "modules/news/feed";
parts
{
#include "module_feed_parts.edc"
}
programs
{
#include "module_feed_programs.edc"
}
}

@ -0,0 +1,155 @@
part
{
name: "background";
type: IMAGE;
mouse_events: 0;
description
{
state: "default" 0.0;
color: 255 255 255 0;
rel1
{
relative: 0.0 0.0;
}
rel2
{
relative: 1.0 1.0;
}
image
{
normal: "feed_background_new.png";
}
}
description
{
state: "new" 0.0;
inherit: "default" 0.0;
color: 255 255 255 255;
}
}
part
{
name: "border";
type: IMAGE;
mouse_events: 0;
description
{
state: "default" 0.0;
visible: 0;
color: 255 255 255 0;
rel1
{
relative: 0.0 0.0;
}
rel2
{
relative: 1.0 1.0;
}
image
{
normal: "feed_border.png";
}
}
description
{
state: "selected" 0.0;
inherit: "default" 0.0;
visible: 1;
color: 255 255 255 255;
}
}
part
{
name: "icon";
type: SWALLOW;
mouse_events: 0;
description
{
state: "default" 0.0;
visible: 1;
align: 0.0 0.5;
aspect: 1.0 1.0;
aspect_preference: VERTICAL;
rel1
{
relative: 0.0 0.0;
offset: 3 3;
}
rel2
{
relative: 1.0 1.0;
offset: -3 -3;
}
}
}
part
{
name: "name";
type: TEXT;
mouse_events: 0;
effect: OUTLINE_SOFT_SHADOW;
description
{
state: "default" 0.0;
visible: 0;
rel1
{
relative: 0.5 1.0;
offset: 0 0;
}
rel2
{
relative: 0.5 1.0;
}
text
{
text: "o Ooo Ooo";
font: "Vera";
align: 0.0 0.5;
fit: 0 1;
}
}
description
{
state: "visible" 0.0;
inherit: "default" 0.0;
visible: 1;
rel1
{
relative: 0.5 0.5;
}
rel2
{
relative: 0.5 0.5;
}
}
}
/* Inout */
part
{
name: "inout";
type: RECT;
mouse_events: 1;
description
{
state: "default" 0.0;
color: 255 255 255 0;
rel1
{
relative: 0.0 0.0;
to: "icon";
}
rel2
{
relative: 1.0 1.0;
to: "icon";
}
}
}

@ -0,0 +1,61 @@
/* Init */
program
{
name: "init";
signal: "load";
source: "";
script
{
}
}
/* Signals for new state */
program
{
name: "new_set";
signal: "e,state,new,set";
source: "e";
action: STATE_SET "new" 0.0;
target: "background";
transition: SINUSOIDAL 0.5;
}
program
{
name: "new_unset";
signal: "e,state,new,unset";
source: "e";
action: STATE_SET "default" 0.0;
target: "background";
transition: SINUSOIDAL 0.5;
}
/* Mouse in/out */
program
{
name: "mouse_in";
signal: "mouse,in";
source: "inout";
action: STATE_SET "selected" 0.0;
target: "border";
}
program
{
name: "mouse_out";
signal: "mouse,out";
source: "inout";
action: STATE_SET "default" 0.0;
target: "border";
}
program
{
name: "mouse_down";
signal: "mouse,down,1";
source: "inout";
action: SIGNAL_EMIT "e,action,open" "e";
}

@ -0,0 +1,16 @@
/* Feedone group */
group
{
name: "modules/news/feedone";
parts
{
#include "module_feedone_parts.edc"
}
programs
{
#include "module_feedone_programs.edc"
}
}

@ -0,0 +1,143 @@
part
{
name: "background";
type: IMAGE;
mouse_events: 0;
description
{
state: "default" 0.0;
color: 255 255 255 0;
rel1
{
relative: 0.0 0.0;
}
rel2
{
relative: 1.0 1.0;
}
image
{
normal: "feed_background_new.png";
}
}
description
{
state: "new" 0.0;
inherit: "default" 0.0;
color: 255 255 255 255;
}
}
part
{
name: "border";
type: IMAGE;
mouse_events: 0;
description
{
state: "default" 0.0;
visible: 0;
color: 255 255 255 0;
rel1
{
relative: 0.0 0.0;
}
rel2
{
relative: 1.0 1.0;
}
image
{
normal: "feed_border.png";
}
}
description
{
state: "selected" 0.0;
inherit: "default" 0.0;
visible: 1;
color: 255 255 255 255;
}
}
part
{
name: "icon";
type: IMAGE;
mouse_events: 0;
description
{
state: "default" 0.0;
aspect: 1.0 1.0;
rel1
{
relative: 0.1 0.1;
}
rel2
{
relative: 0.9 0.9;
}
image
{
normal: "icon_logo.png";
}
}
}
part
{
name: "name";
type: TEXT;
mouse_events: 0;
effect: OUTLINE_SOFT_SHADOW;
description
{
state: "default" 0.0;
visible: 0;
rel1
{
relative: 0.5 1.0;
offset: 0 0;
}
rel2
{
relative: 0.5 1.0;
}
text
{
text: "o Ooo Ooo";
font: "Vera";
align: 0.0 0.5;
fit: 0 1;
}
}
description
{
state: "visible" 0.0;
inherit: "default" 0.0;
visible: 1;
rel1
{
relative: 0.5 0.5;
}
rel2
{
relative: 0.5 0.5;
}
}
}
/* Inout */
part
{
name: "inout";
type: RECT;
mouse_events: 1;
description
{
state: "default" 0.0;
color: 255 255 255 0;
}
}

@ -0,0 +1,61 @@
/* Init */
program
{
name: "init";
signal: "load";
source: "";
script
{
}
}
/* Signals for new state */
program
{
name: "new_set";
signal: "e,state,new,set";
source: "e";
action: STATE_SET "new" 0.0;
target: "background";
transition: SINUSOIDAL 0.5;
}
program
{
name: "new_unset";
signal: "e,state,new,unset";
source: "e";
action: STATE_SET "default" 0.0;
target: "background";
transition: SINUSOIDAL 0.5;
}
/* Mouse in/out */
program
{
name: "mouse_in";
signal: "mouse,in";
source: "inout";
action: STATE_SET "selected" 0.0;
target: "border";
}
program
{
name: "mouse_out";
signal: "mouse,out";
source: "inout";
action: STATE_SET "default" 0.0;
target: "border";
}
program
{
name: "mouse_down";
signal: "mouse,down,1";
source: "inout";
action: SIGNAL_EMIT "open" "feed";
}

@ -0,0 +1,169 @@
/* Icon group */
group
{
name: "icon";
parts
{
part
{
name: "icon";
type: IMAGE;
mouse_events: 0;
description
{
state: "default" 0.0;
aspect: 1.0 1.0;
image
{
normal: "icon_logo.png";
}
}
}
}
}
group
{
name: "modules/news/icon/infos";
parts
{
part
{
name: "icon";
type: IMAGE;
mouse_events: 0;
description
{
state: "default" 0.0;
aspect: 1.0 1.0;
image
{
normal: "icon_infos.png";
}
}
}
}
}
group
{
name: "modules/news/icon/viewer";
parts
{
part
{
name: "icon";
type: IMAGE;
mouse_events: 0;
description
{
state: "default" 0.0;
aspect: 1.0 1.0;
image
{
normal: "icon_viewer.png";
}
}
}
}
}
group
{
name: "modules/news/icon/article_read";
parts
{
part
{
name: "icon";
type: IMAGE;
mouse_events: 0;
description
{
state: "default" 0.0;
aspect: 1.0 1.0;
image
{
normal: "icon_article_read.png";
}
}
}
}
}
group
{
name: "modules/news/icon/article_unread";