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

« back to all changes in this revision

Viewing changes to src/TVSoListBox.h

  • 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-2011 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 3, 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 GUTVSOLISTBOX_H
 
22
#define GUTVSOLISTBOX_H
 
23
 
 
24
#include "SoListBox.h"
 
25
#include "TreeViewFilter.h"
 
26
 
 
27
// -------------------------------------------------------------------------------- //
 
28
class guTVSoListBox : public guSoListBox
 
29
{
 
30
  protected :
 
31
    guTreeViewFilterArray   m_Filters;
 
32
 
 
33
    wxLongLong              m_TracksSize;
 
34
    wxLongLong              m_TracksLength;
 
35
 
 
36
    wxArrayString           m_TextFilters;
 
37
    int                     m_TracksOrder;
 
38
    bool                    m_TracksOrderDesc;
 
39
 
 
40
    virtual void        GetItemsList( void );
 
41
    //virtual void        CreateContextMenu( wxMenu * Menu ) const;
 
42
 
 
43
//    virtual void        OnDropFile( const wxString &filename );
 
44
//    virtual void        OnDropEnd( void );
 
45
//    virtual void        MoveSelection( void );
 
46
 
 
47
    virtual void        ItemsCheckRange( const int start, const int end ) { m_ItemsFirst = 0; m_ItemsLast = 0; }
 
48
 
 
49
    virtual void        CreateAcceleratorTable();
 
50
 
 
51
  public :
 
52
    guTVSoListBox( wxWindow * parent, guDbLibrary * NewDb, wxString confname, int style = 0 );
 
53
    ~guTVSoListBox();
 
54
 
 
55
    void                SetFilters( guTreeViewFilterArray &filters );
 
56
 
 
57
    virtual int         GetSelectedSongs( guTrackArray * Songs );
 
58
    virtual void        GetAllSongs( guTrackArray * Songs );
 
59
 
 
60
    virtual int         GetItemId( const int row ) const;
 
61
    virtual wxString    GetItemName( const int row ) const;
 
62
 
 
63
    void                GetCounters( wxLongLong * count, wxLongLong * len, wxLongLong * size );
 
64
 
 
65
    void                SetTracksOrder( const int order )
 
66
    {
 
67
        if( m_TracksOrder != order )
 
68
            m_TracksOrder = order;
 
69
        else
 
70
            m_TracksOrderDesc = !m_TracksOrderDesc;
 
71
    }
 
72
 
 
73
    int                 GetTracksOrder( void ) { return m_TracksOrder; }
 
74
    bool                GetTracksOrderDesc( void ) { return m_TracksOrderDesc; }
 
75
 
 
76
    void                SetTextFilters( const wxArrayString &textfilters ) { m_TextFilters = textfilters; }
 
77
    void                ClearTextFilters( void ) { m_TextFilters.Clear(); }
 
78
 
 
79
};
 
80
 
 
81
#endif
 
82
// -------------------------------------------------------------------------------- //