Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

MWindowGUI Class Reference

#include <mwindowgui.h>

List of all members.

Public Member Functions

 MWindowGUI (MWindow *mwindow)
 ~MWindowGUI ()
int create_objects ()
void get_scrollbars ()
void redraw_time_dependancies ()
int focus_in_event ()
int focus_out_event ()
void update (int scrollbars, int canvas, int timebar, int zoombar, int patchbay, int clock, int buttonbar)
void update_title (char *path)
int translation_event ()
int resize_event (int w, int h)
int keypress_event ()
int close_event ()
int quit ()
int save_defaults (Defaults *defaults)
int menu_h ()
int show_message (char *message, int color=-1)
void show_error (char *message, int color=BLACK)
int repeat_event (int64_t duration)
int drag_motion ()
int drag_stop ()
void default_positions ()

Static Public Member Functions

static int visible (int64_t x1, int64_t x2, int64_t view_x1, int64_t view_x2)

Public Attributes

MWindowmwindow
EditPopupedit_menu
PluginPopupplugin_menu
KeyframePopupkeyframe_menu
TransitionPopuptransition_menu
MainClockmainclock
MButtonsmbuttons
MTimeBartimebar
PatchBaypatchbay
MainMenumainmenu
ZoomBarzoombar
SampleScrollsamplescroll
StatusBarstatusbar
TrackScrolltrackscroll
TrackCanvascanvas
MainCursorcursor
int view_w
int view_h


Detailed Description

Definition at line 23 of file mwindowgui.h.


Constructor & Destructor Documentation

MWindowGUI::MWindowGUI MWindow mwindow  ) 
 

Definition at line 38 of file mwindowgui.C.

References canvas, cursor, samplescroll, and trackscroll.

MWindowGUI::~MWindowGUI  ) 
 

Definition at line 58 of file mwindowgui.C.

References cursor, edit_menu, keyframe_menu, mainclock, mbuttons, patchbay, plugin_menu, samplescroll, statusbar, timebar, trackscroll, transition_menu, and zoombar.


Member Function Documentation

int MWindowGUI::close_event  ) 
 

Definition at line 658 of file mwindowgui.C.

References mainmenu, and MainMenu::quit().

int MWindowGUI::create_objects  ) 
 

Definition at line 169 of file mwindowgui.C.

References TrackCanvas::activate(), canvas, TransitionPopup::create_objects(), KeyframePopup::create_objects(), PluginPopup::create_objects(), EditPopup::create_objects(), StatusBar::create_objects(), ZoomBar::create_objects(), TrackCanvas::create_objects(), PatchBay::create_objects(), TimeBar::create_objects(), MButtons::create_objects(), MainMenu::create_objects(), cursor, edit_menu, get_scrollbars(), keyframe_menu, mainclock, mainmenu, mbuttons, mwindow, patchbay, plugin_menu, MainClock::set_frame_offset(), statusbar, MWindow::theme, timebar, transition_menu, MainClock::update(), and zoombar.

Referenced by MWindow::init_gui().

void MWindowGUI::default_positions  ) 
 

Definition at line 370 of file mwindowgui.C.

References MWindow::awindow, MainSession::awindow_h, MainSession::awindow_w, MainSession::awindow_x, MainSession::awindow_y, MWindow::cwindow, MainSession::cwindow_h, MainSession::cwindow_w, MainSession::cwindow_x, MainSession::cwindow_y, AWindow::gui, CWindow::gui, VWindow::gui, mwindow, MainSession::mwindow_h, MainSession::mwindow_w, MainSession::mwindow_x, MainSession::mwindow_y, AWindowGUI::resize_event(), CWindowGUI::resize_event(), VWindowGUI::resize_event(), resize_event(), MWindow::session, MWindow::vwindow, MainSession::vwindow_h, MainSession::vwindow_w, MainSession::vwindow_x, and MainSession::vwindow_y.

Referenced by MWindow::tile_windows().

int MWindowGUI::drag_motion  ) 
 

Definition at line 354 of file mwindowgui.C.

References canvas, and TrackCanvas::drag_motion().

Referenced by AWindowAssets::drag_motion_event().

int MWindowGUI::drag_stop  ) 
 

Definition at line 362 of file mwindowgui.C.

References canvas, and TrackCanvas::drag_stop().

Referenced by AWindowAssets::drag_stop_event().

int MWindowGUI::focus_in_event  ) 
 

Definition at line 270 of file mwindowgui.C.

References cursor, and MainCursor::focus_in_event().

int MWindowGUI::focus_out_event  ) 
 

Definition at line 276 of file mwindowgui.C.

References cursor, and MainCursor::focus_out_event().

void MWindowGUI::get_scrollbars  ) 
 

Definition at line 75 of file mwindowgui.C.

References canvas, MWindow::edl, EDL::get_tracks_height(), EDL::get_tracks_width(), EDL::local_session, Theme::mcanvas_h, Theme::mcanvas_w, Theme::mcanvas_x, Theme::mcanvas_y, Theme::mhscroll_x, Theme::mvscroll_x, mwindow, TrackScroll::resize_event(), SampleScroll::resize_event(), samplescroll, SampleScroll::set_position(), MWindow::theme, LocalSession::track_start, trackscroll, view_h, LocalSession::view_start, and view_w.

Referenced by MWindow::add_audio_track_entry(), MWindow::add_video_track_entry(), create_objects(), TrackCanvas::drag_stop(), resize_event(), MWindow::trackmovement(), update(), and MWindow::zoom_sample().

int MWindowGUI::keypress_event  ) 
 

Definition at line 465 of file mwindowgui.C.

References canvas, MWindow::cwindow, MWindow::edl, MWindow::expand_autos(), MWindow::expand_sample(), MWindow::expand_t(), MWindow::expand_y(), MButtons::keypress_event(), mbuttons, MWindow::move_down(), MWindow::move_left(), MWindow::move_right(), MWindow::move_up(), mwindow, Tracks::RECORD, Track::record, Tracks::select_all(), MWindow::shrink_autos(), Tracks::total_of(), TrackCanvas::track_dimensions(), EDL::tracks, CWindow::update(), update(), MWindow::zoom_in_sample(), MWindow::zoom_in_t(), and MWindow::zoom_in_y().

int MWindowGUI::menu_h  ) 
 

Definition at line 663 of file mwindowgui.C.

References mainmenu.

int MWindowGUI::quit  ) 
 

void MWindowGUI::redraw_time_dependancies  ) 
 

Definition at line 263 of file mwindowgui.C.

References MWindow::edl, LocalSession::get_selectionstart(), EDL::local_session, mainclock, mwindow, ZoomBar::redraw_time_dependancies(), timebar, MainClock::update(), TimeBar::update(), and zoombar.

Referenced by PreferencesThread::apply_settings(), and MWindow::time_format_common().

int MWindowGUI::repeat_event int64_t  duration  ) 
 

Definition at line 440 of file mwindowgui.C.

References cursor, and MainCursor::repeat_event().

int MWindowGUI::resize_event int  w,
int  h
 

Definition at line 283 of file mwindowgui.C.

References canvas, Theme::draw_mwindow_bg(), Theme::get_mwindow_sizes(), get_scrollbars(), mainmenu, mbuttons, mwindow, MainSession::mwindow_h, MainSession::mwindow_w, patchbay, TrackCanvas::resize_event(), ZoomBar::resize_event(), PatchBay::resize_event(), MTimeBar::resize_event(), StatusBar::resize_event(), MButtons::resize_event(), MWindow::session, statusbar, MWindow::theme, timebar, and zoombar.

Referenced by default_positions().

int MWindowGUI::save_defaults Defaults *  defaults  ) 
 

Definition at line 457 of file mwindowgui.C.

References mainmenu, and MainMenu::save_defaults().

Referenced by MWindow::save_defaults().

void MWindowGUI::show_error char *  message,
int  color = BLACK
 

int MWindowGUI::show_message char *  message,
int  color = -1
 

Definition at line 344 of file mwindowgui.C.

References Theme::message_normal, mwindow, StatusBar::status_text, statusbar, and MWindow::theme.

Referenced by Save::handle_event(), SaveBackup::handle_event(), SaveSettingsNow::handle_event(), MWindow::load_filenames(), MWindow::paste_audio_transition(), MWindow::paste_video_transition(), Render::render(), SaveAs::run(), PluginArray::run_plugins(), MWindow::save_backup(), Render::stop_progress(), MWindow::time_format_common(), TrackCanvas::update_drag_auto(), TrackCanvas::update_drag_floatauto(), TrackCanvas::update_drag_pluginauto(), TrackCanvas::update_drag_toggleauto(), and MainProgressBar::update_title().

int MWindowGUI::translation_event  ) 
 

Definition at line 448 of file mwindowgui.C.

References mwindow, MainSession::mwindow_x, MainSession::mwindow_y, and MWindow::session.

void MWindowGUI::update int  scrollbars,
int  canvas,
int  timebar,
int  zoombar,
int  patchbay,
int  clock,
int  buttonbar
 

Definition at line 302 of file mwindowgui.C.

References cursor, MWindow::edl, get_scrollbars(), LocalSession::get_selectionstart(), EDL::local_session, mainclock, mbuttons, mwindow, MainCursor::show(), MWindow::theme, EDL::tracks, MButtons::update(), MainClock::update(), and Tracks::update_y_pixels().

Referenced by SetFormatThread::apply_changes(), PreferencesThread::apply_settings(), MWindow::clear_entry(), MWindow::concatenate_tracks(), MWindow::cut(), MWindow::delete_track(), MWindow::delete_tracks(), MWindow::detach_transition(), CWindowGUI::drag_stop(), MWindow::finish_modify_handles(), ShowTitles::handle_event(), ShowAssets::handle_event(), TransitionLengthText::handle_event(), PluginPopupDetach::handle_event(), KeyframePopupDelete::handle_event(), GWindowToggle::handle_event(), MWindow::insert_effects_cwindow(), keypress_event(), MWindow::move_edits(), MWindow::move_effect(), MWindow::move_plugins_down(), MWindow::move_plugins_up(), MWindow::move_track_down(), MWindow::move_track_up(), MWindow::move_tracks_down(), MWindow::move_tracks_up(), MWindow::mute_selection(), MWindow::overwrite(), MWindow::paste(), MWindow::paste_assets(), MWindow::paste_audio_transition(), MWindow::paste_silence(), MWindow::paste_transition_cwindow(), MWindow::paste_video_transition(), MWindow::redo_entry(), MWindow::remove_assets_from_project(), Render::render(), Record::run(), PluginDialogThread::run(), MenuEffectThread::run(), ManualGoto::run(), AssetEdit::run(), MWindow::select_all(), CTimeBar::select_label(), MWindow::splice(), MWindow::trim_selection(), MWindow::undo_entry(), KeyframePopup::update(), and MWindow::update_project().

void MWindowGUI::update_title char *  path  ) 
 

Definition at line 252 of file mwindowgui.C.

int MWindowGUI::visible int64_t  x1,
int64_t  x2,
int64_t  view_x1,
int64_t  view_x2
[static]
 

Definition at line 336 of file mwindowgui.C.

Referenced by TrackCanvas::do_plugins(), TrackCanvas::do_transitions(), TrackCanvas::draw_brender_start(), TrackCanvas::draw_highlighting(), TrackCanvas::draw_loop_points(), TrackCanvas::draw_plugins(), TrackCanvas::draw_resources(), TrackCanvas::draw_transitions(), and CanvasTools::visible().


Member Data Documentation

TrackCanvas* MWindowGUI::canvas
 

Definition at line 86 of file mwindowgui.h.

Referenced by MWindow::add_audio_track_entry(), MWindow::add_video_track_entry(), PreferencesThread::apply_settings(), TimeBar::button_press_event(), MutePatch::button_press_event(), TimeBar::button_release_event(), CWindow::calculate_affected_auto(), MWindow::clear_automation(), MWindow::clear_default_keyframe(), create_objects(), MWindow::create_objects(), TimeBar::cursor_motion_event(), PatchBay::cursor_motion_event(), CWindowCanvas::cursor_motion_event(), MWindow::cut_automation(), MWindow::cut_default_keyframe(), drag_motion(), drag_stop(), Tracking::draw(), MainCursor::draw(), MWindow::expand_autos(), MWindow::find_cursor(), MWindow::fit_autos(), MWindow::fit_selection(), MainCursor::flash(), get_scrollbars(), MWindow::goto_end(), MWindow::goto_start(), VModePatch::handle_event(), VFadePatch::handle_event(), PluginAutomation::handle_event(), ShowAutomation::handle_event(), ShowTransitions::handle_event(), TrackScroll::handle_event(), SampleScroll::handle_event(), TitlePatch::handle_event(), GWindowToggle::handle_event(), CWindowProjectorGUI::handle_event(), CWindowCameraGUI::handle_event(), APanPatch::handle_event(), AFadePatch::handle_event(), CPlayback::init_cursor(), keypress_event(), MWindow::move_left(), MWindow::move_right(), MWindowGUI(), MWindow::next_label(), MWindow::paste_automation(), MWindow::paste_default_keyframe(), MWindow::prev_label(), IndexFile::redraw_edits(), TimeBar::repeat_event(), resize_event(), MWindow::samplemovement(), MWindow::select_all(), MTimeBar::select_label(), MWindow::select_point(), TimeBar::select_region(), MWindow::set_brender_start(), MWindow::set_editing_mode(), SampleScroll::set_position(), ZoomBar::set_selection(), MWindow::shrink_autos(), PluginServer::sync_parameters(), ZoomPanel::text_to_zoom(), MWindow::toggle_label(), MWindow::toggle_loop_playback(), MWindow::trackmovement(), CTracking::update_scroll(), CTracking::update_tracker(), ZoomPanel::value_to_text(), and MWindow::zoom_amp().

MainCursor* MWindowGUI::cursor
 

Definition at line 88 of file mwindowgui.h.

Referenced by TrackCanvas::activate(), MWindow::add_audio_track_entry(), MWindow::add_video_track_entry(), TrackCanvas::button_press_event(), create_objects(), MWindow::create_objects(), TrackCanvas::cursor_motion_event(), TrackCanvas::deactivate(), TrackCanvas::do_edit_handles(), TrackCanvas::do_plugin_handles(), TrackCanvas::drag_stop(), TrackCanvas::draw(), TrackCanvas::draw_overlays(), focus_in_event(), focus_out_event(), MWindow::goto_end(), MWindow::goto_start(), TrackScroll::handle_event(), SampleScroll::handle_event(), MWindowGUI(), MWindow::next_label(), MWindow::prev_label(), repeat_event(), MWindow::samplemovement(), MTimeBar::select_label(), CTimeBar::select_label(), MWindow::select_point(), TimeBar::select_region(), ZoomBar::set_selection(), CTracking::start_playback(), CTracking::stop_playback(), update(), CTracking::update_tracker(), and ~MWindowGUI().

EditPopup* MWindowGUI::edit_menu
 

Definition at line 72 of file mwindowgui.h.

Referenced by create_objects(), TrackCanvas::do_tracks(), and ~MWindowGUI().

KeyframePopup* MWindowGUI::keyframe_menu
 

Definition at line 74 of file mwindowgui.h.

Referenced by create_objects(), TrackCanvas::do_keyframes(), and ~MWindowGUI().

MainClock* MWindowGUI::mainclock
 

Definition at line 77 of file mwindowgui.h.

Referenced by create_objects(), TrackCanvas::cursor_motion_event(), redraw_time_dependancies(), MWindow::select_point(), update(), TrackCanvas::update_drag_handle(), CTracking::update_tracker(), and ~MWindowGUI().

MainMenu* MWindowGUI::mainmenu
 

Definition at line 81 of file mwindowgui.h.

Referenced by VWindowGUI::close_event(), close_event(), LevelWindowGUI::close_event(), GWindowGUI::close_event(), AWindowGUI::close_event(), create_objects(), MWindow::create_objects(), MenuVEffectThread::fix_menu(), MenuAEffectThread::fix_menu(), Quit::handle_event(), LoadPrevious::handle_event(), VideoWindow::hide_window(), CWindow::hide_window(), main(), menu_h(), MWindow::paste_edls(), MainUndo::push_undo_item(), MainUndo::redo(), resize_event(), Quit::run(), LoadFileThread::run(), save_defaults(), MWindow::show_awindow(), MWindow::show_cwindow(), MWindow::show_gwindow(), MWindow::show_lwindow(), MWindow::show_vwindow(), VideoWindow::show_window(), MainUndo::undo(), and GWindowGUI::update_mwindow().

MButtons* MWindowGUI::mbuttons
 

Definition at line 78 of file mwindowgui.h.

Referenced by TrackCanvas::button_press_event(), create_objects(), keypress_event(), EditPanel::next_label(), ManualGoto::open_window(), EditPanel::prev_label(), resize_event(), ManualGoto::run(), MTimeBar::select_label(), CTimeBar::select_label(), MWindow::set_auto_keyframes(), MWindow::set_editing_mode(), MTimeBar::stop_playback(), update(), and ~MWindowGUI().

MWindow* MWindowGUI::mwindow
 

Definition at line 69 of file mwindowgui.h.

Referenced by create_objects(), default_positions(), get_scrollbars(), keypress_event(), redraw_time_dependancies(), resize_event(), show_message(), translation_event(), and update().

PatchBay* MWindowGUI::patchbay
 

Definition at line 80 of file mwindowgui.h.

Referenced by MWindow::add_audio_track_entry(), MWindow::add_video_track_entry(), PreferencesThread::apply_settings(), TrackCanvas::button_press_event(), MWindow::clear_automation(), MWindow::clear_default_keyframe(), create_objects(), MWindow::create_objects(), TrackCanvas::cursor_motion_event(), MWindow::cut_automation(), MWindow::cut_default_keyframe(), TrackCanvas::drag_motion(), TrackCanvas::drag_stop(), MWindow::goto_end(), MWindow::goto_start(), TrackScroll::handle_event(), SampleScroll::handle_event(), MWindow::next_label(), MWindow::paste_automation(), MWindow::paste_default_keyframe(), MWindow::prev_label(), TrackCanvas::repeat_event(), MWindow::reset_meters(), resize_event(), MWindow::select_point(), Tracking::stop_meters(), MWindow::trackmovement(), Tracking::update_meters(), CTracking::update_tracker(), MWindow::zoom_amp(), and ~MWindowGUI().

PluginPopup* MWindowGUI::plugin_menu
 

Definition at line 73 of file mwindowgui.h.

Referenced by create_objects(), TrackCanvas::do_plugins(), and ~MWindowGUI().

SampleScroll* MWindowGUI::samplescroll
 

Definition at line 83 of file mwindowgui.h.

Referenced by get_scrollbars(), MWindowGUI(), MWindow::samplemovement(), MWindow::zoom_sample(), and ~MWindowGUI().

StatusBar* MWindowGUI::statusbar
 

Definition at line 84 of file mwindowgui.h.

Referenced by create_objects(), MWindow::load_filenames(), resize_event(), show_message(), MainProgress::start_progress(), MainProgressBar::stop_progress(), and ~MWindowGUI().

MTimeBar* MWindowGUI::timebar
 

Definition at line 79 of file mwindowgui.h.

Referenced by TrackCanvas::button_press_event(), MWindow::clear_labels(), create_objects(), TrackCanvas::do_edit_handles(), TrackCanvas::do_plugin_handles(), SampleScroll::handle_event(), MWindow::next_label(), MWindow::prev_label(), redraw_time_dependancies(), resize_event(), MWindow::samplemovement(), MWindow::set_inpoint(), MWindow::set_outpoint(), ZoomBar::set_selection(), BRender::set_video_map(), MWindow::toggle_label(), and ~MWindowGUI().

TrackScroll* MWindowGUI::trackscroll
 

Definition at line 85 of file mwindowgui.h.

Referenced by get_scrollbars(), MWindow::move_down(), MWindow::move_up(), MWindowGUI(), and ~MWindowGUI().

TransitionPopup* MWindowGUI::transition_menu
 

Definition at line 75 of file mwindowgui.h.

Referenced by create_objects(), TrackCanvas::do_transitions(), and ~MWindowGUI().

int MWindowGUI::view_h
 

Definition at line 90 of file mwindowgui.h.

Referenced by get_scrollbars().

int MWindowGUI::view_w
 

Definition at line 90 of file mwindowgui.h.

Referenced by get_scrollbars().

ZoomBar* MWindowGUI::zoombar
 

Definition at line 82 of file mwindowgui.h.

Referenced by TrackCanvas::button_press_event(), create_objects(), TrackCanvas::cursor_motion_event(), TrackCanvas::do_edit_handles(), TrackCanvas::do_plugin_handles(), MWindow::expand_autos(), MWindow::expand_t(), MWindow::expand_y(), MWindow::fit_autos(), MWindow::goto_end(), MWindow::goto_start(), MWindow::next_label(), MWindow::prev_label(), redraw_time_dependancies(), resize_event(), MWindow::samplemovement(), MTimeBar::select_label(), MWindow::select_point(), TimeBar::select_region(), MWindow::shrink_autos(), CTracking::update_tracker(), MWindow::zoom_in_t(), MWindow::zoom_in_y(), MWindow::zoom_sample(), and ~MWindowGUI().


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:17 2006 for Cinelerra-svn by  doxygen 1.4.4