29 #include <QTranslator>
386 void LoadProject(
const QString& fn,
bool autorecovery);
434 extern std::unique_ptr<OliveGlobal>
Global;
450 #endif // OLIVEGLOBAL_H
QString get_recent_project_list_file()
Retrieves the URL of the config file containing the autorecovery projects.
Definition: global.cpp:136
void open_autocut_silence_dialog()
Open the auto-cut silence dialog.
Definition: global.cpp:441
OliveGlobal()
OliveGlobal Constructor.
Definition: global.cpp:54
const QString & get_project_file_filter()
Returns the file dialog filter used when interfacing with Olive project files.
Definition: global.cpp:77
void open_export_dialog()
Open the Export dialog to trigger an export of the current sequence.
Definition: global.cpp:304
void paste_insert()
Paste contents of clipboard, making space for it when possible.
Definition: global.cpp:414
static void SetNativeStyling(QWidget *w)
Set native UI styling on a given widget.
Definition: global.cpp:166
QTimer autorecovery_timer
Regular interval to save an auto-recovery project.
Definition: global.h:404
void set_rendering_state(bool rendering)
Set the application state depending on if the user is exporting a video.
Definition: global.cpp:111
void load_translation_from_config()
(Re)load translation file from olive::config
Definition: global.cpp:140
void ClearProject()
Indiscriminately clear the project without prompting the user.
Definition: global.cpp:198
std::unique_ptr< OliveGlobal > Global
Object resource for various global functions used throughout Olive.
Definition: global.cpp:50
bool save_project()
Saves the current project to file.
Definition: global.cpp:274
bool enable_load_project_on_init
Internal variable set to TRUE by main() if a project file was set as an argument. ...
Definition: global.h:409
void OpenProjectWorker(QString fn, bool autorecovery)
Internal function to handle loading a project from file.
Definition: global.cpp:369
void open_recent(int index)
Open recent project from list.
Definition: global.cpp:245
QString AppName
Current application name.
Definition: global.cpp:52
void LoadProject(const QString &fn, bool autorecovery)
Create a LoadDialog and start a LoadThread to load data from a project.
Definition: global.cpp:175
void open_about_dialog()
Open the About Olive dialog.
Definition: global.cpp:420
bool CheckForActiveSequence(bool show_msg=true)
Returns whether a Sequence is currently active or not, and optionally displays a messagebox if not...
Definition: global.cpp:376
void load_project_on_launch(const QString &s)
Set a project to load just after launching.
Definition: global.cpp:131
void ImportProject(const QString &fn)
Import project from file.
Definition: global.cpp:226
void undo()
Undo user's last action.
Definition: global.cpp:392
bool changed_since_last_autorecovery
Internal variable for whether the project has changed since the last autorecovery.
Definition: global.h:424
The Olive Global class.
Definition: global.h:36
void clear_undo_stack()
Clears the current undo stack.
Definition: global.cpp:459
QString ActiveProjectFilename
Currently active project filename.
Definition: global.cpp:51
std::unique_ptr< QTranslator > translator
Internal translator object that interfaces with the currently loaded language file.
Definition: global.h:414
bool can_close_project()
Determine whether the current project can be closed.
Definition: global.cpp:283
void open_preferences()
Opens the Preferences dialog.
Definition: global.cpp:350
void redo()
Redo user's last action.
Definition: global.cpp:400
void finished_initialize()
Function called when Olive has finished starting up.
Definition: global.cpp:311
void paste()
Paste contents of clipboard.
Definition: global.cpp:408
void open_action_search()
Open the Action Search overlay.
Definition: global.cpp:463
bool save_project_as()
Shows a save file dialog and saves the project as the resulting filename.
Definition: global.cpp:261
void update_project_filename(const QString &s)
Change the current active project filename.
Definition: global.cpp:81
void save_autorecovery_file()
Save an auto-recovery file of the current project.
Definition: global.cpp:340
void set_sequence(SequencePtr s)
Set the current active Sequence.
Definition: global.cpp:358
void OpenProject()
Open a project from file.
Definition: global.cpp:238
void open_debug_log()
Open the Debug Log window.
Definition: global.cpp:425
void check_for_autorecovery_file()
Check whether an auto-recovery file exists and ask the user if they want to load it.
Definition: global.cpp:89
QString project_file_filter
File filter used for any file dialogs relating to Olive project files.
Definition: global.h:399
void set_modified(bool modified)
Set the application's "modified" state.
Definition: global.cpp:120
void open_speed_dialog()
Open the Speed/Duration dialog.
Definition: global.cpp:429
void new_project()
Create new project.
Definition: global.cpp:232
bool is_modified()
Get application's current "modified" state.
Definition: global.cpp:126