|
|
|
|
@ -58,11 +58,7 @@
|
|
|
|
|
#include <kxmlguifactory.h>
|
|
|
|
|
#include <kdockwidget.h>
|
|
|
|
|
#include <tdeio/job.h>
|
|
|
|
|
#if KDE_IS_VERSION(3,1,90)
|
|
|
|
|
#include <kinputdialog.h>
|
|
|
|
|
#else
|
|
|
|
|
#include <tqinputdialog.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// local
|
|
|
|
|
#include "kimagemapeditor.h"
|
|
|
|
|
@ -522,9 +518,7 @@ void KImageMapEditor::setupActions()
|
|
|
|
|
|
|
|
|
|
showAltAction = new TDEToggleAction(i18n("Show Alt Tag"),0, this, TQ_SLOT (slotShowAltTag()),
|
|
|
|
|
actionCollection(), "view_showalt");
|
|
|
|
|
#if KDE_IS_VERSION(3,2,90)
|
|
|
|
|
showAltAction->setCheckedState(i18n("Hide Alt Tag"));
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
mapNameAction= new TDEAction(i18n("Map &Name..."),0,this,TQ_SLOT(mapEditName()),
|
|
|
|
|
actionCollection(), "map_name");
|
|
|
|
|
@ -703,11 +697,9 @@ void KImageMapEditor::setupActions()
|
|
|
|
|
configureShowImageListAction = new TDEToggleAction( i18n("Show Image List"), 0L, 0,
|
|
|
|
|
this, TQ_SLOT(configureShowImageList()),
|
|
|
|
|
actionCollection(), "configure_show_imagelist" );
|
|
|
|
|
#if KDE_IS_VERSION(3,2,90)
|
|
|
|
|
configureShowAreaListAction->setCheckedState(i18n("Hide Area List"));
|
|
|
|
|
configureShowMapListAction->setCheckedState(i18n("Hide Map List"));
|
|
|
|
|
configureShowImageListAction->setCheckedState(i18n("Hide Image List"));
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
updateActionAccess();
|
|
|
|
|
@ -1507,15 +1499,9 @@ void KImageMapEditor::mapDefaultArea()
|
|
|
|
|
void KImageMapEditor::mapEditName()
|
|
|
|
|
{
|
|
|
|
|
bool ok=false;
|
|
|
|
|
#if KDE_IS_VERSION(3, 1, 90)
|
|
|
|
|
TQString input = KInputDialog::getText(i18n("Enter Map Name"),
|
|
|
|
|
i18n("Enter the name of the map:"),
|
|
|
|
|
_mapName,&ok,widget());
|
|
|
|
|
#else
|
|
|
|
|
TQString input = KLineEditDlg::getText(i18n("Enter Map Name"),
|
|
|
|
|
i18n("Enter the name of the map:"),
|
|
|
|
|
_mapName,&ok,widget());
|
|
|
|
|
#endif
|
|
|
|
|
if (ok) {
|
|
|
|
|
if (input != _mapName) {
|
|
|
|
|
if (mapsListView->nameAlreadyExists(input))
|
|
|
|
|
@ -2756,11 +2742,7 @@ void KImageMapEditor::imageUsemap() {
|
|
|
|
|
index = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#if KDE_IS_VERSION(3, 1, 90)
|
|
|
|
|
TQString input = KInputDialog::getItem(i18n("Enter Usemap"),
|
|
|
|
|
#else
|
|
|
|
|
TQString input = TQInputDialog::getItem(i18n("Enter Usemap"),
|
|
|
|
|
#endif
|
|
|
|
|
i18n("Enter the usemap value:"),
|
|
|
|
|
maps,index,true,&ok,widget());
|
|
|
|
|
if (ok) {
|
|
|
|
|
|