mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-06 13:18:27 +02:00
change most code to use CKeyboardInput in place of CStringInputSMS
Origin commit data
------------------
Commit: 549e110e14
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-11-19 (Wed, 19 Nov 2014)
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user