Browse Source

[MRG] Merge from project branches.

- Add multi-Project
- Rewrite ContentView and CodeCompletion
master
Ulrich Van Den Hekke 11 years ago
parent
commit
94f291d8d0
  1. 192
      CHANGELOG
  2. 24
      CMakeLists.txt
  3. 2
      Doxyfile
  4. 10
      README
  5. 28
      cmake_modules/FindApr1.cmake
  6. 8
      cmake_modules/FindIdeality.cmake
  7. 13
      cmake_modules/FindQCodeEdit.cmake
  8. 7
      cmake_modules/FindSvnCpp.cmake
  9. 16
      cmake_modules/FindSvnDev.cmake
  10. 9
      cmake_modules/UseSoap.cmake
  11. 8
      cmake_modules/UseUniqueApplication.cmake
  12. 160
      cmake_modules/UseXinx.cmake
  13. 8
      components/CMakeLists.txt
  14. 2
      components/borderlayout.cpp
  15. 5
      components/borderlayout.h
  16. 43
      components/components-config.h
  17. 40
      components/components.pro
  18. 36
      components/customschemeimpl.cpp
  19. 39
      components/customschemeimpl.h
  20. 29
      components/designer/components_designer.pro
  21. 91
      components/designer/customschemeplugin.cpp
  22. 50
      components/designer/customschemeplugin.h
  23. 91
      components/designer/directoryeditplugin.cpp
  24. 50
      components/designer/directoryeditplugin.h
  25. 91
      components/designer/directoryeditwidgetplugin.cpp
  26. 50
      components/designer/directoryeditwidgetplugin.h
  27. 91
      components/designer/pluginselectorplugin.cpp
  28. 50
      components/designer/pluginselectorplugin.h
  29. 91
      components/designer/xinxcolorcomboplugin.cpp
  30. 50
      components/designer/xinxcolorcomboplugin.h
  31. 44
      components/designer/xinxdesignerplugin.cpp
  32. 39
      components/designer/xinxdesignerplugin.h
  33. 91
      components/designer/xinxlistwidgetplugin.cpp
  34. 50
      components/designer/xinxlistwidgetplugin.h
  35. 256
      components/directoryedit.cpp
  36. 75
      components/directoryedit.h
  37. 37
      components/p_pluginselector.h
  38. 36
      components/pluginelement.cpp
  39. 40
      components/pluginelement.h
  40. 36
      components/pluginselector.cpp
  41. 40
      components/pluginselector.h
  42. 36
      components/qmenuview.cpp
  43. 40
      components/qmenuview.h
  44. 36
      components/stringcombobox.cpp
  45. 40
      components/stringcombobox.h
  46. 4
      components/xinxcolorcombo.h
  47. 6
      components/xinxlineedit.h
  48. 36
      components/xinxlistwidgetimpl.cpp
  49. 39
      components/xinxlistwidgetimpl.h
  50. 91
      components_designer/customschemeplugin.cpp
  51. 50
      components_designer/customschemeplugin.h
  52. 91
      components_designer/directoryeditplugin.cpp
  53. 50
      components_designer/directoryeditplugin.h
  54. 91
      components_designer/directoryeditwidgetplugin.cpp
  55. 50
      components_designer/directoryeditwidgetplugin.h
  56. 91
      components_designer/pluginselectorplugin.cpp
  57. 50
      components_designer/pluginselectorplugin.h
  58. 91
      components_designer/xinxcolorcomboplugin.cpp
  59. 50
      components_designer/xinxcolorcomboplugin.h
  60. 44
      components_designer/xinxdesignerplugin.cpp
  61. 39
      components_designer/xinxdesignerplugin.h
  62. 91
      components_designer/xinxlistwidgetplugin.cpp
  63. 50
      components_designer/xinxlistwidgetplugin.h
  64. 2019
      datas/baseplugin_xml.xml
  65. 1843
      datas/core_html_definition.xml
  66. 174
      datas/core_xslt_definition.xml
  67. 11
      ext/ideality/lib/dideality.h
  68. 2
      ext/ideality/lib/lib.pro
  69. 26
      framework/CMakeLists.txt
  70. 257
      framework/actions/actioninterface.cpp
  71. 106
      framework/actions/actioninterface.h
  72. 239
      framework/actions/actionmanager.cpp
  73. 77
      framework/actions/actionmanager.h
  74. 0
      framework/application/about.ui
  75. 37
      framework/application/aboutdialogimpl.cpp
  76. 52
      framework/application/aboutdialogimpl.h
  77. 39
      framework/application/customdialog/customdialogimpl.cpp
  78. 74
      framework/application/customdialog/customdialogimpl.h
  79. 36
      framework/application/customdialog/customeditorimpl.cpp
  80. 61
      framework/application/customdialog/customeditorimpl.h
  81. 36
      framework/application/customdialog/customfontimpl.cpp
  82. 61
      framework/application/customdialog/customfontimpl.h
  83. 38
      framework/application/customdialog/customgeneralimpl.cpp
  84. 61
      framework/application/customdialog/customgeneralimpl.h
  85. 37
      framework/application/customdialog/custommodulesimpl.cpp
  86. 63
      framework/application/customdialog/custommodulesimpl.h
  87. 44
      framework/application/customdialog/customprojectimpl.cpp
  88. 61
      framework/application/customdialog/customprojectimpl.h
  89. 36
      framework/application/customdialog/customsnipetimpl.cpp
  90. 81
      framework/application/customdialog/customsnipetimpl.h
  91. 36
      framework/application/customdialog/customsyntaximpl.cpp
  92. 67
      framework/application/customdialog/customsyntaximpl.h
  93. 36
      framework/application/customdialog/customtoolsimpl.cpp
  94. 65
      framework/application/customdialog/customtoolsimpl.h
  95. 36
      framework/application/customdialog/directoryeditdelegate.cpp
  96. 42
      framework/application/customdialog/directoryeditdelegate.h
  97. 72
      framework/application/customdialog/scriptelement.cpp
  98. 53
      framework/application/customdialog/scriptelement.h
  99. 36
      framework/application/customdialog/toolsmodelindex.cpp
  100. 47
      framework/application/customdialog/toolsmodelindex.h

192
CHANGELOG

@ -1,192 +0,0 @@
xinx (0.9.1.0) unstable; urgency=low
[ Ulrich Van Den Hekke ]
* Add the possibility to wrap line
* 363 : Lenteur lors du déplacement danx XINX
* 356 : Bug dans le rafraichissement des snipets
* Add a new snipet XSL Base 155
* Change some library API to manage multiple extention for a file type
* 347 : Gestion des codecs
* 355 : Problème encoding quand on est en UTF-8
* 366 : Pretty print à la fermeture de XINX
* 359 : Couleur trop rouge !!!!
* 364 : Evol: Ajouter la fonctionnalité "Aller à la ligne"
* 367 : Erreur XINX
* 375 : Amélioration gestion journal des erreurs
* 376 : Pretty print avec xinx
* Some bug fix on the project property page and on the wizard
* Some buf fix on the new version wizard
-- Ulrich VANDENHEKKE <phoenix@server.eden.lan> Fri, 01 Oct 2010 14:10:13 +0200
xinx (0.9.0.0) unstable; urgency=low
* 353 : Sauvegarde affichage du log
* 352 : Ouverture d'un projet/Mauvaise définition du projet
* 348 : Crach XINX / Pas de projet / Ouverture XSL
* 293 : Création d'un snipet par fichier.
* 321 : Hide path sur RecursiveSortFilterProxyModel ne fonctionne pas
* 345 : Gestion des Codecs
* 190 : Snippet/Template : catégorie principale
* 316 : Règle de développement à partir de la 140
* 334 : Nouvelle gestion de RCS
* 337 : Plantage lors de la modification de fichier XML se trouvant dans le dock présentation XML
* 338 : Duplicate entries
* 344 : Nouvelle gestion des erreurs
* 197 : Tri des sections des template/snippet
* 198 : Snippet/Template : option de non validation lors de l'ajout
* 291 : Rendre XINX plus modulaire
* 298 : QSharedPointer
* 306 : Welcom page
* 314 : Affichage du résultat HTML
* 318 : Completion sur les snipets
* 326 : Dialog de migration
* 340 : Plus de synchro
* 241 : Dock/Onglet
* 287 : Version 1.5
* 311 : Mise à jours de la boite de dialogue de personnalisation
* 319 : Synchronisation Editeur/Dock, Editeur/...
* 325 : Lenteur à la fermeture de la boite de dialogue propriété du projet
* 339 : Nouveau système de vue contenue
* 341 : Problème de désinstallation
* 346 : searchWord plus générique
* 333 : Boite de dialog nouveau projet
* 336 : Sauvegarde d'un nouveau fichier
-- Ulrich Van Den Hekke <xinx@shadoware.org> Sat, 01 May 2010 22:29:56 +0200
xinx (0.8.1.3) unstable; urgency=low
[ Ulrich Van Den Hekke ]
* 300 : Recheche (Ctrl + f)
* 301 : xinx/ pb lors de l'ouverture d'un .js
-- Ulrich Van Den Hekke <xinx@shadoware.org> Wed, 29 Jul 2009 23:46:15 +0200
xinx (0.8.1.2) unstable; urgency=low
[ Ulrich Van Den Hekke ]
* 296 : Crash régulie lors de l'utilisation de XINX
* 297 : Complétion du XSL
-- Ulrich Van Den Hekke <xinx@shadoware.org> Wed, 29 Jul 2009 23:44:55 +0200
xinx (0.8.1.1) unstable; urgency=low
[ Ulrich Van Den Hekke ]
* 295 : Ouverture d'un fichier XSL
-- Ulrich Van Den Hekke <xinx@shadoware.org> Thu, 26 May 2009 19:00:00 +0100
xinx (0.8.1.0) unstable; urgency=low
[ Ulrich Van Den Hekke ]
* 284 : Documentation sur le site de XINX
* 290 : Plantage
* 285 : NSIS
* 249 : Lancer le parseur XSL
* 292 : D-BUS
* 250 : Actions
* 091 : Afficher un Dock avec le dictionnaire de l'application
* 289 : Certain noeud disparaisse
* 288 : Ne peux ouvrir les fichiers HTML
* 272 : Drag & Drop depuis le dossier projet
* 275 : Faute d'orthographe ;) : Paramêtre au lieu de Paramètre
* 245 : Synchronisation de la vue Contenue
* 274 : Message de Qt : QSortFilterProxyModel: inconsistent changes reported by source model
* 286 : Transformation de ')' en ']' à l"enregistrement
* 270 : Coller ne fonctionne pas
* 251 : Completion
* 280 : Complétion des params en doublon sur un template inclus
* 283 : Ctrl+Enter/Shift+Ctrl+Enter
* 271 : Caractère manquant à l'utilisation d'un modèle personnalisé
* 277 : Pouvoir ajouter des catégories personnalisées dans la gestion des modèles
-- Ulrich Van Den Hekke <xinx@shadoware.org> Thu, 26 May 2009 08:30:00 +0100
xinx (0.8.0.0) unstable; urgency=low
[ Ulrich Van Den Hekke ]
* 269 : Problème lors de la complétion & de l'insertion des snipets
* 259 : Ecrire un wrapper pour QtScript de QDocumentSearch, ...
* 265 : Problème on inserting template of multiple line
* 237 : Passage de QTextEdit à QCodeEdit
* 075 : Repérage des parenthèses
* 083 : Réduction de code
* 219 : Fermeture de balise automatique
* 224 : Nom long de fichier
* 231 : Script à la sauvegarde
* 233 : Test de XPATH : phoenix
* 240 : Nouveau format de projets specifiques egx
* 260 : pb indentation automatic
* 261 : Copy/Paste
* 262 : Passage à la ligne
* 264 : Problème lors de l'insertion de texte
* 266 : Désintenter supprimer des caractères
* 267 : Changement sur une balise fermante
* 268 : Propriété projet
-- Ulrich Van Den Hekke <xinx@shadoware.org> Sun, 02 Mar 2008 20:22:19 +0100
xinx (0.7.2.2) unstable; urgency=high
[ Ulrich Van Den Hekke ]
* 230 : Crash Flux de présentation
* 228 : Variable dans un template
* 229 : Fuite mémoire
* 227 : Flux de présentation
* 226 : Sauvegarde lente
* 225 : Complétion sur le mode
* 223 : Ajout des balises with-param
-- Ulrich Van Den Hekke <xinx@shadoware.org> Sun, 02 Mar 2008 20:22:19 +0100
xinx (0.7.2.1) unstable; urgency=high
[ Ulrich Van Den Hekke ]
* 220 : Faute d'orthographe
* 221 : Migration projet
-- Ulrich Van Den Hekke <xinx@shadoware.org> Sun, 02 Mar 2008 20:22:19 +0100
xinx (0.7.2.0) unstable; urgency=low
[ Ulrich Van Den Hekke ]
* 204 : Problème de complétion sur la valeur des attributs
* 186 : Indentation
* 213 : Migration vers la nouvelle version
* 217 : Plantage lors du redémarrage du serveur d'application
* 070 : Améliorations sur complétion des attributs
* 090 : Dans quel charset est la feuille
* 106 : Rechercher sur des fichiers
* 119 : Complétion XML - Complétion des attributs
* 150 : Navigation dans les attributs d'une balise
* 173 : Attribut Name optionel sur le XPath Généré
* 178 : Ouverture de fichiers
* 182 : Plugins SubVersion
* 184 : Pretty Print
* 187 : Fermeture d'onglet
* 188 : Préfixe dans l'assistant de création de projet
* 189 : Comparaison avec le gestionnaire de version
* 191 : Snippet/template : variables globales
* 192 : Langues
* 193 : Faute d'orthographe
* 194 : Application de scripts
* 195 : Pouvoir rafraichir les snippets en live
* 196 : Réouverture du dernier projet utilisé
* 200 : WebServices forever
* 201 : Appel D-Bus
* 205 : Duplication de ligne
* 206 : Ajout automatique des attribut d'un tag
* 207 : Fichier xinx_trace.log sans lecteur C:\
* 209 : Fichier de configuration
* 210 : Plugins & Script
* 211 : Plugins Style et Plugins Linux
* 212 : Recherche projet
* 215 : Ouverture d'un resultat de recherche
* 216 : Recherche dans les fichiers du projets
* 218 : Réindentation
* 208 : paramétrer le temps d'attente pour le recherche de feuille XSL
* 214 : Copie du nom de fichier complet
-- Ulrich Van Den Hekke <xinx@shadoware.org> Sun, 02 Mar 2008 20:22:19 +0100

24
CMakeLists.txt

@ -0,0 +1,24 @@
project(xinx-project)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules/")
cmake_minimum_required(VERSION 2.8.0)
add_subdirectory(components)
add_subdirectory(framework)
add_subdirectory(plugins/core)
add_subdirectory(plugins/empty)
add_subdirectory(plugins/cvsplugin)
add_subdirectory(plugins/svnplugin)
add_subdirectory(plugins/svnpluginwrapper)
add_subdirectory(plugins/services)
add_subdirectory(plugins/generix)
add_subdirectory(xinx)
file(COPY templates DESTINATION ./)
file(COPY datas DESTINATION ./)
file(COPY scripts DESTINATION ./)
find_package(Doxygen)
if (DOXYGEN_FOUND)
add_custom_target(doc ${DOXYGEN_EXECUTABLE} ${CMAKE_SOURCE_DIR}/Doxyfile WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
endif(DOXYGEN_FOUND)

2
Doxyfile

@ -31,7 +31,7 @@ PROJECT_NAME = "XINX Library"
# This could be handy for archiving the generated documentation or
# if some version control system is used.
PROJECT_NUMBER = 0.9.0
PROJECT_NUMBER = 0.9.1
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
# base path where the generated documentation will be put.

10
README

@ -1,10 +0,0 @@
The Debian Package xinx
----------------------------
Welcom to the new version of XINX.
This new version use a new system of Template, of plugins, of completion.
Please make a backup of your Snipet before let the installer erase it. The configuration will be stored differently, so all your settings will be erased too.
Please think to backup your registery key before install XINX.
-- Ulrich Van Den Hekke <xinx@shadoware.org> Sun, 02 Mar 2008 20:05:49 +0100

28
cmake_modules/FindApr1.cmake

@ -0,0 +1,28 @@
find_package(PkgConfig)
pkg_check_modules(PC_APR1 apr-1 QUIET)
SET(APR1_DEFINITIONS ${PC_APR1_CFLAGS_OTHER})
find_path(APR1_INCLUDE_DIR NAMES apr.h
HINTS
${PC_APR1_INCLUDEDIR}
${PC_APR1_INCLUDE_DIRS}
)
find_library(APR1_LIBRARY NAMES apr-1
HINTS
${PC_APR1_LIBDIR}
${PC_APR1_LIBRARY_DIRS}
)
find_library(APRUTIL1_LIBRARY NAMES aprutil-1
HINTS
${PC_APR1_LIBDIR}
${PC_APR1_LIBRARY_DIRS}
)
set(APR1_LIBRARIES ${APR1_LIBRARY} ${APRUTIL1_LIBRARY})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Apr1 DEFAULT_MSG APR1_LIBRARIES APR1_INCLUDE_DIR)
mark_as_advanced(APRUTIL1_LIBRARIES)

8
cmake_modules/FindIdeality.cmake

@ -0,0 +1,8 @@
find_path(IDEALITY_INCLUDE_DIR dideality.h ${CMAKE_SOURCE_DIR}/ext/ideality/lib)
find_library(IDEALITY_LIBRARY ideality PATH ${CMAKE_SOURCE_DIR}/ext/ideality/lib)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Ideality DEFAULT_MSG IDEALITY_LIBRARY IDEALITY_INCLUDE_DIR)
mark_as_advanced(IDEALITY_INCLUDE_DIR)
mark_as_advanced(IDEALITY_LIBRARY)

13
cmake_modules/FindQCodeEdit.cmake

@ -0,0 +1,13 @@
find_path(QCODEEDIT_INCLUDE_DIR qce-config.h ${CMAKE_SOURCE_DIR}/ext/qcodeedit/lib)
find_library(QCODEEDIT_LIBRARY qcodeedit PATH ${CMAKE_SOURCE_DIR}/ext/qcodeedit)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(QCodeEdit DEFAULT_MSG QCODEEDIT_LIBRARY QCODEEDIT_INCLUDE_DIR)
if (QCODEEDIT_FOUND)
set(QCODEEDIT_INCLUDE_DIR ${QCODEEDIT_INCLUDE_DIR} ${QCODEEDIT_INCLUDE_DIR}/document ${QCODEEDIT_INCLUDE_DIR}/language ${QCODEEDIT_INCLUDE_DIR}/qnfa ${QCODEEDIT_INCLUDE_DIR}/widgets)
endif (QCODEEDIT_FOUND)
mark_as_advanced(QCODEEDIT_INCLUDE_DIR)
mark_as_advanced(QCODEEDIT_LIBRARY)

7
cmake_modules/FindSvnCpp.cmake

@ -0,0 +1,7 @@
find_package(SvnDev)
find_path(SVNCPP_INCLUDE_DIR context_listener.hpp /usr/include/svncpp)
find_library(SVNCPP_LIBRARY svncpp)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(SvnCpp DEFAULT_MSG SVNCPP_LIBRARY SVNCPP_INCLUDE_DIR)

16
cmake_modules/FindSvnDev.cmake

@ -0,0 +1,16 @@
find_package(Apr1)
find_path(SVNDEV_INCLUDE_DIR svn_auth.h /usr/include/subversion-1)
find_library(SVNCLIENT_LIBRARY NAMES svn_client-1)
find_library(SVNWC_LIBRARY NAMES svn_wc-1)
find_library(SVNRA_LIBRARY NAMES svn_ra-1)
find_library(SVNDELTA_LIBRARY NAMES svn_delta-1)
find_library(SVNSUBR_LIBRARY NAMES svn_subr-1)
set(SVNDEV_LIBRARIES ${SVNCLIENT_LIBRARY} ${SVNWC_LIBRARY} ${SVNRA_LIBRARY} ${SVNDELTA_LIBRARY} ${SVNSUBR_LIBRARY})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(SvnDev DEFAULT_MSG SVNDEV_LIBRARIES SVNDEV_INCLUDE_DIR)
mark_as_advanced(SVNDEV_LIBRARIES)

9
cmake_modules/UseSoap.cmake

@ -0,0 +1,9 @@
set(QT_USE_QTNETWORK TRUE)
set(QT_USE_QTXML TRUE)
set(SOAP_PATH ${CMAKE_SOURCE_DIR}/ext/qtsoap/src)
include_directories(${SOAP_PATH})
set(SOAP_SOURCES ${SOAP_PATH}/qtsoap.cpp)
set(SOAP_HEADERS ${SOAP_PATH}/qtsoap.h)

8
cmake_modules/UseUniqueApplication.cmake

@ -0,0 +1,8 @@
set(QT_USE_QTNETWORK TRUE)
set(UNIQUE_APPPLICATION_PATH ${CMAKE_SOURCE_DIR}/ext/qtsingleapplication/src)
include_directories(${UNIQUE_APPPLICATION_PATH})
set(UNIQUE_APPPLICATION_SOURCES ${UNIQUE_APPPLICATION_PATH}/qtsingleapplication.cpp ${UNIQUE_APPPLICATION_PATH}/qtlocalpeer.cpp)
set(UNIQUE_APPPLICATION_HEADERS ${UNIQUE_APPPLICATION_PATH}/qtsingleapplication.h ${UNIQUE_APPPLICATION_PATH}/qtlocalpeer.h)

160
cmake_modules/UseXinx.cmake

@ -0,0 +1,160 @@
set(CMAKE_C_FLAGS "-Wall")
set(CMAKE_CXX_FLAGS "-Wall") # -Wold-style-cast") # -Woverloaded-virtual")
add_definitions(-DUNICODE)
#add_definitions(-DQT_LARGEFILE_SUPPORT)
if(CMAKE_BUILD_TYPE STREQUAL "Release")
add_definitions(-DQT_NO_DEBUG)
add_definitions(-D_XINX_RELEASE_MODE_)
else()
add_definitions(-DQT_SHAREDPOINTER_TRACK_POINTERS)
endif()
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
if(MINGW)
set(CMAKE_RC_COMPILER_INIT windres)
enable_language(RC)
set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> <FLAGS> <DEFINES> -O coff -o <OBJECT> <SOURCE>")
endif(MINGW)
macro(xinx_automoc outfiles)
qt4_get_moc_flags(moc_flags)
qt4_extract_options(moc_files moc_options ${ARGN})
foreach (it ${moc_files})
get_filename_component(it ${it} ABSOLUTE)
if ( EXISTS ${it} )
file(READ ${it} _contents)
string(REGEX MATCHALL "Q_OBJECT" _match "${_contents}")
if(_match)
qt4_make_output_file(${it} moc_ cxx outfile)
qt4_create_moc_command(${it} ${outfile} "${moc_flags}" "${moc_options}")
macro_add_file_dependencies(${it} ${outfile})
set(${outfiles} ${${outfiles}} ${outfile})
endif(_match)
endif ( EXISTS ${it} )
endforeach(it)
endmacro(xinx_automoc)
macro(initialisation_xinx)
unset(LIBRARIES)
include(${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS})
if(${IS_PLUGINS})
add_definitions(-DQT_PLUGIN)
if(${IS_SHARED})
add_definitions(-DQT_SHARED)
else()
add_definitions(-DQT_STATICPLUGIN)
endif()
endif()
if(${USE_FRAMEWORK})
set(MOC_FRAMEWORK -I${CMAKE_SOURCE_DIR}/framework -I${CMAKE_BINARY_DIR}/framework)
include_directories(${CMAKE_SOURCE_DIR}/framework)
include_directories(${CMAKE_BINARY_DIR}/framework)
set(LIBRARIES ${LIBRARIES} framework)
endif()
if(${USE_COMPONENTS})
include_directories(${CMAKE_SOURCE_DIR}/components)
include_directories(${CMAKE_BINARY_DIR}/components)
set(LIBRARIES ${LIBRARIES} xinxcmp)
endif()
if(${QCODEEDIT_FOUND})
include_directories(${QCODEEDIT_INCLUDE_DIR})
set(LIBRARIES ${LIBRARIES} ${QCODEEDIT_LIBRARY})
endif()
if(${IDEALITY_FOUND})
include_directories(${IDEALITY_INCLUDE_DIR})
set(LIBRARIES ${LIBRARIES} ${IDEALITY_LIBRARY})
endif()
if(${SVNCPP_FOUND})
include_directories(${APR1_INCLUDE_DIR})
include_directories(${SVNDEV_INCLUDE_DIR})
include_directories(${SVNCPP_INCLUDE_DIR})
set(LIBRARIES ${LIBRARIES} ${SVNCPP_LIBRARY} ${SVNDEV_LIBRARIES} ${APR1_LIBRARIES})
endif()
if(${LIBXML2_FOUND})
add_definitions(${LIBXML2_DEFINITIONS})
include_directories(${LIBXML2_INCLUDE_DIR})
set(LIBRARIES ${LIBRARIES} ${LIBXML2_LIBRARIES})
endif()
if(${LIBXSLT_FOUND})
add_definitions(${LIBXSLT_DEFINITIONS})
include_directories(${LIBXSLT_INCLUDE_DIR})
set(LIBRARIES ${LIBRARIES} ${LIBXSLT_LIBRARIES})
endif()
file(GLOB_RECURSE headers *.h ${UNIQUE_APPPLICATION_HEADERS} ${SOAP_HEADERS})
file(GLOB_RECURSE sources *.cpp ${UNIQUE_APPPLICATION_SOURCES} ${SOAP_SOURCES})
file(GLOB_RECURSE forms *.ui)
file(GLOB_RECURSE resources *.qrc)
file(GLOB_RECURSE translations *.ts)
if(WIN32)
file(GLOB_RECURSE winresources *.rc)
endif(WIN32)
qt4_wrap_ui(generated_forms ${forms})
xinx_automoc(moc_headers ${headers} OPTIONS ${MOC_FRAMEWORK})
qt4_add_resources(generated_resources ${resources})
qt4_add_translation(translations_qm ${translations})
endmacro(initialisation_xinx)
macro(add_xinx_executable cible librairies)
initialisation_xinx()
add_executable(${cible} WIN32 ${moc_headers} ${sources} ${winresources} ${generated_forms} ${generated_resources} ${translations_qm})
target_link_libraries(${cible} ${librairies} ${LIBRARIES} ${QT_LIBRARIES})
install(TARGETS ${cible} DESTINATION bin)
endmacro(add_xinx_executable)
macro(add_xinx_librairie cible librairies version)
initialisation_xinx()
#if(WIN32)
# if(MINGW)
# set_target_properties(xinxcmp PROPERTIES LINK_FLAGS "-Wl,--enable-auto-import,--no-undefined,--enable-runtime-pseudo-reloc")
# endif(MINGW)
#endif(WIN32)
add_library(${cible} SHARED ${moc_headers} ${sources} ${winresources} ${generated_forms} ${generated_resources} ${translations_qm} )
target_link_libraries(${cible} ${librairies} ${LIBRARIES} ${QT_LIBRARIES})
set_target_properties(${cible} PROPERTIES VERSION ${version})
if(UNIX)
set_target_properties(${cible} PROPERTIES LINK_FLAGS "-rdynamic")
endif(UNIX)
install(TARGETS ${cible} DESTINATION bin)
endmacro(add_xinx_librairie)
macro(add_xinx_plugins cible is_shared librairies version)
set(IS_PLUGINS True)
set(IS_SHARED ${is_shared})
initialisation_xinx()
if(${IS_SHARED})
add_library(${cible} MODULE ${moc_headers} ${sources} ${winresources} ${generated_forms} ${generated_resources} ${translations_qm} )
else()
if(CMAKE_SIZEOF_VOID_P MATCHES 8)
add_definitions(-fPIC)
endif()
add_library(${cible} STATIC ${moc_headers} ${sources} ${winresources} ${winresources}${generated_forms} ${generated_resources} ${translations_qm} )
endif()
target_link_libraries(${cible} ${librairies} ${LIBRARIES} ${QT_LIBRARIES})
set_target_properties(${cible} PROPERTIES VERSION ${version})
set_target_properties(${cible} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "../")
if(UNIX)
set_target_properties(${cible} PROPERTIES LINK_FLAGS "-rdynamic")
endif(UNIX)
install(TARGETS ${cible} DESTINATION plugins)
endmacro(add_xinx_plugins)

8
components/CMakeLists.txt

@ -0,0 +1,8 @@
find_package(Qt4 REQUIRED)
find_package(QCodeEdit REQUIRED)
include(UseXinx)
add_definitions(-D_COMPONENTS_BUILD_)
add_xinx_librairie(xinxcmp "" 0.9.0.0)

2
components/borderlayout.cpp

@ -42,7 +42,7 @@
****************************************************************************/
// Qt header
#include <QtGui>
#include <QWidgetItem>
// Components header
#include "borderlayout.h"

5
components/borderlayout.h

@ -47,9 +47,10 @@
#include <QLayout>
#include <QRect>
#include <QWidgetItem>
class BorderLayout : public QLayout
#include <components-config.h>
class COMPONENTSEXPORT BorderLayout : public QLayout
{
Q_OBJECT
public:

43
components/components-config.h

@ -0,0 +1,43 @@
/*
XINX
Copyright (C) 2007-2011 by Ulrich Van Den Hekke
xinx@shadoware.org
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful.
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _COMPONENTS_CONFIG_H_
#define _COMPONENTS_CONFIG_H_
#include <qglobal.h>
/*!
\macro COMPONENTSEXPORT
\brief Macro needed for cross-platform shared libraries creation
*/
#ifdef COMPONENTSEXPORT
#error COMPONENTSEXPORT already defined...
#endif
#ifdef Q_WS_WIN
# ifdef _COMPONENTS_BUILD_
# define COMPONENTSEXPORT Q_DECL_EXPORT
# else
# define COMPONENTSEXPORT Q_DECL_IMPORT
# endif
#else
# define COMPONENTSEXPORT
#endif
#endif // _COMPONENTS_CONFIG_H_

40
components/components.pro

@ -1,40 +0,0 @@
include(../project_mode.pri)
TEMPLATE = lib
unix:VERSION = 0.9.0.0
CONFIG += dll
win32:QMAKE_LFLAGS_SHLIB *= -no-undefined \
-enable-runtime-pseudo-reloc
DESTDIR += ./
INCLUDEPATH += ../ext/qcodeedit/lib \
../ext/qcodeedit/lib/document \
../ext/qcodeedit/lib/language \
../ext/qcodeedit/lib/qnfa \
../ext/qcodeedit/lib/widgets
LIBS = -L../ext/qcodeedit \
-lqcodeedit
TARGET = xinxcmp
FORMS = ui/xinxlistwidget.ui \
ui/customscheme.ui
HEADERS = p_pluginselector.h \
pluginselector.h \
directoryedit.h \
xinxcolorcombo.h \
xinxlistwidgetimpl.h \
pluginelement.h \
borderlayout.h \
customschemeimpl.h \
qmenuview.h \
stringcombobox.h \
xinxlineedit.h
SOURCES = directoryedit.cpp \
xinxcolorcombo.cpp \
pluginselector.cpp \
xinxlistwidgetimpl.cpp \
pluginelement.cpp \
borderlayout.cpp \
customschemeimpl.cpp \
qmenuview.cpp \
stringcombobox.cpp \
xinxlineedit.cpp
TRANSLATIONS += translations/xinxcomponents_fr.ts
RESOURCES = xinxpluginselector.qrc

36
components/customschemeimpl.cpp

@ -1,21 +1,21 @@
/* *********************************************************************** *
* XINX *
* Copyright (C) 2007-2010 by Ulrich Van Den Hekke *
* ulrich.vdh@shadoware.org *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *********************************************************************** */
/*
XINX
Copyright (C) 2007-2011 by Ulrich Van Den Hekke
xinx@shadoware.org
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful.
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// Xinx header
#include "customschemeimpl.h"

39
components/customschemeimpl.h

@ -1,21 +1,21 @@
/* *********************************************************************** *
* XINX *
* Copyright (C) 2007-2010 by Ulrich Van Den Hekke *
* ulrich.vdh@shadoware.org *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *********************************************************************** */
/*
XINX
Copyright (C) 2007-2011 by Ulrich Van Den Hekke
xinx@shadoware.org
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful.
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef _CUSTOMSCHEMEIMPL_H_
@ -23,13 +23,14 @@
// Xinx header
#include "ui_customscheme.h"
#include <components-config.h>
class QCodeEdit;
class QFormatScheme;
class QFormat;
class QLanguageFactory;
class CustomSchemeImpl : public QWidget, public Ui::CustomScheme
class COMPONENTSEXPORT CustomSchemeImpl : public QWidget, public Ui::CustomScheme
{
Q_OBJECT
Q_CLASSINFO("Author", "Ulrich Van Den Hekke")

29
components/designer/components_designer.pro

@ -1,29 +0,0 @@
TEMPLATE = lib
CONFIG += designer plugin
DESTDIR += ./
TARGET = $$qtLibraryTarget(xinxcmp_designer)
INCLUDEPATH += ../
LIBS = -L../ -lxinxcmp
HEADERS = xinxdesignerplugin.h \
directoryeditplugin.h \
directoryeditwidgetplugin.h \
xinxcolorcomboplugin.h \
pluginselectorplugin.h \
xinxlistwidgetplugin.h \
customschemeplugin.h
SOURCES = xinxdesignerplugin.cpp \
directoryeditplugin.cpp \
directoryeditwidgetplugin.cpp \
xinxcolorcomboplugin.cpp \
pluginselectorplugin.cpp \
xinxlistwidgetplugin.cpp \
customschemeplugin.cpp
# install
target.path = $$[QT_INSTALL_PLUGINS]/designer
INSTALLS += target
include(../../project_mode.pro)
CONFIG += release
CONFIG -= debug

91
components/designer/customschemeplugin.cpp

@ -1,91 +0,0 @@
/* *********************************************************************** *
* XINX *
* Copyright (C) 2009 by Ulrich Van Den Hekke *
* ulrich.vdh@shadoware.org *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *********************************************************************** */
// Xinx header
#include "customschemeplugin.h"
#include "customschemeimpl.h"
// Qt header
#include <QtPlugin>
/* CustomSchemeWidgetPlugin */
CustomSchemeWidgetPlugin::CustomSchemeWidgetPlugin(QObject *parent) : QObject(parent)
{
m_initialized = false;
}
void CustomSchemeWidgetPlugin::initialize(QDesignerFormEditorInterface *core)
{
if (m_initialized)
return;
m_initialized = true;
}
bool CustomSchemeWidgetPlugin::isInitialized() const
{
return m_initialized;
}
bool CustomSchemeWidgetPlugin::isContainer() const
{
return false;
}
QIcon CustomSchemeWidgetPlugin::icon() const
{
return QIcon();
}
QString CustomSchemeWidgetPlugin::toolTip() const
{
return "";
}
QString CustomSchemeWidgetPlugin::whatsThis() const
{
return "";
}
QString CustomSchemeWidgetPlugin::group() const
{
return "XINX Widget";
}
QString CustomSchemeWidgetPlugin::name() const
{
return "CustomSchemeImpl";
}
QString CustomSchemeWidgetPlugin::includeFile() const
{
return "customschemeimpl.h";
}
QString CustomSchemeWidgetPlugin::domXml() const
{
return "<widget class=\"CustomSchemeImpl\" name=\"customScheme\"/>";
}
QWidget * CustomSchemeWidgetPlugin::createWidget(QWidget *parent)
{
return new CustomSchemeImpl(parent);
}

50
components/designer/customschemeplugin.h

@ -1,50 +0,0 @@
/* *********************************************************************** *
* XINX *
* Copyright (C) 2009 by Ulrich Van Den Hekke *
* ulrich.vdh@shadoware.org *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *********************************************************************** */
#ifndef _CUSTOMSCHEMEWIDGETPLUGIN_H_
#define _CUSTOMSCHEMEWIDGETPLUGIN_H_
// Qt header
#include <QDesignerCustomWidgetInterface>
/* XinxListWidgetPlugin */
class CustomSchemeWidgetPlugin : public QObject, public QDesignerCustomWidgetInterface
{
Q_OBJECT
Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
CustomSchemeWidgetPlugin(QObject *parent = 0);
bool isContainer() const;
bool isInitialized() const;
QIcon icon() const;
QString domXml() const;
QString group() const;
QString includeFile() const;
QString name() const;
QString toolTip() const;
QString whatsThis() const;
QWidget *createWidget(QWidget *parent);
void initialize(QDesignerFormEditorInterface *core);
private:
bool m_initialized;
};
#endif /* _CUSTOMSCHEMEWIDGETPLUGIN_H_ */

91
components/designer/directoryeditplugin.cpp

@ -1,91 +0,0 @@
/* *********************************************************************** *
* XINX *
* Copyright (C) 2009 by Ulrich Van Den Hekke *
* ulrich.vdh@shadoware.org *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *********************************************************************** */
// Xinx header
#include "directoryeditplugin.h"
#include "directoryedit.h"
// Qt header
#include <QtPlugin>
/* DirectoryEditPlugin */
DirectoryEditPlugin::DirectoryEditPlugin(QObject *parent) : QObject(parent)
{
m_initialized = false;
}
void DirectoryEditPlugin::initialize(QDesignerFormEditorInterface *core)
{
if (m_initialized)
return;
m_initialized = true;
}
bool DirectoryEditPlugin::isInitialized() const
{
return m_initialized;
}
bool DirectoryEditPlugin::isContainer() const
{
return false;
}
QIcon DirectoryEditPlugin::icon() const
{
return QIcon();
}
QString DirectoryEditPlugin::toolTip() const
{
return "";
}
QString DirectoryEditPlugin::whatsThis() const
{
return "";
}
QString DirectoryEditPlugin::group() const
{
return "XINX Widget";
}
QString DirectoryEditPlugin::name() const
{
return "DirectoryEdit";
}
QString DirectoryEditPlugin::includeFile() const
{
return "directoryedit.h";
}
QString DirectoryEditPlugin::domXml() const
{
return "<widget class=\"DirectoryEdit\" name=\"directoryEdit\"/>";
}
QWidget * DirectoryEditPlugin::createWidget(QWidget *parent)
{
return new DirectoryEdit(parent);
}

50
components/designer/directoryeditplugin.h

@ -1,50 +0,0 @@
/* *********************************************************************** *
* XINX *
* Copyright (C) 2009 by Ulrich Van Den Hekke *
* ulrich.vdh@shadoware.org *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *********************************************************************** */
#ifndef DIRECTORYEDITPLUGIN_H_
#define DIRECTORYEDITPLUGIN_H_
// Qt header
#include <QDesignerCustomWidgetInterface>
/* DirectoryEditPlugin */
class DirectoryEditPlugin : public QObject, public QDesignerCustomWidgetInterface
{
Q_OBJECT
Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
DirectoryEditPlugin(QObject *parent = 0);
bool isContainer() const;
bool isInitialized() const;
QIcon icon() const;
QString domXml() const;
QString group() const;
QString includeFile() const;
QString name() const;
QString toolTip() const;
QString whatsThis() const;
QWidget *createWidget(QWidget *parent);
void initialize(QDesignerFormEditorInterface *core);
private:
bool m_initialized;
};
#endif /* DIRECTORYEDITPLUGIN_H_ */

91
components/designer/directoryeditwidgetplugin.cpp

@ -1,91 +0,0 @@
/* *********************************************************************** *
* XINX *
* Copyright (C) 2009 by Ulrich Van Den Hekke *
* ulrich.vdh@shadoware.org *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *********************************************************************** */
// Xinx header
#include "directoryeditwidgetplugin.h"
#include "directoryedit.h"
// Qt header
#include <QtPlugin>
/* DirectoryEditWidgetPlugin */
DirectoryEditWidgetPlugin::DirectoryEditWidgetPlugin(QObject *parent) : QObject(parent)
{
m_initialized = false;
}
void DirectoryEditWidgetPlugin::initialize(QDesignerFormEditorInterface *core)
{
if (m_initialized)
return;
m_initialized = true;
}
bool DirectoryEditWidgetPlugin::isInitialized() const
{
return m_initialized;
}
bool DirectoryEditWidgetPlugin::isContainer() const
{
return false;
}
QIcon DirectoryEditWidgetPlugin::icon() const
{
return QIcon();
}
QString DirectoryEditWidgetPlugin::toolTip() const
{
return "";
}
QString DirectoryEditWidgetPlugin::whatsThis() const
{
return "";
}
QString DirectoryEditWidgetPlugin::group() const
{
return "XINX Widget";
}
QString DirectoryEditWidgetPlugin::name() const
{
return "DirectoryEditWidget";
}
QString DirectoryEditWidgetPlugin::includeFile() const
{
return "directoryedit.h";
}
QString DirectoryEditWidgetPlugin::domXml() const
{
return "<widget class=\"DirectoryEditWidget\" name=\"directoryEditWidget\"/>";
}
QWidget * DirectoryEditWidgetPlugin::createWidget(QWidget *parent)
{
return new DirectoryEditWidget(parent);
}

50
components/designer/directoryeditwidgetplugin.h

@ -1,50 +0,0 @@
/* *********************************************************************** *
* XINX *
* Copyright (C) 2009 by Ulrich Van Den Hekke *
* ulrich.vdh@shadoware.org *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *********************************************************************** */
#ifndef DIRECTORYEDITWIDGETPLUGIN_H_
#define DIRECTORYEDITWIDGETPLUGIN_H_
// Qt header
#include <QDesignerCustomWidgetInterface>
/* DirectoryEditWidgetPlugin */
class DirectoryEditWidgetPlugin : public QObject, public QDesignerCustomWidgetInterface
{
Q_OBJECT
Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
DirectoryEditWidgetPlugin(QObject *parent = 0);
bool isContainer() const;
bool isInitialized() const;
QIcon icon() const;
QString domXml() const;
QString group() const;
QString includeFile() const;
QString name() const;
QString toolTip() const;
QString whatsThis() const;
QWidget *createWidget(QWidget *parent);
void initialize(QDesignerFormEditorInterface *core);
private:
bool m_initialized;
};
#endif /* DIRECTORYEDITWIDGETPLUGIN_H_ */

91
components/designer/pluginselectorplugin.cpp

@ -1,91 +0,0 @@
/* *********************************************************************** *
* XINX *
* Copyright (C) 2009 by Ulrich Van Den Hekke *
* ulrich.vdh@shadoware.org *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *********************************************************************** */
// Xinx header
#include "pluginselectorplugin.h"
#include "pluginselector.h"
// Qt header
#include <QtPlugin>
/* PluginSelectorPlugin */
PluginSelectorPlugin::PluginSelectorPlugin(QObject *parent) : QObject(parent)
{
m_initialized = false;
}
void PluginSelectorPlugin::initialize(QDesignerFormEditorInterface *core)
{
if (m_initialized)
return;
m_initialized = true;
}
bool PluginSelectorPlugin::isInitialized() const
{
return m_initialized;
}
bool PluginSelectorPlugin::isContainer() const
{
return false;
}
QIcon PluginSelectorPlugin::icon() const
{
return QIcon();
}
QString PluginSelectorPlugin::toolTip() const
{
return "";
}
QString PluginSelectorPlugin::whatsThis() const
{
return "";
}
QString PluginSelectorPlugin::group() const
{
return "XINX Widget";
}
QString PluginSelectorPlugin::name() const
{
return "PluginSelector";
}
QString PluginSelectorPlugin::includeFile() const
{
return "pluginselector.h";
}
QString PluginSelectorPlugin::domXml() const
{
return "<widget class=\"PluginSelector\" name=\"pluginSelector\"/>";
}
QWidget * PluginSelectorPlugin::createWidget(QWidget *parent)
{
return new PluginSelector(parent);
}

50
components/designer/pluginselectorplugin.h

@ -1,50 +0,0 @@
/* *********************************************************************** *
* XINX *
* Copyright (C) 2009 by Ulrich Van Den Hekke *
* ulrich.vdh@shadoware.org *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *********************************************************************** */
#ifndef PLUGINSELECTORPLUGIN_H_
#define PLUGINSELECTORPLUGIN_H_
// Qt header
#include <QDesignerCustomWidgetInterface>
/* PluginSelectorPlugin */
class PluginSelectorPlugin : public QObject, public QDesignerCustomWidgetInterface
{
Q_OBJECT
Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
PluginSelectorPlugin(QObject *parent = 0);
bool isContainer() const;
bool isInitialized() const;
QIcon icon() const;
QString domXml() const;
QString group() const;
QString includeFile() const;
QString name() const;
QString toolTip() const;
QString whatsThis() const;
QWidget *createWidget(QWidget *parent);
void initialize(QDesignerFormEditorInterface *core);
private:
bool m_initialized;
};
#endif /* PLUGINSELECTORPLUGIN_H_ */

91
components/designer/xinxcolorcomboplugin.cpp

@ -1,91 +0,0 @@
/* *********************************************************************** *
* XINX *
* Copyright (C) 2009 by Ulrich Van Den Hekke *
* ulrich.vdh@shadoware.org *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *********************************************************************** */
// Xinx header
#include "xinxcolorcomboplugin.h"
#include "xinxcolorcombo.h"
// Qt header
#include <QtPlugin>
/* XinxColorComboPlugin */
XinxColorComboPlugin::XinxColorComboPlugin(QObject *parent) : QObject(parent)
{
m_initialized = false;
}
void XinxColorComboPlugin::initialize(QDesignerFormEditorInterface *core)
{
if (m_initialized)
return;
m_initialized = true;
}
bool XinxColorComboPlugin::isInitialized() const
{
return m_initialized;
}
bool XinxColorComboPlugin::isContainer() const
{
return false;
}
QIcon XinxColorComboPlugin::icon() const
{
return QIcon();
}
QString XinxColorComboPlugin::toolTip() const
{
return "";
}
QString XinxColorComboPlugin::whatsThis() const
{
return "";
}
QString XinxColorComboPlugin::group() const
{
return "XINX Widget";
}
QString XinxColorComboPlugin::name() const
{
return "XinxColorCombo";
}
QString XinxColorComboPlugin::includeFile() const
{
return "xinxcolorcombo.h";
}
QString XinxColorComboPlugin::domXml() const
{
return "<widget class=\"XinxColorCombo\" name=\"xinxColorCombo\"/>";
}
QWidget * XinxColorComboPlugin::createWidget(QWidget *parent)
{
return new XinxColorCombo(parent);
}

50
components/designer/xinxcolorcomboplugin.h

@ -1,50 +0,0 @@
/* *********************************************************************** *
* XINX *
* Copyright (C) 2009 by Ulrich Van Den Hekke *
* ulrich.vdh@shadoware.org *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *********************************************************************** */
#ifndef KCOLORCOMBOPLUGIN_H_
#define KCOLORCOMBOPLUGIN_H_
// Qt header
#include <QDesignerCustomWidgetInterface>
/* KColorComboPlugin */
class XinxColorComboPlugin : public QObject, public QDesignerCustomWidgetInterface
{
Q_OBJECT
Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
XinxColorComboPlugin(QObject *parent = 0);
bool isContainer() const;
bool isInitialized() const;
QIcon icon() const;
QString domXml() const;
QString group() const;
QString includeFile() const;
QString name() const;
QString toolTip() const;
QString whatsThis() const;
QWidget *createWidget(QWidget *parent);
void initialize(QDesignerFormEditorInterface *core);
private:
bool m_initialized;
};
#endif /* KCOLORCOMBOPLUGIN_H_ */

44
components/designer/xinxdesignerplugin.cpp