change most code to use CKeyboardInput in place of CStringInputSMS

This commit is contained in:
[CST] Focus
2014-11-19 18:21:38 +03:00
parent 003acea160
commit 549e110e14
13 changed files with 43 additions and 36 deletions

View File

@@ -64,6 +64,7 @@
#include <gui/widget/hintbox.h>
#include <gui/widget/stringinput.h>
#include <gui/widget/stringinput_ext.h>
#include <gui/widget/keyboard_input.h>
#include "gui/pictureviewer.h"
extern CPictureViewer * g_PicViewer;
@@ -2606,7 +2607,7 @@ void CAudioPlayerGui::savePlaylist()
absPlaylistDir += file->getFileName();
const int filenamesize = 30;
std::string filename;
std::string filename = "playlist";
if (file->getType() == CFile::FILE_PLAYLIST)
{
@@ -2623,12 +2624,7 @@ void CAudioPlayerGui::savePlaylist()
{
// query for filename
this->hide();
CStringInputSMS filenameInput(LOCALE_AUDIOPLAYER_PLAYLIST_NAME,
&filename,
filenamesize - 1,
LOCALE_AUDIOPLAYER_PLAYLIST_NAME_HINT1,
LOCALE_AUDIOPLAYER_PLAYLIST_NAME_HINT2,
"abcdefghijklmnopqrstuvwxyz0123456789-.,:!?/ ");
CKeyboardInput filenameInput(LOCALE_AUDIOPLAYER_PLAYLIST_NAME, &filename, filenamesize - 1, NULL, NULL, LOCALE_AUDIOPLAYER_PLAYLIST_NAME_HINT1, LOCALE_AUDIOPLAYER_PLAYLIST_NAME_HINT2);
filenameInput.exec(NULL, "");
// refresh view
this->paint();