From 1571e905a9c37def2cb6bf8f30668e108174d53e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 11 Feb 2013 12:02:08 -0600 Subject: Fix FTBFS --- src/kile/quicktoolconfigwidget.ui | 218 ++++++++++++++++++++++++++++++++++ src/kile/quicktoolconfigwidget.ui.h | 98 +++++++++++++++ src/kile/quictdetoolconfigwidget.ui | 218 ---------------------------------- src/kile/quictdetoolconfigwidget.ui.h | 98 --------------- 4 files changed, 316 insertions(+), 316 deletions(-) create mode 100644 src/kile/quicktoolconfigwidget.ui create mode 100644 src/kile/quicktoolconfigwidget.ui.h delete mode 100644 src/kile/quictdetoolconfigwidget.ui delete mode 100644 src/kile/quictdetoolconfigwidget.ui.h (limited to 'src') diff --git a/src/kile/quicktoolconfigwidget.ui b/src/kile/quicktoolconfigwidget.ui new file mode 100644 index 0000000..dcb2a3d --- /dev/null +++ b/src/kile/quicktoolconfigwidget.ui @@ -0,0 +1,218 @@ + +QuickToolConfigWidget + + + QuickToolConfigWidget + + + + 0 + 0 + 407 + 216 + + + + + 1 + 1 + 0 + 0 + + + + + unnamed + + + + m_cbTools + + + + 2 + 0 + 1 + 0 + + + + + 100 + 0 + + + + + + m_lbTool + + + Tool: + + + + + m_lbConfig + + + Configuration: + + + + + m_cbConfigs + + + + 2 + 0 + 1 + 0 + + + + + 150 + 0 + + + + + + m_pshbAdd + + + + 5 + 1 + 0 + 0 + + + + &Add + + + + + m_pshbRemove + + + + 5 + 1 + 0 + 0 + + + + &Remove + + + + + m_pshbDown + + + + 5 + 1 + 0 + 0 + + + + &Down + + + + + m_pshbUp + + + + 5 + 1 + 0 + 0 + + + + &Up + + + + + spacer5 + + + Vertical + + + Expanding + + + + 20 + 16 + + + + + + m_lstbSeq + + + + + + + m_pshbAdd + clicked() + QuickToolConfigWidget + add() + + + m_pshbRemove + clicked() + QuickToolConfigWidget + remove() + + + m_pshbUp + clicked() + QuickToolConfigWidget + up() + + + m_pshbDown + clicked() + QuickToolConfigWidget + down() + + + + klocale.h + kiletoolmanager.h + tqstring.h + kglobal.h + tquicktoolconfigwidget.ui.h + + + TQString m_sequence; + + + sequenceChanged(const TQString &) + + + updateSequence( const TQString & sequence ) + updateConfigs( const TQString & tool ) + down() + up() + remove() + add() + changed() + + + diff --git a/src/kile/quicktoolconfigwidget.ui.h b/src/kile/quicktoolconfigwidget.ui.h new file mode 100644 index 0000000..c0ac55d --- /dev/null +++ b/src/kile/quicktoolconfigwidget.ui.h @@ -0,0 +1,98 @@ +/**************************************************************************** +** ui.h extension file, included from the uic-generated form implementation. +** +** If you wish to add, delete or rename functions or slots use +** TQt Designer which will update this file, preserving your code. Create an +** init() function in place of a constructor, and a destroy() function in +** place of a destructor. +*****************************************************************************/ + +void QuickToolConfigWidget::updateSequence(const TQString &sequence) +{ + TQStringList toollist = KileTool::toolList(TDEGlobal::config(), true); + toollist.sort(); + m_cbTools->clear(); + m_cbTools->insertStringList(toollist); + + updateConfigs(m_cbTools->currentText()); + connect(m_cbTools, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(updateConfigs(const TQString& ))); + + m_sequence=sequence; + TQStringList list = TQStringList::split(",",sequence); + TQString tl,cfg; + m_lstbSeq->clear(); + for ( uint i=0; i < list.count(); ++i) + { + KileTool::extract(list[i], tl, cfg); + if ( !cfg.isNull() ) + m_lstbSeq->insertItem(tl+" ("+cfg+")"); + else + m_lstbSeq->insertItem(tl); + } +} + +void QuickToolConfigWidget::updateConfigs(const TQString &tool) +{ + m_cbConfigs->clear(); + m_cbConfigs->insertItem(i18n("Not Specified")); + m_cbConfigs->insertStringList(KileTool::configNames(tool, TDEGlobal::config())); +} + +void QuickToolConfigWidget::down() +{ + int current = m_lstbSeq->currentItem(); + if ( (current != -1) && (current < ( ((int)m_lstbSeq->count())-1) )) + { + TQString text = m_lstbSeq->text(current+1); + m_lstbSeq->changeItem(m_lstbSeq->text(current), current+1); + m_lstbSeq->changeItem(text, current); + m_lstbSeq->setCurrentItem(current+1); + changed(); + } +} + +void QuickToolConfigWidget::up() +{ + int current = m_lstbSeq->currentItem(); + if ( (current != -1) && (current > 0) ) + { + TQString text = m_lstbSeq->text(current-1); + m_lstbSeq->changeItem(m_lstbSeq->text(current), current-1); + m_lstbSeq->changeItem(text, current); + m_lstbSeq->setCurrentItem(current-1); + changed(); + } +} + +void QuickToolConfigWidget::remove() +{ + int current = m_lstbSeq->currentItem(); + if ( current != -1) + { + m_lstbSeq->removeItem(current); + changed(); + } +} + +void QuickToolConfigWidget::add() +{ + TQString entry = m_cbTools->currentText(); + if ( m_cbConfigs->currentText() != i18n("Not Specified") ) + entry += " (" + m_cbConfigs->currentText() + ")"; + m_lstbSeq->insertItem(entry); + changed(); +} + + +void QuickToolConfigWidget::changed() +{ + TQString sequence, tool, cfg; + for (uint i = 0; i < m_lstbSeq->count(); ++i) + { + KileTool::extract(m_lstbSeq->text(i), tool, cfg); + sequence += KileTool::format(tool,cfg)+","; + } + if (sequence.endsWith(",") ) sequence = sequence.left(sequence.length()-1); + m_sequence = sequence; + emit sequenceChanged(m_sequence); +} diff --git a/src/kile/quictdetoolconfigwidget.ui b/src/kile/quictdetoolconfigwidget.ui deleted file mode 100644 index dcb2a3d..0000000 --- a/src/kile/quictdetoolconfigwidget.ui +++ /dev/null @@ -1,218 +0,0 @@ - -QuickToolConfigWidget - - - QuickToolConfigWidget - - - - 0 - 0 - 407 - 216 - - - - - 1 - 1 - 0 - 0 - - - - - unnamed - - - - m_cbTools - - - - 2 - 0 - 1 - 0 - - - - - 100 - 0 - - - - - - m_lbTool - - - Tool: - - - - - m_lbConfig - - - Configuration: - - - - - m_cbConfigs - - - - 2 - 0 - 1 - 0 - - - - - 150 - 0 - - - - - - m_pshbAdd - - - - 5 - 1 - 0 - 0 - - - - &Add - - - - - m_pshbRemove - - - - 5 - 1 - 0 - 0 - - - - &Remove - - - - - m_pshbDown - - - - 5 - 1 - 0 - 0 - - - - &Down - - - - - m_pshbUp - - - - 5 - 1 - 0 - 0 - - - - &Up - - - - - spacer5 - - - Vertical - - - Expanding - - - - 20 - 16 - - - - - - m_lstbSeq - - - - - - - m_pshbAdd - clicked() - QuickToolConfigWidget - add() - - - m_pshbRemove - clicked() - QuickToolConfigWidget - remove() - - - m_pshbUp - clicked() - QuickToolConfigWidget - up() - - - m_pshbDown - clicked() - QuickToolConfigWidget - down() - - - - klocale.h - kiletoolmanager.h - tqstring.h - kglobal.h - tquicktoolconfigwidget.ui.h - - - TQString m_sequence; - - - sequenceChanged(const TQString &) - - - updateSequence( const TQString & sequence ) - updateConfigs( const TQString & tool ) - down() - up() - remove() - add() - changed() - - - diff --git a/src/kile/quictdetoolconfigwidget.ui.h b/src/kile/quictdetoolconfigwidget.ui.h deleted file mode 100644 index c0ac55d..0000000 --- a/src/kile/quictdetoolconfigwidget.ui.h +++ /dev/null @@ -1,98 +0,0 @@ -/**************************************************************************** -** ui.h extension file, included from the uic-generated form implementation. -** -** If you wish to add, delete or rename functions or slots use -** TQt Designer which will update this file, preserving your code. Create an -** init() function in place of a constructor, and a destroy() function in -** place of a destructor. -*****************************************************************************/ - -void QuickToolConfigWidget::updateSequence(const TQString &sequence) -{ - TQStringList toollist = KileTool::toolList(TDEGlobal::config(), true); - toollist.sort(); - m_cbTools->clear(); - m_cbTools->insertStringList(toollist); - - updateConfigs(m_cbTools->currentText()); - connect(m_cbTools, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(updateConfigs(const TQString& ))); - - m_sequence=sequence; - TQStringList list = TQStringList::split(",",sequence); - TQString tl,cfg; - m_lstbSeq->clear(); - for ( uint i=0; i < list.count(); ++i) - { - KileTool::extract(list[i], tl, cfg); - if ( !cfg.isNull() ) - m_lstbSeq->insertItem(tl+" ("+cfg+")"); - else - m_lstbSeq->insertItem(tl); - } -} - -void QuickToolConfigWidget::updateConfigs(const TQString &tool) -{ - m_cbConfigs->clear(); - m_cbConfigs->insertItem(i18n("Not Specified")); - m_cbConfigs->insertStringList(KileTool::configNames(tool, TDEGlobal::config())); -} - -void QuickToolConfigWidget::down() -{ - int current = m_lstbSeq->currentItem(); - if ( (current != -1) && (current < ( ((int)m_lstbSeq->count())-1) )) - { - TQString text = m_lstbSeq->text(current+1); - m_lstbSeq->changeItem(m_lstbSeq->text(current), current+1); - m_lstbSeq->changeItem(text, current); - m_lstbSeq->setCurrentItem(current+1); - changed(); - } -} - -void QuickToolConfigWidget::up() -{ - int current = m_lstbSeq->currentItem(); - if ( (current != -1) && (current > 0) ) - { - TQString text = m_lstbSeq->text(current-1); - m_lstbSeq->changeItem(m_lstbSeq->text(current), current-1); - m_lstbSeq->changeItem(text, current); - m_lstbSeq->setCurrentItem(current-1); - changed(); - } -} - -void QuickToolConfigWidget::remove() -{ - int current = m_lstbSeq->currentItem(); - if ( current != -1) - { - m_lstbSeq->removeItem(current); - changed(); - } -} - -void QuickToolConfigWidget::add() -{ - TQString entry = m_cbTools->currentText(); - if ( m_cbConfigs->currentText() != i18n("Not Specified") ) - entry += " (" + m_cbConfigs->currentText() + ")"; - m_lstbSeq->insertItem(entry); - changed(); -} - - -void QuickToolConfigWidget::changed() -{ - TQString sequence, tool, cfg; - for (uint i = 0; i < m_lstbSeq->count(); ++i) - { - KileTool::extract(m_lstbSeq->text(i), tool, cfg); - sequence += KileTool::format(tool,cfg)+","; - } - if (sequence.endsWith(",") ) sequence = sequence.left(sequence.length()-1); - m_sequence = sequence; - emit sequenceChanged(m_sequence); -} -- cgit v1.2.1