#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;
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Sound Level Meters Window");
}
LevelWindowGUI::~LevelWindowGUI()
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;
+ return context_help_check_and_show();
}
-
int LevelWindowGUI::reset_over()
{
return 0;