mirror of
git://projects.qi-hardware.com/vido.git
synced 2024-12-22 09:23:19 +02:00
8f2d9951e0
Signed-off-by: Mirko Lindner <mirko@sharism.cc>
49 lines
2.1 KiB
C++
49 lines
2.1 KiB
C++
/***************************************************************************
|
|
* Copyright (C) 2009 by Mirko Lindner,,, *
|
|
* vegyraupe@mira *
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
* *
|
|
* This program is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
* GNU General Public License for more details. *
|
|
* *
|
|
* You should have received a copy of the GNU General Public License *
|
|
* along with this program; if not, write to the *
|
|
* Free Software Foundation, Inc., *
|
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
|
***************************************************************************/
|
|
|
|
#ifndef MAIN_WINDOW_HH
|
|
#define MAIN_WINDOW_HH
|
|
|
|
#include <gtkmm/window.h>
|
|
|
|
class main_window : public Gtk::Window
|
|
{
|
|
public:
|
|
main_window();
|
|
sigc::connection press_id;
|
|
sigc::connection release_id;
|
|
sigc::connection motion_id;
|
|
void connect_all();
|
|
void disconnect_all();
|
|
|
|
private:
|
|
bool actions(int);
|
|
int ctrl_state;
|
|
void move_cursor(int direction);
|
|
// bool on_my_key_press_event(GdkEventKey *event);
|
|
void on_notify_key_press_event(GdkEventKey *event);
|
|
void on_notify_key_release_event(GdkEventKey *event);
|
|
void on_notify_motion_notify_event(GdkEvent *event);
|
|
// bool on_my_key_release_event(GdkEventKey *event);
|
|
bool quit();
|
|
};
|
|
|
|
#endif // MAIN_WINDOW_HH
|