◆ Ptr
◆ DummyView()
73 {
74 }
PresentationInterface::Ptr presentation
Definition pipette-tests.cc:109
◆ addSideWidget()
| void DummyView::addSideWidget |
( |
std::string |
title, |
|
|
GtkWidget * |
w |
|
) |
| |
|
inlineoverridevirtual |
Request that the given widget be added to the sidebar.
- Precondition
- Should be called from within a Gdk critical section (i.e. between gdk_threads_enter() and gdk_threads_leave() calls)
Implements ViewInterface.
◆ addToolButton()
Adds a new tool button to the toolbar. The given ToolStateListener will be informed when the tool is turned on or off. Only one tool will be active at the same time.
- See also
- ToolStateListener
Implements ViewInterface.
int tool_btn
Definition pipette-tests.cc:108
◆ addToToolbar()
| void DummyView::addToToolbar |
( |
GtkToolItem * |
ti | ) |
|
|
inlineoverridevirtual |
Request that the given tool item be added to the toolbar.
- Precondition
- Should be called from within a Gdk critical section (i.e. between gdk_threads_enter() and gdk_threads_leave() calls)
Implements ViewInterface.
◆ create()
◆ createWithoutPresentation()
| static Ptr DummyView::createWithoutPresentation |
( |
| ) |
|
|
inlinestatic |
static Ptr create(PresentationInterface::Ptr presentation_)
Definition pipette-tests.cc:69
◆ createWithPresentation()
| static Ptr DummyView::createWithPresentation |
( |
| ) |
|
|
inlinestatic |
static PresentationInterface::Ptr create()
Definition pipette-tests.cc:35
◆ getCurrentPresentation()
◆ getProgressInterface()
Return a pointer to the progess interface associated with the View
- Note
- The progress bar should only be manipulated from within a Gdk critical section (i.e. between gdk_threads_enter() and gdk_threads_leave() calls)
Implements ViewInterface.
◆ invalidate()
| void DummyView::invalidate |
( |
| ) |
|
|
inlineoverridevirtual |
Request that the window content is redrawn.
- Precondition
- Should be called from within a Gdk critical section (i.e. between gdk_threads_enter() and gdk_threads_leave() calls)
Implements ViewInterface.
◆ nextStatusMessage()
| std::string DummyView::nextStatusMessage |
( |
| ) |
|
|
inline |
94 {
95 std::unique_lock<std::mutex>
l(
mut);
96 if(!
cond.wait_for(
l, std::chrono::milliseconds(500), [&] { return !statusMessages.empty(); }))
97 {
98 ADD_FAILURE() << "Timeout waiting for status message";
99 return {};
100 }
104 }
std::mutex mut
Definition pipette-tests.cc:111
std::condition_variable cond
Definition pipette-tests.cc:112
std::list< std::string > statusMessages
Definition pipette-tests.cc:113
PageList const l
Definition compression-tests.cc:33
SampleIterator< const uint8_t > result
Definition sampleiterator-tests.cc:94
◆ registerPostRenderer()
Register a postrenderer to be updated whenever a redraw occurs. When this happens, the 'render' function gets called on the instance that is passed to the given instance.
Note that the order in which different registered instances get updated is the order in which they register to the view. This order remains constant throughout the view's lifetime.
- See also
- PostRenderer
Implements ViewInterface.
int reg_post
Definition pipette-tests.cc:107
◆ registerSelectionListener()
Register a SelectionListener to be updated whenever the user selects a region . When the user changes the selection, various functions on the given instance are called.
- See also
- SelectionListener
Implements ViewInterface.
int reg_sel
Definition pipette-tests.cc:106
◆ removeFromToolbar()
| void DummyView::removeFromToolbar |
( |
GtkToolItem * |
ti | ) |
|
|
inlineoverridevirtual |
Request that the given tool item be removed from the toolbar.
- Precondition
- Should be called from within a Gdk critical section (i.e. between gdk_threads_enter() and gdk_threads_leave() calls)
Implements ViewInterface.
◆ removeSideWidget()
| void DummyView::removeSideWidget |
( |
GtkWidget * |
w | ) |
|
|
inlineoverridevirtual |
Request that the given widget be removed from the sidebar.
- Precondition
- Should be called from within a Gdk critical section (i.e. between gdk_threads_enter() and gdk_threads_leave() calls)
Implements ViewInterface.
◆ setStatusMessage()
| void DummyView::setStatusMessage |
( |
const std::string & |
| ) |
|
|
inlineoverridevirtual |
Sets the status message in the status bar of the application.
Implements ViewInterface.
85 {
86 std::unique_lock<std::mutex>
const l(
mut);
89 }
◆ cond
| std::condition_variable DummyView::cond |
◆ mut
| std::mutex DummyView::mut |
◆ presentation
◆ reg_post
| int DummyView::reg_post = 0 |
◆ reg_sel
| int DummyView::reg_sel = 0 |
◆ statusMessages
| std::list<std::string> DummyView::statusMessages |
◆ tool_btn
| int DummyView::tool_btn = 0 |
The documentation for this class was generated from the following file: