/*
 *  Constructs a KMsgModemWidgetBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
KMsgModemWidgetBase::KMsgModemWidgetBase( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "kmsgmodemwidgetbase" );
    setMinimumSize( QSize( 100, 50 ) );
    kmsgmodemwidgetbaseLayout = new QGridLayout( this, 1, 1, 11, 6, "kmsgmodemwidgetbaseLayout"); 

    MessageView = new KListView( this, "MessageView" );
    MessageView->addColumn( tr2i18n( "#" ) );
    MessageView->addColumn( tr2i18n( "Type" ) );
    MessageView->addColumn( tr2i18n( "Date" ) );
    MessageView->addColumn( tr2i18n( "Size" ) );
    MessageView->addColumn( tr2i18n( "Sender" ) );
    MessageView->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, MessageView->sizePolicy().hasHeightForWidth() ) );
    MessageView->setMinimumSize( QSize( 500, 240 ) );
    MessageView->setCursor( QCursor( 13 ) );
    MessageView->setMidLineWidth( 0 );
    MessageView->setResizePolicy( KListView::Default );
    MessageView->setProperty( "selectionMode", "Single" );
    MessageView->setAllColumnsShowFocus( TRUE );
    MessageView->setRootIsDecorated( FALSE );
    MessageView->setFullWidth( TRUE );

    kmsgmodemwidgetbaseLayout->addWidget( MessageView, 0, 0 );
    languageChange();
    resize( QSize(521, 272).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( MessageView, SIGNAL( clicked(QListViewItem*) ), this, SLOT( MessageClicked(QListViewItem*) ) );
}
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void DisplayPanelGUI::languageChange()
{
    setCaption( tr2i18n( "Form1" ) );
    DisplayName->setText( tr2i18n( "Display" ) );
    QToolTip::add( vslider, tr2i18n( "Vertical Scale" ) );
    QToolTip::add( hslider, tr2i18n( "Horizontal Scale" ) );
}
VariablesListView::VariablesListView(QWidget *parent, const char *name)
    : KListView(parent, name), m_variables(0), m_isReadOnly(false)
{
  setAllColumnsShowFocus(true);
  setRootIsDecorated(true);
  setSorting(-1);

  addColumn(tr2i18n("Name"));
  addColumn(tr2i18n("Value"));
  addColumn(tr2i18n("Type"));

  setColumnWidthMode(NameCol,  Manual);
  setColumnWidthMode(ValueCol, Manual);
  setColumnWidthMode(TypeCol,  Manual);

  setColumnWidth(NameCol,  150);
  setColumnWidth(ValueCol, 150);
  setColumnWidth(TypeCol,  150);

  connect(this, SIGNAL(expanded(QListViewItem*)),
          this, SLOT(slotItemExpanded(QListViewItem*)));
  connect(this, SIGNAL(collapsed(QListViewItem*)),
          this, SLOT(slotItemCollapsed(QListViewItem*)));

  connect(this, SIGNAL(itemRenamed(QListViewItem*, int, const QString&)),
          this, SLOT(slotItemRenamed(QListViewItem*, int, const QString&)));

  connect(this, SIGNAL(doubleClicked(QListViewItem *, const QPoint &, int )),
          this, SLOT(slotDoubleClick( QListViewItem *, const QPoint &, int )));

  //connect(m_menu, SIGNAL(activated(int)), this, SLOT(slotCopyVarToClipboard(int)));

  connect(this, SIGNAL(contextMenuRequested(QListViewItem *, const QPoint& , int)),
          this, SLOT(slotContextMenuRequested(QListViewItem *, const QPoint &, int)));
}
Exemple #4
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void page1layout::languageChange()
{
    setCaption( tr2i18n( "Form1" ) );
    textLabel1->setText( tr2i18n( "<b><h2>Welcome to Konference!</h2></b>" ) );
    textLabel2->setText( tr2i18n( "Before you can start Konference for the first time, you must fill in some needed informations.\n"
"You can change the information you enter here at any time using the configuration menue in the Konference main window." ) );
    textLabel3->setText( tr2i18n( "Please press the <b>Next</b> button to continue." ) );
}
/* 
 *  Constructs a KFTPFilterEditorLayout as a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f'.
 */
KFTPFilterEditorLayout::KFTPFilterEditorLayout( QWidget* parent, const char* name, Qt::WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "KFTPFilterEditorLayout" );
    KFTPFilterEditorLayoutLayout = new Q3GridLayout( this, 1, 1, 11, 6, "KFTPFilterEditorLayoutLayout"); 

    tabWidget2 = new QTabWidget( this, "tabWidget2" );

    tab = new QWidget( tabWidget2, "tab" );
    tabLayout = new Q3GridLayout( tab, 1, 1, 11, 6, "tabLayout"); 

    layout1 = new Q3VBoxLayout( 0, 0, 6, "layout1"); 

    addPatternButton = new KPushButton( tab, "addPatternButton" );
    layout1->addWidget( addPatternButton );

    editPatternButton = new KPushButton( tab, "editPatternButton" );
    layout1->addWidget( editPatternButton );

    removePatternButton = new KPushButton( tab, "removePatternButton" );
    layout1->addWidget( removePatternButton );

    tabLayout->addLayout( layout1, 0, 1 );
    QSpacerItem* spacer = new QSpacerItem( 31, 111, QSizePolicy::Minimum, QSizePolicy::Expanding );
    tabLayout->addItem( spacer, 1, 1 );

    layout2 = new Q3VBoxLayout( 0, 0, 6, "layout2"); 

    patternList = new K3ListView( tab, "patternList" );
    patternList->addColumn( tr2i18n( "Pattern" ) );
    patternList->addColumn( tr2i18n( "Color" ) );
    layout2->addWidget( patternList );

    enabledCheck = new QCheckBox( tab, "enabledCheck" );
    layout2->addWidget( enabledCheck );

    tabLayout->addMultiCellLayout( layout2, 0, 1, 0, 0 );
    tabWidget2->insertTab( tab, QString("") );

    tab_2 = new QWidget( tabWidget2, "tab_2" );

    textLabel1 = new QLabel( tab_2, "textLabel1" );
    textLabel1->setGeometry( QRect( 10, 10, 130, 20 ) );
    tabWidget2->insertTab( tab_2, QString("") );

    tab_3 = new QWidget( tabWidget2, "tab_3" );

    textLabel1_2 = new QLabel( tab_3, "textLabel1_2" );
    textLabel1_2->setGeometry( QRect( 10, 10, 130, 20 ) );
    tabWidget2->insertTab( tab_3, QString("") );

    KFTPFilterEditorLayoutLayout->addWidget( tabWidget2, 0, 0 );
    languageChange();
    resize( QSize(456, 299).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void FileViewLayout::languageChange()
{
    setCaption( tr2i18n( "Form1" ) );
    QToolTip::add( m_pTabWidget, QString::null );
    QToolTip::add( m_pFileList, tr2i18n( "Project File List" ) );
    m_pTabWidget->changeTab( tab, QString::null );
    QToolTip::add( m_pFileTree, tr2i18n( "File Tree" ) );
    m_pTabWidget->changeTab( tab_2, QString::null );
}
Exemple #7
0
bool ElogThreadSubmit::doResponseError( const char* response ) {
  QString strError;
  char str[80];
  
  if (strstr(response, "302 Found")) {
    if (strstr(response, "Location:")) {
      if (strstr(response, "wpwd")) {
        doError( tr2i18n("Failed to add ELOG entry: invalid password") );
      } else if (strstr(response, "wusr")) {
        doError( tr2i18n("Failed to add ELOG entry: invalid user name") );
      } else {
        strncpy(str, strstr(response, "Location:") + 10, sizeof(str));
        if (strchr(str, '?')) {
          *strchr(str, '?') = 0;
        }
        if (strchr(str, '\n')) {
          *strchr(str, '\n') = 0;
        }
        if (strchr(str, '\r')) {
          *strchr(str, '\r') = 0;
        }
        
        if (strrchr(str, '/')) {
          strError = tr2i18n("Successfully added ELOG entry: ID=%1\n").arg( strrchr(str, '/') + 1 );
          doError( strError, KstDebug::Notice );
        } else {
          strError = tr2i18n("Successfully added ELOG entry: ID=%1\n").arg( str );
          doError( strError, KstDebug::Notice );
        }
      }
    } else {
      doError( tr2i18n("Successfully added ELOG entry"), KstDebug::Notice );
    }
  } else if (strstr(response, "Logbook Selection"))
    doError( tr2i18n("Failed to add ELOG entry: no logbook specified") );
  else if (strstr(response, "enter password")) {
    doError( tr2i18n("Failed to add ELOG entry: missing or invalid password") );
  }
  else if (strstr(response, "form name=form1")) {
    doError( tr2i18n("Failed to add ELOG entry: missing or invalid user name/password") );
  }
  else if (strstr(response, "Error: Attribute")) {
    strncpy(str, strstr(response, "Error: Attribute") + 20, sizeof(str));
    if (strchr(str, '<')) {
      *strchr(str, '<') = 0;
    }
    strError = tr2i18n("Failed to add ELOG entry: missing required attribute \"%1\"").arg( str );
    doError( strError );
  } else {
    doError( tr2i18n("Failed to add ELOG entry: error transmitting message") ); 
  }
  
  return TRUE;
}
CPPCodeGenerationForm::CPPCodeGenerationForm( QWidget *parent, const char *name )
        : CPPCodeGenerationFormBase (parent,name)
{
    init();

    GeneralOptionsListView->addColumn(tr2i18n("General Options"));
    pOptionPackageIsANamespace = new QCheckListItem( GeneralOptionsListView,
                                 tr2i18n("Package is a namespace"),
                                 QCheckListItem::CheckBox );
    pOptionVirtualDestructors = new QCheckListItem( GeneralOptionsListView,
                                tr2i18n("Virtual destructors"),
                                QCheckListItem::CheckBox );
    pOptionGenerateEmptyConstructors = new QCheckListItem( GeneralOptionsListView,
                                       tr2i18n("Generate empty constructors"),
                                       QCheckListItem::CheckBox );
    pOptionGenerateAccessorMethods = new QCheckListItem( GeneralOptionsListView,
                                     tr2i18n("Generate accessor methods"),
                                     QCheckListItem::CheckBox );
    pOptionOperationsAreInline = new QCheckListItem( GeneralOptionsListView,
                                 tr2i18n("Operations are inline"),
                                 QCheckListItem::CheckBox );
    pOptionAccessorsAreInline = new QCheckListItem( GeneralOptionsListView,
                                tr2i18n("Accessors are inline"),
                                QCheckListItem::CheckBox );

    pOptionAccessorsArePublic = new QCheckListItem( GeneralOptionsListView,
                                tr2i18n("Accessors are public"),
                                QCheckListItem::CheckBox );

    connect(GeneralOptionsListView,
            SIGNAL(clicked(QListViewItem *)), this,
            SLOT(generalOptionsListViewClicked(QListViewItem *))
           );

}
Exemple #9
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void Options8::languageChange()
{
    infoPixmap_2->setText( QString::null );
    kActiveLabel3->setText( tr2i18n( "Amarok can send the name of every song you play to last.fm. The system automatically matches you to people with similar musical tastes, and creates personalized recommendations. To learn more about last.fm, <A href='http://www.last.fm'>visit the homepage</A>." ) );
    groupBox3->setTitle( tr2i18n( "last.fm Profile" ) );
    kActiveLabel1->setText( tr2i18n( "<P>To use last.fm with Amarok, you need a <A href='http://www.last.fm:80/signup.php'>last.fm profile</A>." ) );
    labelPassword->setText( tr2i18n( "&Password:"******"&Username:"******"last.fm Services" ) );
    textLabel1->setText( tr2i18n( "Once registered, Amarok can tell the last.fm service about your listening habits; your profile can then provide statistics and recommendations. A profile is not required to retrieve similar-artists for display in the Context Browser." ) );
    kcfg_SubmitPlayedSongs->setText( tr2i18n( "Improve m&y profile by submitting the tracks I play" ) );
    kcfg_RetrieveSimilarArtists->setText( tr2i18n( "&Retrieve similar artists" ) );
    kActiveLabel2->setText( tr2i18n( "Why not join the <A href='http://www.last.fm:80/group/amaroK+users'>Amarok last.fm group</A> and share your musical tastes with other Amarok users?" ) );
}
Exemple #10
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ClsQHarborDialog::languageChange()
{
    setCaption( tr2i18n( "Form2" ) );
    textLabel6->setText( tr2i18n( "ID:" ) );
    lblName->setText( tr2i18n( "name" ) );
    lblID->setText( tr2i18n( "id" ) );
    textLabel2->setText( tr2i18n( "Name:" ) );
    gboxSubtype->setTitle( tr2i18n( "groupBox1" ) );
    textLabel1->setText( tr2i18n( "Parameter:" ) );
    pbCancel->setText( tr2i18n( "Cancel" ) );
    pbOK->setText( tr2i18n( "Ok" ) );
}
Exemple #11
0
void KFFOpt_common::checkNMEASlot()
{
	if ( ( ui_widget.kcfg_common_AtlasToo->isChecked() ) && ( !ui_widget.kcfg_common_NMEA->isChecked() ) )
	{
		KMessageBox::information( this,
		                          tr2i18n( "NMEA protocol must be checked\nThis option will be automatically added" ) );
		ui_widget.kcfg_common_NMEA->setChecked( true );
	}
}
Exemple #12
0
void KFFOpt_property::showAvailableMenu( const QPoint & pt )
{
	QAction* editItem;
	QAction* removeItem;
	KMenu menu( this );

	editItem = new QAction( tr2i18n( "Edit" ), this );
	editItem->setStatusTip( tr2i18n( "Edit this property" ) );
	connect( editItem, SIGNAL( triggered() ), this, SLOT( editAvailableITem() ) );

	removeItem = new QAction( tr2i18n( "Remove" ), this );
	removeItem->setStatusTip( tr2i18n( "Remove property from list" ) );
	connect( removeItem, SIGNAL( triggered() ), this, SLOT( removeAvailableITem() ) );

	menu.addAction( editItem );
	menu.addSeparator();
	menu.addAction( removeItem );
	menu.exec( mapToGlobal( pt + ui_widget.selector->pos() + m_available->pos() ) );
}
Exemple #13
0
void ElogThreadSubmit::run( ) {
  int status, sock, error;
  
  error = makeConnection( &sock, &status );
  if( status == 0 ) {
    doTransmit( sock );
    close( sock );
  }
  else {
    switch( error ) {
      case -1:
        doError( tr2i18n("Failed to add ELOG entry: failed to connect to host.") );          	      		  break;
      case -2:
        doError( tr2i18n("Failed to add ELOG entry: failed to get host name.") );          	      		  break;
      case -3:
        doError( tr2i18n("Failed to add ELOG entry: failed to create socket.") );
        break;
      case -4:
        doError( tr2i18n("Failed to add ELOG entry: failed to get host by address.") );
        break;
      case -5:
        doError( tr2i18n("Failed to add ELOG entry: failed to get host by name.") );          	      		  break;
      default:
        doError( tr2i18n("Failed to add ELOG entry: unknown error.") );
        break;
    }
  }
}
/*
 *  Constructs a TagGuesserConfigDialog which is a child of 'parent', with the
 *  name 'name'.' 
 */
TagGuesserConfigDialog::TagGuesserConfigDialog( QWidget* parent,  const char* name )
    : KDialog( parent, name )
{
    if ( !name )
	setName( "TagGuesserConfigDialog" );
    TagGuesserConfigDialogLayout = new QGridLayout( this, 1, 1, 0, KDialog::spacingHint(), "TagGuesserConfigDialogLayout"); 

    lvSchemes = new KListView( this, "lvSchemes" );
    lvSchemes->addColumn( tr2i18n( "File Name Scheme" ) );
    lvSchemes->header()->setClickEnabled( FALSE, lvSchemes->header()->count() - 1 );
    lvSchemes->header()->setResizeEnabled( FALSE, lvSchemes->header()->count() - 1 );
    lvSchemes->setFrameShape( KListView::StyledPanel );
    lvSchemes->setFrameShadow( KListView::Sunken );
    lvSchemes->setFullWidth( TRUE );

    TagGuesserConfigDialogLayout->addMultiCellWidget( lvSchemes, 0, 6, 0, 0 );

    bMoveUp = new QToolButton( this, "bMoveUp" );

    TagGuesserConfigDialogLayout->addWidget( bMoveUp, 0, 1 );

    bMoveDown = new QToolButton( this, "bMoveDown" );

    TagGuesserConfigDialogLayout->addWidget( bMoveDown, 0, 3 );

    bModify = new KPushButton( this, "bModify" );

    TagGuesserConfigDialogLayout->addMultiCellWidget( bModify, 2, 2, 1, 3 );

    bRemove = new KPushButton( this, "bRemove" );

    TagGuesserConfigDialogLayout->addMultiCellWidget( bRemove, 3, 3, 1, 3 );

    bAdd = new KPushButton( this, "bAdd" );

    TagGuesserConfigDialogLayout->addMultiCellWidget( bAdd, 1, 1, 1, 3 );
    spacer1 = new QSpacerItem( 20, 60, QSizePolicy::Minimum, QSizePolicy::Expanding );
    TagGuesserConfigDialogLayout->addItem( spacer1, 4, 2 );

    bOk = new KPushButton( this, "bOk" );

    TagGuesserConfigDialogLayout->addMultiCellWidget( bOk, 5, 5, 1, 3 );

    bCancel = new KPushButton( this, "bCancel" );

    TagGuesserConfigDialogLayout->addMultiCellWidget( bCancel, 6, 6, 1, 3 );
    languageChange();
    resize( QSize(467, 260).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
    init();
}
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KMsgModemWidgetBase::languageChange()
{
    setCaption( tr2i18n( "kmsgmodemwidgetbase" ) );
    MessageView->header()->setLabel( 0, tr2i18n( "#" ) );
    MessageView->header()->setLabel( 1, tr2i18n( "Type" ) );
    MessageView->header()->setLabel( 2, tr2i18n( "Date" ) );
    MessageView->header()->setLabel( 3, tr2i18n( "Size" ) );
    MessageView->header()->setLabel( 4, tr2i18n( "Sender" ) );
}
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void AddGlobalDlg::languageChange()
{
    setCaption( i18n( "Select Global File Types" ) );
    buttonHelp->setGuiItem( KStdGuiItem::help() );
    buttonHelp->setAccel( QKeySequence( tr2i18n( "F1" ) ) );
    buttonOk->setGuiItem( KStdGuiItem::ok() );
    buttonOk->setAccel( QKeySequence( QString::null ) );
    buttonCancel->setGuiItem( KStdGuiItem::cancel() );
    buttonCancel->setAccel( QKeySequence( QString::null ) );
    fcglobal_view->header()->setLabel( 0, i18n( "Type extension:" ) );
    fcglobal_view->header()->setLabel( 1, i18n( "Type name:" ) );
    fcglobal_view->header()->setLabel( 2, i18n( "Template location:" ) );
    fcglobal_view->header()->setLabel( 3, i18n( "Icon:" ) );
    fcglobal_view->header()->setLabel( 4, i18n( "Description:" ) );
}
BreakpointListView::BreakpointListView(QWidget *parent, const char *name)
 : KListView(parent, name)
{

  setSorting(-1);
  setAllColumnsShowFocus(true);

  addColumn(tr2i18n(""));
  addColumn(tr2i18n("Status"));
  addColumn(tr2i18n("File Path"));
  addColumn(tr2i18n("Line"));
  addColumn(tr2i18n("Condition"));
  addColumn(tr2i18n("Skip hits"));
  addColumn(tr2i18n("Hit count"));

  setColumnWidthMode(StatusIconCol, Manual);
  setColumnWidthMode(StatusTextCol, Manual);
  setColumnWidthMode(FileNameCol,  Manual);
  setColumnWidthMode(LineCol,      Manual);
  setColumnWidthMode(ConditionCol, Manual);
  setColumnWidthMode(SkipHitsCol,  Manual);
  setColumnWidthMode(HitCountCol,  Manual);


  setColumnWidth(StatusIconCol, 25);
  setColumnWidth(StatusTextCol, 100);
  setColumnWidth(FileNameCol,  250);
  setColumnWidth(LineCol,      40);
  setColumnWidth(ConditionCol, 150);
  setColumnWidth(SkipHitsCol,  80);
  setColumnWidth(HitCountCol,  80);

  connect(this, SIGNAL(clicked(QListViewItem*, const QPoint&, int)),
    this, SLOT(slotCicked(QListViewItem*, const QPoint&, int)));
  connect(this, SIGNAL(doubleClicked(QListViewItem *, const QPoint &, int )),
    this, SLOT(slotDoubleClick( QListViewItem *, const QPoint &, int )));

  connect(this, SIGNAL(itemRenamed(QListViewItem*, int, const QString&)),
    this, SLOT(slotItemRenamed(QListViewItem*, int, const QString&)));
}
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void StarterHelp::languageChange()
{
    setCaption( tr2i18n( "Baghira Starter Config Help" ) );
    textLabel5->setText( tr2i18n( "<qt>The filterline provides several functions\n"
"<ul>\n"
"<li>It filters the below entry list</li>\n"
"<li>It autocompletes to executable entries in $PATH</li>\n"
"<li>The applied listbox lets you select the available categories</li>\n"
"<li>You can navigate through the categories either by using the mousewheel or by holding <b>ctrl+up/down</b></li>\n"
"<li>The category is also selected when calling the applied shortcut</li>\n"
"<li>It supports all protocols you know from Konqueror, e.g. \"gg:Baghira\" will google for \"Baghira\" etc.</li>\n"
"</ul>\n"
"Pressing <b>Enter</b> will execute the (autocompleted) binary in $PATH or the entered kfm protocol call<br>\n"
"Pressing <b>down</b>  will move the keyboard focus to the below entry list\n"
"</qt>" ) );
    tabWidget2->changeTab( tab, tr2i18n( "Filterline" ) );
    textLabel6->setText( tr2i18n( "<qt>The entry field shows up all your menu entries (filtered)<br><br>\n"
"You can start an application by clicking the <b>left mouse button</b> above the item (highlighted text) or by pressing <b>Enter</b> if the entry has the keyboard focus (highlighted background).<br><br>\n"
"You may navigate by either scrolling the <b>mousewheel</b> or using the <b>up/down</b> keys (this will also shift the keyboard focus)<br><br>\n"
"Pressing the <b>left</b> key will put focus on the filterline and select the whole text (i.e. start typing will change a complete new filter action)<br><br>\n"
"Pressing the <b>up</b> key on the topmost item will act as above.</qt>" ) );
    tabWidget2->changeTab( tab_2, tr2i18n( "Entry Field" ) );
    textLabel1->setText( tr2i18n( "<qt>The panel allow you to store often used links, independent from the application links in the entry list<br><br>\n"
"To <b>add a link</b>, either:<br>\n"
"- rightclick the panel<br>\n"
"- drag and drop a link out of the entry list<br>\n"
"- drag and drop any url or text or command (uris and mails are handled, the rest is interpreted as simple command, any command that works on the filterline works here as well)<br>\n"
"<br>\n"
"To <b>remove a link</b>, simply drag it out and drop it outside. (The panel interacts with the linklist from the baghira sidebar, links won't be removed, but copied if dragged from one to the other)<br>\n"
"<br>\n"
"To <b>configure a link</b>, simply rightclick it<br><br>\n"
"To <b>move a link</b>, just drag it and move i around.<br><br>\n"
"\n"
"Te panel is <b>scrollable (mousewheel)</b> and you can configure <b>individual positions</b> for the popup and the dialog<br><br>\n"
"More poofs can be found e.g. here: <a href=\"http://www.resexcellence.com/user_poofs.shtml\">www.resexcellence.com/user_poofs.shtml</a>\n"
"</qt>" ) );
    tabWidget2->changeTab( TabPage, tr2i18n( "Panel" ) );
}
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void server2WidgetBase::languageChange()
{
    setCaption( tr2i18n( "server2widgetbase" ) );
    textLabel1->setText( tr2i18n( "Working Directory" ) );
    textLabel1_2->setText( tr2i18n( "Server User Name" ) );
    textLabel2_2->setText( tr2i18n( "Server password" ) );
    textLabel3->setText( tr2i18n( "Server hostname" ) );
    textLabel4->setText( tr2i18n( "DB name" ) );
    stopServerPushButton->setText( tr2i18n( "St&op Server" ) );
    stopServerPushButton->setAccel( QKeySequence( tr2i18n( "Alt+O" ) ) );
    startServerButton->setText( tr2i18n( "St&art Server..." ) );
    startServerButton->setAccel( QKeySequence( tr2i18n( "Alt+A" ) ) );
    textLabel2->setText( tr2i18n( "Port Number" ) );
    portNumberLineEdit->setText( tr2i18n( "20000" ) );
    workingDirectoryLineEdit->setText( tr2i18n( "/home/christo/Documents/qrap/" ) );
    serverUserNameLineEdit->setText( tr2i18n( "postgres" ) );
    serverPasswordLineEdit->setText( tr2i18n( "postqrap" ) );
    serverHostnameLineEdit->setText( tr2i18n( "localhost" ) );
    serverDBNameLineEdit->setText( tr2i18n( "qrap" ) );
    textLabel1_3->setText( tr2i18n( "NB: Please ensure that the database user has read and write priviliges for the working directory." ) );
}
Exemple #20
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void PodcastSettingsDialogBase::languageChange()
{
    setCaption( tr2i18n( "Podcast Configuration" ) );
    buttonGroup1->setTitle( tr2i18n( "Media Download" ) );
    m_streamRadio->setText( tr2i18n( "Stream or download on re&quest" ) );
    QToolTip::add( m_streamRadio, tr2i18n( "Media must be explicitly downloaded, otherwise the podcast will be played from the remote server." ) );
    QWhatsThis::add( m_streamRadio, tr2i18n( "Media must be explicitly downloaded, otherwise the podcast will be played from the remote server." ) );
    m_downloadRadio->setText( tr2i18n( "Download when a&vailable" ) );
    QToolTip::add( m_downloadRadio, tr2i18n( "Download media as soon as it becomes available" ) );
    QWhatsThis::add( m_downloadRadio, tr2i18n( "Download media as soon as it becomes available" ) );
    m_addToMediaDeviceCheck->setText( tr2i18n( "Add to media device &transfer queue" ) );
    QToolTip::add( m_addToMediaDeviceCheck, tr2i18n( "When checked, Amarok will automatically add newly downloaded podcast shows to the media device transfer queue" ) );
    QWhatsThis::add( m_addToMediaDeviceCheck, tr2i18n( "When checked, Amarok will automatically add newly downloaded podcast shows to the media device transfer queue" ) );
    m_purgeCheck->setText( tr2i18n( "Limit &number of episodes" ) );
    QToolTip::add( m_purgeCheck, tr2i18n( "If checked, Amarok will throw away old podcast episodes" ) );
    QWhatsThis::add( m_purgeCheck, tr2i18n( "If checked, Amarok will throw away old podcast episodes" ) );
    m_purgeCountLabel->setText( tr2i18n( "Keep maximum of:" ) );
    m_purgeCountSpinBox->setSuffix( tr2i18n( " Items" ) );
    QToolTip::add( m_purgeCountSpinBox, tr2i18n( "The maximum number of podcast items to store" ) );
    QWhatsThis::add( m_purgeCountSpinBox, tr2i18n( "The maximum number of podcast items to store" ) );
    m_autoFetchCheck->setText( tr2i18n( "Automatically scan for updates" ) );
    QToolTip::add( m_autoFetchCheck, tr2i18n( "When checked, Amarok will automatically scan the podcast for updates" ) );
    QWhatsThis::add( m_autoFetchCheck, tr2i18n( "When checked, Amarok will automatically scan the podcast for updates" ) );
    textLabel1->setText( tr2i18n( "Save location:" ) );
}
Exemple #21
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ConfigDialog::languageChange()
{
    setCaption( tr2i18n( "Config Dialog" ) );
    titleAlign->setTitle( tr2i18n( "Title &Alignment" ) );
    AlignLeft->setText( tr2i18n( "Left" ) );
    AlignHCenter->setText( tr2i18n( "Center" ) );
    AlignRight->setText( tr2i18n( "Right" ) );
    highContrastButtons->setText( tr2i18n( "Use high contrast hovered buttons" ) );
    designatedTitlebarColor->setText( tr2i18n( "Use the &designated title bar color for the title bar" ) );
    designatedTitlebarColor->setAccel( QKeySequence( tr2i18n( "Alt+D" ) ) );
    QWhatsThis::add( designatedTitlebarColor, tr2i18n( "Check this option if the title bar should obtain its color from the title bar color setting instead of the window background color." ) );
    bordersBlendColor->setText( tr2i18n( "Use title blend color for window borders" ) );
    QWhatsThis::add( bordersBlendColor, tr2i18n( "Check this option if the borders should obtain their color from the title blend color setting instead of the window background color." ) );
    titleShadow->setText( tr2i18n( "Use shadowed &text" ) );
    titleShadow->setAccel( QKeySequence( tr2i18n( "Alt+T" ) ) );
    QWhatsThis::add( titleShadow, tr2i18n( "Check this option if you want the titlebar text to have a 3D look with a shadow behind it." ) );
}
Exemple #22
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void MakeLayout::languageChange()
{
    setCaption( tr2i18n( "KScope - Make" ) );
    textLabel1->setText( tr2i18n( "Root Directory:" ) );
    textLabel2->setText( tr2i18n( "Command:" ) );
    tabWidget2->changeTab( tab, tr2i18n( "Output" ) );
    tabWidget2->changeTab( tab_2, tr2i18n( "Errors a&nd Warnings" ) );
    m_pMakeButton->setText( tr2i18n( "&Make" ) );
    m_pMakeButton->setAccel( QKeySequence( tr2i18n( "Alt+M" ) ) );
    m_pStopButton->setText( tr2i18n( "&Stop" ) );
    m_pStopButton->setAccel( QKeySequence( tr2i18n( "Alt+S" ) ) );
    m_pCloseButton->setText( tr2i18n( "&Close" ) );
    m_pCloseButton->setAccel( QKeySequence( tr2i18n( "Alt+C" ) ) );
}
Exemple #23
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void Options4::languageChange()
{
    opt_crossfade->setTitle( tr2i18n( "Transition &Behavior" ) );
    QWhatsThis::add( opt_crossfade, tr2i18n( "<b>Transition Behavior</b>\n"
"<p>During playback, when amaroK transitions between tracks, it can either proceed to the next track instantly (with configurable gap), or crossfade (with configurable fade period).</p>" ) );
    radioButtonNormalPlayback->setText( tr2i18n( "&No crossfading" ) );
    QToolTip::add( radioButtonNormalPlayback, tr2i18n( "Enable normal track transition. You may insert a gap of silence between tracks." ) );
    trackDelayLengthLabel->setText( tr2i18n( "Insert &gap:" ) );
    kcfg_TrackDelayLength->setSuffix( tr2i18n( " ms" ) );
    QToolTip::add( kcfg_TrackDelayLength, tr2i18n( "Silence between tracks, in milliseconds." ) );
    kcfg_Crossfade->setText( tr2i18n( "&Crossfading" ) );
    QToolTip::add( kcfg_Crossfade, tr2i18n( "Enable crossfading between tracks. This setting also enables fading to or from silence e.g when pressing stop." ) );
    crossfadeLengthLabel->setText( tr2i18n( "Crossover &period:" ) );
    kcfg_CrossfadeLength->setSuffix( tr2i18n( " ms" ) );
    QToolTip::add( kcfg_CrossfadeLength, tr2i18n( "The length of the crossfade between tracks, in milliseconds." ) );
    kcfg_ResumePlayback->setText( tr2i18n( "&Resume playback on start" ) );
    QToolTip::add( kcfg_ResumePlayback, tr2i18n( "If checked, amaroK will<br>resume playback from where you left it the previous session -- just like a tape-player." ) );
}
Exemple #24
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void SnippetDlg::languageChange()
{
    textLabel3->setText(tr2i18n("Sh&ortcut:"));
}
Exemple #25
0
/*
 *  Constructs a ScriptManagerBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
ScriptManagerBase::ScriptManagerBase( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "ScriptManagerBase" );
    ScriptManagerBaseLayout = new QVBoxLayout( this, 0, KDialog::spacingHint(), "ScriptManagerBaseLayout"); 

    layout6 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "layout6"); 

    listView = new KListView( this, "listView" );
    listView->addColumn( tr2i18n( "Scripts" ) );
    layout6->addWidget( listView );

    layout5 = new QVBoxLayout( 0, 0, KDialog::spacingHint(), "layout5"); 

    layout3 = new QVBoxLayout( 0, 0, KDialog::spacingHint(), "layout3"); 

    installButton = new QPushButton( this, "installButton" );
    layout3->addWidget( installButton );

    retrieveButton = new QPushButton( this, "retrieveButton" );
    layout3->addWidget( retrieveButton );

    line2_2 = new QFrame( this, "line2_2" );
    line2_2->setFrameShape( QFrame::HLine );
    line2_2->setFrameShadow( QFrame::Sunken );
    line2_2->setFrameShape( QFrame::HLine );
    layout3->addWidget( line2_2 );

    aboutButton = new QPushButton( this, "aboutButton" );
    layout3->addWidget( aboutButton );

    runButton = new QPushButton( this, "runButton" );
    layout3->addWidget( runButton );

    stopButton = new QPushButton( this, "stopButton" );
    layout3->addWidget( stopButton );

    configureButton = new QPushButton( this, "configureButton" );
    layout3->addWidget( configureButton );

    uninstallButton = new QPushButton( this, "uninstallButton" );
    layout3->addWidget( uninstallButton );
    layout5->addLayout( layout3 );
    spacer2 = new QSpacerItem( 20, 31, QSizePolicy::Minimum, QSizePolicy::Expanding );
    layout5->addItem( spacer2 );
    layout6->addLayout( layout5 );
    ScriptManagerBaseLayout->addLayout( layout6 );

    line2 = new QFrame( this, "line2" );
    line2->setFrameShape( QFrame::HLine );
    line2->setFrameShadow( QFrame::Sunken );
    line2->setFrameShape( QFrame::HLine );
    ScriptManagerBaseLayout->addWidget( line2 );

    checkBox_autoRun = new QCheckBox( this, "checkBox_autoRun" );
    ScriptManagerBaseLayout->addWidget( checkBox_autoRun );
    languageChange();
    resize( QSize(371, 292).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}
Exemple #26
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ScriptManagerBase::languageChange()
{
    setCaption( tr2i18n( "DirectoryListBase" ) );
    listView->header()->setLabel( 0, tr2i18n( "Scripts" ) );
    QToolTip::add( listView, tr2i18n( "These scripts are currently known to amaroK." ) );
    installButton->setText( tr2i18n( "&Install Script" ) );
    retrieveButton->setText( tr2i18n( "&Get More Scripts" ) );
    aboutButton->setText( tr2i18n( "&About" ) );
    runButton->setText( tr2i18n( "&Run" ) );
    stopButton->setText( tr2i18n( "&Stop" ) );
    configureButton->setText( tr2i18n( "&Configure" ) );
    uninstallButton->setText( tr2i18n( "&Uninstall" ) );
    checkBox_autoRun->setText( tr2i18n( "R&estart running scripts on application startup" ) );
    QToolTip::add( checkBox_autoRun, tr2i18n( "If enabled, amaroK will automatically restart scripts that were running when you exited the application." ) );
}
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void Resistor::languageChange()
{
    setCaption( tr2i18n( "Resistor" ) );
    checkBox1->setText( QString::null );
    checkBox1_2->setText( QString::null );
    textLabel1_2->setText( tr2i18n( "Temperature dependance :" ) );
    textLabel1_4_4_2->setText( tr2i18n( "to" ) );
    textLabel1_4_3_3->setText( tr2i18n( "°C" ) );
    textLabel1_3->setText( tr2i18n( "%/°C" ) );
    textLabel1_4_3->setText( tr2i18n( "°C" ) );
    textLabel1_4_3_2_2->setText( tr2i18n( "°C" ) );
    textLabel1_4_3_2_3->setText( tr2i18n( "°C" ) );
    kComboBox1_2_2->clear();
    kComboBox1_2_2->insertItem( tr2i18n( "W" ) );
    kComboBox1_2_2->insertItem( tr2i18n( "mW" ) );
    textLabel1_4_2_2->setText( tr2i18n( "from" ) );
    textLabel1_4_3_2->setText( tr2i18n( "°C" ) );
    textLabel1_4_2_3->setText( tr2i18n( "from" ) );
    textLabel1_4_4_3->setText( tr2i18n( "to" ) );
    kComboBox1->clear();
    kComboBox1->insertItem( tr2i18n( "Carbon" ) );
    kComboBox1->insertItem( tr2i18n( "Wire" ) );
    kComboBox1->insertItem( tr2i18n( "Metallic film" ) );
    kComboBox1->insertItem( tr2i18n( "Oxide film" ) );
    kComboBox1->insertItem( tr2i18n( "NTC" ) );
    kComboBox1->insertItem( tr2i18n( "PTC" ) );
    QToolTip::add( kURLRequester1, tr2i18n( "<p>A file that includs one double value in \"%\" per line.<br>100% is at 20°C and has to be in the file<br>Eache next line is a result of incresing the temperature at 1°C.<p>" ) );
    textLabel1_4_4->setText( tr2i18n( "to" ) );
    textLabel1_4_3_4->setText( tr2i18n( "°C" ) );
    textLabel1_4_2->setText( tr2i18n( "from" ) );
    textLabel1_4_6_2->setText( tr2i18n( "Non linear :" ) );
    textLabel1_4->setText( tr2i18n( "Linear range (max. 1%) :" ) );
    textLabel1_4_5_2->setText( tr2i18n( "Max. rating :" ) );
    textLabel1->setText( tr2i18n( "Material :" ) );
    textLabel1_4_5->setText( tr2i18n( "Working temperature :" ) );
    textLabel1_4_6->setText( tr2i18n( "Store temperature :" ) );
}
Exemple #28
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void Options1::languageChange()
{
    setCaption( tr2i18n( "General" ) );
    generalBox->setTitle( tr2i18n( "General Options" ) );
    kcfg_ShowSplashscreen->setText( tr2i18n( "Sho&w splash-screen on startup" ) );
    QToolTip::add( kcfg_ShowSplashscreen, tr2i18n( "Check to enable the splashscreen during Amarok startup." ) );
    QWhatsThis::add( kcfg_ShowSplashscreen, tr2i18n( "Check to enable the splashscreen during Amarok startup." ) );
    kcfg_ShowTrayIcon->setText( tr2i18n( "Show tray &icon" ) );
    QToolTip::add( kcfg_ShowTrayIcon, tr2i18n( "Check to enable the Amarok system tray icon." ) );
    QWhatsThis::add( kcfg_ShowTrayIcon, tr2i18n( "Check to enable the Amarok system tray icon." ) );
    kcfg_AnimateTrayIcon->setText( tr2i18n( "&Flash tray icon when playing" ) );
    QToolTip::add( kcfg_AnimateTrayIcon, tr2i18n( "Check to animate the Amarok system tray icon." ) );
    QWhatsThis::add( kcfg_AnimateTrayIcon, tr2i18n( "Check to animate the Amarok system tray icon." ) );
    kcfg_ShowPlayerWindow->setText( tr2i18n( "Show player window" ) );
    QToolTip::add( kcfg_ShowPlayerWindow, tr2i18n( "Check to enable an extra player window." ) );
    QWhatsThis::add( kcfg_ShowPlayerWindow, tr2i18n( "Check to enable an extra player window." ) );
    textLabel1->setText( tr2i18n( "Default si&ze for cover previews:" ) );
    QToolTip::add( textLabel1, tr2i18n( "Size of the cover image in the context viewer in pixels." ) );
    QWhatsThis::add( textLabel1, tr2i18n( "Size of the cover image in the context viewer in pixels." ) );
    kcfg_CoverPreviewSize->setSuffix( tr2i18n( "px" ) );
    QToolTip::add( kcfg_CoverPreviewSize, tr2i18n( "Size of the cover images in the context viewer in pixels." ) );
    QWhatsThis::add( kcfg_CoverPreviewSize, tr2i18n( "Size of the cover images in the context viewer in pixels." ) );
    textLabel1_2->setText( tr2i18n( "External web &browser:" ) );
    QToolTip::add( kComboBox_browser, tr2i18n( "Choose the external web browser to be used by Amarok." ) );
    checkBox_customBrowser->setText( tr2i18n( "Use &another browser:" ) );
    QToolTip::add( kLineEdit_customBrowser, tr2i18n( "Enter filename of external web browser." ) );
    componentsBox->setTitle( tr2i18n( "Components" ) );
    kcfg_UseScores->setText( tr2i18n( "Use &scores" ) );
    QToolTip::add( kcfg_UseScores, tr2i18n( "Scores for tracks are calculated automatically, based on your listening habits." ) );
    kcfg_UseRatings->setText( tr2i18n( "Use ratings" ) );
    QToolTip::add( kcfg_UseRatings, tr2i18n( "You can assign ratings to tracks manually, from 1 to 5 stars." ) );
    groupBox2->setTitle( tr2i18n( "Playlist-Window Options" ) );
    kcfg_SavePlaylist->setText( tr2i18n( "&Remember current playlist on exit" ) );
    QToolTip::add( kcfg_SavePlaylist, tr2i18n( "If checked, Amarok saves the current playlist on quit and restores it when restarted.<br>" ) );
    QWhatsThis::add( kcfg_SavePlaylist, tr2i18n( "If checked, Amarok saves the current playlist on quit and restores it when restarted." ) );
    kcfg_RelativePlaylist->setText( tr2i18n( "Manually sa&ved playlists use relative path" ) );
    QToolTip::add( kcfg_RelativePlaylist, tr2i18n( "If checked, Amarok uses a relative path for the tracks of manually saved playlists" ) );
    QWhatsThis::add( kcfg_RelativePlaylist, tr2i18n( "If checked, Amarok uses a relative path for the tracks of manually saved playlists" ) );
}
Exemple #29
0
/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void FirstRunWizard::languageChange()
{
    setCaption( tr2i18n( "First-Run Wizard" ) );
    text1->setText( tr2i18n( "<h1>Welcome to amaroK!</h1>\n"
"<p><b>There are many media-players around these days, this is true. amaroK however provides an aural experience so pleasurable it always has you coming back for more. What is missing from most players is an interface that does not get in your way. amaroK tries to be a little different, and at the same time intuitive. It provides a simple drag-and-drop interface that makes playlist handling simple and fun. By using amaroK we truly hope you will:</b></p>\n"
"<p align=\"center\"><i><b>\"Rediscover your music!\"</b></i> </p>" ) );
    text1_2->setText( tr2i18n( "<h2>First-run Wizard</h2>\n"
"<p><b>This wizard will help you setup amaroK in three easy steps. Click <i>Next</i> to begin, or if you do not like wizards, click <i>Skip</i>.</b></p>" ) );
    setTitle( WizardPage, QString::null );
    group1->setTitle( QString::null );
    option_compact->setText( tr2i18n( "Single window with player and playlist functionality\n"
"combined (like JuK)" ) );
    option_xmms->setText( tr2i18n( "Separate player and playlist-windows\n"
"(like XMMS or Winamp)" ) );
    text2->setText( tr2i18n( "<p>With amaroK you can use the window layout that you find most comfortable.</p>\n"
"<p>You can change these settings at a later time using the configuration dialog.</p>" ) );
    picture_modePreview->setText( QString::null );
    setTitle( WizardPage_1, tr2i18n( "Interface (1 of 3)" ) );
    text3->setText( tr2i18n( "<p>Please select the folders on the right where your music files are stored.</p>\n"
"<p>Doing so is highly recommended, and will enhance the features available to you.</p>\n"
"<p>If you wish, amaroK is able to monitor these folders for new files and can automatically add them to the collection.</p>" ) );
    setTitle( WizardPage_2, tr2i18n( "Collection (2 of 3)" ) );
    dbActiveLabel->setText( tr2i18n( "amaroK uses a database to store information about your music. If you are not sure which to use, press Next.\n"
"<p><b>MySQL</b> or <b>Postgresql</b> are faster than <b>sqlite</b>, but require additional setup.</p>\n"
"<ul>\n"
"<li><a href=\"http://amarok.kde.org/amarokwiki/index.php/MySQL_HowTo\">Instructions for configuring MySQL</a>.</li>\n"
"<li><a href=\"http://amarok.kde.org/amarokwiki/index.php/Postgresql_HowTo\">Instructions for configuring Postgresql</a>.</li>\n"
"</ul>" ) );
    setTitle( WizardPage_3, tr2i18n( "Database (3 of 3)" ) );
    text4->setText( tr2i18n( "<h1>Congratulations!</h1>\n"
"<p>amaroK is ready for use! When you click finish amaroK will appear and begin scanning the folders in your collection.</p>\n"
"<p>amaroK's playlist-window will show your <b>Collection</b> on the left and the <b>Playlist</b> on the right. Drag and drop music from the Collection to the Playlist and press <b>Play</b>.</p>\n"
"<p>If you want more help or a tutorial, please check out the <a href=\"help:/amarok\">amaroK handbook</a>. We hope you enjoy using amaroK.</p>\n"
"<p align=\"right\">The amaroK developers</p>" ) );
    setTitle( WizardPage_4, QString::null );
}
Exemple #30
0
void ElogThreadSubmit::doTransmit(int sock) {
  KstELOGCaptureStruct captureStruct;
  QByteArray	byteArrayCapture;
  QBuffer bufferCapture( byteArrayCapture );
  QByteArray	byteArrayConfigure;
  QTextStream textStreamConfigure( byteArrayConfigure, IO_ReadWrite );
  QByteArray	byteArrayDebugInfo;
  QTextStream textStreamDebugInfo( byteArrayDebugInfo, IO_ReadWrite );
  QCustomEvent eventCapture(KstELOGCaptureEvent);
  QCustomEvent eventConfigure(KstELOGConfigureEvent);
  QCustomEvent eventDebugInfo(KstELOGDebugInfoEvent);
  QStringList::iterator it;
  QStringList	strListAttributes;
  QStringList	strListAttribute;
  QString strSplit( "\n" );
  QString strSplitAttribute( "=" );
  QString strUserName;
  QString strUserPassword;
  QString strWritePassword;
  QString strLogbook;
  QString strAttributes;
  QString strText;
  bool bIncludeCapture;
  bool bIncludeConfiguration;
  bool bIncludeDebugInfo;
  bool bSubmitAsHTML;
  bool bSuppressEmail;
  char* content;
  char request[100000];
  char response[100000];
  char boundary[80], str[80], *p;
  int i, n, header_length, content_length;
  int iAttachment = 0;

  bIncludeCapture   		= _elog->entry()->includeCapture();
  bIncludeConfiguration = _elog->entry()->includeConfiguration();
  bIncludeDebugInfo     = _elog->entry()->includeDebugInfo();
  content_length 			  = 100000;
  
  if( bIncludeCapture ) {  
    captureStruct.pBuffer     = &bufferCapture;
    captureStruct.iWidth      = _elog->configuration()->captureWidth();
    captureStruct.iHeight     = _elog->configuration()->captureHeight();
    eventCapture.setData( &captureStruct );
    QApplication::sendEvent( (QObject*)_elog->app()->viewObject(), (QEvent*)&eventCapture );
    content_length += byteArrayCapture.size();
  }
  
  if( bIncludeConfiguration ) {
    eventConfigure.setData( &textStreamConfigure );
    QApplication::sendEvent( (QObject*)_elog->app(), (QEvent*)&eventConfigure );
    content_length += byteArrayConfigure.size();
  }
  
  if( bIncludeDebugInfo ) {
    eventDebugInfo.setData( &textStreamDebugInfo );
    QApplication::sendEvent( (QObject*)_elog->app(), (QEvent*)&eventDebugInfo );
    content_length += byteArrayDebugInfo.size();
  }
  
  content = (char*)malloc(content_length);
  if (content != NULL) {
    strUserName 					= _elog->configuration()->userName();
    strUserPassword 			= _elog->configuration()->userPassword();
    strWritePassword			= _elog->configuration()->writePassword();
    strLogbook  					= _elog->configuration()->name();
    bSubmitAsHTML    		  = _elog->configuration()->submitAsHTML();
    bSuppressEmail    		= _elog->configuration()->suppressEmail();
    strAttributes     		= _elog->entry()->attributes();
    strText     					= _elog->entry()->text();
    
    srand((unsigned) time(NULL));
    sprintf(boundary, "---------------------------%04X%04X%04X", rand(), rand(), rand());
    strcpy(content, boundary);
    strcat(content, "\r\nContent-Disposition: form-data; name=\"cmd\"\r\n\r\nSubmit\r\n");
    
    //
    // add the attributes...
    //
    addAttribute( content, boundary, "unm", strUserName, false );
    addAttribute( content, boundary, "upwd", strUserPassword, true );
    addAttribute( content, boundary, "exp", strLogbook, false );
    
    strListAttributes = QStringList::split( strSplit, strAttributes, FALSE ); 
    for ( it = strListAttributes.begin(); it != strListAttributes.end(); ++it ) {
      strListAttribute = QStringList::split( strSplitAttribute, *it, FALSE );
      if( strListAttribute.count() == 2 ) {
        addAttribute( content, boundary, 
                      strListAttribute.first().stripWhiteSpace().ascii(),
                      strListAttribute.last().stripWhiteSpace(), false );
      }
    }
    if( bSubmitAsHTML ) {
      addAttribute( content, boundary, "html", "1", false );      
    }
    if( bSuppressEmail ) {
      addAttribute( content, boundary, "suppress", "1", false );      
    }
    addAttribute( content, boundary, "Text", strText, false );
    sprintf( content + strlen(content), "%s\r\n", boundary );

    content_length = strlen(content);
    p = content + content_length;
    
    //
    // add the attachments...
    //
    if( bIncludeCapture ) {
      iAttachment++;
      addAttachment( &content_length, &p, boundary, &byteArrayCapture, iAttachment, "Capture.png" );
    }
    if( bIncludeConfiguration ) {
      iAttachment++;
      addAttachment( &content_length, &p, boundary, &byteArrayConfigure, iAttachment, "Configure.kst" );
    }
    if( bIncludeDebugInfo ) {
      iAttachment++;
      addAttachment( &content_length, &p, boundary, &byteArrayDebugInfo, iAttachment, "DebugInfo.txt" );
    }

    strcpy(request, "POST /");
    if (!strLogbook.isEmpty()) {
      sprintf(request + strlen(request), "%s/", strLogbook.ascii());
    }
    strcat(request, " HTTP/1.0\r\n");
    
    sprintf(request + strlen(request), "Content-Type: multipart/form-data; boundary=%s\r\n", boundary);
    sprintf(request + strlen(request), "Host: %s\r\n", _host_name);
    sprintf(request + strlen(request), "User-Agent: ELOG\r\n");
    sprintf(request + strlen(request), "Content-Length: %d\r\n", content_length);
    
    if (!strWritePassword.isEmpty()) {
      base64_encode(strWritePassword.ascii(), str);
      sprintf(request + strlen(request), "Cookie: wpwd=%s\r\n", str);
    }

    strcat(request, "\r\n");
    
    header_length = strlen(request);
    
    send(sock, request, header_length, 0);
    send(sock, content, content_length, 0);
    
    //
    // handle the response...
    //
    i = recv(sock, response, 10000, 0);
    if (i >= 0) {    
      n = i;
      while (i > 0) {
        i = recv(sock, response + n, 10000, 0);
        if (i > 0) {
          n += i;
        }
      }
      response[n] = 0;
      
      doResponseError(response);
    }
    else
    {
      doError( tr2i18n("ELOG entry: unable to receive response"), KstDebug::Notice );
    }
  }
}