src/eric7/Plugins/VcsPlugins/vcsMercurial/LargefilesExtension/LfConvertDataDialog.py

branch
eric7
changeset 9624
b47dfa7a137d
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
equal deleted inserted replaced
9623:9c1f429cb56b 9624:b47dfa7a137d
10 import os 10 import os
11 11
12 from PyQt6.QtCore import pyqtSlot 12 from PyQt6.QtCore import pyqtSlot
13 from PyQt6.QtWidgets import QDialog, QDialogButtonBox 13 from PyQt6.QtWidgets import QDialog, QDialogButtonBox
14 14
15 from eric7 import Utilities
16 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes 15 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes
16 from eric7.SystemUtilities import FileSystemUtilities
17 17
18 from . import getDefaults 18 from . import getDefaults
19 from .Ui_LfConvertDataDialog import Ui_LfConvertDataDialog 19 from .Ui_LfConvertDataDialog import Ui_LfConvertDataDialog
20 20
21 21
36 self.setupUi(self) 36 self.setupUi(self)
37 37
38 self.newProjectPicker.setMode(EricPathPickerModes.DIRECTORY_MODE) 38 self.newProjectPicker.setMode(EricPathPickerModes.DIRECTORY_MODE)
39 39
40 self.__defaults = getDefaults() 40 self.__defaults = getDefaults()
41 self.__currentPath = Utilities.toNativeSeparators(currentPath) 41 self.__currentPath = FileSystemUtilities.toNativeSeparators(currentPath)
42 42
43 self.currentProjectLabel.setPath(currentPath) 43 self.currentProjectLabel.setPath(currentPath)
44 self.newProjectPicker.setText(os.path.dirname(currentPath)) 44 self.newProjectPicker.setText(os.path.dirname(currentPath))
45 45
46 self.lfFileSizeSpinBox.setValue(self.__defaults["minsize"]) 46 self.lfFileSizeSpinBox.setValue(self.__defaults["minsize"])
60 60
61 @param txt new project directory name (string) 61 @param txt new project directory name (string)
62 """ 62 """
63 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( 63 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
64 txt 64 txt
65 and Utilities.toNativeSeparators(txt) != os.path.dirname(self.__currentPath) 65 and FileSystemUtilities.toNativeSeparators(txt)
66 != os.path.dirname(self.__currentPath)
66 ) 67 )
67 68
68 def getData(self): 69 def getData(self):
69 """ 70 """
70 Public method to retrieve the entered data. 71 Public method to retrieve the entered data.

eric ide

mercurial