Bibletime – a bible study tool
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

crefselectdialog.cpp 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /*********
  2. *
  3. * This file is part of BibleTime's source code, http://www.bibletime.info/.
  4. *
  5. * Copyright 1999-2006 by the BibleTime developers.
  6. * The BibleTime source code is licensed under the GNU General Public License version 2.0.
  7. *
  8. **********/
  9. #include "crefselectdialog.h"
  10. // QT
  11. #include "tqlayout.h"
  12. #include "tqlineedit.h"
  13. #include "tqlabel.h"
  14. // backend
  15. #include "backend/cswordkey.h"
  16. #include "backend/cswordversekey.h"
  17. //KDE includes
  18. #include <tdelocale.h>
  19. //CRefSelectDialog::CRefSelectDialog(TQWidget *parent)
  20. // : KDialogBase(parent, "Refenences",
  21. // true, i18n("Refenence selector"),
  22. // KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true),
  23. // m_oldPos(0,0)
  24. //
  25. //{
  26. // m_page = new TQWidget( this );
  27. // m_placeholder = new TQWidget( m_page);
  28. // TQVBoxLayout* layout = new TQVBoxLayout( m_page, 0, spacingHint());
  29. // m_lineedit = new TQLineEdit( TQString(), m_page, "select" );
  30. // m_lineedit->setMinimumWidth(fontMetrics().maxWidth()*8);
  31. //
  32. // TQHBoxLayout* hlayout = new TQHBoxLayout(m_page, 0, spacingHint());
  33. // hlayout->addWidget(new TQLabel(i18n("Verse key:"), m_page));
  34. // hlayout->addWidget(m_lineedit);
  35. // layout->addItem(hlayout);
  36. // layout->addWidget(m_placeholder);
  37. //
  38. // m_chooser = NULL;
  39. // m_oldParent = NULL;
  40. // setMainWidget(m_page);
  41. //
  42. // connect(this, TQT_SIGNAL(okClicked()), TQT_SLOT(slotPressedOk()));
  43. // connect(this, TQT_SIGNAL(cancelClicked()), TQT_SLOT(slotPressedCancel()));
  44. //}
  45. //
  46. //CRefSelectDialog::~CRefSelectDialog() {
  47. //}
  48. //
  49. //
  50. //void CRefSelectDialog::setChooser(CKeyChooser* const chooser) {
  51. // if (chooser && chooser != m_chooser) {
  52. // if (m_chooser) restoreParent();
  53. //
  54. // m_chooser = chooser;
  55. //
  56. // // store old owner and position
  57. // m_oldParent = chooser->parentWidget(false);
  58. // m_oldPos = chooser->pos();
  59. //
  60. // // we temporary borrow chooser widget from the MDI window
  61. // m_placeholder->setMinimumSize(chooser->size());
  62. // chooser->reparent(m_placeholder, TQPoint(0,0), true);
  63. // }
  64. //}
  65. //
  66. //void CRefSelectDialog::slotPressedOk() {
  67. // // go to proper key
  68. // CSwordKey* key = m_chooser->key();
  69. // key->key(m_lineedit->text());
  70. // m_chooser->setKey(key);
  71. //
  72. // // restore parent of stolen widget
  73. // restoreParent();
  74. //}
  75. //
  76. //void CRefSelectDialog::slotPressedCancel() {
  77. // // restore parent of stolen widget
  78. // restoreParent();
  79. //}
  80. //
  81. //void CRefSelectDialog::restoreParent() {
  82. // if (m_chooser && m_oldParent) {
  83. // m_chooser->reparent(m_oldParent, m_oldPos, true);
  84. // }
  85. // m_chooser = NULL;
  86. //}
  87. #include "crefselectdialog.moc"