Hugin trunk 0.1
Loading...
Searching...
No Matches
BatchTrayIcon.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
2
11/*
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public
14 * License as published by the Free Software Foundation; either
15 * version 2 of the License, or (at your option) any later version.
16 *
17 * This software is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public
23 * License along with this software. If not, see
24 * <http://www.gnu.org/licenses/>.
25 *
26 */
27
28#ifndef BATCHTRAYICON_H
29#define BATCHTRAYICON_H
30
32#include <wx/taskbar.h>
33class BatchTaskBarIcon : public wxTaskBarIcon
34{
35public:
37protected:
41 void OnShowGUI(wxCommandEvent& e);
43 void OnStartBatch(wxCommandEvent& e);
45 void OnPauseBatch(wxCommandEvent& e);
47 void OnStopBatch(wxCommandEvent& e);
49 void OnExit(wxCommandEvent& e);
51 void OnAddProject(wxCommandEvent& e);
53 void OnAddProjectToAssistant(wxCommandEvent& e);
55 virtual wxMenu* CreatePopupMenu();
56};
57
58#if defined __WXMSW__ && wxUSE_TASKBARICON_BALLOONS
59// wxMSW, version 2.9 offers a native balloon for the traybar notification
60// we need to implement a own version for the other systems only
61#else
62#include <wx/frame.h>
63#include <wx/timer.h>
64
66// idea from http://wiki.wxwidgets.org/WxTaskBarIcon
67class TaskBarBalloon : public wxFrame
68{
69public:
71 virtual ~TaskBarBalloon();
75 void OnClick(wxMouseEvent& e);
77 void OnKeyDown(wxKeyEvent& e);
78
80 void showBalloon(unsigned int iTimeout);
81private:
82 wxTimer* m_timer;
83};
84#endif
85
86#endif // BATCHTRAYICON_H
class for showing a taskbar/tray icon
void OnShowGUI(wxCommandEvent &e)
handler to open window
void OnPauseBatch(wxCommandEvent &e)
handler to pause batch
void OnStartBatch(wxCommandEvent &e)
handler to start batch
void OnLeftButtonDClick(wxTaskBarIconEvent &)
handler if double clicked on taskbar icon, opens window
virtual wxMenu * CreatePopupMenu()
creates the popup menu
void OnAddProjectToAssistant(wxCommandEvent &e)
handler to adding a project to assistant queue
void OnExit(wxCommandEvent &e)
handler to exit PTBatcherGUI
void OnAddProject(wxCommandEvent &e)
handler to adding a project to stitching queue
void OnStopBatch(wxCommandEvent &e)
handler to stop batch
class to show a taskbar balloon
void OnClick(wxMouseEvent &e)
click on the balloon
void showBalloon(unsigned int iTimeout)
display the baloon and run the timer
void OnTimerTick(wxTimerEvent &e)
timer to close window
wxTimer * m_timer
virtual ~TaskBarBalloon()
void OnKeyDown(wxKeyEvent &e)
key down event in the balloon
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.
Definition threshold.h:41