LUAEditorGoToLineDialog.hxx 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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