mirror of
https://github.com/AxioDL/amuse.git
synced 2025-12-09 13:37:47 +00:00
Add translation infrastructure
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
#include <QLabel>
|
||||
#include <QMouseEvent>
|
||||
#include <QSpinBox>
|
||||
#include <QComboBox>
|
||||
#include <QTreeWidget>
|
||||
|
||||
class SoundMacroListing;
|
||||
class CatalogueItem;
|
||||
@@ -24,6 +26,17 @@ public:
|
||||
void wheelEvent(QWheelEvent* event) { event->ignore(); }
|
||||
};
|
||||
|
||||
class FieldComboBox : public QComboBox
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
FieldComboBox(QWidget* parent = Q_NULLPTR)
|
||||
: QComboBox(parent) {}
|
||||
|
||||
/* Don't scroll */
|
||||
void wheelEvent(QWheelEvent* event) { event->ignore(); }
|
||||
};
|
||||
|
||||
class CommandWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -40,7 +53,6 @@ class CommandWidget : public QWidget
|
||||
void snapOpen();
|
||||
void snapClosed();
|
||||
void setIndex(int index);
|
||||
SoundMacroListing* getParent() const;
|
||||
private slots:
|
||||
void animationDestroyed();
|
||||
void boolChanged(int);
|
||||
@@ -94,16 +106,20 @@ public:
|
||||
amuse::SoundMacro::CmdOp getCmdOp() const { return m_op; }
|
||||
};
|
||||
|
||||
class SoundMacroCatalogue : public QWidget
|
||||
class SoundMacroCatalogue : public QTreeWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit SoundMacroCatalogue(QWidget* parent = Q_NULLPTR);
|
||||
void mousePressEvent(QMouseEvent* event);
|
||||
void mouseReleaseEvent(QMouseEvent* event);
|
||||
void mouseMoveEvent(QMouseEvent* event);
|
||||
};
|
||||
|
||||
class SoundMacroEditor : public EditorWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
friend class SoundMacroCatalogue;
|
||||
QSplitter* m_splitter;
|
||||
SoundMacroListing* m_listing;
|
||||
SoundMacroCatalogue* m_catalogue;
|
||||
@@ -120,6 +136,9 @@ public:
|
||||
void mouseReleaseEvent(QMouseEvent* event);
|
||||
void mouseMoveEvent(QMouseEvent* event);
|
||||
void keyPressEvent(QKeyEvent* event);
|
||||
|
||||
public slots:
|
||||
void catalogueDoubleClicked(QTreeWidgetItem* item, int column);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user