diff options
Diffstat (limited to 'mountconfig')
-rw-r--r-- | mountconfig/CMakeLists.txt | 78 | ||||
-rwxr-xr-x | mountconfig/MicroHAL.py | 2 | ||||
-rw-r--r-- | mountconfig/fuser.py | 2 | ||||
-rw-r--r-- | mountconfig/mountconfig.desktop | 31 | ||||
-rwxr-xr-x | mountconfig/mountconfig.py | 2 | ||||
-rw-r--r-- | mountconfig/sizeview.py | 2 |
6 files changed, 97 insertions, 20 deletions
diff --git a/mountconfig/CMakeLists.txt b/mountconfig/CMakeLists.txt new file mode 100644 index 0000000..0368f57 --- /dev/null +++ b/mountconfig/CMakeLists.txt @@ -0,0 +1,78 @@ + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${PYTHON_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIBRARY_DIRS} +) + + +##### generate kcm control module code + +set( MODULE_NAME mountconfig ) + +set( _MODULEDIR_ ${DATA_INSTALL_DIR}/guidance ) +set( _EXTRAMODULE_ ${TDE_GUIDANCE_DIST_PKG_PATH} ) +set( _MODULENAME_ ${MODULE_NAME} ) +set( _FACTORYFUNCTION_ create_${MODULE_NAME} ) + +configure_file( + ${CMAKE_SOURCE_DIR}/templates/kcm_module_stub.cpp.cmake + ${CMAKE_CURRENT_BINARY_DIR}/kcm_${MODULE_NAME}.cpp @ONLY +) + + +##### kcm_userconfig (module) ####################### + +tde_add_kpart( kcm_${MODULE_NAME} AUTOMOC + SOURCES ${CMAKE_CURRENT_BINARY_DIR}/kcm_${MODULE_NAME}.cpp + + LINK + tdecore-shared tdeui-shared + ${PYTHON_LIBRARIES} ${PYTHONIZE_LIBRARIES} + ${CMAKE_DL_LIBS} + + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### Generate UI files + +add_custom_command( + OUTPUT fuser_ui.py + COMMAND ${PYTQUIC_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/fuser_ui.ui + -o ${CMAKE_CURRENT_BINARY_DIR}/fuser_ui.py + COMMENT "Gerenate fuser_ui.py" +) + +add_custom_target( fuser_ui-pytquic ALL + DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/fuser_ui.py +) + + +##### other files + +tde_create_translated_desktop( + SOURCE ${MODULE_NAME}.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) + +install( + FILES + SimpleCommandRunner.py SMBShareSelectDialog.py MicroHAL.py + fuser.py ${CMAKE_CURRENT_BINARY_DIR}/fuser_ui.py sizeview.py + DESTINATION ${TDE_GUIDANCE_DIST_PKG_PATH} +) + +install( + PROGRAMS ${MODULE_NAME}.py + DESTINATION ${TDE_GUIDANCE_DIST_PKG_PATH} +) + +tde_install_symlink( ${TDE_GUIDANCE_DIST_PKG_PATH}/${MODULE_NAME}.py ${BIN_INSTALL_DIR}/${MODULE_NAME} ) diff --git a/mountconfig/MicroHAL.py b/mountconfig/MicroHAL.py index a7b02ae..f264c41 100755 --- a/mountconfig/MicroHAL.py +++ b/mountconfig/MicroHAL.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 ########################################################################### # MicroHAL.py - # # ------------------------------ # diff --git a/mountconfig/fuser.py b/mountconfig/fuser.py index 87d0719..e91bd7b 100644 --- a/mountconfig/fuser.py +++ b/mountconfig/fuser.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 ########################################################################### # fuser.py - description # # ------------------------------ # diff --git a/mountconfig/mountconfig.desktop b/mountconfig/mountconfig.desktop index da36d84..fb3aab8 100644 --- a/mountconfig/mountconfig.desktop +++ b/mountconfig/mountconfig.desktop @@ -12,8 +12,20 @@ Name[pt_BR]=Disco & Sistemas de Arquivos Name[sr]=Диск и фајл-системи Name[sr@Latn]=Disk i fajl-sistemi Name[sv]=Disk- och filsystem -Name[xx]=xxDisk & Filesystemsxx -name[en_GB]=Disk & Filesystems + +GenericName=Mount Point Editor +GenericName[el]=Επεξεργαστής σημείων προσάρτησης +GenericName[es]=Editor del punto de montaje +GenericName[et]=Ühenduspunktide redaktor +GenericName[it]=Editor dei punti di montaggio +GenericName[ja]=マウントポイントエディタ +GenericName[nl]=Aankoppelpunten bewerken +GenericName[pt]=Editor de Pontos de Montagem +GenericName[pt_BR]=Editor de Pontos de Montagem +GenericName[sr]=Уређивач тачки монтирања +GenericName[sr@Latn]=Uređivač tački montiranja +GenericName[sv]=Editor för monteringspunkter + Comment=Disk & Filesystem Configuration Comment[el]=Ρυθμίσεις δίσκων & συστημάτων αρχείων Comment[es]=Configuración del disco y sistema de archivos @@ -26,7 +38,7 @@ Comment[pt_BR]=Configuração de Disco e Sistemas de Arquivos Comment[sr]=Подешавање диска и фајл-система Comment[sr@Latn]=Podešavanje diska i fajl-sistema Comment[sv]=Disk och filsysteminitierníng -Comment[xx]=xxDisk & Filesystem Configurationxx + Icon=disksfilesystems Encoding=UTF-8 X-TDE-ModuleType=Library @@ -36,16 +48,3 @@ X-TDE-RootOnly=true Type=Application Exec=tdecmshell System/mountconfig Categories=Qt;TDE;X-TDE-settings-system; -GenericName=Mount Point Editor -GenericName[el]=Επεξεργαστής σημείων προσάρτησης -GenericName[es]=Editor del punto de montaje -GenericName[et]=Ühenduspunktide redaktor -GenericName[it]=Editor dei punti di montaggio -GenericName[ja]=マウントポイントエディタ -GenericName[nl]=Aankoppelpunten bewerken -GenericName[pt]=Editor de Pontos de Montagem -GenericName[pt_BR]=Editor de Pontos de Montagem -GenericName[sr]=Уређивач тачки монтирања -GenericName[sr@Latn]=Uređivač tački montiranja -GenericName[sv]=Editor för monteringspunkter -GenericName[xx]=xxMount Point Editorxx diff --git a/mountconfig/mountconfig.py b/mountconfig/mountconfig.py index eb28cae..4e65ef2 100755 --- a/mountconfig/mountconfig.py +++ b/mountconfig/mountconfig.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # -*- coding: UTF-8 -*- ########################################################################### # mountconfig.py - description # diff --git a/mountconfig/sizeview.py b/mountconfig/sizeview.py index fc94c46..b6c57ad 100644 --- a/mountconfig/sizeview.py +++ b/mountconfig/sizeview.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python3 from PyTQt.tqt import * from tdecore import * |