|
wex
v21.04.0
|
#include <list>#include <vector>#include <wex/dir-data.h>#include <wex/stc-data.h>#include <wx/combobox.h>
Functions | |
| template<typename T > | |
| void | wex::combobox_as (wxComboBox *cb, const T &t) |
| Adds entries to a combobox from a container. | |
| void | wex::combobox_from_list (wxComboBox *cb, const std::list< std::string > &text) |
| Adds entries to a combobox from a list with strings. | |
| bool | wex::compare_file (const path &file1, const path &file2) |
| Compares the files, using comparator set in the config. | |
| bool | wex::lexers_dialog (stc *stc) |
| Shows a dialog with all lexers, allowing you to choose one. More... | |
| bool | wex::make (const path &makefile) |
| Runs make on specified makefile. More... | |
| int | wex::open_files (frame *frame, const std::vector< path > &files, const data::stc &data=data::stc(), data::dir::type_t type=data::dir::type_t().set()) |
| Opens all files specified by files. More... | |
| void | wex::open_files_dialog (frame *frame, bool ask_for_continue=false, const data::stc &data=data::stc(), data::dir::type_t type=data::dir::type_t().set()) |
| Shows a dialog and opens selected files (calls open_files). More... | |
| bool | wex::shell_expansion (std::string &command) |
| Executes all process between backquotes in command, and changes command with replaced match with output from process. More... | |
| void | wex::vcs_command_stc (const vcs_command &command, const lexer &lexer, stc *stc) |
| Use specified vcs command to set lexer on stc document. More... | |
| void | wex::vcs_execute (frame *frame, int id, const std::vector< path > &files) |
| Executes VCS command id for specified files and opens component if necessary. More... | |
| void | wex::xml_error (const path &filename, const pugi::xml_parse_result *result, stc *stc=nullptr) |
| Shows xml error. More... | |
| bool wex::lexers_dialog | ( | stc * | stc | ) |
Shows a dialog with all lexers, allowing you to choose one.
Returns true and sets the lexer on the stc component if you selected one.
| bool wex::make | ( | const path & | makefile | ) |
Runs make on specified makefile.
Returns value from executing the make process.
| makefile | the makefile |
| int wex::open_files | ( | frame * | frame, |
| const std::vector< path > & | files, | ||
| const data::stc & | data = data::stc(), |
||
| data::dir::type_t | type = data::dir::type_t().set() |
||
| ) |
Opens all files specified by files.
Returns number of files opened.
| frame | frame on which open_file for each file is called, and open_file_dir for each dir |
| files | array with files |
| data | data to be used with open_file |
| type | flags to be used with open_file_dir |
| void wex::open_files_dialog | ( | frame * | frame, |
| bool | ask_for_continue = false, |
||
| const data::stc & | data = data::stc(), |
||
| data::dir::type_t | type = data::dir::type_t().set() |
||
| ) |
Shows a dialog and opens selected files (calls open_files).
| frame | frame |
| ask_for_continue | flags to be used with file_dialog |
| data | data to be used with open_file |
| type | flags to be used with open_file_dir |
| bool wex::shell_expansion | ( | std::string & | command | ) |
Executes all process between backquotes in command, and changes command with replaced match with output from process.
Returns false if process could not be executed.
| void wex::vcs_command_stc | ( | const vcs_command & | command, |
| const lexer & | lexer, | ||
| stc * | stc | ||
| ) |
Use specified vcs command to set lexer on stc document.
| command | VCS command, used to check for diff or open command |
| lexer | lexer to be used |
| stc | stc on which lexer is set |
Executes VCS command id for specified files and opens component if necessary.
| frame | frame on which open_file is called |
| id | VCS menu id to execute |
| files | files on which to operate |