b0VIM 7.4      R 4  itm                                     nas                                     ~itm/Progs/lms/trunk/main/AudioDatabaseWidget.hpp                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            utf-8U3210    #"! U                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 tp           Y                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ad    h     Y                 x  [  B  A              x  w  +                t  s  ;  :          f  "  !    +      
  y
  x
  =
   
  	  	  	  	  (	  '	            F  E          9  8  ,  +          l  g  f  %  $                 v  u  r  q  p  i  h                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               #endif   };  		std::string	_currentSearchPattern;  		Wt::WText*	_trackStats;  		Wt::WTableView* _trackTableView;  		Wt::WTableView* _releaseTableView; 		Wt::WTableView* _artistTableView;  		std::vector<FilterWidget>	_filters;		// Genre, Artist, Release  		}; 				Wt::WTableView*				_tableView; 				Wt::Dbo::QueryModel< ResultType >	_queryModel; 				typedef boost::tuple<std::string, int>  ResultType;  				SignalSelectionChanged			_selectionChanged;  			private:  				void getSqlConstraint(std::string& sqlConstraint, std::list<std::string> bindArgs); 				// get the Sql constraint of this filt  				SignalSelectionChanged& selectionChanged(void) {return _selectionChanged;} 				// Connect this signal to get the new selected items  				typedef Wt::Signal< std::vector<std::string> > SignalSelectionChanged;  				Filter(std::string table, std::string field, Wt::WContainerWidget* parent = 0); 			public:  		class FilterWidget : public Wt::WContainerWidget {  		void handleFilterSelectionChanged(std::size_t idFilter, std::vector<std::string>& items);  		Wt::Dbo::QueryModel< ArtistResultType > _releaseQueryModel; 		typedef boost::tuple<std::string, int>	ReleaseResultType;  		Wt::Dbo::QueryModel< ArtistResultType > _artistQueryModel; 		typedef boost::tuple<std::string, int>	ArtistResultType;  		Wt::Dbo::QueryModel< TrackResultType > _trackQueryModel; 		typedef boost::tuple<Track::pointer, Release::pointer, Artist::pointer>  TrackResultType;  		void updateStats(void); 		void updateTrackQuery(const std::vector<std::string>& artistNames = std::vector<std::string>(), const std::vector<std::string>& releaseNames = std::vector<std::string>()); 		void updateReleaseQuery(const std::vector<std::string>& artistNames);  		void getSelectedReleases(std::vector<std::string>& releaseNames); 		void getSelectedArtists(std::vector<std::string>& artistNames);  		void handleTrackSelected(Wt::WModelIndex index, Wt::WMouseEvent event); 		void handleReleaseSelected(void); 		void handleArtistSelected(void);  		Wt::Signal< boost::filesystem::path > _trackSelected;  		DatabaseHandler	_db;  	private:  		Wt::Signal< boost::filesystem::path >& trackSelected() { return _trackSelected; } 		// Signals  		void searchPattern(const std::string& pattern); 		void selectNextTrack(void);				// Will later emit the next selected track  		AudioDatabaseWidget( Wt::WContainerWidget *parent = 0); 	public: { class AudioDatabaseWidget : public Wt::WContainerWidget  #include "database/Collection.hpp" #include "database/DatabaseHandler.hpp"  #include <Wt/WTableView> #include <Wt/Dbo/QueryModel> #include <Wt/WModelIndex> #include <Wt/WSignal> #include <Wt/WContainerWidget>  #define AUDIO_DB_WIDGET_HPP #ifndef AUDIO_DB_WIDGET_HPP 