RafaMar + programmer friend Help button in Batch Render addition
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / levelwindowgui.C
index 75999e1ae61e15835a9bf51af548153bda808751..b35409bebbeb6c5cd3aeb3ec654de791018085a9 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "edl.h"
 #include "edlsession.h"
+#include "keys.h"
 #include "language.h"
 #include "levelwindow.h"
 #include "levelwindowgui.h"
 
 LevelWindowGUI::LevelWindowGUI(MWindow *mwindow, LevelWindow *thread)
  : BC_Window(_(PROGRAM_NAME ": Levels"),
-       mwindow->session->lwindow_x,
-       mwindow->session->lwindow_y,
-       mwindow->session->lwindow_w,
-       mwindow->session->lwindow_h,
-       10,
-       10,
-       1,
-       0,
-       1)
+       mwindow->session->lwindow_x, mwindow->session->lwindow_y,
+       mwindow->session->lwindow_w, mwindow->session->lwindow_h,
+       xS(10), yS(10), 1, 0, 1)
 {
        this->thread = thread;
        this->mwindow = mwindow;
@@ -112,15 +107,23 @@ int LevelWindowGUI::close_event()
 
 int LevelWindowGUI::keypress_event()
 {
-       if(get_keypress() == 'w' || get_keypress() == 'W')
-       {
+       switch( get_keypress() ) {
+       case 'w':
+       case 'W':
                close_event();
                return 1;
+       case KEY_F1:
+       case KEY_F2:
+       case KEY_F3:
+       case KEY_F4:
+               if( ctrl_down() && shift_down() ) {
+                       resend_event(mwindow->gui);
+                       return 1;
+               }
        }
        return 0;
 }
 
-
 int LevelWindowGUI::reset_over()
 {
        return 0;