minor code cleanups
This commit is contained in:
+54
-54
@@ -35,197 +35,197 @@
|
||||
* **TRUE**, the focused panel will be whichever panel has the cursor currently hovering over it.
|
||||
*/
|
||||
class FocusFilter : public QObject {
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
public:
|
||||
/**
|
||||
/**
|
||||
* @brief FocusFilter Constructor
|
||||
*
|
||||
* Currently empty.
|
||||
*/
|
||||
FocusFilter();
|
||||
FocusFilter();
|
||||
|
||||
public slots:
|
||||
/**
|
||||
/**
|
||||
* @brief Cuts selected clips or selected effects (but not both).
|
||||
*
|
||||
* If the Effect Controls panel is focused, cuts selected effects. Otherwise cuts selected clips.
|
||||
*/
|
||||
void cut();
|
||||
void cut();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Copies selected clips or selected effects (but not both).
|
||||
*
|
||||
* If the Effect Controls panel is focused, copies selected effects. Otherwise copies selected clips.
|
||||
*/
|
||||
void copy();
|
||||
void copy();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Duplicates currently selected items
|
||||
*
|
||||
* Currently this only duplicates Sequences in the project panel.
|
||||
*/
|
||||
void duplicate();
|
||||
void duplicate();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Go to In Point.
|
||||
*
|
||||
* Calls go_to_in() on Media Viewer it's focused. Otherwise calls it on Sequence Viewer.
|
||||
*/
|
||||
void go_to_in();
|
||||
void go_to_in();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Go to Out Point.
|
||||
*
|
||||
* Calls go_to_out() on Media Viewer it's focused. Otherwise calls it on Sequence Viewer.
|
||||
*/
|
||||
void go_to_out();
|
||||
void go_to_out();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Go to Start
|
||||
*
|
||||
* Calls go_to_start() on Media Viewer it's focused. Otherwise calls it on Sequence Viewer.
|
||||
*/
|
||||
void go_to_start();
|
||||
void go_to_start();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Go to Previous Frame
|
||||
*
|
||||
* Calls previous_frame() on Media Viewer it's focused. Otherwise calls it on Sequence Viewer.
|
||||
*/
|
||||
void prev_frame();
|
||||
void prev_frame();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Play In Point to Out Point
|
||||
*
|
||||
* Calls play(true) on Media Viewer it's focused. Otherwise calls it on Sequence Viewer.
|
||||
*/
|
||||
void play_in_to_out();
|
||||
void play_in_to_out();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Toggle Play/Pause
|
||||
*
|
||||
* Calls toggle_play() on Media Viewer it's focused. Otherwise calls it on Sequence Viewer.
|
||||
*/
|
||||
void playpause();
|
||||
void playpause();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Pause/Shuttle Stop.
|
||||
*
|
||||
* Calls pause() on Media Viewer it's focused. Otherwise calls it on Sequence Viewer.
|
||||
*/
|
||||
void pause();
|
||||
void pause();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Increase Speed/Shuttle Right
|
||||
*
|
||||
* Calls increase_speed() on Media Viewer it's focused. Otherwise calls it on Sequence Viewer.
|
||||
*/
|
||||
void increase_speed();
|
||||
void increase_speed();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Decrease Speed/Shuttle Left
|
||||
*
|
||||
* Calls decrease_speed() on Media Viewer it's focused. Otherwise calls it on Sequence Viewer.
|
||||
*/
|
||||
void decrease_speed();
|
||||
void decrease_speed();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Go to Next Frame
|
||||
*
|
||||
* Calls next_frame() on Media Viewer it's focused. Otherwise calls it on Sequence Viewer.
|
||||
*/
|
||||
void next_frame();
|
||||
void next_frame();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Go to End
|
||||
*
|
||||
* Calls go_to_end() on Media Viewer it's focused. Otherwise calls it on Sequence Viewer.
|
||||
*/
|
||||
void go_to_end();
|
||||
void go_to_end();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Set currently focused viewer to full screen
|
||||
*
|
||||
* Calls viewer_widget->set_fullscreen() on Media Viewer it's focused. Otherwise calls it on Sequence Viewer.
|
||||
*/
|
||||
void set_viewer_fullscreen();
|
||||
void set_viewer_fullscreen();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Set a marker at the current playhead
|
||||
*
|
||||
* Calls set_marker() on Media Viewer or Sequence Viewer if it's focused. Otherwise calls it on Timeline.
|
||||
*/
|
||||
void set_marker();
|
||||
void set_marker();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Set in point
|
||||
*
|
||||
* Calls set_in_point() on Media Viewer it's focused. Otherwise calls it on Sequence Viewer.
|
||||
*/
|
||||
void set_in_point();
|
||||
void set_in_point();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Set out point
|
||||
*
|
||||
* Calls set_out_point() on Media Viewer it's focused. Otherwise calls it on Sequence Viewer.
|
||||
*/
|
||||
void set_out_point();
|
||||
void set_out_point();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Clear in point
|
||||
*
|
||||
* Calls clear_in() on Media Viewer it's focused. Otherwise calls it on Sequence Viewer.
|
||||
*/
|
||||
void clear_in();
|
||||
void clear_in();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Clear out point
|
||||
*
|
||||
* Calls clear_out() on Media Viewer it's focused. Otherwise calls it on Sequence Viewer.
|
||||
*/
|
||||
void clear_out();
|
||||
void clear_out();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Clear in/out point
|
||||
*
|
||||
* Calls clear_inout() on Media Viewer it's focused. Otherwise calls it on Sequence Viewer.
|
||||
*/
|
||||
void clear_inout();
|
||||
void clear_inout();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Delete
|
||||
*
|
||||
* Calls various delete functions based on which UI elements are focused. Deletes span anywhere from deleting
|
||||
* clips (Timeline), to effects (Effect Controls), to markers (TimelineHeader).
|
||||
*/
|
||||
void delete_function();
|
||||
void delete_function();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Select All
|
||||
*
|
||||
* Calls select_all() on Graph Editor if its focused or Timeline if it's not.
|
||||
*/
|
||||
void select_all();
|
||||
void select_all();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Zoom In
|
||||
*
|
||||
* Calls zoom_in() on Effect Controls, Footage Viewer, or Sequence Viewer if one of them is focused. Otherwise
|
||||
* calls it on Timeline.
|
||||
*/
|
||||
void zoom_in();
|
||||
void zoom_in();
|
||||
|
||||
/**
|
||||
/**
|
||||
* @brief Zoom Out
|
||||
*
|
||||
* Calls zoom_out() on Effect Controls, Footage Viewer, or Sequence Viewer if one of them is focused. Otherwise
|
||||
* calls it on Timeline.
|
||||
*/
|
||||
void zoom_out();
|
||||
void zoom_out();
|
||||
};
|
||||
|
||||
namespace olive {
|
||||
extern FocusFilter FocusFilter;
|
||||
extern FocusFilter FocusFilter;
|
||||
}
|
||||
|
||||
#endif // FOCUSFILTER_H
|
||||
|
||||
Reference in New Issue
Block a user