refactor: set all GUI internal windows to be not movable

This commit is contained in:
Dimitris Panokostas 2024-10-06 21:32:21 +02:00
parent 3c6f62acbb
commit b192bae4d4
No known key found for this signature in database
GPG Key ID: 330156A68E9E0929
13 changed files with 13 additions and 0 deletions

View File

@ -199,6 +199,7 @@ static void InitControllerMap()
wndControllerMap->setBaseColor(gui_base_color);
wndControllerMap->setForegroundColor(gui_foreground_color);
wndControllerMap->setTitleBarHeight(TITLEBAR_HEIGHT);
wndControllerMap->setMovable(false);
txtInformation = new gcn::TextBox(info_text);
txtInformation->setBackgroundColor(gui_base_color);

View File

@ -87,6 +87,7 @@ static void InitCreateFilesysHardfile()
wndCreateFilesysHardfile->setForegroundColor(gui_foreground_color);
wndCreateFilesysHardfile->setCaption("Create hardfile");
wndCreateFilesysHardfile->setTitleBarHeight(TITLEBAR_HEIGHT);
wndCreateFilesysHardfile->setMovable(false);
createFilesysHardfileActionListener = new CreateFilesysHardfileActionListener();

View File

@ -68,6 +68,7 @@ static void InitCreateFolder(const std::string& path)
wndCreateFolder->setBaseColor(gui_base_color);
wndCreateFolder->setForegroundColor(gui_foreground_color);
wndCreateFolder->setTitleBarHeight(TITLEBAR_HEIGHT);
wndCreateFolder->setMovable(false);
gui_top->add(wndCreateFolder);
createFolderButtonActionListener = new CreateFolderRequesterButtonActionListener();

View File

@ -169,6 +169,7 @@ static void InitEditFilesysHardDrive()
wndEditFilesysHardDrive->setForegroundColor(gui_foreground_color);
wndEditFilesysHardDrive->setCaption("Hard Drive settings");
wndEditFilesysHardDrive->setTitleBarHeight(TITLEBAR_HEIGHT);
wndEditFilesysHardDrive->setMovable(false);
filesysHardDriveActionListener = new FilesysHardDriveActionListener();

View File

@ -400,6 +400,7 @@ static void InitEditFilesysHardfile()
wndEditFilesysHardfile->setForegroundColor(gui_foreground_color);
wndEditFilesysHardfile->setCaption("Hardfile settings");
wndEditFilesysHardfile->setTitleBarHeight(TITLEBAR_HEIGHT);
wndEditFilesysHardfile->setMovable(false);
filesysHardfileActionListener = new FilesysHardfileActionListener();
filesysHardfileFocusListener = new FilesysHardfileFocusListener();

View File

@ -143,6 +143,7 @@ static void InitEditFilesysVirtual()
wndEditFilesysVirtual->setForegroundColor(gui_foreground_color);
wndEditFilesysVirtual->setCaption("Volume settings");
wndEditFilesysVirtual->setTitleBarHeight(TITLEBAR_HEIGHT);
wndEditFilesysVirtual->setMovable(false);
filesysVirtualActionListener = new FilesysVirtualActionListener();

View File

@ -127,6 +127,7 @@ static void InitEditTapeDrive()
wndEditTapeDrive->setForegroundColor(gui_foreground_color);
wndEditTapeDrive->setCaption("Tape Drive Settings");
wndEditTapeDrive->setTitleBarHeight(TITLEBAR_HEIGHT);
wndEditTapeDrive->setMovable(false);
tapeDriveActionListener = new TapeDriveActionListener();

View File

@ -218,6 +218,7 @@ static void InitSelectFile(const std::string& title)
wndSelectFile->setForegroundColor(gui_foreground_color);
wndSelectFile->setCaption(title);
wndSelectFile->setTitleBarHeight(TITLEBAR_HEIGHT);
wndSelectFile->setMovable(false);
fileButtonActionListener = new FileButtonActionListener();

View File

@ -164,6 +164,7 @@ static void InitSelectFolder(const std::string& title)
wndSelectFolder->setForegroundColor(gui_foreground_color);
wndSelectFolder->setCaption(title);
wndSelectFolder->setTitleBarHeight(TITLEBAR_HEIGHT);
wndSelectFolder->setMovable(false);
folderButtonActionListener = new FolderRequesterButtonActionListener();

View File

@ -205,6 +205,7 @@ static void InitShowCustomFields()
wndShowCustomFields->setBaseColor(gui_base_color);
wndShowCustomFields->setForegroundColor(gui_foreground_color);
wndShowCustomFields->setTitleBarHeight(TITLEBAR_HEIGHT);
wndShowCustomFields->setMovable(false);
showCustomFieldsActionListener = new ShowCustomFieldsActionListener();
int pos_y = DISTANCE_BORDER;

View File

@ -47,6 +47,7 @@ static void InitShowDiskInfo(const std::vector<std::string>& infotext)
wndShowDiskInfo->setBaseColor(gui_base_color);
wndShowDiskInfo->setForegroundColor(gui_foreground_color);
wndShowDiskInfo->setTitleBarHeight(TITLEBAR_HEIGHT);
wndShowDiskInfo->setMovable(false);
showDiskInfoActionListener = new ShowDiskInfoActionListener();

View File

@ -49,6 +49,7 @@ static void InitShowHelp(const std::vector<std::string>& helptext)
wndShowHelp->setBackgroundColor(gui_base_color);
wndShowHelp->setForegroundColor(gui_foreground_color);
wndShowHelp->setTitleBarHeight(TITLEBAR_HEIGHT);
wndShowHelp->setMovable(false);
showHelpActionListener = new ShowHelpActionListener();

View File

@ -209,6 +209,7 @@ static void InitShowMessage(const std::string& message)
wndShowMessage->setBackgroundColor(gui_base_color);
wndShowMessage->setForegroundColor(gui_foreground_color);
wndShowMessage->setTitleBarHeight(TITLEBAR_HEIGHT);
wndShowMessage->setMovable(false);
showMessageActionListener = new ShowMessageActionListener();