mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
MusicMod: Moved it from Branches to Externals, I guess there usually is no Branches dir in the trunk dir, so this may look a little better
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2174 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
65
Externals/MusicMod/Player/Src/PlaylistControler.h
vendored
Normal file
65
Externals/MusicMod/Player/Src/PlaylistControler.h
vendored
Normal file
@ -0,0 +1,65 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Plainamp, Open source Winamp core
|
||||
//
|
||||
// Copyright <20> 2005 Sebastian Pipping <webmaster@hartwork.org>
|
||||
//
|
||||
// --> http://www.hartwork.org
|
||||
//
|
||||
// This source code is released under the GNU General Public License (GPL).
|
||||
// See GPL.txt for details. Any non-GPL usage is strictly forbidden.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#ifndef PLAYLIST_CONTROLER_H
|
||||
#define PLAYLIST_CONTROLER_H 1
|
||||
|
||||
#include <tchar.h>
|
||||
#include <windows.h>
|
||||
#include <commctrl.h>
|
||||
#include "PlaylistModel.h"
|
||||
|
||||
|
||||
|
||||
// TODO: column width update on scrollbar show/hide
|
||||
|
||||
class PlaylistControler
|
||||
{
|
||||
PlaylistModel _database;
|
||||
HWND _hView;
|
||||
|
||||
bool _bZeroPadding;
|
||||
int _iDigits; // 3
|
||||
int _iDigitMin; // 100
|
||||
int _iDigitMax; // 999
|
||||
|
||||
private:
|
||||
bool FixDigitsMore();
|
||||
bool FixDigitsLess();
|
||||
void Refresh();
|
||||
void AutosizeColumns();
|
||||
|
||||
public:
|
||||
PlaylistControler( HWND hView, bool bEnableZeroPadding, int * piIndexSlave );
|
||||
|
||||
void MoveSelected( int iDistance );
|
||||
|
||||
int GetCurIndex();
|
||||
int GetMaxIndex();
|
||||
int GetSize();
|
||||
void SetCurIndex( int iIndex );
|
||||
|
||||
void PushBack( TCHAR * szText );
|
||||
void Insert( int i, TCHAR * szText );
|
||||
void RemoveAll();
|
||||
void RemoveSelected( bool bPositive );
|
||||
void SelectAll( bool bPositive );
|
||||
void SelectInvert();
|
||||
|
||||
const TCHAR * Get( int i );
|
||||
|
||||
void Fill( LVITEM & request );
|
||||
void EnableZeroPadding( bool bActive );
|
||||
void Resize( HWND hParent );
|
||||
};
|
||||
|
||||
#endif // PLAYLIST_CONTROLER_H
|
Reference in New Issue
Block a user