|
|
@ -31,32 +31,32 @@ using namespace kt;
|
|
|
|
KTorrentViewMenu::KTorrentViewMenu (KTorrentView *parent, const char *name )
|
|
|
|
KTorrentViewMenu::KTorrentViewMenu (KTorrentView *parent, const char *name )
|
|
|
|
: TDEPopupMenu ( parent, name ),view(parent)
|
|
|
|
: TDEPopupMenu ( parent, name ),view(parent)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KIconLoader* iload = TDEGlobal::iconLoader();
|
|
|
|
TDEIconLoader* iload = TDEGlobal::iconLoader();
|
|
|
|
|
|
|
|
|
|
|
|
stop_id = insertItem(
|
|
|
|
stop_id = insertItem(
|
|
|
|
iload->loadIconSet("ktstop",KIcon::Small),i18n("to stop", "Stop"),
|
|
|
|
iload->loadIconSet("ktstop",TDEIcon::Small),i18n("to stop", "Stop"),
|
|
|
|
parent,TQT_SLOT(stopDownloads()));
|
|
|
|
parent,TQT_SLOT(stopDownloads()));
|
|
|
|
|
|
|
|
|
|
|
|
start_id = insertItem(
|
|
|
|
start_id = insertItem(
|
|
|
|
iload->loadIconSet("ktstart",KIcon::Small),i18n("to start", "Start"),
|
|
|
|
iload->loadIconSet("ktstart",TDEIcon::Small),i18n("to start", "Start"),
|
|
|
|
parent,TQT_SLOT(startDownloads()));
|
|
|
|
parent,TQT_SLOT(startDownloads()));
|
|
|
|
|
|
|
|
|
|
|
|
remove_id = insertItem(
|
|
|
|
remove_id = insertItem(
|
|
|
|
iload->loadIconSet("ktremove",KIcon::Small),i18n("Remove Torrent"),
|
|
|
|
iload->loadIconSet("ktremove",TDEIcon::Small),i18n("Remove Torrent"),
|
|
|
|
parent,TQT_SLOT(removeDownloads()));
|
|
|
|
parent,TQT_SLOT(removeDownloads()));
|
|
|
|
|
|
|
|
|
|
|
|
remove_all_id = insertItem(
|
|
|
|
remove_all_id = insertItem(
|
|
|
|
iload->loadIconSet("ktremove",KIcon::Small),i18n("Remove Torrent and Data"),
|
|
|
|
iload->loadIconSet("ktremove",TDEIcon::Small),i18n("Remove Torrent and Data"),
|
|
|
|
parent,TQT_SLOT(removeDownloadsAndData()));
|
|
|
|
parent,TQT_SLOT(removeDownloadsAndData()));
|
|
|
|
|
|
|
|
|
|
|
|
queue_id = insertItem(
|
|
|
|
queue_id = insertItem(
|
|
|
|
iload->loadIconSet("player_playlist",KIcon::Small),i18n("Enqueue/Dequeue"),
|
|
|
|
iload->loadIconSet("player_playlist",TDEIcon::Small),i18n("Enqueue/Dequeue"),
|
|
|
|
parent,TQT_SLOT(queueSlot()));
|
|
|
|
parent,TQT_SLOT(queueSlot()));
|
|
|
|
|
|
|
|
|
|
|
|
insertSeparator();
|
|
|
|
insertSeparator();
|
|
|
|
|
|
|
|
|
|
|
|
add_peer_id = insertItem(
|
|
|
|
add_peer_id = insertItem(
|
|
|
|
iload->loadIconSet("add", KIcon::Small), i18n("Add Peers"),
|
|
|
|
iload->loadIconSet("add", TDEIcon::Small), i18n("Add Peers"),
|
|
|
|
parent, TQT_SLOT(showAddPeersWidget()));
|
|
|
|
parent, TQT_SLOT(showAddPeersWidget()));
|
|
|
|
|
|
|
|
|
|
|
|
peer_sources_menu = new TDEPopupMenu(this);
|
|
|
|
peer_sources_menu = new TDEPopupMenu(this);
|
|
|
@ -69,19 +69,19 @@ KTorrentViewMenu::KTorrentViewMenu (KTorrentView *parent, const char *name )
|
|
|
|
insertSeparator();
|
|
|
|
insertSeparator();
|
|
|
|
|
|
|
|
|
|
|
|
announce_id = insertItem(
|
|
|
|
announce_id = insertItem(
|
|
|
|
iload->loadIconSet("apply",KIcon::Small),i18n("Manual Announce"),
|
|
|
|
iload->loadIconSet("apply",TDEIcon::Small),i18n("Manual Announce"),
|
|
|
|
parent,TQT_SLOT(manualAnnounce()));
|
|
|
|
parent,TQT_SLOT(manualAnnounce()));
|
|
|
|
|
|
|
|
|
|
|
|
preview_id = insertItem(
|
|
|
|
preview_id = insertItem(
|
|
|
|
iload->loadIconSet("frame_image",KIcon::Small),i18n("Preview"),
|
|
|
|
iload->loadIconSet("frame_image",TDEIcon::Small),i18n("Preview"),
|
|
|
|
parent, TQT_SLOT(previewFiles()));
|
|
|
|
parent, TQT_SLOT(previewFiles()));
|
|
|
|
|
|
|
|
|
|
|
|
insertSeparator();
|
|
|
|
insertSeparator();
|
|
|
|
dirs_sub_menu = new TDEPopupMenu(this);
|
|
|
|
dirs_sub_menu = new TDEPopupMenu(this);
|
|
|
|
dirs_id = insertItem(i18n("Open Directory"), dirs_sub_menu);
|
|
|
|
dirs_id = insertItem(i18n("Open Directory"), dirs_sub_menu);
|
|
|
|
outputdir_id = dirs_sub_menu->insertItem(iload->loadIconSet("folder",KIcon::Small), i18n("Data Directory"),
|
|
|
|
outputdir_id = dirs_sub_menu->insertItem(iload->loadIconSet("folder",TDEIcon::Small), i18n("Data Directory"),
|
|
|
|
parent, TQT_SLOT(openOutputDirectory()));
|
|
|
|
parent, TQT_SLOT(openOutputDirectory()));
|
|
|
|
torxdir_id = dirs_sub_menu->insertItem(iload->loadIconSet("folder",KIcon::Small), i18n("Temporary Directory"),
|
|
|
|
torxdir_id = dirs_sub_menu->insertItem(iload->loadIconSet("folder",TDEIcon::Small), i18n("Temporary Directory"),
|
|
|
|
parent, TQT_SLOT(openTorXDirectory()));
|
|
|
|
parent, TQT_SLOT(openTorXDirectory()));
|
|
|
|
|
|
|
|
|
|
|
|
downloaddir_id = insertItem(i18n("Set Download Location"), parent, TQT_SLOT(setDownloadLocationSlot()));
|
|
|
|
downloaddir_id = insertItem(i18n("Set Download Location"), parent, TQT_SLOT(setDownloadLocationSlot()));
|
|
|
|