diff options
Diffstat (limited to 'kimagemapeditor')
-rw-r--r-- | kimagemapeditor/CMakeL10n.txt | 6 | ||||
-rw-r--r-- | kimagemapeditor/CMakeLists.txt | 90 | ||||
-rw-r--r-- | kimagemapeditor/Makefile.am | 3 | ||||
-rw-r--r-- | kimagemapeditor/kimagemapeditor.cpp | 2 | ||||
-rw-r--r-- | kimagemapeditor/kimagemapeditor.desktop | 52 | ||||
-rw-r--r-- | kimagemapeditor/kimagemapeditorpart.desktop | 52 | ||||
-rw-r--r-- | kimagemapeditor/kimeshell.cpp | 10 | ||||
-rw-r--r-- | kimagemapeditor/pics/CMakeLists.txt | 16 |
8 files changed, 129 insertions, 102 deletions
diff --git a/kimagemapeditor/CMakeL10n.txt b/kimagemapeditor/CMakeL10n.txt index 35419028..7aa9f02e 100644 --- a/kimagemapeditor/CMakeL10n.txt +++ b/kimagemapeditor/CMakeL10n.txt @@ -1,3 +1,9 @@ ##### create translation templates ############## tde_l10n_create_template( "kimagemapeditor" ) + +tde_l10n_create_template( + CATALOG "desktop_files/kimagemapeditor-desktops/" + SOURCES *.desktop + DESTINATION "${CMAKE_SOURCE_DIR}/translations" +) diff --git a/kimagemapeditor/CMakeLists.txt b/kimagemapeditor/CMakeLists.txt new file mode 100644 index 00000000..02b95004 --- /dev/null +++ b/kimagemapeditor/CMakeLists.txt @@ -0,0 +1,90 @@ +add_subdirectory( pics ) + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} +) + +include_directories( SYSTEM + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### kimagemapeditorcommon (static) + +tde_add_library( kimagemapeditorcommon STATIC_PIC AUTOMOC + + SOURCES + qextfileinfo.cpp + areacreator.cpp + kimearea.cpp + kimecommands.cpp + kimedialogs.cpp + kimagemapeditor.cpp + drawzone.cpp + arealistview.cpp + imageslistview.cpp + mapslistview.cpp + LINK + tdehtml-shared +) + + +##### libkimagemapeditor (kpart) + +configure_file( ${TDE_CMAKE_TEMPLATES}/tde_dummy_cpp.cmake dummy.cpp COPYONLY ) + +tde_add_kpart( libkimagemapeditor AUTOMOC + + SOURCES + dummy.cpp + EMBED + kimagemapeditorcommon-static + LINK + tdeparts-shared + + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kimagemapeditor (executable) + +tde_add_executable( kimagemapeditor AUTOMOC + + SOURCES + main.cpp + kimeshell.cpp + LINK + tdecore-shared + tdeui-shared + tdeio-shared + kimagemapeditorcommon-static + + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### other data + +install( + FILES kimagemapeditorui.rc kimagemapeditorpartui.rc + DESTINATION ${DATA_INSTALL_DIR}/kimagemapeditor +) + +tde_create_translated_desktop( + SOURCE kimagemapeditor.desktop + PO_DIR kimagemapeditor-desktops +) + +tde_create_translated_desktop( + SOURCE kimagemapeditorpart.desktop + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR kimagemapeditor-desktops +) diff --git a/kimagemapeditor/Makefile.am b/kimagemapeditor/Makefile.am index c75b2676..fd75a10d 100644 --- a/kimagemapeditor/Makefile.am +++ b/kimagemapeditor/Makefile.am @@ -19,6 +19,7 @@ libkimagemapeditorcommon_la_SOURCES = \ imageslistview.cpp \ mapslistview.cpp +CLEANFILES = dummy.cpp libkimagemapeditor_la_SOURCES = \ dummy.cpp @@ -61,3 +62,5 @@ messages: rc.cpp $(XGETTEXT) $$LIST -o $(podir)/kimagemapeditor.pot; \ fi +dummy.cpp: + echo > dummy.cpp diff --git a/kimagemapeditor/kimagemapeditor.cpp b/kimagemapeditor/kimagemapeditor.cpp index 804e67ae..1d9eeba7 100644 --- a/kimagemapeditor/kimagemapeditor.cpp +++ b/kimagemapeditor/kimagemapeditor.cpp @@ -1529,7 +1529,7 @@ void KImageMapEditor::mapEditName() void KImageMapEditor::mapShowHTML() { - KDialogBase *dialog= new KDialogBase(widget(),TQString(),true,i18n("HTML Code of Map"),KDialogBase::Ok); + KDialogBase *dialog= new KDialogBase(widget(), "", true, i18n("HTML Code of Map"), KDialogBase::Ok); TQMultiLineEdit *edit = new TQMultiLineEdit(dialog); edit->setText(getHtmlCode()); diff --git a/kimagemapeditor/kimagemapeditor.desktop b/kimagemapeditor/kimagemapeditor.desktop index bef5e0bc..118d5127 100644 --- a/kimagemapeditor/kimagemapeditor.desktop +++ b/kimagemapeditor/kimagemapeditor.desktop @@ -1,56 +1,12 @@ [Desktop Entry] +Name=KImageMapEditor + +GenericName=HTML Image Map Editor + Type=Application MimeType=text/html; Exec=kimagemapeditor -caption "%c" %i %m Icon=kimagemapeditor Terminal=false X-DocPath=kimagemapeditor/index.html -Name=KImageMapEditor -Name[ne]=केडीई छवि मानचित्र सम्पादक -Name[pt_BR]=KEditor de Mapeamento de Imagem -Name[sk]=KImage editor mapy -Name[sv]=Kimagemapeditor -Name[ta]=Kவடிவம் வரைப்படம் திருத்தி -Name[tg]=KМуҳаррири тасвири ҳарита -Name[tr]=K Resim Haritası Düzenleyicisi -GenericName=HTML Image Map Editor -GenericName[bg]=Редактор на маркирания на изображения за HTML -GenericName[ca]=Un editor de mapes d'imatge HTML -GenericName[cs]=Editor HTML map -GenericName[da]=HTML editor af kortbilleder -GenericName[de]=Editor für HTML-Bildkarten (Imagemaps) -GenericName[el]=HTML επεξεργαστής εικόνων -GenericName[es]=Editor de mapas de imágenes HTML -GenericName[et]=Hüperpildiredaktor -GenericName[eu]=HTML irudi-mapa editorea -GenericName[fa]=ویرایشگر نگاشت تصویر زنگام -GenericName[fi]=HTML-kuvaeditori -GenericName[fr]=Éditeur d'hyperimages HTML -GenericName[gl]=Editor de mapas de imaxes HTML -GenericName[hu]=HTML-térképszerkesztő -GenericName[is]=HTML myndakortsritill -GenericName[it]=Editor per le mappe di immagini HTML -GenericName[ja]=HTML イメージマップエディタ -GenericName[ka]=HTML გამოსახულების რუქის რედაქტორი -GenericName[lt]=HTML paveikslėlių žemėlapių rengyklė -GenericName[ms]=Penyunting Peta Imej HTML -GenericName[nds]=Editor för HTML-Bildkoorten -GenericName[ne]=एचटीएमएल छवि मानचित्र सम्पादक -GenericName[nl]=HTML imagemap editor -GenericName[pa]=HTML ਚਿੱਤਰ ਨਕਸ਼ਾ ਸੰਪਾਦਕ -GenericName[pl]=Edytor map obrazków HTML -GenericName[pt]=Editor de Mapas de Imagem HTML -GenericName[pt_BR]=Editor de Mapeamento de Imagem HTML -GenericName[sk]=Editor HTML mapy obrázkov -GenericName[sl]=Urejevalnik slikovnih zemljevidov v HTML -GenericName[sr]=Уређивач HTML сликовне мапе -GenericName[sr@Latn]=Uređivač HTML slikovne mape -GenericName[sv]=Redigering av HTML-bildkartor -GenericName[ta]=HTML வடிவம் வரைப்படம் திருத்தி -GenericName[tg]=Муҳаррири тасвири ҳаритаи HTML -GenericName[tr]=HTML Resim Haritası Düzenleyicisi -GenericName[uk]=Редактор карт зображень HTML -GenericName[zh_CN]=HTML 图像映射编辑器 -GenericName[zh_HK]=HTML 影像地圖編輯器 -GenericName[zh_TW]=HTML 影像地圖編輯器 Categories=Qt;TDE;Development;WebDevelopment; diff --git a/kimagemapeditor/kimagemapeditorpart.desktop b/kimagemapeditor/kimagemapeditorpart.desktop index 2eb35bab..bc3adf99 100644 --- a/kimagemapeditor/kimagemapeditorpart.desktop +++ b/kimagemapeditor/kimagemapeditorpart.desktop @@ -1,54 +1,10 @@ [Desktop Entry] +Name=KImageMapEditor + +Comment=An HTML imagemap editor + Type=Service MimeType=text/html Icon=kimagemapeditor X-TDE-ServiceTypes=KParts/ReadWritePart X-TDE-Library=libkimagemapeditor -Comment=An HTML imagemap editor -Comment[bg]=Редактор на маркирания на изображения за HTML -Comment[ca]=Un editor de mapes d'imatge HTML -Comment[cs]=Editor HTML map -Comment[da]=En HTML-editor af kortbilleder -Comment[de]=Ein Editor für HTML-Bildkarten (Imagemaps) -Comment[el]=HTML επεξεργαστής εικόνων -Comment[es]=Un editor de mapas de imágenes HTML -Comment[et]=Hüperpildiredaktor -Comment[eu]=HTML irudi-mapa editore bat -Comment[fa]=یک ویرایشگر نگاشت تصویر زنگام -Comment[fi]=HTML-imagemap -editori -Comment[fr]=Éditeur d'hyperimages HTML -Comment[gl]=Un editor de mapas de imaxes HTML -Comment[hu]=HTML-térképszerkesztő -Comment[is]=HTML myndakortsritill -Comment[it]=Un editor per le mappe di immagini HTML -Comment[ja]=HTML イメージマップエディタ -Comment[ka]=HTML გამოსახულების რუქის რედაქტორი -Comment[lt]=HTML paveikslėlių žemėlapių rengyklė -Comment[ms]=Penyunting Peta Imej HTML -Comment[nds]=En Editor för HTML-Bildkoorten -Comment[ne]=एउटा एचटीएमएल छवि मानचित्र सम्पादकस -Comment[nl]=Een hulpmiddel om HTML imagemaps te maken -Comment[pl]=Edytor map obrazków HTML -Comment[pt]=Editor de Mapas de Imagem HTML -Comment[pt_BR]=Um editor de mapeamento de imagem HTML -Comment[ru]=Редактор HTML imagemap -Comment[sk]=Editor HTML mapy obrázkov -Comment[sl]=Urejevalnik slikovnih zemljevidov v HTML -Comment[sr]=Уређивач HTML сликовне мапе -Comment[sr@Latn]=Uređivač HTML slikovne mape -Comment[sv]=En editor för HTML-bildkartor -Comment[ta]=An HTML வடிவம் வரைப்படம் திருத்தி -Comment[tg]=Муҳаррири тасвири ҳаритаи HTML -Comment[tr]=Bir HTML resim_haritası düzenleyicisi -Comment[uk]=Редактор imagemap HTML -Comment[zh_CN]=HTML 图像映射编辑器 -Comment[zh_HK]=一個 HTML 影像地圖的編輯器 -Comment[zh_TW]=一個 HTML 影像地圖的編輯器 -Name=KImageMapEditor -Name[ne]=केडीई छवि मानचित्र सम्पादक -Name[pt_BR]=KEditor de Mapeamento de Imagem -Name[sk]=KImage editor mapy -Name[sv]=Kimagemapeditor -Name[ta]=Kவடிவம் வரைப்படம் திருத்தி -Name[tg]=KМуҳаррири тасвири ҳарита -Name[tr]=K Resim Haritası Düzenleyicisi diff --git a/kimagemapeditor/kimeshell.cpp b/kimagemapeditor/kimeshell.cpp index 0cbcd542..b04ba886 100644 --- a/kimagemapeditor/kimeshell.cpp +++ b/kimagemapeditor/kimeshell.cpp @@ -91,7 +91,7 @@ KimeShell::~KimeShell() bool KimeShell::queryClose() { if (_stdout) { - std::cout << m_part->getHtmlCode() << std::endl; + std::cout << m_part->getHtmlCode().local8Bit() << std::endl; } return m_part->queryClose(); @@ -245,14 +245,14 @@ void KimeShell::optionsConfigureKeys() { } void KimeShell::optionsConfigureToolbars() -{ +{ #if defined(TDE_MAKE_VERSION) # if TDE_VERSION >= TDE_MAKE_VERSION(3,1,0) saveMainWindowSettings(TDEGlobal::config(), autoSaveGroup()); # else saveMainWindowSettings(TDEGlobal::config() ); # endif -#else +#else saveMainWindowSettings(TDEGlobal::config() ); #endif @@ -264,14 +264,14 @@ void KimeShell::optionsConfigureToolbars() } void KimeShell::applyNewToolbarConfig() -{ +{ #if defined(TDE_MAKE_VERSION) # if TDE_VERSION >= TDE_MAKE_VERSION(3,1,0) applyMainWindowSettings(TDEGlobal::config(), autoSaveGroup()); # else applyMainWindowSettings(TDEGlobal::config()); # endif -#else +#else applyMainWindowSettings(TDEGlobal::config()); #endif } diff --git a/kimagemapeditor/pics/CMakeLists.txt b/kimagemapeditor/pics/CMakeLists.txt new file mode 100644 index 00000000..ab7482a7 --- /dev/null +++ b/kimagemapeditor/pics/CMakeLists.txt @@ -0,0 +1,16 @@ +##### icons + + +tde_install_icons( + addpoint arrow circle circle2 freehand lower + polygon raise rectangle removepoint + DESTINATION ${DATA_INSTALL_DIR}/kimagemapeditor/icons +) + +tde_install_icons( kimagemapeditor ) + +install( + FILES addpointcursor.png freehandcursor.png + polygoncursor.png removepointcursor.png + DESTINATION ${DATA_INSTALL_DIR}/kimagemapeditor +) |