|
|
@ -289,7 +289,7 @@ void Smb4KSystemTray::slotSetupBookmarksMenu()
|
|
|
|
for ( TQStringList::ConstIterator it = display_strings.begin(); it != display_strings.end(); ++it )
|
|
|
|
for ( TQStringList::ConstIterator it = display_strings.begin(); it != display_strings.end(); ++it )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Create the bookmark action:
|
|
|
|
// Create the bookmark action:
|
|
|
|
TDEAction *a = new TDEAction( *it, "folder", TDEShortcut::null(), 0, 0, actionCollection(), "st_"+*it );
|
|
|
|
TDEAction *a = new TDEAction( *it, "folder", TDEShortcut::null(), 0, 0, actionCollection(), ("st_"+*it).utf8() );
|
|
|
|
a->setGroup( "Bookmarks" );
|
|
|
|
a->setGroup( "Bookmarks" );
|
|
|
|
connect( a, TQT_SIGNAL( activated() ), TQT_TQOBJECT(this), TQT_SLOT( slotBookmarkActivated() ) );
|
|
|
|
connect( a, TQT_SIGNAL( activated() ), TQT_TQOBJECT(this), TQT_SLOT( slotBookmarkActivated() ) );
|
|
|
|
|
|
|
|
|
|
|
@ -494,7 +494,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Find the "Force Unmount" action and decide if it needs to be
|
|
|
|
// Find the "Force Unmount" action and decide if it needs to be
|
|
|
|
// enabled/disabled:
|
|
|
|
// enabled/disabled:
|
|
|
|
TDEAction *force = actionCollection()->action( "st_[force]_"+canonical_path );
|
|
|
|
TDEAction *force = actionCollection()->action( ("st_[force]_"+canonical_path).utf8() );
|
|
|
|
|
|
|
|
|
|
|
|
if ( force )
|
|
|
|
if ( force )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -512,7 +512,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
if ( menu )
|
|
|
|
if ( menu )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Unmount action
|
|
|
|
// Unmount action
|
|
|
|
action = actionCollection()->action( "st_[unmount]_"+canonical_path );
|
|
|
|
action = actionCollection()->action( ("st_[unmount]_"+canonical_path).utf8() );
|
|
|
|
|
|
|
|
|
|
|
|
if ( action )
|
|
|
|
if ( action )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -522,7 +522,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __linux__
|
|
|
|
#ifdef __linux__
|
|
|
|
// Force Unmount action
|
|
|
|
// Force Unmount action
|
|
|
|
action = actionCollection()->action( "st_[force]_"+canonical_path );
|
|
|
|
action = actionCollection()->action( ("st_[force]_"+canonical_path).utf8() );
|
|
|
|
|
|
|
|
|
|
|
|
if ( action )
|
|
|
|
if ( action )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -532,7 +532,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// Synchronize action
|
|
|
|
// Synchronize action
|
|
|
|
action = actionCollection()->action( "st_[synchronize]_"+canonical_path );
|
|
|
|
action = actionCollection()->action( ("st_[synchronize]_"+canonical_path).utf8() );
|
|
|
|
|
|
|
|
|
|
|
|
if ( action )
|
|
|
|
if ( action )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -541,7 +541,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Konsole action
|
|
|
|
// Konsole action
|
|
|
|
action = actionCollection()->action( "st_[konsole]_"+canonical_path );
|
|
|
|
action = actionCollection()->action( ("st_[konsole]_"+canonical_path).utf8() );
|
|
|
|
|
|
|
|
|
|
|
|
if ( action )
|
|
|
|
if ( action )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -550,7 +550,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Konqueror action
|
|
|
|
// Konqueror action
|
|
|
|
action = actionCollection()->action( "st_[filemanager]_"+canonical_path );
|
|
|
|
action = actionCollection()->action( ("st_[filemanager]_"+canonical_path).utf8() );
|
|
|
|
|
|
|
|
|
|
|
|
if ( action )
|
|
|
|
if ( action )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -575,7 +575,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
if ( menu )
|
|
|
|
if ( menu )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Unmount action
|
|
|
|
// Unmount action
|
|
|
|
action = actionCollection()->action( "st_[unmount]_"+canonical_path );
|
|
|
|
action = actionCollection()->action( ("st_[unmount]_"+canonical_path).utf8() );
|
|
|
|
|
|
|
|
|
|
|
|
if ( action )
|
|
|
|
if ( action )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -585,7 +585,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __linux__
|
|
|
|
#ifdef __linux__
|
|
|
|
// Force Unmount action
|
|
|
|
// Force Unmount action
|
|
|
|
action = actionCollection()->action( "st_[force]_"+canonical_path );
|
|
|
|
action = actionCollection()->action( ("st_[force]_"+canonical_path).utf8() );
|
|
|
|
|
|
|
|
|
|
|
|
if ( action )
|
|
|
|
if ( action )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -595,7 +595,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// Synchronize action
|
|
|
|
// Synchronize action
|
|
|
|
action = actionCollection()->action( "st_[synchronize]_"+canonical_path );
|
|
|
|
action = actionCollection()->action( ("st_[synchronize]_"+canonical_path).utf8() );
|
|
|
|
|
|
|
|
|
|
|
|
if ( action )
|
|
|
|
if ( action )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -604,7 +604,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Konsole action
|
|
|
|
// Konsole action
|
|
|
|
action = actionCollection()->action( "st_[konsole]_"+canonical_path );
|
|
|
|
action = actionCollection()->action( ("st_[konsole]_"+canonical_path).utf8() );
|
|
|
|
|
|
|
|
|
|
|
|
if ( action )
|
|
|
|
if ( action )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -613,7 +613,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Konqueror action
|
|
|
|
// Konqueror action
|
|
|
|
action = actionCollection()->action( "st_[filemanager]_"+canonical_path );
|
|
|
|
action = actionCollection()->action( ("st_[filemanager]_"+canonical_path).utf8() );
|
|
|
|
|
|
|
|
|
|
|
|
if ( action )
|
|
|
|
if ( action )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -638,7 +638,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
if ( menu )
|
|
|
|
if ( menu )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Unmount action
|
|
|
|
// Unmount action
|
|
|
|
action = actionCollection()->action( "st_[unmount]_"+canonical_path );
|
|
|
|
action = actionCollection()->action( ("st_[unmount]_"+canonical_path).utf8() );
|
|
|
|
|
|
|
|
|
|
|
|
if ( action )
|
|
|
|
if ( action )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -648,7 +648,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __linux__
|
|
|
|
#ifdef __linux__
|
|
|
|
// Force Unmount action
|
|
|
|
// Force Unmount action
|
|
|
|
action = actionCollection()->action( "st_[force]_"+canonical_path );
|
|
|
|
action = actionCollection()->action( ("st_[force]_"+canonical_path).utf8() );
|
|
|
|
|
|
|
|
|
|
|
|
if ( action )
|
|
|
|
if ( action )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -658,7 +658,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// Synchronize action
|
|
|
|
// Synchronize action
|
|
|
|
action = actionCollection()->action( "st_[synchronize]_"+canonical_path );
|
|
|
|
action = actionCollection()->action( ("st_[synchronize]_"+canonical_path).utf8() );
|
|
|
|
|
|
|
|
|
|
|
|
if ( action )
|
|
|
|
if ( action )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -667,7 +667,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Konsole action
|
|
|
|
// Konsole action
|
|
|
|
action = actionCollection()->action( "st_[konsole]_"+canonical_path );
|
|
|
|
action = actionCollection()->action( ("st_[konsole]_"+canonical_path).utf8() );
|
|
|
|
|
|
|
|
|
|
|
|
if ( action )
|
|
|
|
if ( action )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -676,7 +676,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Konqueror action
|
|
|
|
// Konqueror action
|
|
|
|
action = actionCollection()->action( "st_[filemanager]_"+canonical_path );
|
|
|
|
action = actionCollection()->action( ("st_[filemanager]_"+canonical_path).utf8() );
|
|
|
|
|
|
|
|
|
|
|
|
if ( action )
|
|
|
|
if ( action )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -866,9 +866,9 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
|
|
|
|
|
|
|
|
// Disable actions that should not be performed on an inaccessible
|
|
|
|
// Disable actions that should not be performed on an inaccessible
|
|
|
|
// share:
|
|
|
|
// share:
|
|
|
|
actionCollection()->action( TQString("st_[synchronize]_"+(*it)->canonicalPath()) )->setEnabled( false );
|
|
|
|
actionCollection()->action( TQString("st_[synchronize]_"+(*it)->canonicalPath()).utf8() )->setEnabled( false );
|
|
|
|
actionCollection()->action( TQString("st_[konsole]_"+(*it)->canonicalPath()) )->setEnabled( false );
|
|
|
|
actionCollection()->action( TQString("st_[konsole]_"+(*it)->canonicalPath()).utf8() )->setEnabled( false );
|
|
|
|
actionCollection()->action( TQString("st_[filemanager]_"+(*it)->canonicalPath()) )->setEnabled( false );
|
|
|
|
actionCollection()->action( TQString("st_[filemanager]_"+(*it)->canonicalPath()).utf8() )->setEnabled( false );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Change the text if necessary:
|
|
|
|
// Change the text if necessary:
|
|
|
@ -904,7 +904,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
TDEAction *action = NULL;
|
|
|
|
TDEAction *action = NULL;
|
|
|
|
|
|
|
|
|
|
|
|
// Unmount action
|
|
|
|
// Unmount action
|
|
|
|
action = actionCollection()->action( "st_[unmount]_"+canonical_path );
|
|
|
|
action = actionCollection()->action( ("st_[unmount]_"+canonical_path).utf8() );
|
|
|
|
|
|
|
|
|
|
|
|
if ( action )
|
|
|
|
if ( action )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -914,7 +914,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __linux__
|
|
|
|
#ifdef __linux__
|
|
|
|
// Force Unmount action
|
|
|
|
// Force Unmount action
|
|
|
|
action = actionCollection()->action( "st_[force]_"+canonical_path );
|
|
|
|
action = actionCollection()->action( ("st_[force]_"+canonical_path).utf8() );
|
|
|
|
|
|
|
|
|
|
|
|
if ( action )
|
|
|
|
if ( action )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -924,7 +924,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// Synchronize action
|
|
|
|
// Synchronize action
|
|
|
|
action = actionCollection()->action( "st_[synchronize]_"+canonical_path );
|
|
|
|
action = actionCollection()->action( ("st_[synchronize]_"+canonical_path).utf8() );
|
|
|
|
|
|
|
|
|
|
|
|
if ( action )
|
|
|
|
if ( action )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -933,7 +933,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Konsole action
|
|
|
|
// Konsole action
|
|
|
|
action = actionCollection()->action( "st_[konsole]_"+canonical_path );
|
|
|
|
action = actionCollection()->action( ("st_[konsole]_"+canonical_path).utf8() );
|
|
|
|
|
|
|
|
|
|
|
|
if ( action )
|
|
|
|
if ( action )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -942,7 +942,7 @@ void Smb4KSystemTray::slotSetupSharesMenu()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Konqueror action
|
|
|
|
// Konqueror action
|
|
|
|
action = actionCollection()->action( "st_[filemanager]_"+canonical_path );
|
|
|
|
action = actionCollection()->action( ("st_[filemanager]_"+canonical_path).utf8() );
|
|
|
|
|
|
|
|
|
|
|
|
if ( action )
|
|
|
|
if ( action )
|
|
|
|
{
|
|
|
|
{
|
|
|
|