636 changed files with 34044 additions and 27261 deletions
@ -1,192 +0,0 @@
@@ -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 |
@ -0,0 +1,24 @@
@@ -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) |
||||
|
@ -1,10 +0,0 @@
@@ -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 |
@ -0,0 +1,28 @@
@@ -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) |
@ -0,0 +1,8 @@
@@ -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) |
@ -0,0 +1,13 @@
@@ -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) |
@ -0,0 +1,7 @@
@@ -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) |
@ -0,0 +1,16 @@
@@ -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) |
@ -0,0 +1,9 @@
@@ -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) |
@ -0,0 +1,8 @@
@@ -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) |
@ -0,0 +1,160 @@
@@ -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) |
@ -0,0 +1,8 @@
@@ -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) |
@ -0,0 +1,43 @@
@@ -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_
|
@ -1,40 +0,0 @@
@@ -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 |
@ -1,29 +0,0 @@
@@ -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 |
@ -1,91 +0,0 @@
@@ -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); |
||||
} |
||||
|
@ -1,50 +0,0 @@
@@ -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_ */ |
@ -1,91 +0,0 @@
@@ -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); |
||||
} |
||||
|
@ -1,50 +0,0 @@
@@ -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_ */ |
@ -1,91 +0,0 @@
@@ -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); |
||||
} |
||||
|
@ -1,50 +0,0 @@
@@ -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_ */ |
@ -1,91 +0,0 @@
@@ -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); |
||||
} |
||||
|
@ -1,50 +0,0 @@
@@ -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 |