20 #ifndef OMNI_UI_PROJ_TUNING_H
21 #define OMNI_UI_PROJ_TUNING_H
67 Tuning(QWidget *_parent =
nullptr);
71 std::shared_ptr<omni::Session>_session,
72 QWidget *_parent =
nullptr);
112 int _subScreenIndex);
193 return std::min(layout()->count()-1,2);
197 void addGroup(QString
const& _groupName,
200 void setGroup(QString
const& _groupName);
bool frontendToData()
Return true if data has changed by front end.
Definition: Tuning.cpp:117
~Tuning()
Destructor.
Definition: Tuning.cpp:64
void detachScreen()
Detaches screen from this tuning Also triggered when QGuiApplication::screenAdded or QGuiApplication...
Definition: Tuning.cpp:253
QUniquePtr< TuningGLView > glView_
GL preview widget.
Definition: Tuning.h:206
A session consists of a canvas, a mapping, a list of tunings and one or several inputs.
Definition: Session.h:41
void showEvent(QShowEvent *)
Handles proper resizing of the widget.
Definition: Tuning.cpp:597
#define OMNI_UI_SHARED_DATAMODEL(MODEL)
Definition: DataModel.h:216
void resetToFreeSetup()
Reset to free projector setup (discards previous projector setup)
Definition: Tuning.cpp:152
Tuning(QWidget *_parent=nullptr)
Default constructor.
Definition: Tuning.cpp:56
void sessionModeChange()
Display content and widget for specific session mode.
Definition: Tuning.cpp:530
void updateColor()
Update slider and border color.
Definition: Tuning.cpp:512
void setSelected(bool)
Sets flag if Tuning Widget is active A tuning widget should only be active when. ...
Definition: Tuning.cpp:503
void addGroup(QString const &_groupName, widgetgroup_type const &_widgets)
Adds a new/changes a parameter group.
Definition: Tuning.cpp:433
void dataToFrontend()
Pure virtual method which determines how data model is represented in frontend.
Definition: Tuning.cpp:68
void updateViews()
Update GL View and Fullscreen view, if there is any.
Definition: Tuning.cpp:260
void prepareRemove()
Clean up.
Definition: Tuning.cpp:525
void paintEvent(QPaintEvent *)
Paint border.
Definition: Tuning.cpp:600
void setKeyStone()
Set keystone correction from slider.
Definition: Tuning.cpp:237
std::vector< std::pair< QWidget *, Role > > widgetgroup_type
Definition: TuningLayout.h:46
bool eventFilter(QObject *, QEvent *)
Handles focus events from child widgets.
Definition: Tuning.cpp:665
WindowState windowState_
Window State.
Definition: Tuning.h:212
void setThrowRatio()
Set Throw Ratio to projector from slider.
Definition: Tuning.cpp:226
void setNextWindowState()
Selects succeeding window state.
Definition: Tuning.cpp:474
void projectorSetupChanged()
void focusInEvent(QFocusEvent *)
Focus in event used by TuningList to set current tuning for.
Definition: Tuning.cpp:690
TuningLayout::widgetgroup_type widgetgroup_type
Definition: Tuning.h:64
void resetToPeripheralSetup()
Reset to peripheral projector setup (discards previous projector.
Definition: Tuning.cpp:161
void resizeEvent(QResizeEvent *)
Handles resizing of sliders and preview.
Definition: Tuning.cpp:590
TuningGLView * fullscreenWidget()
Return pointer to fullscreen widget.
Definition: Tuning.cpp:121
void mouseMoveEvent(QMouseEvent *)
Mouse Move Event and handler for dragging to ScreenSetup widget.
Definition: Tuning.cpp:625
void focusOutEvent(QFocusEvent *)
Focus out for deselecting tuning.
Definition: Tuning.cpp:696
Tuning Layout Similar to VBoxLayout, except that widgets with a PREVIEW Role have a size with aspect...
Definition: TuningLayout.h:35
void setFov()
Set FOV to projector from slider.
Definition: Tuning.cpp:213
TuningGLView * previewWidget()
Return pointer to preview widget.
Definition: Tuning.cpp:131
WindowState windowState() const
Return current window state.
Definition: Tuning.cpp:463
void fullscreenToggle(bool)
Enable or disable fullscreen display.
Definition: Tuning.cpp:142
void attachScreen(QScreen const *_screen, int _subScreenIndex)
Attaches a screen to this tuning.
Definition: Tuning.cpp:246
Holds a specific data model with frontend update mechanism.
Definition: DataModel.h:87
Definition: TuningFromIndex.h:30
bool isSelected() const
Return selected flag.
Definition: Tuning.cpp:684
QUniquePtr< TitleBar > titleBar_
Title bar widget.
Definition: Tuning.h:203
void updateParameters()
Set parameters from sliders to tuning.
Definition: Tuning.cpp:169
Widget for manipulating projector parameters Also holds a preview OpenGL widget. ...
Definition: Tuning.h:46
std::map< QString, widgetgroup_type > groups_
Definition: Tuning.h:220
void startDrag()
Definition: Tuning.cpp:634
bool isSelected_
Is true when this widgets index and current tuning index are equal.
Definition: Tuning.h:215
WindowState
View mode (determines which elements are to be displayed)
Definition: Tuning.h:55
TuningLayout * layout_
Layout.
Definition: Tuning.h:218
A GLView for visualizing all modes of a projector view (tuning)
Definition: TuningGLView.h:34
void setGroup(QString const &_groupName)
Definition: Tuning.cpp:442
QUniquePtr< TuningGLView > fullscreen_
Definition: Tuning.h:209
void setWindowState(WindowState _mode)
Sets Window State which determines which elements are visible.
Definition: Tuning.cpp:468
virtual int firstFocusId() const
Id of first focussed widget.
Definition: Tuning.h:192
void setup()
Setup (only called in constructor)
Definition: Tuning.cpp:270