~ubuntu-branches/ubuntu/precise/guayadeque/precise

« back to all changes in this revision

Viewing changes to src/.svn/text-base/NewChannel.h.svn-base

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2011-05-14 15:08:03 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110514150803-8b5evqetnaj35j34
Tags: 0.3.1~dfsg0-1
* New upstream release.
* Strip wxsqlite3 stuff out of upstream's tarballs.
* Update get-orig-source target in debian/rules.
* Update gbp config file.
* Bump Standards.
* Build-depend on libwxsqlite3-2.8-dev
* Enable parallel builds.
* Link binaries against the system-wide copy of wxsqlite3.
* Point sources to the correct wxcurl's headers location.
* Update copyright file as per DEP-5
* Improve debian/watch to handle the ~dfsg\d* suffix.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// -------------------------------------------------------------------------------- //
2
 
//      Copyright (C) 2008-2010 J.Rios
3
 
//      anonbeat@gmail.com
4
 
//
5
 
//    This Program is free software; you can redistribute it and/or modify
6
 
//    it under the terms of the GNU General Public License as published by
7
 
//    the Free Software Foundation; either version 2, or (at your option)
8
 
//    any later version.
9
 
//
10
 
//    This Program is distributed in the hope that it will be useful,
11
 
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
 
//    GNU General Public License for more details.
14
 
//
15
 
//    You should have received a copy of the GNU General Public License
16
 
//    along with this program; see the file LICENSE.  If not, write to
17
 
//    the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
18
 
//    http://www.gnu.org/copyleft/gpl.html
19
 
//
20
 
// -------------------------------------------------------------------------------- //
21
 
#ifndef NEWCHANNEL_H
22
 
#define NEWCHANNEL_H
23
 
 
24
 
#include <wx/string.h>
25
 
#include <wx/stattext.h>
26
 
#include <wx/gdicmn.h>
27
 
#include <wx/font.h>
28
 
#include <wx/colour.h>
29
 
#include <wx/settings.h>
30
 
#include <wx/bitmap.h>
31
 
#include <wx/image.h>
32
 
#include <wx/icon.h>
33
 
#include <wx/bmpbuttn.h>
34
 
#include <wx/button.h>
35
 
#include <wx/sizer.h>
36
 
#include <wx/treectrl.h>
37
 
#include <wx/textctrl.h>
38
 
#include <wx/statbox.h>
39
 
#include <wx/dialog.h>
40
 
#include <wx/xml/xml.h>
41
 
 
42
 
#include <wx/dynarray.h>
43
 
 
44
 
// -------------------------------------------------------------------------------- //
45
 
class guNewPodcastItem : public wxTreeItemData
46
 
{
47
 
  public :
48
 
    wxString    m_Name;
49
 
    wxString    m_Url;
50
 
};
51
 
WX_DECLARE_OBJARRAY(guNewPodcastItem, guNewPodcastItemArray);
52
 
 
53
 
// -------------------------------------------------------------------------------- //
54
 
class guNewPodcastCategory
55
 
{
56
 
  public :
57
 
    wxString                m_Name;
58
 
    guNewPodcastItemArray   m_Items;
59
 
};
60
 
WX_DECLARE_OBJARRAY(guNewPodcastCategory, guNewPodcastChannelArray);
61
 
 
62
 
// -------------------------------------------------------------------------------- //
63
 
// guPLNamesTreeCtrl
64
 
// -------------------------------------------------------------------------------- //
65
 
class guPodcastTreeCtrl : public wxTreeCtrl
66
 
{
67
 
  private :
68
 
    wxImageList *               m_ImageList;
69
 
    wxTreeItemId                m_RootId;
70
 
    guNewPodcastChannelArray *  m_NewPodcasts;
71
 
    int                         m_NewItemsCount;
72
 
 
73
 
  public :
74
 
    guPodcastTreeCtrl( wxWindow * parent, guNewPodcastChannelArray * newpodcasts );
75
 
    ~guPodcastTreeCtrl();
76
 
 
77
 
    void ReloadItems( void );
78
 
    int  GetCategoryCount( void ) { return m_NewPodcasts->Count(); }
79
 
    int  GetItemsCount( void ) { return m_NewItemsCount; }
80
 
    void ExpandRoot( void ) { Expand( m_RootId ); }
81
 
 
82
 
};
83
 
 
84
 
// -------------------------------------------------------------------------------- //
85
 
class guNewPodcastChannelSelector : public wxDialog
86
 
{
87
 
  private:
88
 
 
89
 
  protected:
90
 
    wxStaticText *              m_DirectoryInfoStaticText;
91
 
    wxBitmapButton *            m_DirectoryReload;
92
 
    wxBitmapButton *            m_FilterDirectory;
93
 
    guPodcastTreeCtrl *         m_DirectoryTreeCtrl;
94
 
    wxTextCtrl *                m_UrlTextCtrl;
95
 
    guNewPodcastChannelArray    m_NewPodcasts;
96
 
    wxArrayString               m_Filters;
97
 
 
98
 
    void OnFilterDirectoryClicked( wxCommandEvent& event );
99
 
    void OnReloadDirectoryClicked( wxCommandEvent& event );
100
 
    void OnDirectoryItemSelected( wxTreeEvent& event );
101
 
    void OnDirectoryItemChanged( wxTreeEvent& event );
102
 
 
103
 
    void LoadPodcastDirectory( void );
104
 
    int ReadNewPodcastChannel( wxXmlNode * XmlNode, guNewPodcastCategory * podcastchannel );
105
 
    int ReadNewPodcastChannels( wxXmlNode * XmlNode );
106
 
    int LoadNewPodcastsFromXml( const wxString &filename );
107
 
 
108
 
  public:
109
 
    guNewPodcastChannelSelector( wxWindow * parent );
110
 
    ~guNewPodcastChannelSelector();
111
 
    wxString GetValue( void );
112
 
 
113
 
};
114
 
 
115
 
 
116
 
#endif
117
 
// -------------------------------------------------------------------------------- //