Use the override specifier
This commit is contained in:
parent
0d1f6a5e51
commit
719e9b0586
|
@ -1,3 +1,6 @@
|
||||||
|
2018-12-31 Markus Gans <guru.mail@muenster.de>
|
||||||
|
* Use the override specifier
|
||||||
|
|
||||||
2018-12-30 Markus Gans <guru.mail@muenster.de>
|
2018-12-30 Markus Gans <guru.mail@muenster.de>
|
||||||
* Cygwin compiled fix for C++11
|
* Cygwin compiled fix for C++11
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ class Button : public finalcut::FButton
|
||||||
void setChecked(bool);
|
void setChecked(bool);
|
||||||
|
|
||||||
// Event handler
|
// Event handler
|
||||||
virtual void onKeyPress (finalcut::FKeyEvent*);
|
virtual void onKeyPress (finalcut::FKeyEvent*) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Data Member
|
// Data Member
|
||||||
|
@ -118,9 +118,9 @@ class Calc : public finalcut::FDialog
|
||||||
~Calc();
|
~Calc();
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onKeyPress (finalcut::FKeyEvent*);
|
virtual void onKeyPress (finalcut::FKeyEvent*) override;
|
||||||
virtual void onAccel (finalcut::FAccelEvent*);
|
virtual void onAccel (finalcut::FAccelEvent*) override;
|
||||||
virtual void onClose (finalcut::FCloseEvent*);
|
virtual void onClose (finalcut::FCloseEvent*) override;
|
||||||
|
|
||||||
// Callback method
|
// Callback method
|
||||||
void cb_buttonClicked (finalcut::FWidget*, FDataPtr);
|
void cb_buttonClicked (finalcut::FWidget*, FDataPtr);
|
||||||
|
@ -170,7 +170,7 @@ class Calc : public finalcut::FDialog
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
void drawDispay();
|
void drawDispay();
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
void clear (lDouble&);
|
void clear (lDouble&);
|
||||||
void zero (lDouble&);
|
void zero (lDouble&);
|
||||||
void one (lDouble&);
|
void one (lDouble&);
|
||||||
|
@ -212,7 +212,7 @@ class Calc : public finalcut::FDialog
|
||||||
void setInfixOperator (char);
|
void setInfixOperator (char);
|
||||||
void clearInfixOperator();
|
void clearInfixOperator();
|
||||||
void calcInfixOperator();
|
void calcInfixOperator();
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
const wchar_t* getButtonText (std::size_t);
|
const wchar_t* getButtonText (std::size_t);
|
||||||
void mapKeyFunctions();
|
void mapKeyFunctions();
|
||||||
|
|
||||||
|
|
|
@ -55,8 +55,8 @@ class CheckList : public finalcut::FDialog
|
||||||
void populate();
|
void populate();
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onKeyPress (finalcut::FKeyEvent*);
|
virtual void onKeyPress (finalcut::FKeyEvent*) override;
|
||||||
virtual void onClose (finalcut::FCloseEvent*);
|
virtual void onClose (finalcut::FCloseEvent*) override;
|
||||||
|
|
||||||
// Callback method
|
// Callback method
|
||||||
void cb_showList (finalcut::FWidget*, FDataPtr);
|
void cb_showList (finalcut::FWidget*, FDataPtr);
|
||||||
|
|
|
@ -34,12 +34,12 @@ class Keyboard : public finalcut::FWidget
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onKeyPress (finalcut::FKeyEvent*);
|
virtual void onKeyPress (finalcut::FKeyEvent*) override;
|
||||||
virtual void onAccel (finalcut::FAccelEvent*);
|
virtual void onAccel (finalcut::FAccelEvent*) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Methods
|
// Methods
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -93,7 +93,7 @@ class Listbox : public FDialog
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onClose (FCloseEvent*);
|
virtual void onClose (FCloseEvent*) override;
|
||||||
|
|
||||||
// Data Member
|
// Data Member
|
||||||
std::list<double> double_list{};
|
std::list<double> double_list{};
|
||||||
|
|
|
@ -55,7 +55,7 @@ class Listview : public finalcut::FDialog
|
||||||
void populate();
|
void populate();
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onClose (finalcut::FCloseEvent*);
|
virtual void onClose (finalcut::FCloseEvent*) override;
|
||||||
|
|
||||||
// Callback method
|
// Callback method
|
||||||
void cb_showInMessagebox (finalcut::FWidget*, FDataPtr);
|
void cb_showInMessagebox (finalcut::FWidget*, FDataPtr);
|
||||||
|
|
|
@ -40,13 +40,13 @@ class Mandelbrot : public finalcut::FDialog
|
||||||
~Mandelbrot();
|
~Mandelbrot();
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onAccel (finalcut::FAccelEvent*);
|
virtual void onAccel (finalcut::FAccelEvent*) override;
|
||||||
virtual void onClose (finalcut::FCloseEvent*);
|
virtual void onClose (finalcut::FCloseEvent*) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Methods
|
// Methods
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
};
|
};
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
||||||
|
|
|
@ -54,10 +54,10 @@ class Menu : public finalcut::FDialog
|
||||||
void configureStyleMenuItems();
|
void configureStyleMenuItems();
|
||||||
void configureBorderMenuItems();
|
void configureBorderMenuItems();
|
||||||
void defaultCallback (finalcut::FMenuList*);
|
void defaultCallback (finalcut::FMenuList*);
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
|
|
||||||
// Event handler
|
// Event handler
|
||||||
virtual void onClose (finalcut::FCloseEvent*);
|
virtual void onClose (finalcut::FCloseEvent*) override;
|
||||||
|
|
||||||
// Callback method
|
// Callback method
|
||||||
void cb_message (finalcut::FWidget*, FDataPtr);
|
void cb_message (finalcut::FWidget*, FDataPtr);
|
||||||
|
|
|
@ -51,10 +51,10 @@ class ColorChooser : public finalcut::FWidget
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Method
|
// Method
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
|
|
||||||
// Event handler
|
// Event handler
|
||||||
virtual void onMouseDown (finalcut::FMouseEvent*);
|
virtual void onMouseDown (finalcut::FMouseEvent*) override;
|
||||||
|
|
||||||
// Data Members
|
// Data Members
|
||||||
FColor fg_color{finalcut::fc::White};
|
FColor fg_color{finalcut::fc::White};
|
||||||
|
@ -192,10 +192,10 @@ class Brushes : public finalcut::FWidget
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Method
|
// Method
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
|
|
||||||
// Event handler
|
// Event handler
|
||||||
virtual void onMouseDown (finalcut::FMouseEvent*);
|
virtual void onMouseDown (finalcut::FMouseEvent*) override;
|
||||||
|
|
||||||
// Data Members
|
// Data Members
|
||||||
wchar_t brush{L' '};
|
wchar_t brush{L' '};
|
||||||
|
@ -327,19 +327,19 @@ class MouseDraw : public finalcut::FDialog
|
||||||
void setGeometry (int, int, std::size_t, std::size_t, bool = true);
|
void setGeometry (int, int, std::size_t, std::size_t, bool = true);
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onAccel (finalcut::FAccelEvent*);
|
virtual void onAccel (finalcut::FAccelEvent*) override;
|
||||||
virtual void onClose (finalcut::FCloseEvent*);
|
virtual void onClose (finalcut::FCloseEvent*) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Methods
|
// Methods
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
void drawBrush (int, int, bool = false);
|
void drawBrush (int, int, bool = false);
|
||||||
void drawCanvas();
|
void drawCanvas();
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
|
|
||||||
// Event handler
|
// Event handler
|
||||||
virtual void onMouseDown (finalcut::FMouseEvent*);
|
virtual void onMouseDown (finalcut::FMouseEvent*) override;
|
||||||
virtual void onMouseMove (finalcut::FMouseEvent*);
|
virtual void onMouseMove (finalcut::FMouseEvent*) override;
|
||||||
|
|
||||||
// Callback methods
|
// Callback methods
|
||||||
void cb_colorChanged (finalcut::FWidget*, FDataPtr);
|
void cb_colorChanged (finalcut::FWidget*, FDataPtr);
|
||||||
|
|
|
@ -50,7 +50,7 @@ class Scrollview : public finalcut::FScrollView
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Method
|
// Method
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
|
|
||||||
// Callback methods
|
// Callback methods
|
||||||
void cb_go_east (finalcut::FWidget*, FDataPtr);
|
void cb_go_east (finalcut::FWidget*, FDataPtr);
|
||||||
|
@ -197,7 +197,7 @@ class Scrollviewdemo : public finalcut::FDialog
|
||||||
~Scrollviewdemo();
|
~Scrollviewdemo();
|
||||||
|
|
||||||
// Event handler
|
// Event handler
|
||||||
virtual void onClose (finalcut::FCloseEvent*);
|
virtual void onClose (finalcut::FCloseEvent*) override;
|
||||||
|
|
||||||
// Callback method
|
// Callback method
|
||||||
void cb_quit (finalcut::FWidget* = nullptr, FDataPtr = nullptr);
|
void cb_quit (finalcut::FWidget* = nullptr, FDataPtr = nullptr);
|
||||||
|
|
|
@ -47,9 +47,9 @@ class AttribDlg : public finalcut::FDialog
|
||||||
AttribDlg& operator = (const AttribDlg&) = delete;
|
AttribDlg& operator = (const AttribDlg&) = delete;
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onAccel (finalcut::FAccelEvent*);
|
virtual void onAccel (finalcut::FAccelEvent*) override;
|
||||||
virtual void onWheel (finalcut::FWheelEvent*);
|
virtual void onWheel (finalcut::FWheelEvent*) override;
|
||||||
virtual void onClose (finalcut::FCloseEvent*);
|
virtual void onClose (finalcut::FCloseEvent*) override;
|
||||||
|
|
||||||
// Callback methods
|
// Callback methods
|
||||||
void cb_next (finalcut::FWidget* = nullptr, FDataPtr = nullptr);
|
void cb_next (finalcut::FWidget* = nullptr, FDataPtr = nullptr);
|
||||||
|
@ -60,7 +60,7 @@ class AttribDlg : public finalcut::FDialog
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Method
|
// Method
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
|
|
||||||
// Data Members
|
// Data Members
|
||||||
finalcut::FButton next_button{"&Next >", this};
|
finalcut::FButton next_button{"&Next >", this};
|
||||||
|
@ -195,7 +195,7 @@ class AttribDemo : public finalcut::FWidget
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
// Event handler
|
// Event handler
|
||||||
virtual void onWheel (finalcut::FWheelEvent* ev)
|
virtual void onWheel (finalcut::FWheelEvent* ev) override
|
||||||
{
|
{
|
||||||
auto p = static_cast<AttribDlg*>(getParentWidget());
|
auto p = static_cast<AttribDlg*>(getParentWidget());
|
||||||
|
|
||||||
|
@ -220,7 +220,7 @@ class AttribDemo : public finalcut::FWidget
|
||||||
void printStandout();
|
void printStandout();
|
||||||
void printInvisible();
|
void printInvisible();
|
||||||
void printProtected();
|
void printProtected();
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
|
|
||||||
// Data Member
|
// Data Member
|
||||||
int colors;
|
int colors;
|
||||||
|
|
|
@ -35,11 +35,11 @@ class Timer : public finalcut::FWidget
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Method
|
// Method
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onTimer (finalcut::FTimerEvent*);
|
virtual void onTimer (finalcut::FTimerEvent*) override;
|
||||||
virtual void onAccel (finalcut::FAccelEvent*);
|
virtual void onAccel (finalcut::FAccelEvent*) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
|
@ -56,10 +56,10 @@ class Transparent : public finalcut::FDialog
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Method
|
// Method
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onKeyPress (finalcut::FKeyEvent* ev);
|
virtual void onKeyPress (finalcut::FKeyEvent* ev) override;
|
||||||
|
|
||||||
// Data Members
|
// Data Members
|
||||||
trans_type type;
|
trans_type type;
|
||||||
|
@ -165,13 +165,13 @@ class MainWindow : public finalcut::FDialog
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Method
|
// Method
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onClose (finalcut::FCloseEvent*);
|
virtual void onClose (finalcut::FCloseEvent*) override;
|
||||||
virtual void onShow (finalcut::FShowEvent*);
|
virtual void onShow (finalcut::FShowEvent*) override;
|
||||||
virtual void onTimer (finalcut::FTimerEvent*);
|
virtual void onTimer (finalcut::FTimerEvent*) override;
|
||||||
virtual void onKeyPress (finalcut::FKeyEvent* ev)
|
virtual void onKeyPress (finalcut::FKeyEvent* ev) override
|
||||||
{
|
{
|
||||||
if ( ! ev )
|
if ( ! ev )
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -131,7 +131,7 @@ class Treeview : public finalcut::FDialog
|
||||||
struct TreeItem; // forward declaration
|
struct TreeItem; // forward declaration
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
|
|
||||||
// Event handler
|
// Event handler
|
||||||
void onClose (finalcut::FCloseEvent*);
|
void onClose (finalcut::FCloseEvent*);
|
||||||
|
|
|
@ -51,8 +51,8 @@ class ProgressDialog : public finalcut::FDialog
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onShow (finalcut::FShowEvent*);
|
virtual void onShow (finalcut::FShowEvent*) override;
|
||||||
virtual void onTimer (finalcut::FTimerEvent*);
|
virtual void onTimer (finalcut::FTimerEvent*) override;
|
||||||
|
|
||||||
// Callback methods
|
// Callback methods
|
||||||
void cb_reset_bar (finalcut::FWidget*, FDataPtr);
|
void cb_reset_bar (finalcut::FWidget*, FDataPtr);
|
||||||
|
@ -199,7 +199,7 @@ class TextWindow : public finalcut::FDialog
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Method
|
// Method
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
|
|
||||||
// Data Members
|
// Data Members
|
||||||
finalcut::FTextView scrollText{this};
|
finalcut::FTextView scrollText{this};
|
||||||
|
@ -279,10 +279,10 @@ class MyDialog : public finalcut::FDialog
|
||||||
void initButtons();
|
void initButtons();
|
||||||
void initLabels();
|
void initLabels();
|
||||||
void initWidgetsCallbacks();
|
void initWidgetsCallbacks();
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onClose (finalcut::FCloseEvent*);
|
virtual void onClose (finalcut::FCloseEvent*) override;
|
||||||
|
|
||||||
// Callback methods
|
// Callback methods
|
||||||
void cb_noFunctionMsg (finalcut::FWidget*, FDataPtr);
|
void cb_noFunctionMsg (finalcut::FWidget*, FDataPtr);
|
||||||
|
|
|
@ -50,8 +50,8 @@ class Watch : public finalcut::FDialog
|
||||||
void printTime();
|
void printTime();
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onTimer (finalcut::FTimerEvent*);
|
virtual void onTimer (finalcut::FTimerEvent*) override;
|
||||||
virtual void onClose (finalcut::FCloseEvent*);
|
virtual void onClose (finalcut::FCloseEvent*) override;
|
||||||
|
|
||||||
// Callback methods
|
// Callback methods
|
||||||
void cb_clock (finalcut::FWidget*, FDataPtr);
|
void cb_clock (finalcut::FWidget*, FDataPtr);
|
||||||
|
@ -59,7 +59,7 @@ class Watch : public finalcut::FDialog
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Method
|
// Method
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Data Members
|
// Data Members
|
||||||
|
|
|
@ -48,11 +48,11 @@ class SmallWindow : public finalcut::FDialog
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Method
|
// Method
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onShow (finalcut::FShowEvent*);
|
virtual void onShow (finalcut::FShowEvent*) override;
|
||||||
virtual void onTimer (finalcut::FTimerEvent*);
|
virtual void onTimer (finalcut::FTimerEvent*) override;
|
||||||
|
|
||||||
// Data Members
|
// Data Members
|
||||||
finalcut::FLabel left_arrow{this};
|
finalcut::FLabel left_arrow{this};
|
||||||
|
@ -202,12 +202,12 @@ class Window : public finalcut::FDialog
|
||||||
void configureFileMenuItems();
|
void configureFileMenuItems();
|
||||||
void configureDialogButtons();
|
void configureDialogButtons();
|
||||||
void activateWindow (finalcut::FDialog*);
|
void activateWindow (finalcut::FDialog*);
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
void addClickedCallback (finalcut::FWidget*, WindowCallback);
|
void addClickedCallback (finalcut::FWidget*, WindowCallback);
|
||||||
void addClickedCallback (finalcut::FWidget*, FAppCallback);
|
void addClickedCallback (finalcut::FWidget*, FAppCallback);
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onClose (finalcut::FCloseEvent*);
|
virtual void onClose (finalcut::FCloseEvent*) override;
|
||||||
|
|
||||||
// Callback methods
|
// Callback methods
|
||||||
void cb_createWindows (finalcut::FWidget*, FDataPtr);
|
void cb_createWindows (finalcut::FWidget*, FDataPtr);
|
||||||
|
|
|
@ -707,7 +707,7 @@ void FDialog::onWindowActive (FEvent*)
|
||||||
void FDialog::onWindowInactive (FEvent*)
|
void FDialog::onWindowInactive (FEvent*)
|
||||||
{
|
{
|
||||||
if ( dialog_menu && ! dialog_menu->isVisible() )
|
if ( dialog_menu && ! dialog_menu->isVisible() )
|
||||||
FWindow::previous_window = this;
|
FWindow::setPreviousWindow(this);
|
||||||
|
|
||||||
if ( isVisible() && isEnabled() )
|
if ( isVisible() && isEnabled() )
|
||||||
drawTitleBar();
|
drawTitleBar();
|
||||||
|
|
|
@ -29,7 +29,7 @@ namespace finalcut
|
||||||
|
|
||||||
// static class attributes
|
// static class attributes
|
||||||
bool FObject::timer_modify_lock;
|
bool FObject::timer_modify_lock;
|
||||||
FObject::TimerListPtr FObject::timer_list = nullptr;
|
FObject::TimerList* FObject::timer_list = nullptr;
|
||||||
const FString* fc::emptyFString::empty_string = nullptr;
|
const FString* fc::emptyFString::empty_string = nullptr;
|
||||||
|
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ FObject::FObject (FObject* parent)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
timer_list = std::make_shared<TimerList>();
|
timer_list = new TimerList;
|
||||||
}
|
}
|
||||||
catch (const std::bad_alloc& ex)
|
catch (const std::bad_alloc& ex)
|
||||||
{
|
{
|
||||||
|
@ -72,7 +72,10 @@ FObject::~FObject() // destructor
|
||||||
delOwnTimer(); // Delete all timers of this object
|
delOwnTimer(); // Delete all timers of this object
|
||||||
|
|
||||||
if ( ! has_parent && timer_list )
|
if ( ! has_parent && timer_list )
|
||||||
|
{
|
||||||
|
delete timer_list;
|
||||||
timer_list = nullptr;
|
timer_list = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
if ( ! has_parent && ! fc::emptyFString::isNull() )
|
if ( ! has_parent && ! fc::emptyFString::isNull() )
|
||||||
fc::emptyFString::clear();
|
fc::emptyFString::clear();
|
||||||
|
|
|
@ -96,7 +96,7 @@ class FApplication : public FWidget
|
||||||
FApplication& operator = (const FApplication&) = delete;
|
FApplication& operator = (const FApplication&) = delete;
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
int getArgc() const;
|
int getArgc() const;
|
||||||
char** getArgv() const;
|
char** getArgv() const;
|
||||||
static FApplication* getApplicationObject();
|
static FApplication* getApplicationObject();
|
||||||
|
@ -172,7 +172,7 @@ class FApplication : public FWidget
|
||||||
void processCloseWidget();
|
void processCloseWidget();
|
||||||
bool processNextEvent();
|
bool processNextEvent();
|
||||||
virtual void performTimerAction ( const FObject*
|
virtual void performTimerAction ( const FObject*
|
||||||
, const FEvent* );
|
, const FEvent* ) override;
|
||||||
|
|
||||||
// Data Members
|
// Data Members
|
||||||
int app_argc;
|
int app_argc;
|
||||||
|
|
|
@ -84,7 +84,7 @@ class FButton : public FWidget
|
||||||
FButton& operator = (const FString&);
|
FButton& operator = (const FString&);
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
FString& getText();
|
FString& getText();
|
||||||
|
|
||||||
// Mutators
|
// Mutators
|
||||||
|
@ -98,13 +98,13 @@ class FButton : public FWidget
|
||||||
bool setNoUnderline(bool);
|
bool setNoUnderline(bool);
|
||||||
bool setNoUnderline();
|
bool setNoUnderline();
|
||||||
bool unsetNoUnderline();
|
bool unsetNoUnderline();
|
||||||
virtual bool setEnable(bool);
|
virtual bool setEnable(bool) override;
|
||||||
virtual bool setEnable();
|
virtual bool setEnable() override;
|
||||||
virtual bool unsetEnable();
|
virtual bool unsetEnable() override;
|
||||||
virtual bool setDisable();
|
virtual bool setDisable() override;
|
||||||
virtual bool setFocus(bool);
|
virtual bool setFocus(bool) override;
|
||||||
virtual bool setFocus();
|
virtual bool setFocus() override;
|
||||||
virtual bool unsetFocus();
|
virtual bool unsetFocus() override;
|
||||||
bool setFlat(bool);
|
bool setFlat(bool);
|
||||||
bool setFlat();
|
bool setFlat();
|
||||||
bool unsetFlat();
|
bool unsetFlat();
|
||||||
|
@ -126,17 +126,17 @@ class FButton : public FWidget
|
||||||
bool hasClickAnimation();
|
bool hasClickAnimation();
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void hide();
|
virtual void hide() override;
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onKeyPress (FKeyEvent*);
|
virtual void onKeyPress (FKeyEvent*) override;
|
||||||
virtual void onMouseDown (FMouseEvent*);
|
virtual void onMouseDown (FMouseEvent*) override;
|
||||||
virtual void onMouseUp (FMouseEvent*);
|
virtual void onMouseUp (FMouseEvent*) override;
|
||||||
virtual void onMouseMove (FMouseEvent*);
|
virtual void onMouseMove (FMouseEvent*) override;
|
||||||
virtual void onTimer (FTimerEvent*);
|
virtual void onTimer (FTimerEvent*) override;
|
||||||
virtual void onAccel (FAccelEvent*);
|
virtual void onAccel (FAccelEvent*) override;
|
||||||
virtual void onFocusIn (FFocusEvent*);
|
virtual void onFocusIn (FFocusEvent*) override;
|
||||||
virtual void onFocusOut (FFocusEvent*);
|
virtual void onFocusOut (FFocusEvent*) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Constants
|
// Constants
|
||||||
|
@ -154,7 +154,7 @@ class FButton : public FWidget
|
||||||
void drawMarginRight();
|
void drawMarginRight();
|
||||||
void drawTopBottomBackground();
|
void drawTopBottomBackground();
|
||||||
void drawButtonTextLine (wchar_t[]);
|
void drawButtonTextLine (wchar_t[]);
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
void updateStatusBar();
|
void updateStatusBar();
|
||||||
void updateButtonColor();
|
void updateButtonColor();
|
||||||
void processClick();
|
void processClick();
|
||||||
|
|
|
@ -85,7 +85,7 @@ class FButtonGroup : public FScrollView
|
||||||
FButtonGroup& operator = (const FButtonGroup&) = delete;
|
FButtonGroup& operator = (const FButtonGroup&) = delete;
|
||||||
|
|
||||||
// Accessor
|
// Accessor
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
FToggleButton* getFirstButton();
|
FToggleButton* getFirstButton();
|
||||||
FToggleButton* getLastButton();
|
FToggleButton* getLastButton();
|
||||||
FToggleButton* getButton (int) const;
|
FToggleButton* getButton (int) const;
|
||||||
|
@ -93,10 +93,10 @@ class FButtonGroup : public FScrollView
|
||||||
FString& getText();
|
FString& getText();
|
||||||
|
|
||||||
// Mutator
|
// Mutator
|
||||||
virtual bool setEnable(bool);
|
virtual bool setEnable(bool) override;
|
||||||
virtual bool setEnable();
|
virtual bool setEnable() override;
|
||||||
virtual bool unsetEnable();
|
virtual bool unsetEnable() override;
|
||||||
virtual bool setDisable();
|
virtual bool setDisable() override;
|
||||||
void setText (const FString&);
|
void setText (const FString&);
|
||||||
|
|
||||||
// Inquiries
|
// Inquiries
|
||||||
|
@ -105,16 +105,16 @@ class FButtonGroup : public FScrollView
|
||||||
bool hasCheckedButton() const;
|
bool hasCheckedButton() const;
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void hide();
|
virtual void hide() override;
|
||||||
void insert (FToggleButton*);
|
void insert (FToggleButton*);
|
||||||
void remove (FToggleButton*);
|
void remove (FToggleButton*);
|
||||||
void checkScrollSize (FToggleButton*);
|
void checkScrollSize (FToggleButton*);
|
||||||
void checkScrollSize (const FRect&);
|
void checkScrollSize (const FRect&);
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onMouseDown (FMouseEvent*);
|
virtual void onMouseDown (FMouseEvent*) override;
|
||||||
virtual void onAccel (FAccelEvent*);
|
virtual void onAccel (FAccelEvent*) override;
|
||||||
virtual void onFocusIn (FFocusEvent*);
|
virtual void onFocusIn (FFocusEvent*) override;
|
||||||
|
|
||||||
// Callback method
|
// Callback method
|
||||||
void cb_buttonToggled (FWidget*, FDataPtr);
|
void cb_buttonToggled (FWidget*, FDataPtr);
|
||||||
|
@ -127,7 +127,7 @@ class FButtonGroup : public FScrollView
|
||||||
void setHotkeyAccelerator();
|
void setHotkeyAccelerator();
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
void drawLabel();
|
void drawLabel();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -67,10 +67,10 @@ static uInt character[][fc::NUM_OF_ENCODINGS] =
|
||||||
{0x2592, 'a', 0xb0, '#'}, // ▒ - MediumShade
|
{0x2592, 'a', 0xb0, '#'}, // ▒ - MediumShade
|
||||||
{0x2588, '0', 0xdb, '#'}, // █ - FullBlock
|
{0x2588, '0', 0xdb, '#'}, // █ - FullBlock
|
||||||
{0x25ae, '_', 0xfe, '#'}, // ▮ - BlackVerticalRectangle (1)
|
{0x25ae, '_', 0xfe, '#'}, // ▮ - BlackVerticalRectangle (1)
|
||||||
{0x258c, 0 , 0xdd, ' '}, // ▌ - LeftHalfBlock
|
{0x258c, 0, 0xdd, ' '}, // ▌ - LeftHalfBlock
|
||||||
{0x2590, 0 , 0xde, ' '}, // ▐ - RightHalfBlock
|
{0x2590, 0, 0xde, ' '}, // ▐ - RightHalfBlock
|
||||||
{0x2584, 0 , 0xdc, ' '}, // ▄ - LowerHalfBlock
|
{0x2584, 0, 0xdc, ' '}, // ▄ - LowerHalfBlock
|
||||||
{0x2580, 0 , 0xdf, ' '}, // ▀ - UpperHalfBlock
|
{0x2580, 0, 0xdf, ' '}, // ▀ - UpperHalfBlock
|
||||||
{0x2500, 'q', 0xc4, '-'}, // ─ - BoxDrawingsHorizontal
|
{0x2500, 'q', 0xc4, '-'}, // ─ - BoxDrawingsHorizontal
|
||||||
{0x2502, 'x', 0xb3, '|'}, // │ - BoxDrawingsVertical
|
{0x2502, 'x', 0xb3, '|'}, // │ - BoxDrawingsVertical
|
||||||
{0x250c, 'l', 0xda, '.'}, // ┌ - BoxDrawingsDownAndRight
|
{0x250c, 'l', 0xda, '.'}, // ┌ - BoxDrawingsDownAndRight
|
||||||
|
|
|
@ -86,12 +86,12 @@ class FCheckBox : public FToggleButton
|
||||||
FCheckBox& operator = (const FCheckBox&) = delete;
|
FCheckBox& operator = (const FCheckBox&) = delete;
|
||||||
|
|
||||||
// Accessor
|
// Accessor
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Methods
|
// Methods
|
||||||
void init();
|
void init();
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
void drawCheckButton();
|
void drawCheckButton();
|
||||||
};
|
};
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
|
@ -86,7 +86,7 @@ class FCheckMenuItem : public FMenuItem
|
||||||
FCheckMenuItem& operator = (const FCheckMenuItem&) = delete;
|
FCheckMenuItem& operator = (const FCheckMenuItem&) = delete;
|
||||||
|
|
||||||
// Accessor
|
// Accessor
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Methods
|
// Methods
|
||||||
|
|
|
@ -100,7 +100,7 @@ class FDialog : public FWindow
|
||||||
FDialog& operator = (const FDialog&) = delete;
|
FDialog& operator = (const FDialog&) = delete;
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
virtual const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
FString getText() const;
|
FString getText() const;
|
||||||
|
|
||||||
// Mutators
|
// Mutators
|
||||||
|
@ -110,7 +110,7 @@ class FDialog : public FWindow
|
||||||
bool setModal (bool);
|
bool setModal (bool);
|
||||||
bool setModal();
|
bool setModal();
|
||||||
bool unsetModal();
|
bool unsetModal();
|
||||||
virtual bool setResizeable (bool);
|
virtual bool setResizeable (bool) override;
|
||||||
bool setScrollable (bool);
|
bool setScrollable (bool);
|
||||||
bool setScrollable();
|
bool setScrollable();
|
||||||
bool unsetScrollable();
|
bool unsetScrollable();
|
||||||
|
@ -121,16 +121,16 @@ class FDialog : public FWindow
|
||||||
bool isScrollable();
|
bool isScrollable();
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void show();
|
virtual void show() override;
|
||||||
virtual void hide();
|
virtual void hide() override;
|
||||||
int exec();
|
int exec();
|
||||||
virtual void setPos (int, int, bool = true);
|
virtual void setPos (int, int, bool = true) override;
|
||||||
virtual void move (int, int);
|
virtual void move (int, int) override;
|
||||||
bool moveUp (int);
|
bool moveUp (int);
|
||||||
bool moveDown (int);
|
bool moveDown (int);
|
||||||
bool moveLeft (int);
|
bool moveLeft (int);
|
||||||
bool moveRight (int);
|
bool moveRight (int);
|
||||||
virtual void setSize (std::size_t, std::size_t, bool = true);
|
virtual void setSize (std::size_t, std::size_t, bool = true) override;
|
||||||
bool reduceHeight (int);
|
bool reduceHeight (int);
|
||||||
bool expandHeight (int);
|
bool expandHeight (int);
|
||||||
bool reduceWidth (int);
|
bool reduceWidth (int);
|
||||||
|
@ -138,27 +138,27 @@ class FDialog : public FWindow
|
||||||
void activateDialog();
|
void activateDialog();
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onKeyPress (FKeyEvent*);
|
virtual void onKeyPress (FKeyEvent*) override;
|
||||||
virtual void onMouseDown (FMouseEvent*);
|
virtual void onMouseDown (FMouseEvent*) override;
|
||||||
virtual void onMouseUp (FMouseEvent*);
|
virtual void onMouseUp (FMouseEvent*) override;
|
||||||
virtual void onMouseMove (FMouseEvent*);
|
virtual void onMouseMove (FMouseEvent*) override;
|
||||||
virtual void onMouseDoubleClick (FMouseEvent*);
|
virtual void onMouseDoubleClick (FMouseEvent*) override;
|
||||||
virtual void onAccel (FAccelEvent*);
|
virtual void onAccel (FAccelEvent*) override;
|
||||||
virtual void onWindowActive (FEvent*);
|
virtual void onWindowActive (FEvent*) override;
|
||||||
virtual void onWindowInactive (FEvent*);
|
virtual void onWindowInactive (FEvent*) override;
|
||||||
virtual void onWindowRaised (FEvent*);
|
virtual void onWindowRaised (FEvent*) override;
|
||||||
virtual void onWindowLowered (FEvent*);
|
virtual void onWindowLowered (FEvent*) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Methods
|
// Methods
|
||||||
virtual void done (int);
|
virtual void done (int);
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
void drawDialogShadow();
|
void drawDialogShadow();
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onShow (FShowEvent*);
|
virtual void onShow (FShowEvent*) override;
|
||||||
virtual void onHide (FHideEvent*);
|
virtual void onHide (FHideEvent*) override;
|
||||||
virtual void onClose (FCloseEvent*);
|
virtual void onClose (FCloseEvent*) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Typedef
|
// Typedef
|
||||||
|
@ -184,7 +184,7 @@ class FDialog : public FWindow
|
||||||
void initMoveSizeMenuItem (FMenu*);
|
void initMoveSizeMenuItem (FMenu*);
|
||||||
void initZoomMenuItem (FMenu*);
|
void initZoomMenuItem (FMenu*);
|
||||||
void initCloseMenuItem (FMenu*);
|
void initCloseMenuItem (FMenu*);
|
||||||
virtual void drawBorder();
|
virtual void drawBorder() override;
|
||||||
void drawTitleBar();
|
void drawTitleBar();
|
||||||
void drawBarButton();
|
void drawBarButton();
|
||||||
void drawZoomButton();
|
void drawZoomButton();
|
||||||
|
|
|
@ -92,7 +92,7 @@ class FDialogListMenu : public FMenu
|
||||||
FDialogListMenu& operator = (const FDialogListMenu&) = delete;
|
FDialogListMenu& operator = (const FDialogListMenu&) = delete;
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
virtual const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Method
|
// Method
|
||||||
|
|
|
@ -116,7 +116,7 @@ class FFileDialog : public FDialog
|
||||||
FFileDialog& operator = (const FFileDialog&);
|
FFileDialog& operator = (const FFileDialog&);
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
const FString getPath() const;
|
const FString getPath() const;
|
||||||
const FString getFilter() const;
|
const FString getFilter() const;
|
||||||
const FString getSelectedFile() const;
|
const FString getSelectedFile() const;
|
||||||
|
@ -130,7 +130,7 @@ class FFileDialog : public FDialog
|
||||||
bool unsetShowHiddenFiles();
|
bool unsetShowHiddenFiles();
|
||||||
|
|
||||||
// Event handler
|
// Event handler
|
||||||
virtual void onKeyPress (FKeyEvent*);
|
virtual void onKeyPress (FKeyEvent*) override;
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
static const FString fileOpenChooser ( FWidget*
|
static const FString fileOpenChooser ( FWidget*
|
||||||
|
@ -142,7 +142,7 @@ class FFileDialog : public FDialog
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Method
|
// Method
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Typedef
|
// Typedef
|
||||||
|
|
|
@ -100,7 +100,7 @@ class FLabel : public FWidget
|
||||||
const FLabel& operator >> (FString&);
|
const FLabel& operator >> (FString&);
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
FWidget* getAccelWidget();
|
FWidget* getAccelWidget();
|
||||||
fc::text_alignment getAlignment();
|
fc::text_alignment getAlignment();
|
||||||
FString& getText();
|
FString& getText();
|
||||||
|
@ -114,7 +114,7 @@ class FLabel : public FWidget
|
||||||
bool setReverseMode(bool);
|
bool setReverseMode(bool);
|
||||||
bool setReverseMode();
|
bool setReverseMode();
|
||||||
bool unsetReverseMode();
|
bool unsetReverseMode();
|
||||||
virtual bool setEnable (bool);
|
virtual bool setEnable (bool) override;
|
||||||
void setNumber (uLong);
|
void setNumber (uLong);
|
||||||
void setNumber (long);
|
void setNumber (long);
|
||||||
void setNumber (float, int = FLT_DIG);
|
void setNumber (float, int = FLT_DIG);
|
||||||
|
@ -127,12 +127,12 @@ class FLabel : public FWidget
|
||||||
bool hasReverseMode();
|
bool hasReverseMode();
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void hide();
|
virtual void hide() override;
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onMouseDown (FMouseEvent*);
|
virtual void onMouseDown (FMouseEvent*) override;
|
||||||
virtual void onAccel (FAccelEvent*);
|
virtual void onAccel (FAccelEvent*) override;
|
||||||
|
|
||||||
// Callback method
|
// Callback method
|
||||||
void cb_accel_widget_destroyed (FWidget*, FDataPtr);
|
void cb_accel_widget_destroyed (FWidget*, FDataPtr);
|
||||||
|
@ -147,7 +147,7 @@ class FLabel : public FWidget
|
||||||
std::size_t getHotkeyPos (wchar_t[], wchar_t[], std::size_t);
|
std::size_t getHotkeyPos (wchar_t[], wchar_t[], std::size_t);
|
||||||
void setHotkeyAccelerator();
|
void setHotkeyAccelerator();
|
||||||
std::size_t getAlignOffset (std::size_t);
|
std::size_t getAlignOffset (std::size_t);
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
void drawMultiLine();
|
void drawMultiLine();
|
||||||
void drawSingleLine();
|
void drawSingleLine();
|
||||||
void printLine ( wchar_t[], std::size_t
|
void printLine ( wchar_t[], std::size_t
|
||||||
|
|
|
@ -103,7 +103,7 @@ class FLineEdit : public FWidget
|
||||||
const FLineEdit& operator >> (FString&);
|
const FLineEdit& operator >> (FString&);
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
FString getText() const;
|
FString getText() const;
|
||||||
int getLabelOrientation();
|
int getLabelOrientation();
|
||||||
|
|
||||||
|
@ -111,13 +111,13 @@ class FLineEdit : public FWidget
|
||||||
void setText (const FString&);
|
void setText (const FString&);
|
||||||
void setLabelText (const FString&);
|
void setLabelText (const FString&);
|
||||||
void setLabelOrientation(const label_o);
|
void setLabelOrientation(const label_o);
|
||||||
virtual bool setEnable(bool);
|
virtual bool setEnable(bool) override;
|
||||||
virtual bool setEnable();
|
virtual bool setEnable() override;
|
||||||
virtual bool unsetEnable();
|
virtual bool unsetEnable() override;
|
||||||
virtual bool setDisable();
|
virtual bool setDisable() override;
|
||||||
virtual bool setFocus(bool);
|
virtual bool setFocus(bool) override;
|
||||||
virtual bool setFocus();
|
virtual bool setFocus() override;
|
||||||
virtual bool unsetFocus();
|
virtual bool unsetFocus() override;
|
||||||
bool setShadow(bool);
|
bool setShadow(bool);
|
||||||
bool setShadow();
|
bool setShadow();
|
||||||
bool unsetShadow();
|
bool unsetShadow();
|
||||||
|
@ -126,23 +126,23 @@ class FLineEdit : public FWidget
|
||||||
bool hasShadow();
|
bool hasShadow();
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void hide();
|
virtual void hide() override;
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onKeyPress (FKeyEvent*);
|
virtual void onKeyPress (FKeyEvent*) override;
|
||||||
virtual void onMouseDown (FMouseEvent*);
|
virtual void onMouseDown (FMouseEvent*) override;
|
||||||
virtual void onMouseUp (FMouseEvent*);
|
virtual void onMouseUp (FMouseEvent*) override;
|
||||||
virtual void onMouseMove (FMouseEvent*);
|
virtual void onMouseMove (FMouseEvent*) override;
|
||||||
virtual void onTimer (FTimerEvent*);
|
virtual void onTimer (FTimerEvent*) override;
|
||||||
virtual void onAccel (FAccelEvent*);
|
virtual void onAccel (FAccelEvent*) override;
|
||||||
virtual void onHide (FHideEvent*);
|
virtual void onHide (FHideEvent*) override;
|
||||||
virtual void onFocusIn (FFocusEvent*);
|
virtual void onFocusIn (FFocusEvent*) override;
|
||||||
virtual void onFocusOut (FFocusEvent*);
|
virtual void onFocusOut (FFocusEvent*) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void adjustLabel();
|
void adjustLabel();
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Enumeration
|
// Enumeration
|
||||||
|
@ -156,7 +156,7 @@ class FLineEdit : public FWidget
|
||||||
// Methods
|
// Methods
|
||||||
void init();
|
void init();
|
||||||
bool hasHotkey();
|
bool hasHotkey();
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
void drawInputField();
|
void drawInputField();
|
||||||
void keyLeft();
|
void keyLeft();
|
||||||
void keyRight();
|
void keyRight();
|
||||||
|
|
|
@ -85,6 +85,7 @@ class FListBoxItem
|
||||||
FListBoxItem& operator = (const FListBoxItem&);
|
FListBoxItem& operator = (const FListBoxItem&);
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
|
virtual const char* getClassName() const;
|
||||||
virtual FString& getText();
|
virtual FString& getText();
|
||||||
virtual FDataPtr getData() const;
|
virtual FDataPtr getData() const;
|
||||||
|
|
||||||
|
@ -109,6 +110,10 @@ class FListBoxItem
|
||||||
|
|
||||||
|
|
||||||
// FListBoxItem inline functions
|
// FListBoxItem inline functions
|
||||||
|
//----------------------------------------------------------------------
|
||||||
|
inline const char* FListBoxItem::getClassName() const
|
||||||
|
{ return "FListBoxItem"; }
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
inline FString& FListBoxItem::getText()
|
inline FString& FListBoxItem::getText()
|
||||||
{ return text; }
|
{ return text; }
|
||||||
|
@ -163,7 +168,7 @@ class FListBox : public FWidget
|
||||||
FListBox& operator = (const FListBox&) = delete;
|
FListBox& operator = (const FListBox&) = delete;
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
std::size_t getCount() const;
|
std::size_t getCount() const;
|
||||||
FListBoxItem getItem (std::size_t);
|
FListBoxItem getItem (std::size_t);
|
||||||
FListBoxItem getItem (listBoxItems::iterator) const;
|
FListBoxItem getItem (listBoxItems::iterator) const;
|
||||||
|
@ -182,14 +187,14 @@ class FListBox : public FWidget
|
||||||
void showNoBrackets (listBoxItems::iterator);
|
void showNoBrackets (listBoxItems::iterator);
|
||||||
virtual void setGeometry ( int, int
|
virtual void setGeometry ( int, int
|
||||||
, std::size_t, std::size_t
|
, std::size_t, std::size_t
|
||||||
, bool = true );
|
, bool = true ) override;
|
||||||
void setMultiSelection (bool);
|
void setMultiSelection (bool);
|
||||||
void setMultiSelection ();
|
void setMultiSelection ();
|
||||||
void unsetMultiSelection ();
|
void unsetMultiSelection ();
|
||||||
virtual bool setDisable();
|
virtual bool setDisable() override;
|
||||||
virtual bool setFocus (bool);
|
virtual bool setFocus (bool) override;
|
||||||
virtual bool setFocus();
|
virtual bool setFocus() override;
|
||||||
virtual bool unsetFocus();
|
virtual bool unsetFocus() override;
|
||||||
void setText (const FString&);
|
void setText (const FString&);
|
||||||
|
|
||||||
// Inquiries
|
// Inquiries
|
||||||
|
@ -200,7 +205,7 @@ class FListBox : public FWidget
|
||||||
bool hasBrackets (listBoxItems::iterator) const;
|
bool hasBrackets (listBoxItems::iterator) const;
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void hide();
|
virtual void hide() override;
|
||||||
template <typename Iterator, typename InsertConverter>
|
template <typename Iterator, typename InsertConverter>
|
||||||
void insert (Iterator, Iterator, InsertConverter);
|
void insert (Iterator, Iterator, InsertConverter);
|
||||||
template <typename Container, typename LazyConverter>
|
template <typename Container, typename LazyConverter>
|
||||||
|
@ -215,20 +220,20 @@ class FListBox : public FWidget
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onKeyPress (FKeyEvent*);
|
virtual void onKeyPress (FKeyEvent*) override;
|
||||||
virtual void onMouseDown (FMouseEvent*);
|
virtual void onMouseDown (FMouseEvent*) override;
|
||||||
virtual void onMouseUp (FMouseEvent*);
|
virtual void onMouseUp (FMouseEvent*) override;
|
||||||
virtual void onMouseMove (FMouseEvent*);
|
virtual void onMouseMove (FMouseEvent*) override;
|
||||||
virtual void onMouseDoubleClick (FMouseEvent*);
|
virtual void onMouseDoubleClick (FMouseEvent*) override;
|
||||||
virtual void onWheel (FWheelEvent*);
|
virtual void onWheel (FWheelEvent*) override;
|
||||||
virtual void onTimer (FTimerEvent*);
|
virtual void onTimer (FTimerEvent*) override;
|
||||||
virtual void onFocusIn (FFocusEvent*);
|
virtual void onFocusIn (FFocusEvent*) override;
|
||||||
virtual void onFocusOut (FFocusEvent*);
|
virtual void onFocusOut (FFocusEvent*) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Methods
|
// Methods
|
||||||
void adjustYOffset (std::size_t);
|
void adjustYOffset (std::size_t);
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Typedef
|
// Typedef
|
||||||
|
@ -247,7 +252,7 @@ class FListBox : public FWidget
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
void init();
|
void init();
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
void drawHeadline();
|
void drawHeadline();
|
||||||
void drawList();
|
void drawList();
|
||||||
void drawListLine (int, listBoxItems::iterator, bool);
|
void drawListLine (int, listBoxItems::iterator, bool);
|
||||||
|
|
|
@ -92,7 +92,7 @@ class FListViewItem : public FObject
|
||||||
FListViewItem& operator = (const FListViewItem&);
|
FListViewItem& operator = (const FListViewItem&);
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const;
|
||||||
uInt getColumnCount() const;
|
uInt getColumnCount() const;
|
||||||
int getSortColumn() const;
|
int getSortColumn() const;
|
||||||
FString getText (int) const;
|
FString getText (int) const;
|
||||||
|
@ -215,7 +215,7 @@ class FListViewIterator
|
||||||
bool operator != (const FListViewIterator&) const;
|
bool operator != (const FListViewIterator&) const;
|
||||||
|
|
||||||
// Accessor
|
// Accessor
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const;
|
||||||
int getPosition() const;
|
int getPosition() const;
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
|
@ -285,7 +285,7 @@ class FListView : public FWidget
|
||||||
FListView& operator = (const FListView&) = delete;
|
FListView& operator = (const FListView&) = delete;
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
std::size_t getCount();
|
std::size_t getCount();
|
||||||
fc::text_alignment getColumnAlignment (int) const;
|
fc::text_alignment getColumnAlignment (int) const;
|
||||||
FString getColumnText (int) const;
|
FString getColumnText (int) const;
|
||||||
|
@ -297,7 +297,7 @@ class FListView : public FWidget
|
||||||
// Mutators
|
// Mutators
|
||||||
virtual void setGeometry ( int, int
|
virtual void setGeometry ( int, int
|
||||||
, std::size_t, std::size_t
|
, std::size_t, std::size_t
|
||||||
, bool = true );
|
, bool = true ) override;
|
||||||
void setColumnAlignment (int, fc::text_alignment);
|
void setColumnAlignment (int, fc::text_alignment);
|
||||||
void setColumnText (int, const FString&);
|
void setColumnText (int, const FString&);
|
||||||
void setColumnSortType (int, fc::sorting_type \
|
void setColumnSortType (int, fc::sorting_type \
|
||||||
|
@ -336,15 +336,15 @@ class FListView : public FWidget
|
||||||
virtual void sort();
|
virtual void sort();
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onKeyPress (FKeyEvent*);
|
virtual void onKeyPress (FKeyEvent*) override;
|
||||||
virtual void onMouseDown (FMouseEvent*);
|
virtual void onMouseDown (FMouseEvent*) override;
|
||||||
virtual void onMouseUp (FMouseEvent*);
|
virtual void onMouseUp (FMouseEvent*) override;
|
||||||
virtual void onMouseMove (FMouseEvent*);
|
virtual void onMouseMove (FMouseEvent*) override;
|
||||||
virtual void onMouseDoubleClick (FMouseEvent*);
|
virtual void onMouseDoubleClick (FMouseEvent*) override;
|
||||||
virtual void onWheel (FWheelEvent*);
|
virtual void onWheel (FWheelEvent*) override;
|
||||||
virtual void onTimer (FTimerEvent*);
|
virtual void onTimer (FTimerEvent*) override;
|
||||||
virtual void onFocusIn (FFocusEvent*);
|
virtual void onFocusIn (FFocusEvent*) override;
|
||||||
virtual void onFocusOut (FFocusEvent*);
|
virtual void onFocusOut (FFocusEvent*) override;
|
||||||
|
|
||||||
// Data Members
|
// Data Members
|
||||||
static FObjectIterator null_iter;
|
static FObjectIterator null_iter;
|
||||||
|
@ -352,7 +352,7 @@ class FListView : public FWidget
|
||||||
protected:
|
protected:
|
||||||
// Methods
|
// Methods
|
||||||
void adjustViewport (int);
|
void adjustViewport (int);
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Typedef
|
// Typedef
|
||||||
|
@ -371,7 +371,7 @@ class FListView : public FWidget
|
||||||
std::size_t getAlignOffset ( fc::text_alignment
|
std::size_t getAlignOffset ( fc::text_alignment
|
||||||
, std::size_t
|
, std::size_t
|
||||||
, std::size_t );
|
, std::size_t );
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
void drawHeadlines();
|
void drawHeadlines();
|
||||||
void drawList();
|
void drawList();
|
||||||
void drawListLine (const FListViewItem*, bool, bool);
|
void drawListLine (const FListViewItem*, bool, bool);
|
||||||
|
|
|
@ -91,21 +91,21 @@ class FMenu : public FWindow, public FMenuList
|
||||||
FMenu& operator = (const FMenu&) = delete;
|
FMenu& operator = (const FMenu&) = delete;
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
virtual const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
FString getText() const;
|
FString getText() const;
|
||||||
FMenuItem* getItem();
|
FMenuItem* getItem();
|
||||||
|
|
||||||
// Mutators
|
// Mutators
|
||||||
virtual bool setEnable(bool);
|
virtual bool setEnable(bool) override;
|
||||||
virtual bool setEnable();
|
virtual bool setEnable() override;
|
||||||
virtual bool unsetEnable();
|
virtual bool unsetEnable() override;
|
||||||
virtual bool setDisable();
|
virtual bool setDisable() override;
|
||||||
void setSelected();
|
void setSelected();
|
||||||
void unsetSelected();
|
void unsetSelected();
|
||||||
bool setMenuWidget (bool);
|
bool setMenuWidget (bool);
|
||||||
bool setMenuWidget();
|
bool setMenuWidget();
|
||||||
bool unsetMenuWidget();
|
bool unsetMenuWidget();
|
||||||
virtual void setStatusbarMessage (const FString&);
|
virtual void setStatusbarMessage (const FString&) override;
|
||||||
void setMenu (FMenu*);
|
void setMenu (FMenu*);
|
||||||
void setText (const FString&);
|
void setText (const FString&);
|
||||||
|
|
||||||
|
@ -116,15 +116,15 @@ class FMenu : public FWindow, public FMenuList
|
||||||
bool hasMenu() const;
|
bool hasMenu() const;
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void show();
|
virtual void show() override;
|
||||||
virtual void hide();
|
virtual void hide() override;
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onKeyPress (FKeyEvent*);
|
virtual void onKeyPress (FKeyEvent*) override;
|
||||||
virtual void onMouseDown (FMouseEvent*);
|
virtual void onMouseDown (FMouseEvent*) override;
|
||||||
virtual void onMouseUp (FMouseEvent*);
|
virtual void onMouseUp (FMouseEvent*) override;
|
||||||
virtual void onMouseMove (FMouseEvent*);
|
virtual void onMouseMove (FMouseEvent*) override;
|
||||||
virtual void onAccel (FAccelEvent*);
|
virtual void onAccel (FAccelEvent*) override;
|
||||||
|
|
||||||
// Callback method
|
// Callback method
|
||||||
void cb_menuitem_toggled (FWidget*, FDataPtr);
|
void cb_menuitem_toggled (FWidget*, FDataPtr);
|
||||||
|
@ -201,7 +201,7 @@ class FMenu : public FWindow, public FMenuList
|
||||||
void keypressMenuBar (FKeyEvent*);
|
void keypressMenuBar (FKeyEvent*);
|
||||||
bool hotkeyMenu (FKeyEvent*);
|
bool hotkeyMenu (FKeyEvent*);
|
||||||
std::size_t getHotkeyPos (wchar_t[], wchar_t[], std::size_t);
|
std::size_t getHotkeyPos (wchar_t[], wchar_t[], std::size_t);
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
void drawItems();
|
void drawItems();
|
||||||
void drawSeparator (int);
|
void drawSeparator (int);
|
||||||
void drawMenuLine (FMenuItem*, int);
|
void drawMenuLine (FMenuItem*, int);
|
||||||
|
|
|
@ -89,19 +89,19 @@ class FMenuBar : public FWindow, public FMenuList
|
||||||
FMenuBar& operator = (const FMenuBar&) = delete;
|
FMenuBar& operator = (const FMenuBar&) = delete;
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
virtual const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
void resetMenu();
|
void resetMenu();
|
||||||
virtual void hide();
|
virtual void hide() override;
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onKeyPress (FKeyEvent*);
|
virtual void onKeyPress (FKeyEvent*) override;
|
||||||
virtual void onMouseDown (FMouseEvent*);
|
virtual void onMouseDown (FMouseEvent*) override;
|
||||||
virtual void onMouseUp (FMouseEvent*);
|
virtual void onMouseUp (FMouseEvent*) override;
|
||||||
virtual void onMouseMove (FMouseEvent*);
|
virtual void onMouseMove (FMouseEvent*) override;
|
||||||
virtual void onAccel (FAccelEvent*);
|
virtual void onAccel (FAccelEvent*) override;
|
||||||
|
|
||||||
// Callback methods
|
// Callback methods
|
||||||
void cb_item_deactivated (FWidget*, FDataPtr);
|
void cb_item_deactivated (FWidget*, FDataPtr);
|
||||||
|
@ -130,7 +130,7 @@ class FMenuBar : public FWindow, public FMenuList
|
||||||
bool selectPrevItem();
|
bool selectPrevItem();
|
||||||
bool hotkeyMenu (FKeyEvent*&);
|
bool hotkeyMenu (FKeyEvent*&);
|
||||||
std::size_t getHotkeyPos (wchar_t[], wchar_t[], std::size_t);
|
std::size_t getHotkeyPos (wchar_t[], wchar_t[], std::size_t);
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
void drawItems();
|
void drawItems();
|
||||||
void drawItem (FMenuItem*, std::size_t&);
|
void drawItem (FMenuItem*, std::size_t&);
|
||||||
void setLineAttributes (FMenuItem*);
|
void setLineAttributes (FMenuItem*);
|
||||||
|
|
|
@ -96,17 +96,17 @@ class FMenuItem : public FWidget
|
||||||
FMenuItem& operator = (const FMenuItem&) = delete;
|
FMenuItem& operator = (const FMenuItem&) = delete;
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
uChar getHotkey() const;
|
uChar getHotkey() const;
|
||||||
FMenu* getMenu() const;
|
FMenu* getMenu() const;
|
||||||
std::size_t getTextLength() const;
|
std::size_t getTextLength() const;
|
||||||
FString getText() const;
|
FString getText() const;
|
||||||
|
|
||||||
// Mutators
|
// Mutators
|
||||||
virtual bool setEnable (bool);
|
virtual bool setEnable (bool) override;
|
||||||
virtual bool setFocus (bool);
|
virtual bool setFocus (bool) override;
|
||||||
virtual bool setFocus();
|
virtual bool setFocus() override;
|
||||||
virtual bool unsetFocus();
|
virtual bool unsetFocus() override;
|
||||||
void setSelected();
|
void setSelected();
|
||||||
void unsetSelected();
|
void unsetSelected();
|
||||||
void setSeparator();
|
void setSeparator();
|
||||||
|
@ -124,19 +124,19 @@ class FMenuItem : public FWidget
|
||||||
bool hasMenu() const;
|
bool hasMenu() const;
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void addAccelerator (FKey, FWidget*);
|
virtual void addAccelerator (FKey, FWidget*) override;
|
||||||
virtual void delAccelerator (FWidget*);
|
virtual void delAccelerator (FWidget*) override;
|
||||||
void openMenu();
|
void openMenu();
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onKeyPress (FKeyEvent*);
|
virtual void onKeyPress (FKeyEvent*) override;
|
||||||
virtual void onMouseDoubleClick (FMouseEvent*);
|
virtual void onMouseDoubleClick (FMouseEvent*) override;
|
||||||
virtual void onMouseDown (FMouseEvent*);
|
virtual void onMouseDown (FMouseEvent*) override;
|
||||||
virtual void onMouseUp (FMouseEvent*);
|
virtual void onMouseUp (FMouseEvent*) override;
|
||||||
virtual void onMouseMove (FMouseEvent*);
|
virtual void onMouseMove (FMouseEvent*) override;
|
||||||
virtual void onAccel (FAccelEvent*);
|
virtual void onAccel (FAccelEvent*) override;
|
||||||
virtual void onFocusIn (FFocusEvent*);
|
virtual void onFocusIn (FFocusEvent*) override;
|
||||||
virtual void onFocusOut (FFocusEvent*);
|
virtual void onFocusOut (FFocusEvent*) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Accessor
|
// Accessor
|
||||||
|
|
|
@ -107,7 +107,7 @@ class FMessageBox : public FDialog
|
||||||
FMessageBox& operator = (const FMessageBox&);
|
FMessageBox& operator = (const FMessageBox&);
|
||||||
|
|
||||||
// Accessor
|
// Accessor
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
const FString getTitlebarText() const;
|
const FString getTitlebarText() const;
|
||||||
const FString getHeadline() const;
|
const FString getHeadline() const;
|
||||||
const FString getText() const;
|
const FString getText() const;
|
||||||
|
@ -137,7 +137,7 @@ class FMessageBox : public FDialog
|
||||||
, int = 0 );
|
, int = 0 );
|
||||||
protected:
|
protected:
|
||||||
// Method
|
// Method
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
|
|
||||||
// Callback method
|
// Callback method
|
||||||
void cb_processClick (FWidget*, FDataPtr);
|
void cb_processClick (FWidget*, FDataPtr);
|
||||||
|
@ -149,7 +149,7 @@ class FMessageBox : public FDialog
|
||||||
void deallocation();
|
void deallocation();
|
||||||
void initCallbacks();
|
void initCallbacks();
|
||||||
void calculateDimensions();
|
void calculateDimensions();
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
void resizeButtons();
|
void resizeButtons();
|
||||||
void adjustButtons();
|
void adjustButtons();
|
||||||
|
|
||||||
|
|
|
@ -208,12 +208,12 @@ class FMouseGPM : public FMouse
|
||||||
void setStdinNo(int);
|
void setStdinNo(int);
|
||||||
|
|
||||||
// Inquiry
|
// Inquiry
|
||||||
virtual bool hasData();
|
virtual bool hasData() override;
|
||||||
bool isGpmMouseEnabled();
|
bool isGpmMouseEnabled();
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void setRawData (FKeyboard::keybuffer&);
|
virtual void setRawData (FKeyboard::keybuffer&) override;
|
||||||
virtual void processEvent (struct timeval*);
|
virtual void processEvent (struct timeval*) override;
|
||||||
bool gpmMouse (bool);
|
bool gpmMouse (bool);
|
||||||
bool enableGpmMouse();
|
bool enableGpmMouse();
|
||||||
bool disableGpmMouse();
|
bool disableGpmMouse();
|
||||||
|
@ -277,11 +277,11 @@ class FMouseX11 : public FMouse
|
||||||
virtual const char* getClassName() const;
|
virtual const char* getClassName() const;
|
||||||
|
|
||||||
// Inquiry
|
// Inquiry
|
||||||
virtual bool hasData();
|
virtual bool hasData() override;
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void setRawData (FKeyboard::keybuffer&);
|
virtual void setRawData (FKeyboard::keybuffer&) override;
|
||||||
virtual void processEvent (struct timeval*);
|
virtual void processEvent (struct timeval*) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Enumeration
|
// Enumeration
|
||||||
|
@ -340,11 +340,11 @@ class FMouseSGR : public FMouse
|
||||||
virtual const char* getClassName() const;
|
virtual const char* getClassName() const;
|
||||||
|
|
||||||
// Inquiry
|
// Inquiry
|
||||||
virtual bool hasData();
|
virtual bool hasData() override;
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void setRawData (FKeyboard::keybuffer&);
|
virtual void setRawData (FKeyboard::keybuffer&) override;
|
||||||
virtual void processEvent (struct timeval*);
|
virtual void processEvent (struct timeval*) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Enumeration
|
// Enumeration
|
||||||
|
@ -403,11 +403,11 @@ class FMouseUrxvt : public FMouse
|
||||||
virtual const char* getClassName() const;
|
virtual const char* getClassName() const;
|
||||||
|
|
||||||
// Inquiry
|
// Inquiry
|
||||||
virtual bool hasData();
|
virtual bool hasData() override;
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void setRawData (FKeyboard::keybuffer&);
|
virtual void setRawData (FKeyboard::keybuffer&) override;
|
||||||
virtual void processEvent (struct timeval*);
|
virtual void processEvent (struct timeval*) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Enumeration
|
// Enumeration
|
||||||
|
|
|
@ -131,7 +131,6 @@ class FObject
|
||||||
|
|
||||||
// Typedefs
|
// Typedefs
|
||||||
typedef std::vector<timer_data> TimerList;
|
typedef std::vector<timer_data> TimerList;
|
||||||
typedef std::shared_ptr<TimerList> TimerListPtr;
|
|
||||||
|
|
||||||
// Accessor
|
// Accessor
|
||||||
TimerList* getTimerList() const;
|
TimerList* getTimerList() const;
|
||||||
|
@ -156,7 +155,7 @@ class FObject
|
||||||
bool has_parent{false};
|
bool has_parent{false};
|
||||||
bool widget_object{false};
|
bool widget_object{false};
|
||||||
static bool timer_modify_lock;
|
static bool timer_modify_lock;
|
||||||
static TimerListPtr timer_list;
|
static TimerList* timer_list;
|
||||||
};
|
};
|
||||||
|
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
@ -223,7 +222,7 @@ inline bool FObject::isTimerInUpdating() const
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
inline FObject::TimerList* FObject::getTimerList() const
|
inline FObject::TimerList* FObject::getTimerList() const
|
||||||
{ return timer_list.get(); }
|
{ return timer_list; }
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
inline void FObject::setWidgetProperty (bool property)
|
inline void FObject::setWidgetProperty (bool property)
|
||||||
|
|
|
@ -77,12 +77,14 @@ class FProgressbar : public FWidget
|
||||||
virtual ~FProgressbar();
|
virtual ~FProgressbar();
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
std::size_t getPercentage();
|
std::size_t getPercentage();
|
||||||
|
|
||||||
// Mutators
|
// Mutators
|
||||||
void setPercentage (std::size_t);
|
void setPercentage (std::size_t);
|
||||||
virtual void setGeometry (int, int, std::size_t, std::size_t, bool = true);
|
virtual void setGeometry ( int, int
|
||||||
|
, std::size_t, std::size_t
|
||||||
|
, bool = true) override;
|
||||||
bool setShadow (bool);
|
bool setShadow (bool);
|
||||||
bool setShadow();
|
bool setShadow();
|
||||||
bool unsetShadow();
|
bool unsetShadow();
|
||||||
|
@ -91,7 +93,7 @@ class FProgressbar : public FWidget
|
||||||
bool hasShadow();
|
bool hasShadow();
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void hide();
|
virtual void hide() override;
|
||||||
void reset();
|
void reset();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -99,7 +101,7 @@ class FProgressbar : public FWidget
|
||||||
static constexpr std::size_t NOT_SET = static_cast<std::size_t>(-1);
|
static constexpr std::size_t NOT_SET = static_cast<std::size_t>(-1);
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
void drawPercentage();
|
void drawPercentage();
|
||||||
void drawBar();
|
void drawBar();
|
||||||
|
|
||||||
|
|
|
@ -86,12 +86,12 @@ class FRadioButton : public FToggleButton
|
||||||
FRadioButton& operator = (const FRadioButton&) = delete;
|
FRadioButton& operator = (const FRadioButton&) = delete;
|
||||||
|
|
||||||
// Accessor
|
// Accessor
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Methods
|
// Methods
|
||||||
void init();
|
void init();
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
void drawRadioButton();
|
void drawRadioButton();
|
||||||
};
|
};
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
|
@ -86,7 +86,7 @@ class FRadioMenuItem : public FMenuItem
|
||||||
FRadioMenuItem& operator = (const FRadioMenuItem&) = delete;
|
FRadioMenuItem& operator = (const FRadioMenuItem&) = delete;
|
||||||
|
|
||||||
// Accessor
|
// Accessor
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Methods
|
// Methods
|
||||||
|
|
|
@ -97,7 +97,7 @@ class FScrollbar : public FWidget
|
||||||
FScrollbar& operator = (const FScrollbar&) = delete;
|
FScrollbar& operator = (const FScrollbar&) = delete;
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
int getValue() const;
|
int getValue() const;
|
||||||
sType getScrollType() const;
|
sType getScrollType() const;
|
||||||
|
|
||||||
|
@ -109,27 +109,29 @@ class FScrollbar : public FWidget
|
||||||
void setSteps (double);
|
void setSteps (double);
|
||||||
void setPageSize (int, int);
|
void setPageSize (int, int);
|
||||||
void setOrientation (int);
|
void setOrientation (int);
|
||||||
virtual void setGeometry (int, int, std::size_t, std::size_t, bool = true);
|
virtual void setGeometry ( int, int
|
||||||
|
, std::size_t, std::size_t
|
||||||
|
, bool = true) override;
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void resize();
|
virtual void resize() override;
|
||||||
virtual void redraw();
|
virtual void redraw() override;
|
||||||
void calculateSliderValues();
|
void calculateSliderValues();
|
||||||
void drawVerticalBar();
|
void drawVerticalBar();
|
||||||
void drawHorizontalBar();
|
void drawHorizontalBar();
|
||||||
void drawBar();
|
void drawBar();
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onMouseDown (FMouseEvent*);
|
virtual void onMouseDown (FMouseEvent*) override;
|
||||||
virtual void onMouseUp (FMouseEvent*);
|
virtual void onMouseUp (FMouseEvent*) override;
|
||||||
virtual void onMouseMove (FMouseEvent*);
|
virtual void onMouseMove (FMouseEvent*) override;
|
||||||
virtual void onWheel (FWheelEvent*);
|
virtual void onWheel (FWheelEvent*) override;
|
||||||
virtual void onTimer (FTimerEvent*);
|
virtual void onTimer (FTimerEvent*) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Methods
|
// Methods
|
||||||
void init();
|
void init();
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
void drawButtons();
|
void drawButtons();
|
||||||
sType getClickedScrollType (int, int);
|
sType getClickedScrollType (int, int);
|
||||||
sType getVerticalClickedScrollType (int);
|
sType getVerticalClickedScrollType (int);
|
||||||
|
|
|
@ -89,7 +89,7 @@ class FScrollView : public FWidget
|
||||||
FScrollView& operator = (const FScrollView&) = delete;
|
FScrollView& operator = (const FScrollView&) = delete;
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
std::size_t getViewportWidth() const;
|
std::size_t getViewportWidth() const;
|
||||||
std::size_t getViewportHeight() const;
|
std::size_t getViewportHeight() const;
|
||||||
std::size_t getScrollWidth() const;
|
std::size_t getScrollWidth() const;
|
||||||
|
@ -102,15 +102,15 @@ class FScrollView : public FWidget
|
||||||
virtual void setScrollWidth (std::size_t);
|
virtual void setScrollWidth (std::size_t);
|
||||||
virtual void setScrollHeight (std::size_t);
|
virtual void setScrollHeight (std::size_t);
|
||||||
virtual void setScrollSize (std::size_t, std::size_t);
|
virtual void setScrollSize (std::size_t, std::size_t);
|
||||||
virtual void setX (int, bool = true);
|
virtual void setX (int, bool = true) override;
|
||||||
virtual void setY (int, bool = true);
|
virtual void setY (int, bool = true) override;
|
||||||
virtual void setPos (int, int, bool = true);
|
virtual void setPos (int, int, bool = true) override;
|
||||||
virtual void setWidth (std::size_t, bool = true);
|
virtual void setWidth (std::size_t, bool = true) override;
|
||||||
virtual void setHeight (std::size_t, bool = true);
|
virtual void setHeight (std::size_t, bool = true) override;
|
||||||
virtual void setSize (std::size_t, std::size_t, bool = true);
|
virtual void setSize (std::size_t, std::size_t, bool = true) override;
|
||||||
virtual void setGeometry ( int, int
|
virtual void setGeometry ( int, int
|
||||||
, std::size_t, std::size_t
|
, std::size_t, std::size_t
|
||||||
, bool = true );
|
, bool = true ) override;
|
||||||
void setCursorPos (int, int);
|
void setCursorPos (int, int);
|
||||||
void setPrintPos (int, int);
|
void setPrintPos (int, int);
|
||||||
bool setViewportPrint (bool);
|
bool setViewportPrint (bool);
|
||||||
|
@ -127,20 +127,20 @@ class FScrollView : public FWidget
|
||||||
bool isViewportPrint();
|
bool isViewportPrint();
|
||||||
|
|
||||||
// Method
|
// Method
|
||||||
virtual void clearArea (int = ' ');
|
virtual void clearArea (int = ' ') override;
|
||||||
void scrollToX (int);
|
void scrollToX (int);
|
||||||
void scrollToY (int);
|
void scrollToY (int);
|
||||||
void scrollTo (const FPoint&);
|
void scrollTo (const FPoint&);
|
||||||
void scrollTo (int, int);
|
void scrollTo (int, int);
|
||||||
void scrollBy (int, int);
|
void scrollBy (int, int);
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onKeyPress (FKeyEvent*);
|
virtual void onKeyPress (FKeyEvent*) override;
|
||||||
virtual void onWheel (FWheelEvent*);
|
virtual void onWheel (FWheelEvent*) override;
|
||||||
virtual void onFocusIn (FFocusEvent*);
|
virtual void onFocusIn (FFocusEvent*) override;
|
||||||
virtual void onChildFocusIn (FFocusEvent*);
|
virtual void onChildFocusIn (FFocusEvent*) override;
|
||||||
virtual void onChildFocusOut (FFocusEvent*);
|
virtual void onChildFocusOut (FFocusEvent*) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Using-declaration
|
// Using-declaration
|
||||||
|
@ -150,7 +150,7 @@ class FScrollView : public FWidget
|
||||||
term_area* getPrintArea();
|
term_area* getPrintArea();
|
||||||
|
|
||||||
// Method
|
// Method
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
void copy2area();
|
void copy2area();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -93,7 +93,7 @@ class FStatusKey : public FWidget
|
||||||
FStatusKey& operator = (const FStatusKey&) = delete;
|
FStatusKey& operator = (const FStatusKey&) = delete;
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
virtual const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
virtual FKey getKey() const;
|
virtual FKey getKey() const;
|
||||||
virtual FString getText() const;
|
virtual FString getText() const;
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ class FStatusKey : public FWidget
|
||||||
bool hasMouseFocus() const;
|
bool hasMouseFocus() const;
|
||||||
|
|
||||||
// Event handler
|
// Event handler
|
||||||
virtual void onAccel (FAccelEvent*);
|
virtual void onAccel (FAccelEvent*) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Methods
|
// Methods
|
||||||
|
@ -206,7 +206,7 @@ class FStatusBar : public FWindow
|
||||||
FStatusBar& operator = (const FStatusBar&) = delete;
|
FStatusBar& operator = (const FStatusBar&) = delete;
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
virtual const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
FStatusKey* getStatusKey (int) const;
|
FStatusKey* getStatusKey (int) const;
|
||||||
FString getMessage() const;
|
FString getMessage() const;
|
||||||
std::size_t getCount() const;
|
std::size_t getCount() const;
|
||||||
|
@ -221,19 +221,19 @@ class FStatusBar : public FWindow
|
||||||
bool hasActivatedKey();
|
bool hasActivatedKey();
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void hide();
|
virtual void hide() override;
|
||||||
void drawMessage();
|
void drawMessage();
|
||||||
void clearMessage();
|
void clearMessage();
|
||||||
void insert (FStatusKey*);
|
void insert (FStatusKey*);
|
||||||
void remove (FStatusKey*);
|
void remove (FStatusKey*);
|
||||||
void remove (int);
|
void remove (int);
|
||||||
void clear();
|
void clear();
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onMouseDown (FMouseEvent*);
|
virtual void onMouseDown (FMouseEvent*) override;
|
||||||
virtual void onMouseUp (FMouseEvent*);
|
virtual void onMouseUp (FMouseEvent*) override;
|
||||||
virtual void onMouseMove (FMouseEvent*);
|
virtual void onMouseMove (FMouseEvent*) override;
|
||||||
|
|
||||||
// Callback method
|
// Callback method
|
||||||
void cb_statuskey_activated (FWidget*, FDataPtr);
|
void cb_statuskey_activated (FWidget*, FDataPtr);
|
||||||
|
@ -244,7 +244,7 @@ class FStatusBar : public FWindow
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
void init();
|
void init();
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
void drawKeys();
|
void drawKeys();
|
||||||
void drawKey (keyList::const_iterator);
|
void drawKey (keyList::const_iterator);
|
||||||
void drawActiveKey (keyList::const_iterator);
|
void drawActiveKey (keyList::const_iterator);
|
||||||
|
|
|
@ -86,19 +86,19 @@ class FSwitch : public FToggleButton
|
||||||
FSwitch& operator = (const FSwitch&) = delete;
|
FSwitch& operator = (const FSwitch&) = delete;
|
||||||
|
|
||||||
// Accessor
|
// Accessor
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
|
|
||||||
// Mutator
|
// Mutator
|
||||||
virtual void setText (const FString&);
|
virtual void setText (const FString&) override;
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onKeyPress (FKeyEvent*);
|
virtual void onKeyPress (FKeyEvent*) override;
|
||||||
virtual void onMouseDown (FMouseEvent*);
|
virtual void onMouseDown (FMouseEvent*) override;
|
||||||
virtual void onMouseUp (FMouseEvent*);
|
virtual void onMouseUp (FMouseEvent*) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Methods
|
// Methods
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
void drawCheckButton();
|
void drawCheckButton();
|
||||||
void drawChecked();
|
void drawChecked();
|
||||||
void drawUnchecked();
|
void drawUnchecked();
|
||||||
|
|
|
@ -93,7 +93,7 @@ class FTermcap
|
||||||
~FTermcap() = default;
|
~FTermcap() = default;
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const;
|
||||||
|
|
||||||
static tcap_map* getTermcapMap()
|
static tcap_map* getTermcapMap()
|
||||||
{
|
{
|
||||||
|
|
|
@ -61,7 +61,7 @@ class FTermcapQuirks
|
||||||
virtual ~FTermcapQuirks();
|
virtual ~FTermcapQuirks();
|
||||||
|
|
||||||
// Accessor
|
// Accessor
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const;
|
||||||
|
|
||||||
// Mutator
|
// Mutator
|
||||||
static void setFTermData (FTermData*);
|
static void setFTermData (FTermData*);
|
||||||
|
|
|
@ -90,7 +90,7 @@ class FTextView : public FWidget
|
||||||
FTextView& operator = (const FTextView&) = delete;
|
FTextView& operator = (const FTextView&) = delete;
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
std::size_t getColumns() const;
|
std::size_t getColumns() const;
|
||||||
std::size_t getRows() const;
|
std::size_t getRows() const;
|
||||||
const FString getText() const;
|
const FString getText() const;
|
||||||
|
@ -99,7 +99,7 @@ class FTextView : public FWidget
|
||||||
// Mutators
|
// Mutators
|
||||||
virtual void setGeometry ( int, int
|
virtual void setGeometry ( int, int
|
||||||
, std::size_t, std::size_t
|
, std::size_t, std::size_t
|
||||||
, bool = true );
|
, bool = true ) override;
|
||||||
void setText (const FString&);
|
void setText (const FString&);
|
||||||
void scrollToX (int);
|
void scrollToX (int);
|
||||||
void scrollToY (int);
|
void scrollToY (int);
|
||||||
|
@ -108,7 +108,7 @@ class FTextView : public FWidget
|
||||||
void scrollBy (int, int);
|
void scrollBy (int, int);
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void hide();
|
virtual void hide() override;
|
||||||
void append (const FString&);
|
void append (const FString&);
|
||||||
void insert (const FString&, int);
|
void insert (const FString&, int);
|
||||||
void replaceRange (const FString&, int, int);
|
void replaceRange (const FString&, int, int);
|
||||||
|
@ -117,17 +117,17 @@ class FTextView : public FWidget
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onKeyPress (FKeyEvent*);
|
virtual void onKeyPress (FKeyEvent*) override;
|
||||||
virtual void onMouseDown (FMouseEvent*);
|
virtual void onMouseDown (FMouseEvent*) override;
|
||||||
virtual void onMouseUp (FMouseEvent*);
|
virtual void onMouseUp (FMouseEvent*) override;
|
||||||
virtual void onMouseMove (FMouseEvent*);
|
virtual void onMouseMove (FMouseEvent*) override;
|
||||||
virtual void onWheel (FWheelEvent*);
|
virtual void onWheel (FWheelEvent*) override;
|
||||||
virtual void onFocusIn (FFocusEvent*);
|
virtual void onFocusIn (FFocusEvent*) override;
|
||||||
virtual void onFocusOut (FFocusEvent*);
|
virtual void onFocusOut (FFocusEvent*) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Method
|
// Method
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Typedef
|
// Typedef
|
||||||
|
@ -143,7 +143,7 @@ class FTextView : public FWidget
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
void init();
|
void init();
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
void drawText();
|
void drawText();
|
||||||
void processChanged();
|
void processChanged();
|
||||||
void drawHBar();
|
void drawHBar();
|
||||||
|
|
|
@ -87,21 +87,23 @@ class FToggleButton : public FWidget
|
||||||
FToggleButton& operator = (const FToggleButton&) = delete;
|
FToggleButton& operator = (const FToggleButton&) = delete;
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
virtual const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
FString& getText();
|
FString& getText();
|
||||||
|
|
||||||
// Mutators
|
// Mutators
|
||||||
virtual void setGeometry (int, int, std::size_t, std::size_t, bool = true);
|
virtual void setGeometry ( int, int
|
||||||
|
, std::size_t, std::size_t
|
||||||
|
, bool = true) override;
|
||||||
bool setNoUnderline (bool);
|
bool setNoUnderline (bool);
|
||||||
bool setNoUnderline();
|
bool setNoUnderline();
|
||||||
bool unsetNoUnderline();
|
bool unsetNoUnderline();
|
||||||
virtual bool setEnable (bool);
|
virtual bool setEnable (bool) override;
|
||||||
virtual bool setEnable();
|
virtual bool setEnable() override;
|
||||||
virtual bool unsetEnable();
|
virtual bool unsetEnable() override;
|
||||||
virtual bool setDisable();
|
virtual bool setDisable() override;
|
||||||
virtual bool setFocus (bool);
|
virtual bool setFocus (bool) override;
|
||||||
virtual bool setFocus();
|
virtual bool setFocus() override;
|
||||||
virtual bool unsetFocus();
|
virtual bool unsetFocus() override;
|
||||||
bool setChecked (bool);
|
bool setChecked (bool);
|
||||||
bool setChecked();
|
bool setChecked();
|
||||||
bool unsetChecked();
|
bool unsetChecked();
|
||||||
|
@ -111,15 +113,15 @@ class FToggleButton : public FWidget
|
||||||
bool isChecked();
|
bool isChecked();
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void hide();
|
virtual void hide() override;
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual void onMouseDown (FMouseEvent*);
|
virtual void onMouseDown (FMouseEvent*) override;
|
||||||
virtual void onMouseUp (FMouseEvent*);
|
virtual void onMouseUp (FMouseEvent*) override;
|
||||||
virtual void onWheel (FWheelEvent*);
|
virtual void onWheel (FWheelEvent*) override;
|
||||||
virtual void onAccel (FAccelEvent*);
|
virtual void onAccel (FAccelEvent*) override;
|
||||||
virtual void onFocusIn (FFocusEvent*);
|
virtual void onFocusIn (FFocusEvent*) override;
|
||||||
virtual void onFocusOut (FFocusEvent*);
|
virtual void onFocusOut (FFocusEvent*) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Accessor
|
// Accessor
|
||||||
|
@ -135,13 +137,13 @@ class FToggleButton : public FWidget
|
||||||
bool hasGroup() const;
|
bool hasGroup() const;
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
void drawLabel();
|
void drawLabel();
|
||||||
void processClick();
|
void processClick();
|
||||||
void processToggle();
|
void processToggle();
|
||||||
|
|
||||||
// Event handler
|
// Event handler
|
||||||
virtual void onKeyPress (FKeyEvent*);
|
virtual void onKeyPress (FKeyEvent*) override;
|
||||||
|
|
||||||
// Data Members
|
// Data Members
|
||||||
bool checked{false};
|
bool checked{false};
|
||||||
|
|
|
@ -88,25 +88,25 @@ class FToolTip : public FWindow
|
||||||
FToolTip& operator = (const FToolTip&) = delete;
|
FToolTip& operator = (const FToolTip&) = delete;
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
const FString getText() const;
|
const FString getText() const;
|
||||||
|
|
||||||
// Mutators
|
// Mutators
|
||||||
void setText (const FString&);
|
void setText (const FString&);
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void draw();
|
virtual void draw() override;
|
||||||
virtual void show();
|
virtual void show() override;
|
||||||
virtual void hide();
|
virtual void hide() override;
|
||||||
|
|
||||||
// Event handler
|
// Event handler
|
||||||
virtual void onMouseDown (FMouseEvent*);
|
virtual void onMouseDown (FMouseEvent*) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Methods
|
// Methods
|
||||||
void init();
|
void init();
|
||||||
void calculateDimensions();
|
void calculateDimensions();
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
|
|
||||||
// Data Members
|
// Data Members
|
||||||
FString text{};
|
FString text{};
|
||||||
|
|
|
@ -177,7 +177,7 @@ class FWidget : public FVTerm, public FObject
|
||||||
FWidget& operator = (const FWidget&) = delete;
|
FWidget& operator = (const FWidget&) = delete;
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
FWidget* getRootWidget() const;
|
FWidget* getRootWidget() const;
|
||||||
FWidget* getParentWidget() const;
|
FWidget* getParentWidget() const;
|
||||||
static FWidget*& getMainWidget();
|
static FWidget*& getMainWidget();
|
||||||
|
|
|
@ -94,7 +94,7 @@ class FWindow : public FWidget
|
||||||
FWindow& operator = (const FWindow&) = delete;
|
FWindow& operator = (const FWindow&) = delete;
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
const char* getClassName() const;
|
virtual const char* getClassName() const override;
|
||||||
static FWindow* getWindowWidget (const FWidget*);
|
static FWindow* getWindowWidget (const FWidget*);
|
||||||
static int getWindowLayer (const FWidget*);
|
static int getWindowLayer (const FWidget*);
|
||||||
FWidget* getWindowFocusWidget() const;
|
FWidget* getWindowFocusWidget() const;
|
||||||
|
@ -132,19 +132,19 @@ class FWindow : public FWidget
|
||||||
bool hasShadow() const;
|
bool hasShadow() const;
|
||||||
|
|
||||||
// Methods
|
// Methods
|
||||||
virtual void drawBorder();
|
virtual void drawBorder() override;
|
||||||
virtual void show();
|
virtual void show() override;
|
||||||
virtual void hide();
|
virtual void hide() override;
|
||||||
virtual void setX (int, bool = true);
|
virtual void setX (int, bool = true) override;
|
||||||
virtual void setY (int, bool = true);
|
virtual void setY (int, bool = true) override;
|
||||||
virtual void setPos (int, int, bool = true);
|
virtual void setPos (int, int, bool = true) override;
|
||||||
virtual void setWidth (std::size_t, bool = true);
|
virtual void setWidth (std::size_t, bool = true) override;
|
||||||
virtual void setHeight (std::size_t, bool = true);
|
virtual void setHeight (std::size_t, bool = true) override;
|
||||||
virtual void setSize (std::size_t, std::size_t, bool = true);
|
virtual void setSize (std::size_t, std::size_t, bool = true) override;
|
||||||
void setGeometry ( int, int
|
virtual void setGeometry ( int, int
|
||||||
, std::size_t, std::size_t
|
, std::size_t, std::size_t
|
||||||
, bool = true );
|
, bool = true ) override;
|
||||||
virtual void move (int, int);
|
virtual void move (int, int) override;
|
||||||
static FWindow* getWindowWidgetAt (const FPoint&);
|
static FWindow* getWindowWidgetAt (const FPoint&);
|
||||||
static FWindow* getWindowWidgetAt (int, int);
|
static FWindow* getWindowWidgetAt (int, int);
|
||||||
static void addWindow (FWidget*);
|
static void addWindow (FWidget*);
|
||||||
|
@ -157,22 +157,22 @@ class FWindow : public FWidget
|
||||||
bool zoomWindow ();
|
bool zoomWindow ();
|
||||||
static void switchToPrevWindow (FWidget*);
|
static void switchToPrevWindow (FWidget*);
|
||||||
static bool activatePrevWindow();
|
static bool activatePrevWindow();
|
||||||
virtual void setShadowSize (int, int);
|
virtual void setShadowSize (int, int) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Method
|
// Method
|
||||||
virtual void adjustSize();
|
virtual void adjustSize() override;
|
||||||
|
|
||||||
|
// Mutator
|
||||||
|
static void setPreviousWindow (FWindow*);
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
virtual bool event (FEvent*);
|
virtual bool event (FEvent*) override;
|
||||||
virtual void onWindowActive (FEvent*);
|
virtual void onWindowActive (FEvent*);
|
||||||
virtual void onWindowInactive (FEvent*);
|
virtual void onWindowInactive (FEvent*);
|
||||||
virtual void onWindowRaised (FEvent*);
|
virtual void onWindowRaised (FEvent*);
|
||||||
virtual void onWindowLowered (FEvent*);
|
virtual void onWindowLowered (FEvent*);
|
||||||
|
|
||||||
// Data Members
|
|
||||||
static FWindow* previous_window;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Methods
|
// Methods
|
||||||
static void deleteFromAlwaysOnTopList (FWidget*);
|
static void deleteFromAlwaysOnTopList (FWidget*);
|
||||||
|
@ -183,6 +183,8 @@ class FWindow : public FWidget
|
||||||
bool zoomed{false};
|
bool zoomed{false};
|
||||||
FWidget* win_focus_widget{nullptr};
|
FWidget* win_focus_widget{nullptr};
|
||||||
FRect normalGeometry{};
|
FRect normalGeometry{};
|
||||||
|
static FWindow* previous_window;
|
||||||
|
|
||||||
};
|
};
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
||||||
|
@ -276,6 +278,10 @@ inline bool FWindow::raiseWindow()
|
||||||
inline bool FWindow::lowerWindow()
|
inline bool FWindow::lowerWindow()
|
||||||
{ return lowerWindow(this); }
|
{ return lowerWindow(this); }
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------
|
||||||
|
inline void FWindow::setPreviousWindow (FWindow* w)
|
||||||
|
{ previous_window = w; }
|
||||||
|
|
||||||
} // namespace finalcut
|
} // namespace finalcut
|
||||||
|
|
||||||
#endif // FWINDOW_H
|
#endif // FWINDOW_H
|
||||||
|
|
Loading…
Reference in New Issue