added simple fullscreen mode, toggled by F11

This commit is contained in:
ipopov 2010-04-25 01:42:33 +04:00
parent 09a81a8e6b
commit ece6eda296
2 changed files with 12 additions and 0 deletions

View File

@ -144,6 +144,16 @@ void RTWindow::remEditorPanel (EditorPanel* ep) {
} }
bool RTWindow::keyPressed (GdkEventKey* event) { bool RTWindow::keyPressed (GdkEventKey* event) {
if(event->keyval == GDK_F11) {
if(is_fullscreen){
unfullscreen();
is_fullscreen = false;
}
else {
fullscreen();
is_fullscreen = true;
}
}
if (mainNB->get_nth_page (mainNB->get_current_page()) == fpanel) { if (mainNB->get_nth_page (mainNB->get_current_page()) == fpanel) {
} }

View File

@ -34,6 +34,8 @@ class RTWindow : public Gtk::Window {
std::set<Glib::ustring> filesEdited; std::set<Glib::ustring> filesEdited;
std::map<Glib::ustring, EditorPanel*> epanels; std::map<Glib::ustring, EditorPanel*> epanels;
bool is_fullscreen;
public: public:
RTWindow (); RTWindow ();