LUAEditorGoToLineDialog.hxx 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #ifndef LUAEDITOR_GOTOLINE_H
  9. #define LUAEDITOR_GOTOLINE_H
  10. #if !defined(Q_MOC_RUN)
  11. #include <AzCore/base.h>
  12. #include <AzCore/Memory/SystemAllocator.h>
  13. #include <QDialog>
  14. #endif
  15. #pragma once
  16. namespace Ui
  17. {
  18. class goToLineDlg;
  19. }
  20. namespace LUAEditor
  21. {
  22. //////////////////////////////////////////////////////////////////////////
  23. // Find Dialog
  24. class LUAEditorGoToLineDialog
  25. : public QDialog
  26. {
  27. Q_OBJECT
  28. public:
  29. LUAEditorGoToLineDialog(QWidget *parent = 0);
  30. ~LUAEditorGoToLineDialog();
  31. int getLineNumber() { return m_lineNumber; }
  32. signals:
  33. void lineNumberChanged(int newNumber);
  34. public slots:
  35. void setLineNumber(int number);
  36. private:
  37. Ui::goToLineDlg* m_gui;
  38. int m_lineNumber;
  39. private slots:
  40. void spinBoxLineNumberChanged(int newNumber);
  41. };
  42. }
  43. #endif //LUAEDITOR_FINDDIALOG_H