diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-29 16:42:37 +0900 | 
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-31 22:22:08 +0900 | 
| commit | f3f67ab73137aa1ce1bc14753cc0e09a1b44f9bd (patch) | |
| tree | 49b5284de3c34fa5beb84bd52110e7e1cdba826d /src/libgui/project_manager.cpp | |
| parent | 26bcb362b66b78984c0c7567d00c12f3425d6468 (diff) | |
| download | piklab-f3f67ab73137aa1ce1bc14753cc0e09a1b44f9bd.tar.gz piklab-f3f67ab73137aa1ce1bc14753cc0e09a1b44f9bd.zip | |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c679361a50aee162491e7195f2bcfdbbf341dde5)
Diffstat (limited to 'src/libgui/project_manager.cpp')
| -rw-r--r-- | src/libgui/project_manager.cpp | 44 | 
1 files changed, 22 insertions, 22 deletions
| diff --git a/src/libgui/project_manager.cpp b/src/libgui/project_manager.cpp index fd10d0d..8fa9586 100644 --- a/src/libgui/project_manager.cpp +++ b/src/libgui/project_manager.cpp @@ -38,13 +38,13 @@  ProjectManager::View::View(TQWidget *parent)    : ListView(parent, "project_manager"), _project(0), _modified(false)  { -  connect(this, TQT_SIGNAL(mouseButtonClicked(int, TQListViewItem *, const TQPoint &, int)), -          TQT_SLOT(clicked(int, TQListViewItem *, const TQPoint &, int))); -  connect(this, TQT_SIGNAL(contextMenuRequested(TQListViewItem *, const TQPoint &, int)), -          TQT_SLOT(contextMenu(TQListViewItem *, const TQPoint &, int))); -  connect(this, TQT_SIGNAL(itemRenamed(TQListViewItem *, int, const TQString &)), -          TQT_SLOT(renamed(TQListViewItem *, int, const TQString &))); -  connect(this, TQT_SIGNAL(moved()), TQT_SLOT(filesReordered())); +  connect(this, TQ_SIGNAL(mouseButtonClicked(int, TQListViewItem *, const TQPoint &, int)), +          TQ_SLOT(clicked(int, TQListViewItem *, const TQPoint &, int))); +  connect(this, TQ_SIGNAL(contextMenuRequested(TQListViewItem *, const TQPoint &, int)), +          TQ_SLOT(contextMenu(TQListViewItem *, const TQPoint &, int))); +  connect(this, TQ_SIGNAL(itemRenamed(TQListViewItem *, int, const TQString &)), +          TQ_SLOT(renamed(TQListViewItem *, int, const TQString &))); +  connect(this, TQ_SIGNAL(moved()), TQ_SLOT(filesReordered()));    header()->hide();    setSorting(-1); @@ -54,7 +54,7 @@ ProjectManager::View::View(TQWidget *parent)    setAcceptDrops(true);    setDragEnabled(true);    setDropVisualizer(true); -  TQTimer::singleShot(0, this, TQT_SLOT(init()));; +  TQTimer::singleShot(0, this, TQ_SLOT(init()));;  }  ProjectManager::View::~View() @@ -178,8 +178,8 @@ void ProjectManager::View::contextMenu(TQListViewItem *item, const TQPoint &p, i      RootItem *ri = static_cast<RootItem *>(item);      if ( _project==0 ) {        if ( ri->url().isEmpty() ) { -        pop.insertItem("piklab_createproject", i18n("New Project..."), &Main::toplevel(), TQT_SLOT(newProject())); -        pop.insertItem("piklab_openproject", i18n("Open Project..."), &Main::toplevel(), TQT_SLOT(openProject())); +        pop.insertItem("piklab_createproject", i18n("New Project..."), &Main::toplevel(), TQ_SLOT(newProject())); +        pop.insertItem("piklab_openproject", i18n("Open Project..."), &Main::toplevel(), TQ_SLOT(openProject()));          pop.exec(p);        } else {          pop.insertTitle(i18n("Standalone File")); @@ -188,16 +188,16 @@ void ProjectManager::View::contextMenu(TQListViewItem *item, const TQPoint &p, i        }      } else {        pop.insertTitle(i18n("Project")); -      pop.insertItem("configure", i18n("Options..."), &Main::toplevel(), TQT_SLOT(configureProject())); -      pop.insertItem("edit-find", i18n("Find Files..."),   &Main::toplevel(), TQT_SLOT(runKfind())); +      pop.insertItem("configure", i18n("Options..."), &Main::toplevel(), TQ_SLOT(configureProject())); +      pop.insertItem("edit-find", i18n("Find Files..."),   &Main::toplevel(), TQ_SLOT(runKfind()));        pop.insertSeparator(); -      pop.insertItem("piklab_compile", i18n("Build Project"), &Main::toplevel(), TQT_SLOT(buildProject())); -      pop.insertItem("trashcan_empty", i18n("Clean Project"), &Main::toplevel(), TQT_SLOT(cleanBuild())); +      pop.insertItem("piklab_compile", i18n("Build Project"), &Main::toplevel(), TQ_SLOT(buildProject())); +      pop.insertItem("trashcan_empty", i18n("Clean Project"), &Main::toplevel(), TQ_SLOT(cleanBuild()));        pop.insertSeparator(); -      pop.insertItem("document-new", i18n("New Source File..."), &Main::toplevel(), TQT_SLOT(newSourceFile())); -      pop.insertItem("piklab_addfile", i18n("Add Source Files..."), this, TQT_SLOT(insertSourceFiles())); -      pop.insertItem("piklab_addfile", i18n("Add Object Files..."), this, TQT_SLOT(insertObjectFiles())); -      if ( Main::currentEditor() ) pop.insertItem("piklab_addcurrentfile", i18n("Add Current File"), this, TQT_SLOT(insertCurrentFile())); +      pop.insertItem("document-new", i18n("New Source File..."), &Main::toplevel(), TQ_SLOT(newSourceFile())); +      pop.insertItem("piklab_addfile", i18n("Add Source Files..."), this, TQ_SLOT(insertSourceFiles())); +      pop.insertItem("piklab_addfile", i18n("Add Object Files..."), this, TQ_SLOT(insertObjectFiles())); +      if ( Main::currentEditor() ) pop.insertItem("piklab_addcurrentfile", i18n("Add Current File"), this, TQ_SLOT(insertCurrentFile()));        pop.exec(p);      }    } else if ( item->rtti()==FileRtti ) { @@ -211,15 +211,15 @@ void ProjectManager::View::contextMenu(TQListViewItem *item, const TQPoint &p, i      if ( _project==0 ) return;      if ( group==LinkerObjectGroup ) {        pop.insertTitle(i18n("Objects")); -      pop.insertItem("piklab_addfile", i18n("Add Object Files..."), this, TQT_SLOT(insertObjectFiles())); +      pop.insertItem("piklab_addfile", i18n("Add Object Files..."), this, TQ_SLOT(insertObjectFiles()));        pop.exec(p);      } else if ( group==SourceGroup || group==HeaderGroup ) {        pop.insertTitle(i18n("Sources")); -      pop.insertItem("document-new", i18n("New File..."), &Main::toplevel(), TQT_SLOT(newSourceFile())); -      pop.insertItem("piklab_addfile", i18n("Add Source Files..."), this, TQT_SLOT(insertSourceFiles())); +      pop.insertItem("document-new", i18n("New File..."), &Main::toplevel(), TQ_SLOT(newSourceFile())); +      pop.insertItem("piklab_addfile", i18n("Add Source Files..."), this, TQ_SLOT(insertSourceFiles()));        pop.exec(p);      } else if ( group==DeviceGroup ) { -      pop.insertItem("document-new", i18n("Select Device..."), &Main::toplevel(), TQT_SLOT(showDeviceInfo())); +      pop.insertItem("document-new", i18n("Select Device..."), &Main::toplevel(), TQ_SLOT(showDeviceInfo()));        pop.exec(p);      }    } | 
