summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/uml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'umbrello/umbrello/uml.cpp')
-rw-r--r--umbrello/umbrello/uml.cpp148
1 files changed, 74 insertions, 74 deletions
diff --git a/umbrello/umbrello/uml.cpp b/umbrello/umbrello/uml.cpp
index 961a66d5..7f103cb4 100644
--- a/umbrello/umbrello/uml.cpp
+++ b/umbrello/umbrello/uml.cpp
@@ -134,8 +134,8 @@ UMLApp::UMLApp(TQWidget* , const char* name):KDockMainWindow(0, name) {
//connect zoomSelect menu
m_zoomSelect->setCheckable(true);
- connect(m_zoomSelect,TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(setupZoomMenu()));
- connect(m_zoomSelect,TQT_SIGNAL(activated(int)),this,TQT_SLOT(setZoom(int)));
+ connect(m_zoomSelect,TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(setupZoomMenu()));
+ connect(m_zoomSelect,TQ_SIGNAL(activated(int)),this,TQ_SLOT(setZoom(int)));
m_refactoringAssist = 0L;
@@ -160,43 +160,43 @@ UMLApp* UMLApp::app()
}
void UMLApp::initActions() {
- fileNew = KStdAction::openNew(this, TQT_SLOT(slotFileNew()), actionCollection());
- fileOpen = KStdAction::open(this, TQT_SLOT(slotFileOpen()), actionCollection());
- fileOpenRecent = KStdAction::openRecent(this, TQT_SLOT(slotFileOpenRecent(const KURL&)), actionCollection());
- fileSave = KStdAction::save(this, TQT_SLOT(slotFileSave()), actionCollection());
- fileSaveAs = KStdAction::saveAs(this, TQT_SLOT(slotFileSaveAs()), actionCollection());
- fileClose = KStdAction::close(this, TQT_SLOT(slotFileClose()), actionCollection());
- filePrint = KStdAction::print(this, TQT_SLOT(slotFilePrint()), actionCollection());
- fileQuit = KStdAction::quit(this, TQT_SLOT(slotFileQuit()), actionCollection());
- editUndo = KStdAction::undo(this, TQT_SLOT(slotEditUndo()), actionCollection());
- editRedo = KStdAction::redo(this, TQT_SLOT(slotEditRedo()), actionCollection());
- editCut = KStdAction::cut(this, TQT_SLOT(slotEditCut()), actionCollection());
- editCopy = KStdAction::copy(this, TQT_SLOT(slotEditCopy()), actionCollection());
- editPaste = KStdAction::paste(this, TQT_SLOT(slotEditPaste()), actionCollection());
+ fileNew = KStdAction::openNew(this, TQ_SLOT(slotFileNew()), actionCollection());
+ fileOpen = KStdAction::open(this, TQ_SLOT(slotFileOpen()), actionCollection());
+ fileOpenRecent = KStdAction::openRecent(this, TQ_SLOT(slotFileOpenRecent(const KURL&)), actionCollection());
+ fileSave = KStdAction::save(this, TQ_SLOT(slotFileSave()), actionCollection());
+ fileSaveAs = KStdAction::saveAs(this, TQ_SLOT(slotFileSaveAs()), actionCollection());
+ fileClose = KStdAction::close(this, TQ_SLOT(slotFileClose()), actionCollection());
+ filePrint = KStdAction::print(this, TQ_SLOT(slotFilePrint()), actionCollection());
+ fileQuit = KStdAction::quit(this, TQ_SLOT(slotFileQuit()), actionCollection());
+ editUndo = KStdAction::undo(this, TQ_SLOT(slotEditUndo()), actionCollection());
+ editRedo = KStdAction::redo(this, TQ_SLOT(slotEditRedo()), actionCollection());
+ editCut = KStdAction::cut(this, TQ_SLOT(slotEditCut()), actionCollection());
+ editCopy = KStdAction::copy(this, TQ_SLOT(slotEditCopy()), actionCollection());
+ editPaste = KStdAction::paste(this, TQ_SLOT(slotEditPaste()), actionCollection());
createStandardStatusBarAction();
setStandardToolBarMenuEnabled(true);
- selectAll = KStdAction::selectAll(this, TQT_SLOT( slotSelectAll() ), actionCollection());
+ selectAll = KStdAction::selectAll(this, TQ_SLOT( slotSelectAll() ), actionCollection());
fileExportDocbook = new TDEAction(i18n("&Export model to DocBook"), 0,
- this, TQT_SLOT( slotFileExportDocbook() ),
+ this, TQ_SLOT( slotFileExportDocbook() ),
actionCollection(), "file_export_docbook");
fileExportXhtml = new TDEAction(i18n("&Export model to XHTML"), 0,
- this, TQT_SLOT( slotFileExportXhtml() ),
+ this, TQ_SLOT( slotFileExportXhtml() ),
actionCollection(), "file_export_xhtml");
- classWizard = new TDEAction(i18n("&New Class Wizard..."),0,this,TQT_SLOT(slotClassWizard()),
+ classWizard = new TDEAction(i18n("&New Class Wizard..."),0,this,TQ_SLOT(slotClassWizard()),
actionCollection(),"class_wizard");
new TDEAction(i18n("&Add Default Datatypes for Active Language"), 0, this,
- TQT_SLOT(slotAddDefaultDatatypes()), actionCollection(), "create_default_datatypes");
+ TQ_SLOT(slotAddDefaultDatatypes()), actionCollection(), "create_default_datatypes");
- preferences = KStdAction::preferences(this, TQT_SLOT( slotPrefs() ), actionCollection());
+ preferences = KStdAction::preferences(this, TQ_SLOT( slotPrefs() ), actionCollection());
- genWizard = new TDEAction(i18n("&Code Generation Wizard..."),0,this,TQT_SLOT(generationWizard()),
+ genWizard = new TDEAction(i18n("&Code Generation Wizard..."),0,this,TQ_SLOT(generationWizard()),
actionCollection(),"generation_wizard");
- genAll = new TDEAction(i18n("&Generate All Code"),0,this,TQT_SLOT(generateAllCode()),
+ genAll = new TDEAction(i18n("&Generate All Code"),0,this,TQ_SLOT(generateAllCode()),
actionCollection(),"generate_all");
importClasses = new TDEAction(i18n("&Import Classes..."), SmallIconSet("text-x-c++src"), 0,
- this,TQT_SLOT(slotImportClasses()), actionCollection(),"import_class");
+ this,TQ_SLOT(slotImportClasses()), actionCollection(),"import_class");
fileNew->setToolTip(i18n("Creates a new document"));
fileOpen->setToolTip(i18n("Opens an existing document"));
@@ -216,62 +216,62 @@ void UMLApp::initActions() {
deleteSelectedWidget = new TDEAction( i18n("Delete &Selected"),
SmallIconSet("edit-delete"),
TDEShortcut(TQt::Key_Delete), this,
- TQT_SLOT( slotDeleteSelectedWidget() ), actionCollection(),
+ TQ_SLOT( slotDeleteSelectedWidget() ), actionCollection(),
"delete_selected" );
// The different views
newDiagram = new TDEActionMenu(0, SmallIconSet("document-new"), actionCollection(), "new_view");
classDiagram = new TDEAction( i18n( "&Class Diagram..." ), SmallIconSet("umbrello_diagram_class"), 0,
- this, TQT_SLOT( slotClassDiagram() ), actionCollection(), "new_class_diagram" );
+ this, TQ_SLOT( slotClassDiagram() ), actionCollection(), "new_class_diagram" );
#if defined (HAVE_DOT)
- autolayout = new TDEAction(i18n("&Autolayout..."),0,0,this,TQT_SLOT(slotAutolayout()),
+ autolayout = new TDEAction(i18n("&Autolayout..."),0,0,this,TQ_SLOT(slotAutolayout()),
actionCollection(),"autolayout");
#endif
sequenceDiagram= new TDEAction( i18n( "&Sequence Diagram..." ), SmallIconSet("umbrello_diagram_sequence"), 0,
- this, TQT_SLOT( slotSequenceDiagram() ), actionCollection(), "new_sequence_diagram" );
+ this, TQ_SLOT( slotSequenceDiagram() ), actionCollection(), "new_sequence_diagram" );
collaborationDiagram = new TDEAction( i18n( "C&ollaboration Diagram..." ), SmallIconSet("umbrello_diagram_collaboration"), 0,
- this, TQT_SLOT( slotCollaborationDiagram() ), actionCollection(), "new_collaboration_diagram" );
+ this, TQ_SLOT( slotCollaborationDiagram() ), actionCollection(), "new_collaboration_diagram" );
useCaseDiagram= new TDEAction( i18n( "&Use Case Diagram..." ), SmallIconSet("umbrello_diagram_usecase"), 0,
- this, TQT_SLOT( slotUseCaseDiagram() ), actionCollection(), "new_use_case_diagram" );
+ this, TQ_SLOT( slotUseCaseDiagram() ), actionCollection(), "new_use_case_diagram" );
stateDiagram= new TDEAction( i18n( "S&tate Diagram..." ), SmallIconSet("umbrello_diagram_state"), 0,
- this, TQT_SLOT( slotStateDiagram() ), actionCollection(), "new_state_diagram" );
+ this, TQ_SLOT( slotStateDiagram() ), actionCollection(), "new_state_diagram" );
activityDiagram= new TDEAction( i18n( "&Activity Diagram..." ), SmallIconSet("umbrello_diagram_activity"), 0,
- this, TQT_SLOT( slotActivityDiagram() ), actionCollection(), "new_activity_diagram" );
+ this, TQ_SLOT( slotActivityDiagram() ), actionCollection(), "new_activity_diagram" );
componentDiagram = new TDEAction( i18n("Co&mponent Diagram..."), SmallIconSet("umbrello_diagram_component"), 0,
- this, TQT_SLOT( slotComponentDiagram() ), actionCollection(),
+ this, TQ_SLOT( slotComponentDiagram() ), actionCollection(),
"new_component_diagram" );
deploymentDiagram = new TDEAction( i18n("&Deployment Diagram..."), SmallIconSet("umbrello_diagram_deployment"), 0,
- this, TQT_SLOT( slotDeploymentDiagram() ), actionCollection(),
+ this, TQ_SLOT( slotDeploymentDiagram() ), actionCollection(),
"new_deployment_diagram" );
entityRelationshipDiagram = new TDEAction( i18n("&Entity Relationship Diagram..."), SmallIconSet("umbrello_diagram_entityrelationship"), 0,
- this, TQT_SLOT( slotEntityRelationshipDiagram() ), actionCollection(),
+ this, TQ_SLOT( slotEntityRelationshipDiagram() ), actionCollection(),
"new_entityrelationship_diagram" );
viewClearDiagram = new TDEAction(i18n("&Clear Diagram"), SmallIconSet("edit-clear"), 0,
- this, TQT_SLOT( slotCurrentViewClearDiagram() ), actionCollection(), "view_clear_diagram");
+ this, TQ_SLOT( slotCurrentViewClearDiagram() ), actionCollection(), "view_clear_diagram");
viewSnapToGrid = new TDEToggleAction(i18n("&Snap to Grid"), 0,
- this, TQT_SLOT( slotCurrentViewToggleSnapToGrid() ), actionCollection(), "view_snap_to_grid");
+ this, TQ_SLOT( slotCurrentViewToggleSnapToGrid() ), actionCollection(), "view_snap_to_grid");
viewShowGrid = new TDEToggleAction(i18n("S&how Grid"), 0,
- this, TQT_SLOT( slotCurrentViewToggleShowGrid() ), actionCollection(), "view_show_grid");
+ this, TQ_SLOT( slotCurrentViewToggleShowGrid() ), actionCollection(), "view_show_grid");
#if (TDE_VERSION_MINOR>=3) && (TDE_VERSION_MAJOR>=3)
viewShowGrid->setCheckedState(i18n("&Hide Grid"));
#endif
deleteDiagram = new TDEAction(i18n("&Delete"), SmallIconSet("edit-delete"), 0,
- this, TQT_SLOT( slotDeleteDiagram() ), actionCollection(), "view_delete");
+ this, TQ_SLOT( slotDeleteDiagram() ), actionCollection(), "view_delete");
viewExportImage = new TDEAction(i18n("&Export as Picture..."), SmallIconSet("image-x-generic"), 0,
- this, TQT_SLOT( slotCurrentViewExportImage() ), actionCollection(), "view_export_image");
+ this, TQ_SLOT( slotCurrentViewExportImage() ), actionCollection(), "view_export_image");
viewExportImageAll = new TDEAction(i18n("Export &All Diagrams as Pictures..."), SmallIconSet("image-x-generic"), 0,
- this, TQT_SLOT( slotAllViewsExportImage() ), actionCollection(), "view_export_image_all");
+ this, TQ_SLOT( slotAllViewsExportImage() ), actionCollection(), "view_export_image_all");
viewProperties = new TDEAction(i18n("&Properties"), SmallIconSet("application-vnd.tde.info"), 0,
- this, TQT_SLOT( slotCurrentViewProperties() ), actionCollection(), "view_properties");
+ this, TQ_SLOT( slotCurrentViewProperties() ), actionCollection(), "view_properties");
viewSnapToGrid->setChecked(false);
viewShowGrid->setChecked(false);
@@ -284,35 +284,35 @@ void UMLApp::initActions() {
viewProperties->setEnabled(false);
zoomAction = new KPlayerPopupSliderAction(i18n("&Zoom Slider"), "viewmag", Key_F9,
- this, TQT_SLOT(slotZoomSliderMoved(int)),
+ this, TQ_SLOT(slotZoomSliderMoved(int)),
actionCollection(), "popup_zoom");
zoom100Action = new TDEAction(i18n( "Z&oom to 100%" ), "zoom-original", 0,
- this, TQT_SLOT( slotZoom100() ), actionCollection(),
+ this, TQ_SLOT( slotZoom100() ), actionCollection(),
"zoom100");
- KStdAction::tipOfDay( this, TQT_SLOT( tipOfTheDay() ), actionCollection() );
+ KStdAction::tipOfDay( this, TQ_SLOT( tipOfTheDay() ), actionCollection() );
TQString moveTabLeftString = i18n("&Move Tab Left");
TQString moveTabRightString = i18n("&Move Tab Right");
moveTabLeft = new TDEAction(TQApplication::reverseLayout() ? moveTabRightString : moveTabLeftString,
TQApplication::reverseLayout() ? "forward" : "back",
TQApplication::reverseLayout() ? TQt::CTRL+TQt::SHIFT+TQt::Key_Right : TQt::CTRL+TQt::SHIFT+TQt::Key_Left,
- this, TQT_SLOT(slotMoveTabLeft()), actionCollection(),
+ this, TQ_SLOT(slotMoveTabLeft()), actionCollection(),
"move_tab_left");
moveTabRight = new TDEAction(TQApplication::reverseLayout() ? moveTabLeftString : moveTabRightString,
TQApplication::reverseLayout() ? "back" : "forward",
TQApplication::reverseLayout() ? TQt::CTRL+TQt::SHIFT+TQt::Key_Left : TQt::CTRL+TQt::SHIFT+TQt::Key_Right,
- this, TQT_SLOT(slotMoveTabRight()), actionCollection(),
+ this, TQ_SLOT(slotMoveTabRight()), actionCollection(),
"move_tab_right");
TQString selectTabLeftString = i18n("Select Diagram on Left");
TQString selectTabRightString = i18n("Select Diagram on Right");
changeTabLeft = new TDEAction(TQApplication::reverseLayout() ? selectTabRightString : selectTabLeftString,
TQApplication::reverseLayout() ? TQt::SHIFT+TQt::Key_Right : TQt::SHIFT+TQt::Key_Left,
- this, TQT_SLOT(slotChangeTabLeft()), actionCollection(), "previous_tab");
+ this, TQ_SLOT(slotChangeTabLeft()), actionCollection(), "previous_tab");
changeTabRight = new TDEAction(TQApplication::reverseLayout() ? selectTabLeftString : selectTabRightString,
TQApplication::reverseLayout() ? TQt::SHIFT+TQt::Key_Left : TQt::SHIFT+TQt::Key_Right,
- this, TQT_SLOT(slotChangeTabRight()), actionCollection(), "next_tab");
+ this, TQ_SLOT(slotChangeTabRight()), actionCollection(), "next_tab");
initStatusBar(); //call this here because the statusBar is shown/hidden by setupGUI()
@@ -384,7 +384,7 @@ void UMLApp::initStatusBar() {
m_statusLabel->setAlignment(TQt::AlignLeft|TQt::AlignVCenter);
- connect(m_doc, TQT_SIGNAL( sigWriteToStatusBar(const TQString &) ), this, TQT_SLOT( slotStatusMsg(const TQString &) ));
+ connect(m_doc, TQ_SIGNAL( sigWriteToStatusBar(const TQString &) ), this, TQ_SLOT( slotStatusMsg(const TQString &) ));
}
void UMLApp::initView() {
@@ -417,15 +417,15 @@ void UMLApp::initView() {
m_newSessionButton->setAutoRaise(true);
m_diagramMenu = new TDEPopupMenu(m_newSessionButton);
- m_diagramMenu->insertItem(Widget_Utils::iconSet(Uml::dt_Class), i18n("Class Diagram..."), this, TQT_SLOT(slotClassDiagram()) );
- m_diagramMenu->insertItem(Widget_Utils::iconSet(Uml::dt_Sequence), i18n("Sequence Diagram..."), this, TQT_SLOT(slotSequenceDiagram()) );
- m_diagramMenu->insertItem(Widget_Utils::iconSet(Uml::dt_Collaboration), i18n("Collaboration Diagram..."), this, TQT_SLOT(slotCollaborationDiagram()) );
- m_diagramMenu->insertItem(Widget_Utils::iconSet(Uml::dt_UseCase), i18n("Use Case Diagram..."), this, TQT_SLOT(slotUseCaseDiagram()) );
- m_diagramMenu->insertItem(Widget_Utils::iconSet(Uml::dt_State), i18n("State Diagram..."), this, TQT_SLOT(slotStateDiagram()) );
- m_diagramMenu->insertItem(Widget_Utils::iconSet(Uml::dt_Activity), i18n("Activity Diagram..."), this, TQT_SLOT(slotActivityDiagram()) );
- m_diagramMenu->insertItem(Widget_Utils::iconSet(Uml::dt_Component), i18n("Component Diagram..."), this, TQT_SLOT(slotComponentDiagram()) );
- m_diagramMenu->insertItem(Widget_Utils::iconSet(Uml::dt_Deployment), i18n("Deployment Diagram..."), this, TQT_SLOT(slotDeploymentDiagram()) );
- m_diagramMenu->insertItem(Widget_Utils::iconSet(Uml::dt_EntityRelationship), i18n("Entity Relationship Diagram..."), this, TQT_SLOT(slotEntityRelationshipDiagram()) );
+ m_diagramMenu->insertItem(Widget_Utils::iconSet(Uml::dt_Class), i18n("Class Diagram..."), this, TQ_SLOT(slotClassDiagram()) );
+ m_diagramMenu->insertItem(Widget_Utils::iconSet(Uml::dt_Sequence), i18n("Sequence Diagram..."), this, TQ_SLOT(slotSequenceDiagram()) );
+ m_diagramMenu->insertItem(Widget_Utils::iconSet(Uml::dt_Collaboration), i18n("Collaboration Diagram..."), this, TQ_SLOT(slotCollaborationDiagram()) );
+ m_diagramMenu->insertItem(Widget_Utils::iconSet(Uml::dt_UseCase), i18n("Use Case Diagram..."), this, TQ_SLOT(slotUseCaseDiagram()) );
+ m_diagramMenu->insertItem(Widget_Utils::iconSet(Uml::dt_State), i18n("State Diagram..."), this, TQ_SLOT(slotStateDiagram()) );
+ m_diagramMenu->insertItem(Widget_Utils::iconSet(Uml::dt_Activity), i18n("Activity Diagram..."), this, TQ_SLOT(slotActivityDiagram()) );
+ m_diagramMenu->insertItem(Widget_Utils::iconSet(Uml::dt_Component), i18n("Component Diagram..."), this, TQ_SLOT(slotComponentDiagram()) );
+ m_diagramMenu->insertItem(Widget_Utils::iconSet(Uml::dt_Deployment), i18n("Deployment Diagram..."), this, TQ_SLOT(slotDeploymentDiagram()) );
+ m_diagramMenu->insertItem(Widget_Utils::iconSet(Uml::dt_EntityRelationship), i18n("Entity Relationship Diagram..."), this, TQ_SLOT(slotEntityRelationshipDiagram()) );
m_newSessionButton->setPopup(m_diagramMenu);
//FIXME why doesn't this work?
//m_newSessionButton->setPopup(newDiagram->popupMenu());
@@ -435,9 +435,9 @@ void UMLApp::initView() {
m_closeDiagramButton->setIconSet( SmallIcon("tab_remove") );
m_closeDiagramButton->adjustSize();
- connect(m_closeDiagramButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotDeleteDiagram()));
- connect(m_tabWidget, TQT_SIGNAL(currentChanged(TQWidget*)), TQT_SLOT(slotTabChanged(TQWidget*)));
- connect(m_tabWidget, TQT_SIGNAL(contextMenu(TQWidget*,const TQPoint&)), m_doc, TQT_SLOT(slotDiagramPopupMenu(TQWidget*,const TQPoint&)));
+ connect(m_closeDiagramButton, TQ_SIGNAL(clicked()), TQ_SLOT(slotDeleteDiagram()));
+ connect(m_tabWidget, TQ_SIGNAL(currentChanged(TQWidget*)), TQ_SLOT(slotTabChanged(TQWidget*)));
+ connect(m_tabWidget, TQ_SIGNAL(contextMenu(TQWidget*,const TQPoint&)), m_doc, TQ_SLOT(slotDiagramPopupMenu(TQWidget*,const TQPoint&)));
m_tabWidget->setCornerWidget( m_newSessionButton, TopLeft );
m_tabWidget->setCornerWidget( m_closeDiagramButton, TopRight );
m_newSessionButton->installEventFilter(this);
@@ -806,7 +806,7 @@ void UMLApp::slotFileExportXhtml()
}
m_xhtmlGenerator = new XhtmlGenerator();
m_xhtmlGenerator->generateXhtmlForProject();
- connect(m_xhtmlGenerator,TQT_SIGNAL(finished()),this,TQT_SLOT(slotXhtmlDocGenerationFinished()));
+ connect(m_xhtmlGenerator,TQ_SIGNAL(finished()),this,TQ_SLOT(slotXhtmlDocGenerationFinished()));
}
void UMLApp::slotEditUndo() {
@@ -978,7 +978,7 @@ void UMLApp::enableRedo(bool enable) {
/** initialize the QT's global clipboard support for the application */
void UMLApp::initClip() {
TQClipboard* clip = TQApplication::clipboard();
- connect(clip, TQT_SIGNAL(dataChanged()), this, TQT_SLOT(slotClipDataChanged()));
+ connect(clip, TQ_SIGNAL(dataChanged()), this, TQ_SLOT(slotClipDataChanged()));
// Don't poll the X11 clipboard every second. This is a little expensive and resulted
// in very annoying umbrello slowdowns / hangs. TQt will notify us about clipboard
@@ -987,11 +987,11 @@ void UMLApp::initClip() {
// as well. (pfeiffer)
// m_clipTimer = new TQTimer(this, "timer");
// m_clipTimer->start(1000, false);
- // connect(m_clipTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotClipDataChanged()));
+ // connect(m_clipTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotClipDataChanged()));
m_copyTimer = new TQTimer(this, "copytimer");
m_copyTimer->start(500, false);
- connect(m_copyTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotCopyChanged()));
+ connect(m_copyTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotCopyChanged()));
}
bool UMLApp::canDecode(const TQMimeSource* mimeSource) {
@@ -1030,7 +1030,7 @@ void UMLApp::slotPrefs() {
optionState.generalState.tip = m_config->readBoolEntry( "RunOnStart", true );
m_dlg = new SettingsDlg(this, &optionState);
- connect(m_dlg, TQT_SIGNAL( applyClicked() ), this, TQT_SLOT( slotApplyPrefs() ) );
+ connect(m_dlg, TQ_SIGNAL( applyClicked() ), this, TQ_SLOT( slotApplyPrefs() ) );
if ( m_dlg->exec() == TQDialog::Accepted && m_dlg->getChangesApplied() ) {
slotApplyPrefs();
@@ -1077,7 +1077,7 @@ bool UMLApp::editCutCopy( bool bFromView ) {
if ((clipdata = clipboard.copy(bFromView)) != 0) {
TQClipboard* clip = TQApplication::clipboard();
clip->setData(clipdata);//the global clipboard takes ownership of the clipdata memory
- connect(clip, TQT_SIGNAL(dataChanged()), this, TQT_SLOT(slotClipDataChanged()));
+ connect(clip, TQ_SIGNAL(dataChanged()), this, TQ_SLOT(slotClipDataChanged()));
return true;
}
return false;
@@ -1371,7 +1371,7 @@ void UMLApp::slotUpdateViews() {
UMLViewList views = getDocument()->getViewIterator();
for(UMLView *view = views.first(); view; view = views.next()) {
- menu->insertItem( view->getName(), view, TQT_SLOT( slotShowView() ) );
+ menu->insertItem( view->getName(), view, TQ_SLOT( slotShowView() ) );
view->fileLoaded();
}
}
@@ -1423,10 +1423,10 @@ void UMLApp::slotAddDefaultDatatypes() {
void UMLApp::slotCurrentViewChanged() {
UMLView *view = getCurrentView();
if (view) {
- connect(view, TQT_SIGNAL( sigShowGridToggled(bool) ),
- this, TQT_SLOT( slotShowGridToggled(bool) ) );
- connect(view, TQT_SIGNAL( sigSnapToGridToggled(bool) ),
- this, TQT_SLOT( slotSnapToGridToggled(bool) ) );
+ connect(view, TQ_SIGNAL( sigShowGridToggled(bool) ),
+ this, TQ_SLOT( slotShowGridToggled(bool) ) );
+ connect(view, TQ_SIGNAL( sigSnapToGridToggled(bool) ),
+ this, TQ_SLOT( slotSnapToGridToggled(bool) ) );
}
}
void UMLApp::slotSnapToGridToggled(bool gridOn) {
@@ -1476,7 +1476,7 @@ void UMLApp::updateLangSelectMenu(Uml::Programming_Language activeLanguage) {
m_langSelect->setCheckable(true);
for (int i = 0; i < Uml::pl_Reserved; i++) {
TQString language = Model_Utils::progLangToString((Uml::Programming_Language) i);
- int id = m_langSelect->insertItem(language,this,TQT_SLOT(setActiveLanguage(int)));
+ int id = m_langSelect->insertItem(language,this,TQ_SLOT(setActiveLanguage(int)));
const bool isActiveLanguage = (activeLanguage == i);
m_langSelect->setItemChecked(id, isActiveLanguage);
}