Ardour  9.0-pre0-822-g12e3bc5c20
ArdourWidgets::Prompter Class Reference

#include <prompter.h>

Inheritance diagram for ArdourWidgets::Prompter:
[legend]

Public Member Functions

 Prompter (bool modal=false, bool with_cancel_button=true)
 
 Prompter (Gtk::Window &parent, bool modal=false, bool with_cancel_button=true)
 
 ~Prompter ()
 
void set_prompt (std::string prompt)
 
void set_initial_text (std::string txt, bool allow_replace=false)
 
void set_default_text (std::string const &txt)
 
void change_labels (std::string ok, std::string cancel)
 
void get_result (std::string &str, bool strip=true)
 
void set_allow_empty (bool yn=true)
 

Protected Member Functions

Gtk::Entry & the_entry ()
 
void on_entry_changed ()
 
void on_show ()
 

Private Member Functions

void init (bool with_cancel)
 
void entry_activated ()
 

Private Attributes

Gtk::Entry entry
 
Gtk::HBox entryBox
 
Gtk::Label entryLabel
 
Gtk::Button resetButton
 
bool first_show
 
bool can_accept_from_entry
 
bool allow_empty
 
std::string default_text
 

Detailed Description

Definition at line 39 of file prompter.h.

Constructor & Destructor Documentation

◆ Prompter() [1/2]

ArdourWidgets::Prompter::Prompter ( bool  modal = false,
bool  with_cancel_button = true 
)

◆ Prompter() [2/2]

ArdourWidgets::Prompter::Prompter ( Gtk::Window &  parent,
bool  modal = false,
bool  with_cancel_button = true 
)

◆ ~Prompter()

ArdourWidgets::Prompter::~Prompter ( )
inline

Definition at line 44 of file prompter.h.

Member Function Documentation

◆ change_labels()

void ArdourWidgets::Prompter::change_labels ( std::string  ok,
std::string  cancel 
)

◆ entry_activated()

void ArdourWidgets::Prompter::entry_activated ( )
private

◆ get_result()

void ArdourWidgets::Prompter::get_result ( std::string &  str,
bool  strip = true 
)

◆ init()

void ArdourWidgets::Prompter::init ( bool  with_cancel)
private

◆ on_entry_changed()

void ArdourWidgets::Prompter::on_entry_changed ( )
protected

◆ on_show()

void ArdourWidgets::Prompter::on_show ( )
protected

◆ set_allow_empty()

void ArdourWidgets::Prompter::set_allow_empty ( bool  yn = true)

◆ set_default_text()

void ArdourWidgets::Prompter::set_default_text ( std::string const &  txt)

◆ set_initial_text()

void ArdourWidgets::Prompter::set_initial_text ( std::string  txt,
bool  allow_replace = false 
)

◆ set_prompt()

void ArdourWidgets::Prompter::set_prompt ( std::string  prompt)
inline

Definition at line 46 of file prompter.h.

◆ the_entry()

Gtk::Entry& ArdourWidgets::Prompter::the_entry ( )
inlineprotected

Definition at line 59 of file prompter.h.

Member Data Documentation

◆ allow_empty

bool ArdourWidgets::Prompter::allow_empty
private

Definition at line 71 of file prompter.h.

◆ can_accept_from_entry

bool ArdourWidgets::Prompter::can_accept_from_entry
private

Definition at line 70 of file prompter.h.

◆ default_text

std::string ArdourWidgets::Prompter::default_text
private

Definition at line 72 of file prompter.h.

◆ entry

Gtk::Entry ArdourWidgets::Prompter::entry
private

Definition at line 65 of file prompter.h.

◆ entryBox

Gtk::HBox ArdourWidgets::Prompter::entryBox
private

Definition at line 66 of file prompter.h.

◆ entryLabel

Gtk::Label ArdourWidgets::Prompter::entryLabel
private

Definition at line 67 of file prompter.h.

◆ first_show

bool ArdourWidgets::Prompter::first_show
private

Definition at line 69 of file prompter.h.

◆ resetButton

Gtk::Button ArdourWidgets::Prompter::resetButton
private

Definition at line 68 of file prompter.h.


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