GUI: several mobile changes
This commit is contained in:
parent
f84469e4fd
commit
69059dc702
12 changed files with 50 additions and 35 deletions
15
extern/igfd/ImGuiFileDialog.cpp
vendored
15
extern/igfd/ImGuiFileDialog.cpp
vendored
|
|
@ -74,6 +74,7 @@ SOFTWARE.
|
|||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
#endif // IMGUI_DEFINE_MATH_OPERATORS
|
||||
#include "imgui_internal.h"
|
||||
#include <IconsFontAwesome4.h>
|
||||
|
||||
#include <cstdlib>
|
||||
#include <algorithm>
|
||||
|
|
@ -119,7 +120,7 @@ namespace IGFD
|
|||
#endif // IMGUI_BUTTON
|
||||
// locales
|
||||
#ifndef createDirButtonString
|
||||
#define createDirButtonString "+"
|
||||
#define createDirButtonString ICON_FA_PLUS
|
||||
#endif // createDirButtonString
|
||||
#ifndef okButtonString
|
||||
#define okButtonString "OK"
|
||||
|
|
@ -128,13 +129,13 @@ namespace IGFD
|
|||
#define cancelButtonString "Cancel"
|
||||
#endif // cancelButtonString
|
||||
#ifndef resetButtonString
|
||||
#define resetButtonString "R"
|
||||
#define resetButtonString ICON_FA_REPEAT
|
||||
#endif // resetButtonString
|
||||
#ifndef drivesButtonString
|
||||
#define drivesButtonString "Drives"
|
||||
#endif // drivesButtonString
|
||||
#ifndef editPathButtonString
|
||||
#define editPathButtonString "E"
|
||||
#define editPathButtonString ICON_FA_PENCIL
|
||||
#endif // editPathButtonString
|
||||
#ifndef searchString
|
||||
#define searchString "Search"
|
||||
|
|
@ -149,10 +150,10 @@ namespace IGFD
|
|||
#define fileEntryString "[File]"
|
||||
#endif // fileEntryString
|
||||
#ifndef fileNameString
|
||||
#define fileNameString "File Name:"
|
||||
#define fileNameString "Name:"
|
||||
#endif // fileNameString
|
||||
#ifndef dirNameString
|
||||
#define dirNameString "Directory Path:"
|
||||
#define dirNameString "Path:"
|
||||
#endif // dirNameString
|
||||
#ifndef buttonResetSearchString
|
||||
#define buttonResetSearchString "Reset search"
|
||||
|
|
@ -3321,7 +3322,7 @@ namespace IGFD
|
|||
//// FILE DIALOG CONSTRUCTOR / DESTRUCTOR ///////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
IGFD::FileDialog::FileDialog() : BookMarkFeature(), KeyExplorerFeature(), ThumbnailFeature() {DpiScale=1.0f; singleClickSel=false;}
|
||||
IGFD::FileDialog::FileDialog() : BookMarkFeature(), KeyExplorerFeature(), ThumbnailFeature() {DpiScale=1.0f; singleClickSel=false; mobileMode=false;}
|
||||
IGFD::FileDialog::~FileDialog() = default;
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
@ -3938,7 +3939,7 @@ namespace IGFD
|
|||
vsnprintf(fdi.puVariadicBuffer, MAX_FILE_DIALOG_NAME_BUFFER, vFmt, args);
|
||||
va_end(args);
|
||||
|
||||
float h = 0.0f;
|
||||
float h = /*mobileMode?(ImGui::GetFontSize()+10.0f*DpiScale):*/0.0f;
|
||||
#ifdef USE_THUMBNAILS
|
||||
if (prDisplayMode == DisplayModeEnum::THUMBNAILS_LIST)
|
||||
h = DisplayMode_ThumbailsList_ImageHeight;
|
||||
|
|
|
|||
1
extern/igfd/ImGuiFileDialog.h
vendored
1
extern/igfd/ImGuiFileDialog.h
vendored
|
|
@ -1143,6 +1143,7 @@ namespace IGFD
|
|||
bool puAnyWindowsHovered = false; // not remember why haha :) todo : to check if we can remove
|
||||
double DpiScale;
|
||||
bool singleClickSel;
|
||||
bool mobileMode;
|
||||
|
||||
public:
|
||||
static FileDialog* Instance() // Singleton for easier accces form anywhere but only one dialog at a time
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue