TDE graphics utilities
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.

62 lines
1.7KB

  1. /* This file is part of the KDE project
  2. Copyright (C) 2002 Carsten Pfeiffer <pfeiffer@kde.org>
  3. This program is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU General Public
  5. License as published by the Free Software Foundation; either
  6. version 2 of the License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; see the file COPYING. If not, write to
  13. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  14. Boston, MA 02110-1301, USA.
  15. */
  16. #ifndef ALGORITHMDIALOG_H
  17. #define ALGORITHMDIALOG_H
  18. #include <kdialogbase.h>
  19. #include "mrml_elements.h"
  20. namespace KMrml
  21. {
  22. class AlgorithmCombo;
  23. class CollectionCombo;
  24. class AlgorithmDialog : public KDialogBase
  25. {
  26. Q_OBJECT
  27. public:
  28. AlgorithmDialog( const AlgorithmList&, const CollectionList&,
  29. const Collection& currentColl,
  30. TQWidget *parent = 0, const char *name = 0 );
  31. ~AlgorithmDialog();
  32. private slots:
  33. void collectionChanged( const Collection& );
  34. void initGUI( const Algorithm& algo );
  35. private:
  36. Algorithm m_algo;
  37. AlgorithmList m_allAlgorithms;
  38. AlgorithmList m_algosForCollection;
  39. CollectionList m_collections;
  40. CollectionCombo *m_collectionCombo;
  41. AlgorithmCombo *m_algoCombo;
  42. TQFrame *m_view;
  43. };
  44. }
  45. #endif // ALGORITHMDIALOG_H