#include <setformat.h>
Inherits BC_SubWindow.

Public Member Functions | |
| SetChannelsCanvas (MWindow *mwindow, SetFormatThread *thread, int x, int y, int w, int h) | |
| ~SetChannelsCanvas () | |
| int | draw (int angle=-1) |
| int | get_dimensions (int channel_position, int &x, int &y, int &w, int &h) |
| int | button_press_event () |
| int | button_release_event () |
| int | cursor_motion_event () |
Private Member Functions | |
| int | poltoxy (int &x, int &y, int r, int d) |
| int | xytopol (int &d, int x, int y) |
Private Attributes | |
| int | active_channel |
| int | degree_offset |
| int | box_r |
| MWindow * | mwindow |
| SetFormatThread * | thread |
| VFrame * | temp_picon |
| RotateFrame * | rotater |
Definition at line 76 of file setformat.h.
| SetChannelsCanvas::SetChannelsCanvas | ( | MWindow * | mwindow, | |
| SetFormatThread * | thread, | |||
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h | |||
| ) |
Definition at line 608 of file setformat.C.
References active_channel, box_r, Theme::channel_position_data, VFrame::get_color_model(), VFrame::get_h(), VFrame::get_w(), MWindow::preferences, Preferences::processors, rotater, temp_picon, and MWindow::theme.

| SetChannelsCanvas::~SetChannelsCanvas | ( | ) |
| int SetChannelsCanvas::draw | ( | int | angle = -1 |
) |
Definition at line 637 of file setformat.C.
References _, EDLSession::achannel_positions, EDLSession::audio_channels, box_r, Theme::channel_position_color, Theme::channel_position_data, BC_WindowBase::draw_pixmap(), BC_WindowBase::draw_text(), BC_WindowBase::draw_top_background(), BC_WindowBase::flash(), get_dimensions(), BC_WindowBase::get_h(), BC_WindowBase::get_top_level(), BC_WindowBase::get_w(), BC_WindowBase::h, mwindow, SetFormatThread::new_settings, RED, RotateFrame::rotate(), rotater, EDL::session, BC_WindowBase::set_color(), temp_picon, MWindow::theme, thread, BC_WindowBase::w, BC_WindowBase::x, and BC_WindowBase::y.
Referenced by button_press_event(), button_release_event(), SetFormatWindow::create_objects(), cursor_motion_event(), SetChannelsTextBox::handle_event(), and SetFormatThread::update().

| int SetChannelsCanvas::get_dimensions | ( | int | channel_position, | |
| int & | x, | |||
| int & | y, | |||
| int & | w, | |||
| int & | h | |||
| ) |
Definition at line 688 of file setformat.C.
References box_r, BC_WindowBase::get_h(), BC_WindowBase::get_w(), MARGIN, and Units::polar_to_xy().
Referenced by button_press_event(), and draw().

| int SetChannelsCanvas::button_press_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 707 of file setformat.C.
References EDLSession::achannel_positions, active_channel, EDLSession::audio_channels, BC_WindowBase::cursor_inside(), degree_offset, draw(), BC_WindowBase::get_cursor_x(), BC_WindowBase::get_cursor_y(), get_dimensions(), BC_WindowBase::get_h(), BC_WindowBase::get_w(), BC_WindowBase::h, SetFormatThread::new_settings, EDL::session, thread, BC_WindowBase::w, BC_WindowBase::x, Units::xy_to_polar(), and BC_WindowBase::y.

| int SetChannelsCanvas::button_release_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 736 of file setformat.C.
References active_channel, and draw().

| int SetChannelsCanvas::cursor_motion_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 747 of file setformat.C.
References EDLSession::achannel_positions, active_channel, EDLSession::audio_channels, Preferences::channel_positions, degree_offset, draw(), BC_WindowBase::get_cursor_x(), BC_WindowBase::get_cursor_y(), BC_WindowBase::get_h(), BC_WindowBase::get_w(), MAXCHANNELS, memcpy, SetFormatThread::mwindow, SetFormatThread::new_settings, MWindow::preferences, EDL::session, thread, and Units::xy_to_polar().

| int SetChannelsCanvas::poltoxy | ( | int & | x, | |
| int & | y, | |||
| int | r, | |||
| int | d | |||
| ) | [private] |
| int SetChannelsCanvas::xytopol | ( | int & | d, | |
| int | x, | |||
| int | y | |||
| ) | [private] |
int SetChannelsCanvas::active_channel [private] |
Definition at line 94 of file setformat.h.
Referenced by button_press_event(), button_release_event(), cursor_motion_event(), and SetChannelsCanvas().
int SetChannelsCanvas::degree_offset [private] |
Definition at line 95 of file setformat.h.
Referenced by button_press_event(), and cursor_motion_event().
int SetChannelsCanvas::box_r [private] |
Definition at line 96 of file setformat.h.
Referenced by draw(), get_dimensions(), and SetChannelsCanvas().
MWindow* SetChannelsCanvas::mwindow [private] |
SetFormatThread* SetChannelsCanvas::thread [private] |
Definition at line 101 of file setformat.h.
Referenced by button_press_event(), cursor_motion_event(), and draw().
VFrame* SetChannelsCanvas::temp_picon [private] |
Definition at line 102 of file setformat.h.
Referenced by draw(), SetChannelsCanvas(), and ~SetChannelsCanvas().
RotateFrame* SetChannelsCanvas::rotater [private] |
Definition at line 103 of file setformat.h.
Referenced by draw(), SetChannelsCanvas(), and ~SetChannelsCanvas().
1.5.5