vicon_thread->stop_drawing();
}
+int AWindowGUI::cycle_assetlist_format()
+{
+ EDLSession *session = mwindow->edl->session;
+ int format = ASSETS_TEXT;
+ if( allow_iconlisting ) {
+ switch( session->assetlist_format ) {
+ case ASSETS_TEXT:
+ format = ASSETS_ICONS;
+ break;
+ case ASSETS_ICONS:
+ format = ASSETS_ICONS_PACKED;
+ break;
+ case ASSETS_ICONS_PACKED:
+ format = ASSETS_ICON_LIST;
+ break;
+ case ASSETS_ICON_LIST:
+ format = ASSETS_TEXT;
+ break;
+ }
+ }
+ stop_vicon_drawing();
+ session->assetlist_format = format;
+ asset_list->update_format(session->assetlist_format, 0);
+ int x0 = 0;
+ int x1 = asset_list->get_w();
+ int y0 = asset_list->get_title_h();
+ int y1 = asset_list->get_h();
+ vicon_thread->set_drawing_area(x0,y0, x1,y1);
+ async_update_assets();
+ start_vicon_drawing();
+ return 1;
+}
+
AWindowRemovePluginGUI::
AWindowRemovePluginGUI(AWindow *awindow, AWindowRemovePlugin *thread,
int x, int y, PluginServer *plugin)
return 1;
}
break;
+ case 'v':
+ return cycle_assetlist_format();
case DELETE:
if( shift_down() ) {
PluginServer* plugin = selected_plugin();
AWindowListFormat::AWindowListFormat(MWindow *mwindow, AWindowGUI *gui)
- : BC_MenuItem("")
+ : BC_MenuItem("","v",'v')
{
this->mwindow = mwindow;
this->gui = gui;
int AWindowListFormat::handle_event()
{
- gui->stop_vicon_drawing();
-
- EDLSession *session = mwindow->edl->session;
- if( mwindow->awindow->gui->allow_iconlisting ) {
- switch( session->assetlist_format ) {
- case ASSETS_TEXT:
- session->assetlist_format = ASSETS_ICONS;
- break;
- case ASSETS_ICONS:
- session->assetlist_format = ASSETS_ICONS_PACKED;
- break;
- case ASSETS_ICONS_PACKED:
- session->assetlist_format = ASSETS_ICON_LIST;
- break;
- case ASSETS_ICON_LIST:
- session->assetlist_format = ASSETS_TEXT;
- break;
- }
- }
- else
- mwindow->edl->session->assetlist_format = ASSETS_TEXT;
- gui->asset_list->update_format(session->assetlist_format, 0);
- int x0 = 0;
- int x1 = gui->asset_list->get_w();
- int y0 = gui->asset_list->get_title_h();
- int y1 = gui->asset_list->get_h();
- gui->vicon_thread->set_drawing_area(x0,y0, x1,y1);
-
- gui->async_update_assets();
- gui->start_vicon_drawing();
- return 1;
+ return gui->cycle_assetlist_format();
}
void AWindowListFormat::update()
<td align="left"><font face="Liberation Serif,Times New Roman" size=4>Double click</font></td>
<td align="left"><font face="Liberation Serif,Times New Roman" size=4>Draw vicons on- bigger thumbnail plays or stops</font></td>
</tr>
+ <tr>
+ <td height="26" align="left"><font face="Liberation Serif,Times New Roman" size=4><br></font></td>
+ <td align="left"><font face="Liberation Serif,Times New Roman" size=4>'v'</font></td>
+ <td align="left"><font face="Liberation Serif,Times New Roman" size=4></font></td>
+ <td align="left"><font face="Liberation Serif,Times New Roman" size=4>Switch to next Display option</font></td>
+ </tr>
<tr>
<td height="26" align="left"><font face="Liberation Serif,Times New Roman" size=4><br></font></td>
<td align="left"><font face="Liberation Serif,Times New Roman" size=4>'o'</font></td>