wex v24.10.0
|
Offers a frame with easy statusbar methods, find/replace, and allows for file dropping. More...
#include <wex/factory/frame.h>
Public Member Functions | |
frame () | |
Default constructor. | |
frame (wxWindow *parent, wxWindowID winid, const std::string &title) | |
Constructor for wxFrame. | |
~frame () | |
Destructor. | |
virtual factory::grid * | get_grid () |
Returns a grid. | |
virtual factory::listview * | get_listview () |
Returns a listview. | |
virtual factory::process * | get_process (const std::string &command) |
Allows you to e.g. | |
virtual std::string | get_statustext (const std::string &pane) const |
Returns text on specified pane. | |
virtual factory::stc * | get_stc () |
Returns an stc. | |
virtual bool | is_open (const path &filename) |
Returns true if file is opened in a window. | |
virtual void | on_command_item_dialog (wxWindowID, const wxCommandEvent &) |
Called when an item dialog command event is triggered. | |
virtual factory::stc * | open_file (const path &filename, const data::stc &data) |
Default opens the file using get_stc. | |
virtual factory::stc * | open_file (const path &filename, const std::string &text, const data::stc &data) |
Allows you to open a filename with specified contents. | |
virtual factory::stc * | open_file_vcs (const path &filename, vcs_entry &vcs, const data::stc &data) |
Allows you to open a filename with info from vcs. | |
virtual bool | output (const std::string &text) const |
Allows you to handle output text, .e.g. from a process. | |
virtual bool | process_async_system (const process_data &data) |
Runs async process. | |
virtual void | set_recent_file (const path &path) |
Allows derived class to update file history. | |
virtual void | statusbar_clicked (const std::string &pane) |
When (left) clicked, uses the get_stc() for some dialogs. | |
virtual void | statusbar_clicked_right (const std::string &) |
Do something when statusbar is (right) clicked. | |
virtual bool | statustext (const std::string &text, const std::string &pane) const |
Sets text on specified pane. | |
wxWindow * | get_find_focus () |
Returns the find focus. | |
bool | is_closing () const |
Are we closing? | |
void | set_find_focus (wxWindow *focus) |
Sets the find focus to specified window. | |
bool | update_statusbar (const wxListView *lv) |
Updates statusbar pane items pane with values from specified listview. | |
bool | update_statusbar (factory::stc *stc, const std::string &pane) |
Updates the specified statusbar pane with values from specified stc. | |
void | SetMenuBar (wxMenuBar *bar) override |
Override from base class. | |
Offers a frame with easy statusbar methods, find/replace, and allows for file dropping.
Also helps in maintaining access to the base controls (grid, listview and stc).
|
inlinevirtual |
Allows you to e.g.
add debugging. Default returns nullptr.
|
inlinevirtual |
Returns text on specified pane.
Don't forget to call setup_statusbar first.
Reimplemented in wex::frame.
|
virtual |
Default opens the file using get_stc.
Returns stc component opened, or nullptr.
Reimplemented in wex::frame.
|
virtual |
Allows you to open a filename with specified contents.
Returns stc component opened, or nullptr.
|
inlinevirtual |
Allows you to open a filename with info from vcs.
Returns stc component opened, or nullptr.
|
inlinevirtual |
Sets text on specified pane.
Don't forget to call setup_statusbar first.
Reimplemented in wex::frame.