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

« back to all changes in this revision

Viewing changes to src/AlbumBrowser.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
1
// -------------------------------------------------------------------------------- //
2
 
//      Copyright (C) 2008-2010 J.Rios
 
2
//      Copyright (C) 2008-2011 J.Rios
3
3
//      anonbeat@gmail.com
4
4
//
5
5
//    This Program is free software; you can redistribute it and/or modify
6
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)
 
7
//    the Free Software Foundation; either version 3, or (at your option)
8
8
//    any later version.
9
9
//
10
10
//    This Program is distributed in the hope that it will be useful,
21
21
#ifndef ALBUMBROWSER_H
22
22
#define ALBUMBROWSER_H
23
23
 
 
24
#include "AutoScrollText.h"
24
25
#include "DbLibrary.h"
25
26
#include "DynamicPlayList.h"
26
27
#include "PlayerPanel.h"
85
86
    // GUI
86
87
    wxBoxSizer *            m_MainSizer;
87
88
    guStaticBitmap *        m_Bitmap;
88
 
    wxStaticText *          m_ArtistLabel;
89
 
    wxStaticText *          m_AlbumLabel;
90
 
    wxStaticText *          m_TracksLabel;
 
89
    //wxStaticText *          m_ArtistLabel;
 
90
    guAutoScrollText *      m_ArtistLabel;
 
91
    //wxStaticText *          m_AlbumLabel;
 
92
    guAutoScrollText *      m_AlbumLabel;
 
93
    //wxStaticText *          m_TracksLabel;
 
94
    guAutoScrollText *      m_TracksLabel;
91
95
 
92
96
    void                    OnContextMenu( wxContextMenuEvent &event );
93
97
 
94
98
    void                    OnSearchLinkClicked( wxCommandEvent &event );
95
99
    void                    OnPlayClicked( wxCommandEvent &event );
96
100
    void                    OnEnqueueClicked( wxCommandEvent &event );
97
 
    void                    OnEnqueueAsNextClicked( wxCommandEvent &event );
98
101
    void                    OnCopyToClipboard( wxCommandEvent &event );
99
102
    void                    OnAlbumSelectName( wxCommandEvent &event );
100
103
    void                    OnArtistSelectName( wxCommandEvent &event );
166
169
    wxTimer                         m_TextChangedTimer;
167
170
    wxArrayString                   m_TextSearchFilter;
168
171
 
 
172
    bool                            m_InstantSearchEnabled;
 
173
    bool                            m_EnterSelectSearchEnabled;
 
174
 
169
175
    void                            OnChangedSize( wxSizeEvent &event );
170
176
    void                            OnChangingPosition( wxScrollEvent& event );
171
177
    void                            OnRefreshTimer( wxTimerEvent &event );
193
199
    virtual void                    OnAlbumSelectName( const int albumid );
194
200
    virtual void                    OnArtistSelectName( const int artistid );
195
201
 
 
202
    void                            OnGoToSearch( wxCommandEvent &event );
 
203
    void                            OnConfigUpdated( wxCommandEvent &event );
 
204
    void                            CreateAcceleratorTable( void );
 
205
 
 
206
    bool                            DoTextSearch( void );
 
207
 
196
208
  public :
197
209
    guAlbumBrowser( wxWindow * parent, guDbLibrary * db, guPlayerPanel * playerpanel );
198
210
    ~guAlbumBrowser();
244
256
 
245
257
    void                            UpdateNavLabel( const int page );
246
258
 
247
 
    virtual void                    SelectAlbum( const int albumid, const bool append, const bool asnext = false );
 
259
    virtual void                    SelectAlbum( const int albumid, const bool append, const int aftercurrent = 0 );
248
260
    virtual int                     GetAlbumTracks( const int albumid, guTrackArray * tracks );
249
261
    virtual void                    OnCommandClicked( const int commandid, const int albumid );
250
262
    virtual void                    OnAlbumDownloadCoverClicked( const int albumid );