~ubuntu-branches/ubuntu/quantal/kate/quantal-proposed

« back to all changes in this revision

Viewing changes to kate/plugins/gdbplugin/configview.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-14 13:28:06 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: package-import@ubuntu.com-20111214132806-aa2uf6ri5w2p8ak3
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
    m_widgetHeights = ( m_targetLabel->sizeHint().height() + /*layout spacing */6 ) * 9 ;
132
132
 
133
133
 
134
 
    connect(    m_targets, SIGNAL( editTextChanged( QString ) ),
135
 
                this, SLOT( slotTargetEdited( QString ) ) );
136
 
    connect(    m_targets, SIGNAL( currentIndexChanged( int ) ),
137
 
                this, SLOT( slotTargetSelected( int ) ) );
138
 
    connect(    m_addTarget, SIGNAL( clicked() ),
139
 
                this, SLOT( slotAddTarget() ) );
140
 
    connect(    m_deleteTarget, SIGNAL( clicked() ),
141
 
                this, SLOT( slotDeleteTarget() ) );
142
 
    connect(    m_workingDirectory, SIGNAL( textEdited( QString ) ),
143
 
                this, SLOT( slotWorkingDirectoryEdited( QString ) ) );
144
 
    connect(    m_argumentLists, SIGNAL( editTextChanged( QString ) ),
145
 
                this, SLOT( slotArgListEdited( QString ) ) );
146
 
    connect(    m_argumentLists, SIGNAL( currentIndexChanged( int ) ),
147
 
                this, SLOT( slotArgListSelected( int ) ) );
148
 
    connect(    m_addArgList, SIGNAL( clicked() ),
149
 
                this, SLOT( slotAddArgList() ) );
150
 
    connect(    m_deleteArgList, SIGNAL( clicked() ),
151
 
                this, SLOT( slotDeleteArgList() ) );
152
 
    connect(    m_redirectTerminal, SIGNAL( toggled( bool ) ),
153
 
                this, SIGNAL(showIO( bool ) ) );
 
134
    connect(    m_targets, SIGNAL(editTextChanged(QString)),
 
135
                this, SLOT(slotTargetEdited(QString)) );
 
136
    connect(    m_targets, SIGNAL(currentIndexChanged(int)),
 
137
                this, SLOT(slotTargetSelected(int)) );
 
138
    connect(    m_addTarget, SIGNAL(clicked()),
 
139
                this, SLOT(slotAddTarget()) );
 
140
    connect(    m_deleteTarget, SIGNAL(clicked()),
 
141
                this, SLOT(slotDeleteTarget()) );
 
142
    connect(    m_workingDirectory, SIGNAL(textEdited(QString)),
 
143
                this, SLOT(slotWorkingDirectoryEdited(QString)) );
 
144
    connect(    m_argumentLists, SIGNAL(editTextChanged(QString)),
 
145
                this, SLOT(slotArgListEdited(QString)) );
 
146
    connect(    m_argumentLists, SIGNAL(currentIndexChanged(int)),
 
147
                this, SLOT(slotArgListSelected(int)) );
 
148
    connect(    m_addArgList, SIGNAL(clicked()),
 
149
                this, SLOT(slotAddArgList()) );
 
150
    connect(    m_deleteArgList, SIGNAL(clicked()),
 
151
                this, SLOT(slotDeleteArgList()) );
 
152
    connect(    m_redirectTerminal, SIGNAL(toggled(bool)),
 
153
                this, SIGNAL(showIO(bool)) );
154
154
}
155
155
 
156
156
ConfigView::~ConfigView()
161
161
{
162
162
    m_targetSelectAction = actionCollection->add<KSelectAction>( "targets" );
163
163
    m_targetSelectAction->setText( i18n( "Targets" ) );
164
 
    connect(    m_targetSelectAction, SIGNAL( triggered( int ) ),
165
 
                this, SLOT( slotTargetSelected( int ) ) );
 
164
    connect(    m_targetSelectAction, SIGNAL(triggered(int)),
 
165
                this, SLOT(slotTargetSelected(int)) );
166
166
 
167
167
    m_argListSelectAction = actionCollection->add<KSelectAction>( "argLists" );
168
168
    m_argListSelectAction->setText( i18n( "Arg Lists" ) );
169
 
    connect(    m_argListSelectAction, SIGNAL( triggered( int ) ),
170
 
                this, SLOT( slotArgListSelected( int ) ) );
 
169
    connect(    m_argListSelectAction, SIGNAL(triggered(int)),
 
170
                this, SLOT(slotArgListSelected(int)) );
171
171
}
172
172
 
173
173
void ConfigView::readConfig( KConfigBase* config, QString const& groupPrefix )
437
437
{
438
438
    if( m_changingTarget == 0 )
439
439
    {
440
 
        QTimer::singleShot( 0, this, SLOT( slotUpdateArgLists() ) );
 
440
        QTimer::singleShot( 0, this, SLOT(slotUpdateArgLists()) );
441
441
    }
442
442
}
443
443
 
521
521
{
522
522
    int         targetIndex = m_targets->currentIndex();
523
523
    QStringList targetDescription = m_targets->itemData( targetIndex ).toStringList();
 
524
    
 
525
    /**
 
526
     * ensure description has enough entries
 
527
     */
 
528
    while (field >= targetDescription.size ())
 
529
      targetDescription.append (QString());
 
530
    
524
531
    targetDescription[field] = value;
 
532
    
525
533
    m_targets->setItemData( targetIndex, targetDescription );
526
534
}