GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::qt_application Class Reference

This class inherits from the pure-virtual base class octave::application and provides an implementation of the application::execute method that starts an interface to Octave that is based on Qt. More...

#include "qt-application.h"

Inheritance diagram for octave::qt_application:
Collaboration diagram for octave::qt_application:

Public Member Functions

 qt_application (const qt_application &)=delete
 
 qt_application (int argc, char **argv)
 
 ~qt_application (void)=default
 
virtual interpretercreate_interpreter (void)
 
virtual void delete_interpreter (void)
 
int execute (void)
 
virtual int execute_interpreter (void)
 
void forced_interactive (bool arg)
 
void gui_running (bool arg)
 
bool gui_running (void) const
 
bool have_eval_option_code (void) const
 
bool have_script_file (void) const
 
virtual void initialize_interpreter (void)
 
void intern_argv (const string_vector &args)
 
bool interpreter_initialized (void)
 
bool is_octave_program (void) const
 
qt_applicationoperator= (const qt_application &)=delete
 
cmdline_options options (void) const
 
void program_invocation_name (const std::string &nm)
 
void program_name (const std::string &nm)
 
void set_program_names (const std::string &pname)
 
bool start_gui_p (void) const
 
int sys_argc (void) const
 
char ** sys_argv (void) const
 

Static Public Member Functions

static applicationapp (void)
 
static string_vector argv (void)
 
static bool forced_interactive (void)
 
static bool is_gui_running (void)
 
static std::string program_invocation_name (void)
 
static std::string program_name (void)
 

Protected Attributes

string_vector m_argv
 
bool m_have_eval_option_code = false
 
bool m_have_script_file = false
 
interpreterm_interpreter = nullptr
 
bool m_is_octave_program = false
 
cmdline_options m_options
 
std::string m_program_invocation_name
 
std::string m_program_name
 

Private Member Functions

void init (void)
 

Private Attributes

bool m_gui_running = false
 

Static Private Attributes

static applicationinstance = nullptr
 

Detailed Description

This class inherits from the pure-virtual base class octave::application and provides an implementation of the application::execute method that starts an interface to Octave that is based on Qt.

It may start a command-line interface that allows Qt graphics to be used or it may start an interface that provides the full GUI experience.

Definition at line 44 of file qt-application.h.

Constructor & Destructor Documentation

◆ qt_application() [1/2]

octave::qt_application::qt_application ( int  argc,
char **  argv 
)

Definition at line 45 of file qt-application.cc.

References octave::sysdep_init().

◆ qt_application() [2/2]

octave::qt_application::qt_application ( const qt_application )
delete

◆ ~qt_application()

octave::qt_application::~qt_application ( void  )
default

Member Function Documentation

◆ app()

static application* octave::application::app ( void  )
inlinestaticinherited

Definition at line 286 of file octave.h.

Referenced by octave::debugger::repl().

◆ argv()

static string_vector octave::application::argv ( void  )
inlinestaticinherited

Definition at line 298 of file octave.h.

Referenced by Fargv().

◆ create_interpreter()

interpreter & octave::application::create_interpreter ( void  )
virtualinherited

◆ delete_interpreter()

void octave::application::delete_interpreter ( void  )
virtualinherited

Definition at line 318 of file octave.cc.

References octave::application::m_interpreter.

◆ execute()

int octave::qt_application::execute ( void  )
virtual

◆ execute_interpreter()

int octave::application::execute_interpreter ( void  )
virtualinherited

◆ forced_interactive() [1/2]

void octave::application::forced_interactive ( bool  arg)
inlineinherited

Definition at line 284 of file octave.h.

Referenced by octave::debugger::repl().

◆ forced_interactive() [2/2]

◆ gui_running() [1/2]

void octave::qt_application::gui_running ( bool  arg)
inlinevirtual

Reimplemented from octave::application.

Definition at line 64 of file qt-application.h.

◆ gui_running() [2/2]

bool octave::qt_application::gui_running ( void  ) const
inlinevirtual

Reimplemented from octave::application.

Definition at line 63 of file qt-application.h.

Referenced by octave::gui_qobject::gui_qobject().

◆ have_eval_option_code()

bool octave::application::have_eval_option_code ( void  ) const
inlineinherited

Definition at line 259 of file octave.h.

Referenced by octave::interpreter::execute().

◆ have_script_file()

bool octave::application::have_script_file ( void  ) const
inlineinherited

Definition at line 261 of file octave.h.

Referenced by octave::interpreter::execute().

◆ init()

◆ initialize_interpreter()

void octave::application::initialize_interpreter ( void  )
virtualinherited

◆ intern_argv()

void octave::application::intern_argv ( const string_vector args)
inherited

◆ interpreter_initialized()

bool octave::application::interpreter_initialized ( void  )
inherited

◆ is_gui_running()

static bool octave::application::is_gui_running ( void  )
inlinestaticinherited

◆ is_octave_program()

bool octave::application::is_octave_program ( void  ) const
inlineinherited

Definition at line 263 of file octave.h.

Referenced by octave::interpreter::interpreter().

◆ operator=()

qt_application& octave::qt_application::operator= ( const qt_application )
delete

◆ options()

◆ program_invocation_name() [1/2]

void octave::application::program_invocation_name ( const std::string &  nm)
inlineinherited

Definition at line 280 of file octave.h.

◆ program_invocation_name() [2/2]

static std::string octave::application::program_invocation_name ( void  )
inlinestaticinherited

◆ program_name() [1/2]

void octave::application::program_name ( const std::string &  nm)
inlineinherited

Definition at line 282 of file octave.h.

◆ program_name() [2/2]

static std::string octave::application::program_name ( void  )
inlinestaticinherited

Definition at line 293 of file octave.h.

Referenced by octave::interpreter::execute_command_line_file(), and Fprogram_name().

◆ set_program_names()

void octave::application::set_program_names ( const std::string &  pname)
inherited

◆ start_gui_p()

bool octave::qt_application::start_gui_p ( void  ) const

◆ sys_argc()

int octave::application::sys_argc ( void  ) const
inlineinherited

Definition at line 250 of file octave.h.

◆ sys_argv()

char** octave::application::sys_argv ( void  ) const
inlineinherited

Definition at line 251 of file octave.h.

Member Data Documentation

◆ instance

application * octave::application::instance = nullptr
staticprivateinherited

◆ m_argv

string_vector octave::application::m_argv
protectedinherited

Definition at line 331 of file octave.h.

Referenced by octave::application::intern_argv().

◆ m_gui_running

bool octave::qt_application::m_gui_running = false
private

Definition at line 69 of file qt-application.h.

◆ m_have_eval_option_code

bool octave::application::m_have_eval_option_code = false
protectedinherited

Definition at line 336 of file octave.h.

Referenced by octave::application::init().

◆ m_have_script_file

bool octave::application::m_have_script_file = false
protectedinherited

Definition at line 340 of file octave.h.

Referenced by octave::application::init().

◆ m_interpreter

◆ m_is_octave_program

bool octave::application::m_is_octave_program = false
protectedinherited

Definition at line 345 of file octave.h.

Referenced by octave::application::init().

◆ m_options

cmdline_options octave::application::m_options
protectedinherited

◆ m_program_invocation_name

std::string octave::application::m_program_invocation_name
protectedinherited

Definition at line 322 of file octave.h.

Referenced by octave::application::set_program_names().

◆ m_program_name

std::string octave::application::m_program_name
protectedinherited

Definition at line 325 of file octave.h.

Referenced by octave::application::set_program_names().


The documentation for this class was generated from the following files: