VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerHostTable.cpp

Last change on this file was 104594, checked in by vboxsync, 4 months ago

FE/Qt: bugref:10450: Get rid of pre-Qt6 code related to time/date stuff.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 22.0 KB
Line 
1/* $Id: UIFileManagerHostTable.cpp 104594 2024-05-13 12:40:24Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIFileManagerHostTable class implementation.
4 */
5
6/*
7 * Copyright (C) 2016-2023 Oracle and/or its affiliates.
8 *
9 * This file is part of VirtualBox base platform packages, as
10 * available from https://www.virtualbox.org.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation, in version 3 of the
15 * License.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, see <https://www.gnu.org/licenses>.
24 *
25 * SPDX-License-Identifier: GPL-3.0-only
26 */
27
28/* Qt includes: */
29#include <QAction>
30#include <QDateTime>
31#include <QDir>
32
33/* GUI includes: */
34#include "QILabel.h"
35#include "UIActionPool.h"
36#include "UICommon.h"
37#include "UIFileManager.h"
38#include "UIFileTableNavigationWidget.h"
39#include "UIFileSystemModel.h"
40#include "UIFileManagerHostTable.h"
41#include "UIPathOperations.h"
42#include "QIToolBar.h"
43#include "UITranslationEventListener.h"
44
45
46/*********************************************************************************************************************************
47* UIHostDirectoryDiskUsageComputer definition. *
48*********************************************************************************************************************************/
49
50/** Open directories recursively and sum the disk usage. Don't block the GUI thread while doing this */
51class UIHostDirectoryDiskUsageComputer : public UIDirectoryDiskUsageComputer
52{
53 Q_OBJECT;
54
55public:
56
57 UIHostDirectoryDiskUsageComputer(QObject *parent, QStringList strStartPath);
58
59protected:
60
61 virtual void directoryStatisticsRecursive(const QString &path, UIDirectoryStatistics &statistics) RT_OVERRIDE;
62};
63
64
65/*********************************************************************************************************************************
66* UIHostDirectoryDiskUsageComputer implementation. *
67*********************************************************************************************************************************/
68
69UIHostDirectoryDiskUsageComputer::UIHostDirectoryDiskUsageComputer(QObject *parent, QStringList pathList)
70 :UIDirectoryDiskUsageComputer(parent, pathList)
71{
72}
73
74void UIHostDirectoryDiskUsageComputer::directoryStatisticsRecursive(const QString &path, UIDirectoryStatistics &statistics)
75{
76 /* Prevent modification of the continue flag while reading: */
77 m_mutex.lock();
78 /* Check if m_fOkToContinue is set to false. if so just end recursion: */
79 if (!isOkToContinue())
80 {
81 m_mutex.unlock();
82 return;
83 }
84 m_mutex.unlock();
85
86 QFileInfo fileInfo(path);
87 if (!fileInfo.exists())
88 return;
89 /* if the object is a file or a symlink then read the size and return: */
90 if (fileInfo.isFile())
91 {
92 statistics.m_totalSize += fileInfo.size();
93 ++statistics.m_uFileCount;
94 sigResultUpdated(statistics);
95 return;
96 }
97 else if (fileInfo.isSymLink())
98 {
99 statistics.m_totalSize += fileInfo.size();
100 ++statistics.m_uSymlinkCount;
101 sigResultUpdated(statistics);
102 return;
103 }
104
105 /* if it is a directory then read the content: */
106 QDir dir(path);
107 if (!dir.exists())
108 return;
109
110 QFileInfoList entryList = dir.entryInfoList();
111 for (int i = 0; i < entryList.size(); ++i)
112 {
113 const QFileInfo &entryInfo = entryList.at(i);
114 if (entryInfo.baseName().isEmpty() || entryInfo.baseName() == "." ||
115 entryInfo.baseName() == UIFileSystemModel::strUpDirectoryString)
116 continue;
117 statistics.m_totalSize += entryInfo.size();
118 if (entryInfo.isSymLink())
119 statistics.m_uSymlinkCount++;
120 else if(entryInfo.isFile())
121 statistics.m_uFileCount++;
122 else if (entryInfo.isDir())
123 {
124 statistics.m_uDirectoryCount++;
125 directoryStatisticsRecursive(entryInfo.absoluteFilePath(), statistics);
126 }
127 }
128 sigResultUpdated(statistics);
129}
130
131
132/*********************************************************************************************************************************
133* UIFileManagerHostTable implementation. *
134*********************************************************************************************************************************/
135
136UIFileManagerHostTable::UIFileManagerHostTable(UIActionPool *pActionPool, QWidget *pParent /* = 0 */)
137 :UIFileManagerTable(pActionPool, pParent)
138 , m_pModifierActionSeparator(0)
139{
140 setModelFileSystem(isWindowsFileSystem());
141 initializeFileTree();
142 prepareToolbar();
143 prepareActionConnections();
144 determinePathSeparator();
145 sltRetranslateUI();
146 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
147 this, &UIFileManagerHostTable::sltRetranslateUI);
148}
149
150/* static */ bool UIFileManagerHostTable::scanDirectory(const QString& strPath, UIFileSystemItem *parent,
151 QMap<QString, UIFileSystemItem*> &fileObjects)
152{
153
154 QDir directory(UIPathOperations::addTrailingDelimiters(strPath));
155 /* For some reason when this filter is applied, folder content QDir::entryInfoList()
156 returns an empty list: */
157 /*directory.setFilter(QDir::NoDotAndDotDot);*/
158 if (!directory.exists() || !directory.isReadable())
159 return false;
160 QFileInfoList entries = directory.entryInfoList(QDir::Hidden|QDir::AllEntries|QDir::NoDotAndDotDot);
161
162 parent->setIsOpened(true);
163 for (int i = 0; i < entries.size(); ++i)
164 {
165 const QFileInfo &fileInfo = entries.at(i);
166 UIFileSystemItem *item = new UIFileSystemItem(fileInfo.fileName(), parent, fileType(fileInfo));
167 if (!item)
168 continue;
169
170 item->setData(fileInfo.size(), UIFileSystemModelData_Size);
171 item->setData(fileInfo.lastModified(), UIFileSystemModelData_ChangeTime);
172 item->setData(fileInfo.owner(), UIFileSystemModelData_Owner);
173 item->setData(permissionString(fileInfo.permissions()), UIFileSystemModelData_Permissions);
174
175 /* if the item is a symlink set the target path and
176 check the target if it is a directory: */
177 if (fileInfo.isSymLink()) /** @todo No symlinks here on windows, while fsObjectPropertyString() does see them. RTDirReadEx works wrt symlinks, btw. */
178 {
179 item->setTargetPath(fileInfo.symLinkTarget());
180 item->setIsSymLinkToADirectory(QFileInfo(fileInfo.symLinkTarget()).isDir());
181 }
182 item->setIsHidden(fileInfo.isHidden());
183 fileObjects.insert(fileInfo.fileName(), item);
184 item->setIsOpened(false);
185 }
186 return true;
187}
188
189void UIFileManagerHostTable::sltRetranslateUI()
190{
191 if (m_pLocationLabel)
192 m_pLocationLabel->setText(UIFileManager::tr("Host File System:"));
193 m_strTableName = UIFileManager::tr("Host");
194 UIFileManagerTable::sltRetranslateUI();
195}
196
197void UIFileManagerHostTable::prepareToolbar()
198{
199 if (m_pToolBar && m_pActionPool)
200 {
201 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_GoBackward));
202 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_GoForward));
203 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_GoUp));
204 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_GoHome));
205 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Refresh));
206
207 m_pModifierActionSeparator = m_pToolBar->addSeparator();
208 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Delete));
209 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Rename));
210 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_CreateNewDirectory));
211
212 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Copy));
213 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Cut));
214 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Paste));
215 m_pToolBar->addSeparator();
216 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_SelectAll));
217 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_InvertSelection));
218 m_pToolBar->addSeparator();
219 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_ShowProperties));
220
221 m_selectionDependentActions.insert(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Delete));
222 m_selectionDependentActions.insert(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Rename));
223 m_selectionDependentActions.insert(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_ShowProperties));
224
225 /* Hide cut, copy, and paste for now. We will implement those
226 when we have an API for host file operations: */
227 m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Copy)->setVisible(false);
228 m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Cut)->setVisible(false);
229 m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Paste)->setVisible(false);
230 }
231 setSelectionDependentActionsEnabled(false);
232}
233
234void UIFileManagerHostTable::createFileViewContextMenu(const QWidget *pWidget, const QPoint &point)
235{
236 if (!pWidget)
237 return;
238
239 QMenu menu;
240 menu.addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_GoUp));
241
242 menu.addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_GoHome));
243 menu.addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Refresh));
244 menu.addSeparator();
245 menu.addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Delete));
246 menu.addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Rename));
247 menu.addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_CreateNewDirectory));
248 // menu.addSeparator();
249 menu.addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Copy));
250 menu.addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Cut));
251 menu.addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Paste));
252 menu.addSeparator();
253 menu.addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_SelectAll));
254 menu.addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_InvertSelection));
255 menu.addSeparator();
256 menu.addAction(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_ShowProperties));
257 menu.exec(pWidget->mapToGlobal(point));
258}
259
260void UIFileManagerHostTable::toggleForwardBackwardActions()
261{
262 if (!m_pNavigationWidget)
263 return;
264 if (m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_GoForward))
265 m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_GoForward)->setEnabled(m_pNavigationWidget->canGoForward());
266 if (m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_GoBackward))
267 m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_GoBackward)->setEnabled(m_pNavigationWidget->canGoBackward());
268}
269
270bool UIFileManagerHostTable::isWindowsFileSystem() const
271{
272 return uiCommon().hostOperatingSystem().contains("windows", Qt::CaseInsensitive);
273}
274
275bool UIFileManagerHostTable::readDirectory(const QString& strPath, UIFileSystemItem *parent, bool isStartDir /*= false*/)
276{
277 if (!parent)
278 return false;
279
280 QMap<QString, UIFileSystemItem*> fileObjects;
281 if (!scanDirectory(strPath, parent, fileObjects))
282 return false;
283 checkDotDot(fileObjects, parent, isStartDir);
284 return true;
285}
286
287void UIFileManagerHostTable::deleteByItem(UIFileSystemItem *item)
288{
289 if (item->isUpDirectory())
290 return;
291 if (!item->isDirectory())
292 {
293 QDir itemToDelete;
294 itemToDelete.remove(UIPathOperations::removeTrailingDelimiters(item->path()));
295 }
296 QDir itemToDelete(item->path());
297 itemToDelete.setFilter(QDir::NoDotAndDotDot);
298 /* Try to delete item recursively (in case of directories).
299 note that this is no good way of deleting big directory
300 trees. We need a better error reporting and a kind of progress
301 indicator: */
302 /** @todo replace this recursive delete by a better implementation: */
303 bool deleteSuccess = itemToDelete.removeRecursively();
304
305 if (!deleteSuccess)
306 emit sigLogOutput(QString(item->path()).append(" could not be deleted"), m_strTableName, FileManagerLogType_Error);
307}
308
309void UIFileManagerHostTable::goToHomeDirectory()
310{
311 if (!rootItem() || rootItem()->childCount() <= 0)
312 return;
313 UIFileSystemItem *startDirItem = rootItem()->child(0);
314 if (!startDirItem)
315 return;
316
317 QString userHome = UIPathOperations::sanitize(QDir::homePath());
318 goIntoDirectory(UIPathOperations::pathTrail(userHome));
319}
320
321bool UIFileManagerHostTable::renameItem(UIFileSystemItem *item, const QString &strOldPath)
322{
323 if (!item || item->isUpDirectory())
324 return false;
325 QDir tempDir;
326 if (tempDir.rename(strOldPath, item->path()))
327 return true;
328
329 return false;
330}
331
332bool UIFileManagerHostTable::createDirectory(const QString &path, const QString &directoryName)
333{
334 QDir parentDir(path);
335 if (!parentDir.mkdir(directoryName))
336 {
337 emit sigLogOutput(UIPathOperations::mergePaths(path, directoryName).append(" could not be created"), m_strTableName, FileManagerLogType_Error);
338 return false;
339 }
340
341 return true;
342}
343
344/* static */
345KFsObjType UIFileManagerHostTable::fileType(const QFileInfo &fsInfo)
346{
347 if (!fsInfo.exists())
348 return KFsObjType_Unknown;
349 /* first check if it is symlink becacuse for Qt
350 being smylin and directory/file is not mutually exclusive: */
351 if (fsInfo.isSymLink())
352 return KFsObjType_Symlink;
353 else if (fsInfo.isFile())
354 return KFsObjType_File;
355 else if (fsInfo.isDir())
356 return KFsObjType_Directory;
357 return KFsObjType_Unknown;
358}
359
360/* static */
361KFsObjType UIFileManagerHostTable::fileType(const QString &strPath)
362{
363 return fileType(QFileInfo(strPath));
364}
365
366QString UIFileManagerHostTable::fsObjectPropertyString()
367{
368 QStringList selectedObjects = selectedItemPathList();
369 if (selectedObjects.isEmpty())
370 return QString();
371 if (selectedObjects.size() == 1)
372 {
373 if (selectedObjects.at(0).isNull())
374 return QString();
375 QFileInfo fileInfo(selectedObjects.at(0));
376 if (!fileInfo.exists())
377 return QString();
378 QStringList propertyStringList;
379 /* Name: */
380 propertyStringList << UIFileManager::tr("<b>Name:</b> %1<br/>").arg(fileInfo.fileName());
381 /* Size: */
382 propertyStringList << UIFileManager::tr("<b>Size:</b> %1 bytes").arg(QString::number(fileInfo.size()));
383 if (fileInfo.size() >= m_iKiloByte)
384 propertyStringList << QString(" (%1)").arg(humanReadableSize(fileInfo.size()));
385 propertyStringList << "<br/>";
386 /* Type: */
387 propertyStringList << UIFileManager::tr("<b>Type:</b> %1<br/>").arg(fileTypeString(fileType(fileInfo)));
388 /* Creation Date: */
389 propertyStringList << UIFileManager::tr("<b>Created:</b> %1<br/>").arg(fileInfo.birthTime().toString());
390 /* Last Modification Date: */
391 propertyStringList << UIFileManager::tr("<b>Modified:</b> %1<br/>").arg(fileInfo.lastModified().toString());
392 /* Owner: */
393 propertyStringList << UIFileManager::tr("<b>Owner:</b> %1").arg(fileInfo.owner());
394
395 return propertyStringList.join(QString());
396 }
397
398 int fileCount = 0;
399 int directoryCount = 0;
400 ULONG64 totalSize = 0;
401
402 for(int i = 0; i < selectedObjects.size(); ++i)
403 {
404 QFileInfo fileInfo(selectedObjects.at(i));
405 if (!fileInfo.exists())
406 continue;
407 if (fileInfo.isFile())
408 ++fileCount;
409 if (fileInfo.isDir())
410 ++directoryCount;
411 totalSize += fileInfo.size();
412 }
413 QStringList propertyStringList;
414 propertyStringList << UIFileManager::tr("<b>Selected:</b> %1 files and %2 directories<br/>").
415 arg(QString::number(fileCount)).arg(QString::number(directoryCount));
416 propertyStringList << UIFileManager::tr("<b>Size:</b> %1 bytes").arg(QString::number(totalSize));
417 if (totalSize >= m_iKiloByte)
418 propertyStringList << QString(" (%1)").arg(humanReadableSize(totalSize));
419
420 return propertyStringList.join(QString());
421}
422
423void UIFileManagerHostTable::showProperties()
424{
425 qRegisterMetaType<UIDirectoryStatistics>();
426 QString fsPropertyString = fsObjectPropertyString();
427 if (fsPropertyString.isEmpty())
428 return;
429 if (!m_pPropertiesDialog)
430 m_pPropertiesDialog = new UIPropertiesDialog(this);
431 if (!m_pPropertiesDialog)
432 return;
433
434 UIHostDirectoryDiskUsageComputer *directoryThread = 0;
435
436 QStringList selectedObjects = selectedItemPathList();
437 if ((selectedObjects.size() == 1 && QFileInfo(selectedObjects.at(0)).isDir())
438 || selectedObjects.size() > 1)
439 {
440 directoryThread = new UIHostDirectoryDiskUsageComputer(this, selectedObjects);
441 if (directoryThread)
442 {
443 connect(directoryThread, &UIHostDirectoryDiskUsageComputer::sigResultUpdated,
444 this, &UIFileManagerHostTable::sltReceiveDirectoryStatistics/*, Qt::DirectConnection*/);
445 directoryThread->start();
446 }
447 }
448 m_pPropertiesDialog->setWindowTitle("Properties");
449 m_pPropertiesDialog->setPropertyText(fsPropertyString);
450 m_pPropertiesDialog->execute();
451 if (directoryThread)
452 {
453 if (directoryThread->isRunning())
454 directoryThread->stopRecursion();
455 disconnect(directoryThread, &UIHostDirectoryDiskUsageComputer::sigResultUpdated,
456 this, &UIFileManagerHostTable::sltReceiveDirectoryStatistics/*, Qt::DirectConnection*/);
457 directoryThread->wait();
458 }
459}
460
461void UIFileManagerHostTable::determineDriveLetters()
462{
463 QFileInfoList drive = QDir::drives();
464 m_driveLetterList.clear();
465 for (int i = 0; i < drive.size(); ++i)
466 {
467 if (UIPathOperations::doesPathStartWithDriveLetter(drive[i].filePath()))
468 m_driveLetterList.push_back(drive[i].filePath());
469 }
470}
471
472void UIFileManagerHostTable::determinePathSeparator()
473{
474 setPathSeparator(QDir::separator());
475}
476
477/* static */QString UIFileManagerHostTable::permissionString(QFileDevice::Permissions permissions)
478{
479 QString strPermissions;
480 if (permissions & QFileDevice::ReadOwner)
481 strPermissions += 'r';
482 else
483 strPermissions += '-';
484
485 if (permissions & QFileDevice::WriteOwner)
486 strPermissions += 'w';
487 else
488 strPermissions += '-';
489
490 if (permissions & QFileDevice::ExeOwner)
491 strPermissions += 'x';
492 else
493 strPermissions += '-';
494
495 if (permissions & QFileDevice::ReadGroup)
496 strPermissions += 'r';
497 else
498 strPermissions += '-';
499
500 if (permissions & QFileDevice::WriteGroup)
501 strPermissions += 'w';
502 else
503 strPermissions += '-';
504
505 if (permissions & QFileDevice::ExeGroup)
506 strPermissions += 'x';
507 else
508 strPermissions += '-';
509
510 if (permissions & QFileDevice::ReadOther)
511 strPermissions += 'r';
512 else
513 strPermissions += '-';
514
515 if (permissions & QFileDevice::WriteOther)
516 strPermissions += 'w';
517 else
518 strPermissions += '-';
519
520 if (permissions & QFileDevice::ExeOther)
521 strPermissions += 'x';
522 else
523 strPermissions += '-';
524 return strPermissions;
525}
526
527void UIFileManagerHostTable::prepareActionConnections()
528{
529 connect(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_GoUp), &QAction::triggered,
530 this, &UIFileManagerTable::sltGoUp);
531 connect(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_GoHome), &QAction::triggered,
532 this, &UIFileManagerTable::sltGoHome);
533 connect(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_GoForward), &QAction::triggered,
534 this, &UIFileManagerTable::sltGoForward);
535 connect(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_GoBackward), &QAction::triggered,
536 this, &UIFileManagerTable::sltGoBackward);
537 connect(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Refresh), &QAction::triggered,
538 this, &UIFileManagerTable::sltRefresh);
539 connect(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Delete), &QAction::triggered,
540 this, &UIFileManagerTable::sltDelete);
541 connect(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Rename), &QAction::triggered,
542 this, &UIFileManagerTable::sltRename);
543 connect(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Copy), &QAction::triggered,
544 this, &UIFileManagerTable::sltCopy);
545 connect(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Cut), &QAction::triggered,
546 this, &UIFileManagerTable::sltCut);
547 connect(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_Paste), &QAction::triggered,
548 this, &UIFileManagerTable::sltPaste);
549 connect(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_SelectAll), &QAction::triggered,
550 this, &UIFileManagerTable::sltSelectAll);
551 connect(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_InvertSelection), &QAction::triggered,
552 this, &UIFileManagerTable::sltInvertSelection);
553 connect(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_ShowProperties), &QAction::triggered,
554 this, &UIFileManagerTable::sltShowProperties);
555 connect(m_pActionPool->action(UIActionIndex_M_FileManager_S_Host_CreateNewDirectory), &QAction::triggered,
556 this, &UIFileManagerTable::sltCreateNewDirectory);
557}
558
559#include "UIFileManagerHostTable.moc"
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle
ContactPrivacy/Do Not Sell My InfoTerms of Use