Added stream editing in a separate dialog box

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Signed-off-by: ormorph <roma251078@mail.ru>
pull/12/head
Michele Calgaro 1 year ago
parent ee7c7b4016
commit fb82c1b008
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -17,13 +17,13 @@ link_directories(
tde_add_executable( ${PROJECT_NAME} AUTOMOC tde_add_executable( ${PROJECT_NAME} AUTOMOC
SOURCES SOURCES
addnewstreamimpl.cpp
addnewstream.ui
kstreamripperbase.ui kstreamripperbase.ui
kstreamripper.cpp kstreamripper.cpp
main.cpp main.cpp
processcontroller.cpp processcontroller.cpp
processlistviewitem.cpp processlistviewitem.cpp
streampropertiesdlgbase.ui
streampropertiesdlg.cpp
LINK LINK
tdecore-shared tdecore-shared
tdeui-shared tdeui-shared

@ -43,7 +43,7 @@
#include <tdeversion.h> #include <tdeversion.h>
#include "kstreamripper.h" #include "kstreamripper.h"
#include "addnewstreamimpl.h" #include "streampropertiesdlg.h"
#include "processlistviewitem.h" #include "processlistviewitem.h"
#include "processcontroller.h" #include "processcontroller.h"
@ -56,23 +56,23 @@ KStreamRipper::KStreamRipper( TQWidget* parent, const char* name )
#endif #endif
{ {
m_destEdit->setText( TQDir::homeDirPath() ); m_destEdit->setText( TQDir::homeDirPath() );
m_streamsListView->addColumn( "Name" ); m_streamsListView->addColumn( "Name" );
m_streamsListView->addColumn( "Status" ); m_streamsListView->addColumn( "Status" );
m_streamsListView->addColumn( "Size" ); m_streamsListView->addColumn( "Size" );
//app config //app config
TDEConfig *appConfig = TDEGlobal::config(); TDEConfig *appConfig = TDEGlobal::config();
m_destEdit->setText( appConfig->readEntry( "Destination" , "" ) ); m_destEdit->setText( appConfig->readEntry( "Destination" , "" ) );
m_timeEdit->setText( appConfig->readEntry( "Riptime", "0" )); m_timeEdit->setText( appConfig->readEntry( "Riptime", "0" ));
m_tuneInEdit->setText( appConfig->readEntry( "Command", "xmms <url>" )); m_tuneInEdit->setText( appConfig->readEntry( "Command", "xmms <url>" ));
m_id3Checkbox->setChecked( appConfig->readBoolEntry( "Id3Tag", 1 )); m_id3Checkbox->setChecked( appConfig->readBoolEntry( "Id3Tag", 1 ));
m_unicodeCheckbox->setChecked( appConfig->readBoolEntry( "Unicode", 1 )); m_unicodeCheckbox->setChecked( appConfig->readBoolEntry( "Unicode", 1 ));
//listview entrys //listview entrys
TQStringList nameList,urlList,descList; TQStringList nameList,urlList,descList;
nameList = appConfig->readListEntry( "names" ); nameList = appConfig->readListEntry( "names" );
urlList = appConfig->readListEntry( "urls" ); urlList = appConfig->readListEntry( "urls" );
descList = appConfig->readListEntry( "descs" ); descList = appConfig->readListEntry( "descs" );
@ -80,21 +80,22 @@ KStreamRipper::KStreamRipper( TQWidget* parent, const char* name )
iter1 = nameList.begin(); iter1 = nameList.begin();
iter2 = urlList.begin(); iter2 = urlList.begin();
iter3 = descList.begin(); iter3 = descList.begin();
for( ; iter1 != nameList.end() && iter2 != urlList.end() && iter3 != descList.end(); ++iter1, ++iter2, ++iter3 ) for( ; iter1 != nameList.end() && iter2 != urlList.end() && iter3 != descList.end(); ++iter1, ++iter2, ++iter3 )
{ {
ProcessListViewItem * procItem = new ProcessListViewItem( m_streamsListView, *iter1, "", ""); ProcessListViewItem * procItem = new ProcessListViewItem( m_streamsListView, *iter1, "", "");
procItem->setRenameEnabled(0, true); procItem->setRenameEnabled(0, true);
ProcessController *pc = procItem->getProcessController(); ProcessController *pc = procItem->getProcessController();
pc->setUrl( *iter2 ); pc->setUrl( *iter2 );
pc->setDescription( *iter3 ); pc->setDescription( *iter3 );
connect(pc, TQT_SIGNAL(stopRipSignal(ProcessController*)), this, TQT_SLOT(ripStopped(ProcessController*))); connect(pc, TQT_SIGNAL(stopRipSignal(ProcessController*)), this, TQT_SLOT(ripStopped(ProcessController*)));
} }
//CONNECTS //CONNECTS
//clicks //clicks
connect(m_addStreamButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(addStreamButtonClicked())); connect(m_addStreamButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(addStreamButtonClicked()));
connect(m_editStreamButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(editStreamButtonClicked()));
connect(m_deleteStreamButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(deleteStreamButtonClicked())); connect(m_deleteStreamButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(deleteStreamButtonClicked()));
connect(m_tuneInButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(tuneInButtonClicked())); connect(m_tuneInButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(tuneInButtonClicked()));
connect(m_ripButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(ripButtonClicked())); connect(m_ripButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(ripButtonClicked()));
@ -103,7 +104,7 @@ KStreamRipper::KStreamRipper( TQWidget* parent, const char* name )
connect(m_helpButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(helpButtonClicked())); connect(m_helpButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(helpButtonClicked()));
connect(m_aboutButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(aboutButtonClicked())); connect(m_aboutButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(aboutButtonClicked()));
connect(m_quitButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(quitButtonClicked())); connect(m_quitButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(quitButtonClicked()));
//other //other
connect( m_streamsListView, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT( selectedNewListItem()) ); connect( m_streamsListView, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT( selectedNewListItem()) );
connect( m_DescriptionEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT( descriptionChanged()) ); connect( m_DescriptionEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT( descriptionChanged()) );
@ -111,9 +112,9 @@ KStreamRipper::KStreamRipper( TQWidget* parent, const char* name )
// zeroconf // zeroconf
#if KDE_IS_VERSION(3,3,90) #if KDE_IS_VERSION(3,3,90)
connect(&m_browser, TQT_SIGNAL(serviceAdded(DNSSD::RemoteService::Ptr)), this, connect(&m_browser, TQT_SIGNAL(serviceAdded(DNSSD::RemoteService::Ptr)), this,
TQT_SLOT(serviceAdded(DNSSD::RemoteService::Ptr))); TQT_SLOT(serviceAdded(DNSSD::RemoteService::Ptr)));
connect(&m_browser, TQT_SIGNAL(serviceRemoved(DNSSD::RemoteService::Ptr)), this, connect(&m_browser, TQT_SIGNAL(serviceRemoved(DNSSD::RemoteService::Ptr)), this,
TQT_SLOT(serviceRemoved(DNSSD::RemoteService::Ptr))); TQT_SLOT(serviceRemoved(DNSSD::RemoteService::Ptr)));
m_browser.startBrowse(); m_browser.startBrowse();
#endif #endif
@ -166,10 +167,23 @@ void KStreamRipper::closeEvent( TQCloseEvent *e )
//SLOTS //SLOTS
void KStreamRipper::addStreamButtonClicked() void KStreamRipper::addStreamButtonClicked()
{ {
AddNewStreamImpl *test = new AddNewStreamImpl( this ); StreamPropertiesDlg *dlg = new StreamPropertiesDlg(this);
connect( test, TQT_SIGNAL( finished( AddNewStreamImpl* )), this, TQT_SLOT( addStreamFinished( AddNewStreamImpl* )) ); connect( dlg, TQT_SIGNAL( finished( StreamPropertiesDlg* )), this, TQT_SLOT( addStreamFinished( StreamPropertiesDlg* )) );
dlg->setCaption("Add Stream...");
test->show(); dlg->show();
}
void KStreamRipper::editStreamButtonClicked()
{
ProcessListViewItem *ProcItem = (ProcessListViewItem*)m_streamsListView->currentItem();
StreamPropertiesDlg *dlg = new StreamPropertiesDlg(this);
connect( dlg, TQT_SIGNAL( finished( StreamPropertiesDlg* )), this, TQT_SLOT( editStreamFinished( StreamPropertiesDlg* )) );
dlg->setCaption("Edit Stream");
dlg->d_nameEdit->setText(ProcItem->text(0));
dlg->d_urlEdit->setText(ProcItem->getProcessController()->getUrl());
dlg->d_descEdit->setText(ProcItem->getProcessController()->getDescription());
dlg->show();
} }
void KStreamRipper::deleteStreamButtonClicked() void KStreamRipper::deleteStreamButtonClicked()
@ -184,12 +198,12 @@ void KStreamRipper::tuneInButtonClicked()
if( m_streamsListView->currentItem() ) if( m_streamsListView->currentItem() )
{ {
TQString command = m_tuneInEdit->text().replace( "<url>", m_UrlEdit->text() ); TQString command = m_tuneInEdit->text().replace( "<url>", m_UrlEdit->text() );
TQStringList commands = TQStringList::split( " ", command ); TQStringList commands = TQStringList::split( " ", command );
TQProcess *process = new TQProcess( this ); TQProcess *process = new TQProcess( this );
process->setArguments( commands ); process->setArguments( commands );
process->start(); process->start();
} }
else ; else ;
@ -208,13 +222,13 @@ void KStreamRipper::serviceAdded(DNSSD::RemoteService::Ptr srv)
void KStreamRipper::serviceRemoved(DNSSD::RemoteService::Ptr srv) void KStreamRipper::serviceRemoved(DNSSD::RemoteService::Ptr srv)
{ {
TQListViewItemIterator iter( m_streamsListView ); TQListViewItemIterator iter( m_streamsListView );
while( iter.current() ) { while( iter.current() ) {
ProcessListViewItem * ProcItem = (ProcessListViewItem*)iter.current(); ProcessListViewItem * ProcItem = (ProcessListViewItem*)iter.current();
if (ProcItem->getProcessController()->getAutomatic() && if (ProcItem->getProcessController()->getAutomatic() &&
srv==ProcItem->getProcessController()->getService()) { srv==ProcItem->getProcessController()->getService()) {
delete ProcItem; delete ProcItem;
return; return;
} }
++iter; ++iter;
} }
@ -281,32 +295,29 @@ void KStreamRipper::quitButtonClicked()
void KStreamRipper::selectedNewListItem() void KStreamRipper::selectedNewListItem()
{ {
if ( !m_streamsListView->selectedItem() ) { if ( !m_streamsListView->selectedItem() ) {
m_editStreamButton->setEnabled( false );
m_deleteStreamButton->setEnabled( false ); m_deleteStreamButton->setEnabled( false );
m_tuneInButton->setEnabled( false ); m_tuneInButton->setEnabled( false );
m_ripButton->setEnabled( false ); m_ripButton->setEnabled( false );
m_DescriptionEdit->setText( TQString() ); m_DescriptionEdit->setText( TQString() );
m_DescriptionEdit->setEnabled(false); m_DescriptionEdit->setEnabled(false);
m_UrlEdit->setEnabled(false); m_UrlEdit->setEnabled(false);
m_UrlEdit->setText( TQString() ); m_UrlEdit->setText( TQString() );
return; return;
} }
ProcessController * ProcCtl = ((ProcessListViewItem*)m_streamsListView->currentItem())->getProcessController(); ProcessController * ProcCtl = ((ProcessListViewItem*)m_streamsListView->currentItem())->getProcessController();
// reconfigure what the user is allowed to do based on if this process is ripping // reconfigure what the user is allowed to do based on if this process is ripping
m_ripButton->setEnabled( !ProcCtl->getStatus() ); m_ripButton->setEnabled( !ProcCtl->getStatus() );
m_stopRipButton->setEnabled( ProcCtl->getStatus() ); m_stopRipButton->setEnabled( ProcCtl->getStatus() );
m_tuneInButton->setEnabled( true ); m_tuneInButton->setEnabled( true );
m_editStreamButton->setEnabled( !ProcCtl->getAutomatic() );
m_deleteStreamButton->setEnabled( !ProcCtl->getAutomatic() ); m_deleteStreamButton->setEnabled( !ProcCtl->getAutomatic() );
m_DescriptionEdit->setText(ProcCtl->getDescription()); m_DescriptionEdit->setText(ProcCtl->getDescription());
m_DescriptionEdit->setEnabled(true); m_DescriptionEdit->setEnabled(true);
m_UrlEdit->setText(ProcCtl->getUrl()); m_UrlEdit->setText(ProcCtl->getUrl());
m_UrlEdit->setEnabled( !ProcCtl->getAutomatic() ); m_UrlEdit->setEnabled( !ProcCtl->getAutomatic() );
// maybe these are more elegant than the next two functions, assuming the slots are implemented in ProcessController
//connect(m_DescriptionEdit, TQT_SIGNAL(textChanged(const TQString&)), (ProcessListViewItem*)m_streamsListView->currentItem()->getProcessController(), TQT_SIGNAL(descriptionChanged(const TQString&))
//connect(m_UrlEdit, TQT_SIGNAL(textChanged(const TQString&)), (ProcessListViewItem*)m_streamsListView->currentItem()->getProcessController(), TQT_SIGNAL(urlChanged(const TQString&))
} }
void KStreamRipper::descriptionChanged() void KStreamRipper::descriptionChanged()
@ -323,8 +334,7 @@ void KStreamRipper::urlChanged()
ProcItem->getProcessController()->setUrl(m_UrlEdit->text()); ProcItem->getProcessController()->setUrl(m_UrlEdit->text());
} }
void KStreamRipper::addStreamFinished( StreamPropertiesDlg *e )
void KStreamRipper::addStreamFinished( AddNewStreamImpl *e )
{ {
ProcessListViewItem *procItem = new ProcessListViewItem( m_streamsListView, e->d_nameEdit->text(), "", ""); ProcessListViewItem *procItem = new ProcessListViewItem( m_streamsListView, e->d_nameEdit->text(), "", "");
ProcessController *pc = procItem->getProcessController(); ProcessController *pc = procItem->getProcessController();
@ -333,4 +343,15 @@ void KStreamRipper::addStreamFinished( AddNewStreamImpl *e )
connect(pc, TQT_SIGNAL(stopRipSignal(ProcessController*)), this, TQT_SLOT(ripStopped(ProcessController*))); connect(pc, TQT_SIGNAL(stopRipSignal(ProcessController*)), this, TQT_SLOT(ripStopped(ProcessController*)));
} }
void KStreamRipper::editStreamFinished( StreamPropertiesDlg *e )
{
ProcessListViewItem *procItem = (ProcessListViewItem*)m_streamsListView->currentItem();
ProcessController *pc = procItem->getProcessController();
procItem->setText(0, e->d_nameEdit->text());
pc->setUrl( e->d_urlEdit->text() );
pc->setDescription( e->d_descEdit->text() );
m_UrlEdit->setText( e->d_urlEdit->text() );
m_DescriptionEdit->setText( e->d_descEdit->text() );
}
#include "kstreamripper.moc" #include "kstreamripper.moc"

@ -36,7 +36,7 @@ namespace DNSSD { namespace RemoteService { typedef int Ptr; } }
#endif #endif
class AddNewStreamImpl; class StreamPropertiesDlg;
class TQString; class TQString;
class KStreamRipper : public KStreamRipperBase class KStreamRipper : public KStreamRipperBase
@ -57,6 +57,7 @@ public:
protected slots: protected slots:
void addStreamButtonClicked(); void addStreamButtonClicked();
void editStreamButtonClicked();
void deleteStreamButtonClicked(); void deleteStreamButtonClicked();
void tuneInButtonClicked(); void tuneInButtonClicked();
void ripButtonClicked(); void ripButtonClicked();
@ -71,7 +72,9 @@ protected slots:
void descriptionChanged(); void descriptionChanged();
void urlChanged(); void urlChanged();
void addStreamFinished( AddNewStreamImpl* ); void addStreamFinished( StreamPropertiesDlg* );
void editStreamFinished( StreamPropertiesDlg* );
#if KDE_IS_VERSION(3,3,90) #if KDE_IS_VERSION(3,3,90)
void serviceAdded(DNSSD::RemoteService::Ptr srv); void serviceAdded(DNSSD::RemoteService::Ptr srv);
void serviceRemoved(DNSSD::RemoteService::Ptr srv); void serviceRemoved(DNSSD::RemoteService::Ptr srv);

@ -116,30 +116,27 @@
</widget> </widget>
<widget class="TQPushButton" row="0" column="1"> <widget class="TQPushButton" row="0" column="1">
<property name="name"> <property name="name">
<cstring>m_deleteStreamButton</cstring> <cstring>m_editStreamButton</cstring>
</property> </property>
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="text"> <property name="text">
<string>&amp;Delete Stream</string> <string>&amp;Edit Stream</string>
</property> </property>
</widget> </widget>
<widget class="TQPushButton" row="0" column="4"> <widget class="TQPushButton" row="0" column="2">
<property name="name"> <property name="name">
<cstring>m_stopRipButton</cstring> <cstring>m_deleteStreamButton</cstring>
</property> </property>
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="text"> <property name="text">
<string>&amp;Stop Rip</string> <string>&amp;Delete Stream</string>
</property>
<property name="on">
<bool>false</bool>
</property> </property>
</widget> </widget>
<widget class="TQPushButton" row="0" column="2"> <widget class="TQPushButton" row="1" column="0">
<property name="name"> <property name="name">
<cstring>m_tuneInButton</cstring> <cstring>m_tuneInButton</cstring>
</property> </property>
@ -150,7 +147,7 @@
<string>&amp;Tune in</string> <string>&amp;Tune in</string>
</property> </property>
</widget> </widget>
<widget class="TQPushButton" row="0" column="3"> <widget class="TQPushButton" row="1" column="1">
<property name="name"> <property name="name">
<cstring>m_ripButton</cstring> <cstring>m_ripButton</cstring>
</property> </property>
@ -161,6 +158,20 @@
<string>&amp;Rip Stream</string> <string>&amp;Rip Stream</string>
</property> </property>
</widget> </widget>
<widget class="TQPushButton" row="1" column="2">
<property name="name">
<cstring>m_stopRipButton</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>&amp;Stop Rip</string>
</property>
<property name="on">
<bool>false</bool>
</property>
</widget>
</grid> </grid>
</widget> </widget>
<widget class="TQListView" row="1" column="0" rowspan="1" colspan="2"> <widget class="TQListView" row="1" column="0" rowspan="1" colspan="2">

@ -23,43 +23,42 @@
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqlineedit.h> #include <tqlineedit.h>
#include "addnewstreamimpl.h" #include "streampropertiesdlg.h"
AddNewStreamImpl::AddNewStreamImpl( TQWidget* parent, const char* name ) StreamPropertiesDlg::StreamPropertiesDlg(TQWidget *parent, const char *name)
: AddNewStream( parent,name, true ) : StreamPropertiesDlgBase(parent, name, true)
{ {
connect( d_okButton, TQT_SIGNAL( clicked()), this, TQT_SLOT( okButtonClicked()) ); connect( d_okButton, TQT_SIGNAL( clicked()), this, TQT_SLOT( okButtonClicked()) );
connect( d_cancelButton, TQT_SIGNAL( clicked()), this, TQT_SLOT( cancelButtonClicked()) ); connect( d_cancelButton, TQT_SIGNAL( clicked()), this, TQT_SLOT( cancelButtonClicked()) );
} }
AddNewStreamImpl::~AddNewStreamImpl() StreamPropertiesDlg::~StreamPropertiesDlg()
{ {
} }
//SLOTS //SLOTS
void StreamPropertiesDlg::okButtonClicked()
void AddNewStreamImpl::okButtonClicked()
{ {
if( d_nameEdit->text() != "" && d_urlEdit->text() != "") if( d_nameEdit->text() != "" && d_urlEdit->text() != "")
{ {
emit finished( this ); emit finished( this );
this->close(); this->close();
} }
else else
{ {
KMessageBox::error( this, "You forgot to fill out one or more fields, please do it now.", KMessageBox::error( this, "You forgot to fill out one or more fields, please do it now.",
"Missing Information" ); "Missing Information" );
} }
} }
void AddNewStreamImpl::cancelButtonClicked() void StreamPropertiesDlg::cancelButtonClicked()
{ {
this->close(); this->close();
} }
#include "addnewstreamimpl.moc" #include "streampropertiesdlg.moc"

@ -18,22 +18,20 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/ ***************************************************************************/
#ifndef ADDNEWSTREAMIMPL_H #ifndef STREAM_PROPERTIES_DLG_BASE_H
#define ADDNEWSTREAMIMPL_H #define STREAM_PROPERTIES_DLG_BASE_H
#include "addnewstream.h" #include "streampropertiesdlgbase.h"
class AddNewStreamImpl : public AddNewStream
class StreamPropertiesDlg : public StreamPropertiesDlgBase
{ {
TQ_OBJECT TQ_OBJECT
public: public:
AddNewStreamImpl( TQWidget* parent = 0, const char* name = 0 ); StreamPropertiesDlg(TQWidget *parent = nullptr, const char *name = nullptr);
~AddNewStreamImpl(); ~StreamPropertiesDlg();
protected:
protected slots: protected slots:
@ -42,8 +40,7 @@ protected slots:
signals: signals:
void finished( AddNewStreamImpl* ); void finished( StreamPropertiesDlg* );
}; };
#endif #endif

@ -1,20 +1,17 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>AddNewStream</class> <class>StreamPropertiesDlgBase</class>
<widget class="TQDialog"> <widget class="TQDialog">
<property name="name"> <property name="name">
<cstring>AddNewStream</cstring> <cstring>StreamPropertiesDlgBase</cstring>
</property> </property>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>383</width> <width>450</width>
<height>287</height> <height>200</height>
</rect> </rect>
</property> </property>
<property name="caption">
<string>Add Stream....</string>
</property>
<property name="focusPolicy"> <property name="focusPolicy">
<enum>TabFocus</enum> <enum>TabFocus</enum>
</property> </property>
@ -44,30 +41,25 @@
<string>Name:</string> <string>Name:</string>
</property> </property>
</widget> </widget>
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>d_descriptionLabel</cstring>
</property>
<property name="text">
<string>Description:</string>
</property>
</widget>
<widget class="TQLineEdit" row="0" column="1"> <widget class="TQLineEdit" row="0" column="1">
<property name="name"> <property name="name">
<cstring>d_nameEdit</cstring> <cstring>d_nameEdit</cstring>
</property> </property>
</widget> </widget>
<widget class="TQLineEdit" row="1" column="1"> <widget class="TQLabel" row="1" column="0">
<property name="name"> <property name="name">
<cstring>d_urlEdit</cstring> <cstring>d_descriptionLabel</cstring>
</property>
<property name="text">
<string>Description:</string>
</property> </property>
</widget> </widget>
<widget class="TQLineEdit" row="2" column="1"> <widget class="TQLineEdit" row="1" column="1">
<property name="name"> <property name="name">
<cstring>d_descEdit</cstring> <cstring>d_descEdit</cstring>
</property> </property>
</widget> </widget>
<widget class="TQLabel" row="1" column="0"> <widget class="TQLabel" row="2" column="0">
<property name="name"> <property name="name">
<cstring>d_urlLabel</cstring> <cstring>d_urlLabel</cstring>
</property> </property>
@ -75,6 +67,11 @@
<string>Url of Stream:</string> <string>Url of Stream:</string>
</property> </property>
</widget> </widget>
<widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>d_urlEdit</cstring>
</property>
</widget>
</grid> </grid>
</widget> </widget>
<widget class="TQPushButton" row="1" column="0"> <widget class="TQPushButton" row="1" column="0">

@ -33,27 +33,27 @@ msgstr ""
msgid "KStreamRipper" msgid "KStreamRipper"
msgstr "" msgstr ""
#: addnewstream.ui:16 #: streampropertiesdlg.ui:16
#, no-c-format #, no-c-format
msgid "Add Stream...." msgid "Add Stream..."
msgstr "" msgstr ""
#: addnewstream.ui:44 #: streampropertiesdlg.ui:44
#, no-c-format #, no-c-format
msgid "Name:" msgid "Name:"
msgstr "" msgstr ""
#: addnewstream.ui:52 kstreamripperbase.ui:317 #: streampropertiesdlg.ui:52 kstreamripperbase.ui:317
#, no-c-format #, no-c-format
msgid "Description:" msgid "Description:"
msgstr "" msgstr ""
#: addnewstream.ui:75 #: streampropertiesdlg.ui:75
#, no-c-format #, no-c-format
msgid "Url of Stream:" msgid "Url of Stream:"
msgstr "" msgstr ""
#: addnewstream.ui:88 #: streampropertiesdlg.ui:88
#, no-c-format #, no-c-format
msgid "&Ok" msgid "&Ok"
msgstr "" msgstr ""

@ -5,7 +5,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2023-12-08 18:15+0000\n" "POT-Creation-Date: 2023-12-16 21:42+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -27,7 +27,7 @@ msgid ""
"Your emails" "Your emails"
msgstr "" msgstr ""
#: kstreamripper.cpp:203 #: kstreamripper.cpp:217
msgid "found by Zeroconf" msgid "found by Zeroconf"
msgstr "" msgstr ""
@ -35,31 +35,6 @@ msgstr ""
msgid "KStreamRipper" msgid "KStreamRipper"
msgstr "" msgstr ""
#: addnewstream.ui:16
#, no-c-format
msgid "Add Stream...."
msgstr ""
#: addnewstream.ui:44
#, no-c-format
msgid "Name:"
msgstr ""
#: addnewstream.ui:52 kstreamripperbase.ui:317
#, no-c-format
msgid "Description:"
msgstr ""
#: addnewstream.ui:75
#, no-c-format
msgid "Url of Stream:"
msgstr ""
#: addnewstream.ui:88
#, no-c-format
msgid "&Ok"
msgstr ""
#: kstreamripperbase.ui:16 #: kstreamripperbase.ui:16
#, no-c-format #, no-c-format
msgid "KStreamRipper V. 0.3.4" msgid "KStreamRipper V. 0.3.4"
@ -82,85 +57,95 @@ msgstr ""
#: kstreamripperbase.ui:125 #: kstreamripperbase.ui:125
#, no-c-format #, no-c-format
msgid "&Delete Stream" msgid "&Edit Stream"
msgstr "" msgstr ""
#: kstreamripperbase.ui:136 #: kstreamripperbase.ui:136
#, no-c-format #, no-c-format
msgid "&Stop Rip" msgid "&Delete Stream"
msgstr "" msgstr ""
#: kstreamripperbase.ui:150 #: kstreamripperbase.ui:147
#, no-c-format #, no-c-format
msgid "&Tune in" msgid "&Tune in"
msgstr "" msgstr ""
#: kstreamripperbase.ui:161 #: kstreamripperbase.ui:158
#, no-c-format #, no-c-format
msgid "&Rip Stream" msgid "&Rip Stream"
msgstr "" msgstr ""
#: kstreamripperbase.ui:188 #: kstreamripperbase.ui:169
#, no-c-format #, no-c-format
msgid "Settings" msgid "&Stop Rip"
msgstr "" msgstr ""
#: kstreamripperbase.ui:199 #: kstreamripperbase.ui:199
#, no-c-format #, no-c-format
msgid "Settings"
msgstr ""
#: kstreamripperbase.ui:210
#, no-c-format
msgid "Destination:" msgid "Destination:"
msgstr "" msgstr ""
#: kstreamripperbase.ui:207 #: kstreamripperbase.ui:218
#, no-c-format #, no-c-format
msgid "Time to Rip:" msgid "Time to Rip:"
msgstr "" msgstr ""
#: kstreamripperbase.ui:215 #: kstreamripperbase.ui:226
#, no-c-format #, no-c-format
msgid "Add ID3 Tag:" msgid "Add ID3 Tag:"
msgstr "" msgstr ""
#: kstreamripperbase.ui:234 #: kstreamripperbase.ui:245
#, no-c-format #, no-c-format
msgid "Tune in Command:" msgid "Tune in Command:"
msgstr "" msgstr ""
#: kstreamripperbase.ui:242 #: kstreamripperbase.ui:253
#, no-c-format #, no-c-format
msgid "seconds" msgid "seconds"
msgstr "" msgstr ""
#: kstreamripperbase.ui:250 #: kstreamripperbase.ui:261
#, no-c-format #, no-c-format
msgid "...." msgid "...."
msgstr "" msgstr ""
#: kstreamripperbase.ui:258 #: kstreamripperbase.ui:269
#, no-c-format #, no-c-format
msgid "xmms <url>" msgid "xmms <url>"
msgstr "" msgstr ""
#: kstreamripperbase.ui:266 #: kstreamripperbase.ui:277
#, no-c-format #, no-c-format
msgid "0" msgid "0"
msgstr "" msgstr ""
#: kstreamripperbase.ui:274 #: kstreamripperbase.ui:285
#, no-c-format #, no-c-format
msgid "Choose a directory" msgid "Choose a directory"
msgstr "" msgstr ""
#: kstreamripperbase.ui:282 #: kstreamripperbase.ui:293
#, no-c-format #, no-c-format
msgid "Unicode:" msgid "Unicode:"
msgstr "" msgstr ""
#: kstreamripperbase.ui:306 #: kstreamripperbase.ui:317
#, no-c-format #, no-c-format
msgid "Details" msgid "Details"
msgstr "" msgstr ""
#: kstreamripperbase.ui:325 #: kstreamripperbase.ui:328 streampropertiesdlgbase.ui:54
#, no-c-format
msgid "Description:"
msgstr ""
#: kstreamripperbase.ui:336
#, no-c-format #, no-c-format
msgid "URL:" msgid "URL:"
msgstr "" msgstr ""
@ -169,3 +154,18 @@ msgstr ""
#, no-c-format #, no-c-format
msgid "C&ustom" msgid "C&ustom"
msgstr "" msgstr ""
#: streampropertiesdlgbase.ui:41
#, no-c-format
msgid "Name:"
msgstr ""
#: streampropertiesdlgbase.ui:67
#, no-c-format
msgid "Url of Stream:"
msgstr ""
#: streampropertiesdlgbase.ui:85
#, no-c-format
msgid "&Ok"
msgstr ""

@ -36,27 +36,27 @@ msgstr "znaleziono przez Zeroconf"
msgid "KStreamRipper" msgid "KStreamRipper"
msgstr "" msgstr ""
#: addnewstream.ui:16 #: streampropertiesdlg.ui:16
#, no-c-format #, no-c-format
msgid "Add Stream...." msgid "Add Stream..."
msgstr "Dodaj Strumień..." msgstr "Dodaj Strumień..."
#: addnewstream.ui:44 #: streampropertiesdlg.ui:44
#, no-c-format #, no-c-format
msgid "Name:" msgid "Name:"
msgstr "Nazwa:" msgstr "Nazwa:"
#: addnewstream.ui:52 kstreamripperbase.ui:317 #: streampropertiesdlg.ui:52 kstreamripperbase.ui:317
#, no-c-format #, no-c-format
msgid "Description:" msgid "Description:"
msgstr "Opis:" msgstr "Opis:"
#: addnewstream.ui:75 #: streampropertiesdlg.ui:75
#, no-c-format #, no-c-format
msgid "Url of Stream:" msgid "Url of Stream:"
msgstr "URL strumienia:" msgstr "URL strumienia:"
#: addnewstream.ui:88 #: streampropertiesdlg.ui:88
#, no-c-format #, no-c-format
msgid "&Ok" msgid "&Ok"
msgstr "OK" msgstr "OK"

Loading…
Cancel
Save