Simplify default arguments
This commit is contained in:
parent
2a44a415f3
commit
69e30eae49
|
@ -153,7 +153,7 @@ class FApplication : public FWidget
|
||||||
int exec(); // run
|
int exec(); // run
|
||||||
int enter_loop();
|
int enter_loop();
|
||||||
void exit_loop();
|
void exit_loop();
|
||||||
static void exit (int retcode=0);
|
static void exit (int = 0);
|
||||||
void quit();
|
void quit();
|
||||||
bool isQuit();
|
bool isQuit();
|
||||||
static bool sendEvent (FObject*, FEvent*);
|
static bool sendEvent (FObject*, FEvent*);
|
||||||
|
|
|
@ -61,8 +61,8 @@ class FButton : public FWidget
|
||||||
friend class FDialog;
|
friend class FDialog;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FButton (FWidget* parent=0); // constructor
|
explicit FButton (FWidget* = 0); // constructor
|
||||||
FButton (const FString&, FWidget* parent=0); // constructor
|
FButton (const FString&, FWidget* = 0); // constructor
|
||||||
virtual ~FButton(); // destructor
|
virtual ~FButton(); // destructor
|
||||||
|
|
||||||
const char* getClassName() const;
|
const char* getClassName() const;
|
||||||
|
|
|
@ -57,8 +57,8 @@ class FButtonGroup : public FWidget
|
||||||
void drawLabel();
|
void drawLabel();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FButtonGroup (FWidget* parent=0); // constructor
|
explicit FButtonGroup (FWidget* = 0); // constructor
|
||||||
FButtonGroup (const FString&, FWidget* parent=0); // constructor
|
FButtonGroup (const FString&, FWidget* = 0); // constructor
|
||||||
virtual ~FButtonGroup(); // destructor
|
virtual ~FButtonGroup(); // destructor
|
||||||
const char* getClassName() const;
|
const char* getClassName() const;
|
||||||
|
|
||||||
|
|
|
@ -48,8 +48,8 @@ class FCheckBox : public FToggleButton
|
||||||
void drawCheckButton();
|
void drawCheckButton();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FCheckBox (FWidget* parent=0); // constructor
|
explicit FCheckBox (FWidget* = 0); // constructor
|
||||||
FCheckBox (const FString&, FWidget* parent=0); // constructor
|
FCheckBox (const FString&, FWidget* = 0); // constructor
|
||||||
virtual ~FCheckBox(); // destructor
|
virtual ~FCheckBox(); // destructor
|
||||||
const char* getClassName() const;
|
const char* getClassName() const;
|
||||||
};
|
};
|
||||||
|
|
|
@ -70,8 +70,8 @@ class FDialog : public FWindow
|
||||||
virtual void onClose (FCloseEvent*);
|
virtual void onClose (FCloseEvent*);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FDialog (FWidget* parent=0); // constructor
|
explicit FDialog (FWidget* = 0); // constructor
|
||||||
FDialog (const FString&, FWidget* parent=0); // constructor
|
FDialog (const FString&, FWidget* = 0); // constructor
|
||||||
virtual ~FDialog(); // destructor
|
virtual ~FDialog(); // destructor
|
||||||
virtual const char* getClassName() const;
|
virtual const char* getClassName() const;
|
||||||
|
|
||||||
|
@ -91,11 +91,11 @@ class FDialog : public FWindow
|
||||||
int exec();
|
int exec();
|
||||||
void move (const FPoint&);
|
void move (const FPoint&);
|
||||||
void move (int, int);
|
void move (int, int);
|
||||||
void setWidth (int, bool adjust=true);
|
void setWidth (int, bool = true);
|
||||||
void setHeight (int, bool adjust=true);
|
void setHeight (int, bool = true);
|
||||||
// make every setGeometry from FWidget available
|
// make every setGeometry from FWidget available
|
||||||
using FWidget::setGeometry;
|
using FWidget::setGeometry;
|
||||||
void setGeometry (int, int, int, int, bool adjust=true);
|
void setGeometry (int, int, int, int, bool = true);
|
||||||
FWidget* getFocusWidget() const;
|
FWidget* getFocusWidget() const;
|
||||||
void setFocusWidget (FWidget*);
|
void setFocusWidget (FWidget*);
|
||||||
bool setFocus(bool);
|
bool setFocus(bool);
|
||||||
|
|
|
@ -112,12 +112,12 @@ class FFileDialog : public FDialog
|
||||||
void adjustSize();
|
void adjustSize();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FFileDialog (FWidget* parent=0);
|
explicit FFileDialog (FWidget* = 0);
|
||||||
FFileDialog (const FFileDialog&); // copy constructor
|
FFileDialog (const FFileDialog&); // copy constructor
|
||||||
FFileDialog ( const FString&
|
FFileDialog ( const FString&
|
||||||
, const FString&
|
, const FString&
|
||||||
, DialogType type = FFileDialog::Open
|
, DialogType = FFileDialog::Open
|
||||||
, FWidget* parent=0 );
|
, FWidget* = 0 );
|
||||||
~FFileDialog();
|
~FFileDialog();
|
||||||
FFileDialog& operator = (const FFileDialog&); // assignment
|
FFileDialog& operator = (const FFileDialog&); // assignment
|
||||||
const char* getClassName() const;
|
const char* getClassName() const;
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
#include "fwidget.h"
|
#include "fwidget.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define NO_EMPHASIS 0x00000000
|
#define NO_EMPHASIS 0x00000000
|
||||||
#define EMPHASIS 0x00000001
|
#define EMPHASIS 0x00000001
|
||||||
|
|
||||||
|
@ -60,12 +59,12 @@ class FLabel : public FWidget
|
||||||
int getHotkeyPos (wchar_t*&, wchar_t*&, uInt);
|
int getHotkeyPos (wchar_t*&, wchar_t*&, uInt);
|
||||||
void setHotkeyAccelerator();
|
void setHotkeyAccelerator();
|
||||||
int getXOffset (int);
|
int getXOffset (int);
|
||||||
void printLine (wchar_t*&, uInt, int, int xoffset=0);
|
void printLine (wchar_t*&, uInt, int, int = 0);
|
||||||
void draw();
|
void draw();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FLabel (FWidget* parent=0); // constructor
|
explicit FLabel (FWidget* = 0); // constructor
|
||||||
FLabel (const FString&, FWidget* parent=0); // constructor
|
FLabel (const FString&, FWidget* = 0); // constructor
|
||||||
virtual ~FLabel(); // destructor
|
virtual ~FLabel(); // destructor
|
||||||
const char* getClassName() const;
|
const char* getClassName() const;
|
||||||
|
|
||||||
|
@ -73,7 +72,7 @@ class FLabel : public FWidget
|
||||||
void onMouseDown (FMouseEvent*);
|
void onMouseDown (FMouseEvent*);
|
||||||
void onAccel (FAccelEvent*);
|
void onAccel (FAccelEvent*);
|
||||||
void cb_accel_widget_destroyed (FWidget*, void*);
|
void cb_accel_widget_destroyed (FWidget*, void*);
|
||||||
void setAccelWidget (FWidget* widget=0);
|
void setAccelWidget (FWidget* = 0);
|
||||||
FTerm* getAccelWidget();
|
FTerm* getAccelWidget();
|
||||||
void setAlignment(uInt);
|
void setAlignment(uInt);
|
||||||
uInt getAlignment();
|
uInt getAlignment();
|
||||||
|
|
|
@ -76,8 +76,8 @@ class FLineEdit : public FWidget
|
||||||
void adjustSize();
|
void adjustSize();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FLineEdit (FWidget* parent=0); // constructor
|
explicit FLineEdit (FWidget* = 0); // constructor
|
||||||
FLineEdit (const FString&, FWidget* parent=0); // constructor
|
FLineEdit (const FString&, FWidget* = 0); // constructor
|
||||||
virtual ~FLineEdit(); // destructor
|
virtual ~FLineEdit(); // destructor
|
||||||
const char* getClassName() const;
|
const char* getClassName() const;
|
||||||
|
|
||||||
|
|
|
@ -131,7 +131,7 @@ class FListBox : public FWidget
|
||||||
void adjustSize();
|
void adjustSize();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FListBox (FWidget* parent=0); // constructor
|
explicit FListBox (FWidget* = 0); // constructor
|
||||||
~FListBox(); // destructor
|
~FListBox(); // destructor
|
||||||
const char* getClassName() const;
|
const char* getClassName() const;
|
||||||
|
|
||||||
|
@ -161,7 +161,7 @@ class FListBox : public FWidget
|
||||||
bool hasBrackets(int) const;
|
bool hasBrackets(int) const;
|
||||||
// make every setGeometry from FWidget available
|
// make every setGeometry from FWidget available
|
||||||
using FWidget::setGeometry;
|
using FWidget::setGeometry;
|
||||||
void setGeometry (int, int, int, int, bool adjust=true);
|
void setGeometry (int, int, int, int, bool = true);
|
||||||
|
|
||||||
void setMultiSelection (bool);
|
void setMultiSelection (bool);
|
||||||
void setMultiSelection ();
|
void setMultiSelection ();
|
||||||
|
@ -180,11 +180,11 @@ class FListBox : public FWidget
|
||||||
bool hasShadow();
|
bool hasShadow();
|
||||||
|
|
||||||
void insert ( FString
|
void insert ( FString
|
||||||
, fc::brackets_type b = fc::NoBrackets
|
, fc::brackets_type = fc::NoBrackets
|
||||||
, bool s = false );
|
, bool = false );
|
||||||
void insert ( long
|
void insert ( long
|
||||||
, fc::brackets_type b = fc::NoBrackets
|
, fc::brackets_type = fc::NoBrackets
|
||||||
, bool s = false );
|
, bool = false );
|
||||||
void remove ( int);
|
void remove ( int);
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
|
|
10
src/fmenu.h
10
src/fmenu.h
|
@ -68,10 +68,10 @@ class FMenu : public FWindow, public FMenuList
|
||||||
void processActivate();
|
void processActivate();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FMenu (FWidget* parent=0); // constructor
|
explicit FMenu (FWidget* = 0); // constructor
|
||||||
FMenu (FString&, FWidget* parent=0);
|
FMenu (FString&, FWidget* = 0);
|
||||||
FMenu (const std::string&, FWidget* parent=0);
|
FMenu (const std::string&, FWidget* = 0);
|
||||||
FMenu (const char*, FWidget* parent=0);
|
FMenu (const char*, FWidget* = 0);
|
||||||
virtual ~FMenu(); // destructor
|
virtual ~FMenu(); // destructor
|
||||||
virtual const char* getClassName() const;
|
virtual const char* getClassName() const;
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ class FMenu : public FWindow, public FMenuList
|
||||||
void hide();
|
void hide();
|
||||||
// make every setGeometry from FWidget available
|
// make every setGeometry from FWidget available
|
||||||
using FWidget::setGeometry;
|
using FWidget::setGeometry;
|
||||||
void setGeometry (int, int, int, int, bool adjust=true);
|
void setGeometry (int, int, int, int, bool = true);
|
||||||
FMenuItem* getItem() const;
|
FMenuItem* getItem() const;
|
||||||
|
|
||||||
void onAccel (FAccelEvent*);
|
void onAccel (FAccelEvent*);
|
||||||
|
|
|
@ -59,7 +59,7 @@ class FMenuBar : public FWindow, public FMenuList
|
||||||
void adjustSize();
|
void adjustSize();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FMenuBar (FWidget* parent=0); // constructor
|
explicit FMenuBar (FWidget* = 0); // constructor
|
||||||
virtual ~FMenuBar(); // destructor
|
virtual ~FMenuBar(); // destructor
|
||||||
virtual const char* getClassName() const;
|
virtual const char* getClassName() const;
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ class FMenuBar : public FWindow, public FMenuList
|
||||||
void hide();
|
void hide();
|
||||||
// make every setGeometry from FWidget available
|
// make every setGeometry from FWidget available
|
||||||
using FWidget::setGeometry;
|
using FWidget::setGeometry;
|
||||||
void setGeometry (int, int, int, int, bool adjust=true);
|
void setGeometry (int, int, int, int, bool = true);
|
||||||
void cb_item_activated (FWidget*, void*);
|
void cb_item_activated (FWidget*, void*);
|
||||||
};
|
};
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
|
@ -67,10 +67,10 @@ class FMenuItem : public FWidget
|
||||||
void processClicked();
|
void processClicked();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FMenuItem (FWidget* parent=0);
|
explicit FMenuItem (FWidget* = 0);
|
||||||
FMenuItem (FString&, FWidget* parent=0);
|
FMenuItem (FString&, FWidget* = 0);
|
||||||
FMenuItem (const std::string&, FWidget* parent=0);
|
FMenuItem (const std::string&, FWidget* = 0);
|
||||||
FMenuItem (const char*, FWidget* parent=0);
|
FMenuItem (const char*, FWidget* = 0);
|
||||||
virtual ~FMenuItem();
|
virtual ~FMenuItem();
|
||||||
|
|
||||||
void onAccel (FAccelEvent*);
|
void onAccel (FAccelEvent*);
|
||||||
|
|
|
@ -87,11 +87,11 @@ class FMessageBox : public FDialog
|
||||||
void cb_processClick (FWidget*, void*);
|
void cb_processClick (FWidget*, void*);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FMessageBox (FWidget* parent=0);
|
explicit FMessageBox (FWidget* = 0);
|
||||||
FMessageBox (const FMessageBox&); // copy constructor
|
FMessageBox (const FMessageBox&); // copy constructor
|
||||||
FMessageBox ( const FString&, const FString&
|
FMessageBox ( const FString&, const FString&
|
||||||
, int, int, int
|
, int, int, int
|
||||||
, FWidget* parent=0 );
|
, FWidget* = 0 );
|
||||||
~FMessageBox();
|
~FMessageBox();
|
||||||
FMessageBox& operator = (const FMessageBox&); // assignment
|
FMessageBox& operator = (const FMessageBox&); // assignment
|
||||||
const char* getClassName() const;
|
const char* getClassName() const;
|
||||||
|
@ -116,22 +116,22 @@ class FMessageBox : public FDialog
|
||||||
static int info ( FWidget*
|
static int info ( FWidget*
|
||||||
, const FString&
|
, const FString&
|
||||||
, const FString&
|
, const FString&
|
||||||
, int button0 = FMessageBox::Ok
|
, int = FMessageBox::Ok
|
||||||
, int button1=0
|
, int = 0
|
||||||
, int button2=0 );
|
, int = 0 );
|
||||||
|
|
||||||
static int info ( FWidget*
|
static int info ( FWidget*
|
||||||
, const FString&
|
, const FString&
|
||||||
, int
|
, int
|
||||||
, int button0 = FMessageBox::Ok
|
, int = FMessageBox::Ok
|
||||||
, int button1=0
|
, int = 0
|
||||||
, int button2=0 );
|
, int = 0 );
|
||||||
|
|
||||||
static int error ( FWidget*
|
static int error ( FWidget*
|
||||||
, const FString&
|
, const FString&
|
||||||
, int button0 = FMessageBox::Ok
|
, int = FMessageBox::Ok
|
||||||
, int button1=0
|
, int = 0
|
||||||
, int button2=0 );
|
, int = 0 );
|
||||||
};
|
};
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@ class FObject
|
||||||
friend class FApplication;
|
friend class FApplication;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FObject (FObject* parent=0);
|
explicit FObject (FObject* = 0);
|
||||||
virtual ~FObject();
|
virtual ~FObject();
|
||||||
virtual const char* getClassName() const;
|
virtual const char* getClassName() const;
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// value for a long capability waiting time
|
// value for a long capability waiting time
|
||||||
#define LONG_DURATION 9999999
|
#define LONG_DURATION 9999999
|
||||||
|
|
||||||
|
@ -86,7 +85,7 @@ class FOptiMove
|
||||||
bool isWideMove (int, int, int, int);
|
bool isWideMove (int, int, int, int);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FOptiMove(int baud=0); // constructor
|
explicit FOptiMove (int = 0); // constructor
|
||||||
~FOptiMove(); // destructor
|
~FOptiMove(); // destructor
|
||||||
|
|
||||||
void setBaudRate (int);
|
void setBaudRate (int);
|
||||||
|
|
|
@ -47,7 +47,7 @@ class FProgressbar : public FWidget
|
||||||
virtual void draw();
|
virtual void draw();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FProgressbar(FWidget* parent=0); // constructor
|
explicit FProgressbar(FWidget* = 0); // constructor
|
||||||
virtual ~FProgressbar();
|
virtual ~FProgressbar();
|
||||||
const char* getClassName() const;
|
const char* getClassName() const;
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ class FProgressbar : public FWidget
|
||||||
void reset();
|
void reset();
|
||||||
// make every setGeometry from FWidget available
|
// make every setGeometry from FWidget available
|
||||||
using FWidget::setGeometry;
|
using FWidget::setGeometry;
|
||||||
void setGeometry (int, int, int, int, bool adjust=true);
|
void setGeometry (int, int, int, int, bool = true);
|
||||||
bool setEnable (bool);
|
bool setEnable (bool);
|
||||||
bool setEnable();
|
bool setEnable();
|
||||||
bool unsetEnable();
|
bool unsetEnable();
|
||||||
|
|
|
@ -48,8 +48,8 @@ class FRadioButton : public FToggleButton
|
||||||
void drawRadioButton();
|
void drawRadioButton();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FRadioButton (FWidget* parent=0); // constructor
|
explicit FRadioButton (FWidget* = 0); // constructor
|
||||||
FRadioButton (const FString&, FWidget* parent=0); // constructor
|
FRadioButton (const FString&, FWidget* = 0); // constructor
|
||||||
virtual ~FRadioButton(); // destructor
|
virtual ~FRadioButton(); // destructor
|
||||||
const char* getClassName() const;
|
const char* getClassName() const;
|
||||||
};
|
};
|
||||||
|
|
|
@ -79,8 +79,8 @@ class FScrollbar : public FWidget
|
||||||
void processScroll();
|
void processScroll();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FScrollbar(FWidget* parent=0); // constructor
|
explicit FScrollbar(FWidget* = 0); // constructor
|
||||||
FScrollbar(int o=fc::vertical, FWidget* parent=0); // constructor
|
FScrollbar(int = fc::vertical, FWidget* = 0); // constructor
|
||||||
virtual ~FScrollbar();
|
virtual ~FScrollbar();
|
||||||
const char* getClassName() const;
|
const char* getClassName() const;
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ class FScrollbar : public FWidget
|
||||||
void setOrientation (int);
|
void setOrientation (int);
|
||||||
// make every setGeometry from FWidget available
|
// make every setGeometry from FWidget available
|
||||||
using FWidget::setGeometry;
|
using FWidget::setGeometry;
|
||||||
void setGeometry (int, int, int, int, bool adjust=true);
|
void setGeometry (int, int, int, int, bool = true);
|
||||||
void drawButtons();
|
void drawButtons();
|
||||||
void drawBar();
|
void drawBar();
|
||||||
int getScrollType() const;
|
int getScrollType() const;
|
||||||
|
|
|
@ -61,10 +61,10 @@ class FStatusKey : public FWidget
|
||||||
void setStatusbar (FStatusBar*);
|
void setStatusbar (FStatusBar*);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FStatusKey (FWidget* parent=0);
|
explicit FStatusKey (FWidget* = 0);
|
||||||
FStatusKey (int, FString&, FWidget* parent=0);
|
FStatusKey (int, FString&, FWidget* = 0);
|
||||||
FStatusKey (int, const std::string&, FWidget* parent=0);
|
FStatusKey (int, const std::string&, FWidget* = 0);
|
||||||
FStatusKey (int, const char*, FWidget* parent=0);
|
FStatusKey (int, const char*, FWidget* = 0);
|
||||||
virtual ~FStatusKey();
|
virtual ~FStatusKey();
|
||||||
|
|
||||||
void onAccel (FAccelEvent*);
|
void onAccel (FAccelEvent*);
|
||||||
|
@ -161,7 +161,7 @@ class FStatusBar : public FWindow
|
||||||
void adjustSize();
|
void adjustSize();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FStatusBar (FWidget* parent=0); // constructor
|
explicit FStatusBar (FWidget* = 0); // constructor
|
||||||
virtual ~FStatusBar(); // destructor
|
virtual ~FStatusBar(); // destructor
|
||||||
virtual const char* getClassName() const;
|
virtual const char* getClassName() const;
|
||||||
|
|
||||||
|
@ -171,7 +171,7 @@ class FStatusBar : public FWindow
|
||||||
void hide();
|
void hide();
|
||||||
// make every setGeometry from FWidget available
|
// make every setGeometry from FWidget available
|
||||||
using FWidget::setGeometry;
|
using FWidget::setGeometry;
|
||||||
void setGeometry (int, int, int, int, bool adjust=true);
|
void setGeometry (int, int, int, int, bool = true);
|
||||||
|
|
||||||
uInt count() const;
|
uInt count() const;
|
||||||
FStatusKey* key (int) const;
|
FStatusKey* key (int) const;
|
||||||
|
|
|
@ -158,16 +158,16 @@ class FString
|
||||||
FString& setNumber (uInt);
|
FString& setNumber (uInt);
|
||||||
FString& setNumber (long);
|
FString& setNumber (long);
|
||||||
FString& setNumber (uLong);
|
FString& setNumber (uLong);
|
||||||
FString& setNumber (float, int precision=8);
|
FString& setNumber (float, int = 8);
|
||||||
FString& setNumber (double, int precision=11);
|
FString& setNumber (double, int = 11);
|
||||||
FString& setNumber (lDouble, int precision=11);
|
FString& setNumber (lDouble, int = 11);
|
||||||
|
|
||||||
FString& setFormatedNumber (sInt16, char separator='.');
|
FString& setFormatedNumber (sInt16, char = '.');
|
||||||
FString& setFormatedNumber (uInt16, char separator='.');
|
FString& setFormatedNumber (uInt16, char = '.');
|
||||||
FString& setFormatedNumber (int, char separator='.');
|
FString& setFormatedNumber (int, char = '.');
|
||||||
FString& setFormatedNumber (uInt, char separator='.');
|
FString& setFormatedNumber (uInt, char = '.');
|
||||||
FString& setFormatedNumber (long, char separator='.');
|
FString& setFormatedNumber (long, char = '.');
|
||||||
FString& setFormatedNumber (uLong, char separator='.');
|
FString& setFormatedNumber (uLong, char = '.');
|
||||||
|
|
||||||
friend std::ostream& operator << (std::ostream& outstr, const FString& s);
|
friend std::ostream& operator << (std::ostream& outstr, const FString& s);
|
||||||
friend std::istream& operator >> (std::istream& instr, FString& s);
|
friend std::istream& operator >> (std::istream& instr, FString& s);
|
||||||
|
@ -278,7 +278,7 @@ class FString
|
||||||
FString replace (const char, const char);
|
FString replace (const char, const char);
|
||||||
|
|
||||||
FString replaceControlCodes() const;
|
FString replaceControlCodes() const;
|
||||||
FString expandTabs (uInt tabsize=8) const;
|
FString expandTabs (uInt = 8) const;
|
||||||
FString removeDel() const;
|
FString removeDel() const;
|
||||||
FString removeBackspaces() const;
|
FString removeBackspaces() const;
|
||||||
|
|
||||||
|
|
|
@ -51,8 +51,8 @@ class FSwitch : public FToggleButton
|
||||||
void drawCheckButton();
|
void drawCheckButton();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FSwitch (FWidget* parent=0); // constructor
|
explicit FSwitch (FWidget* = 0); // constructor
|
||||||
FSwitch (const FString&, FWidget* parent=0); // constructor
|
FSwitch (const FString&, FWidget* = 0); // constructor
|
||||||
virtual ~FSwitch(); // destructor
|
virtual ~FSwitch(); // destructor
|
||||||
const char* getClassName() const;
|
const char* getClassName() const;
|
||||||
void onKeyPress (FKeyEvent*);
|
void onKeyPress (FKeyEvent*);
|
||||||
|
|
|
@ -232,7 +232,7 @@ class FTerm
|
||||||
static int closeConsole();
|
static int closeConsole();
|
||||||
static int isConsole();
|
static int isConsole();
|
||||||
static int getScreenFont();
|
static int getScreenFont();
|
||||||
static int setScreenFont (uChar*, uInt, uInt, uInt, bool direct=false);
|
static int setScreenFont (uChar*, uInt, uInt, uInt, bool = false);
|
||||||
static int setUnicodeMap (struct unimapdesc*);
|
static int setUnicodeMap (struct unimapdesc*);
|
||||||
static int getUnicodeMap ();
|
static int getUnicodeMap ();
|
||||||
static int setLightBackgroundColors (bool);
|
static int setLightBackgroundColors (bool);
|
||||||
|
|
|
@ -64,7 +64,7 @@ class FTextView : public FWidget
|
||||||
void adjustSize();
|
void adjustSize();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FTextView (FWidget* parent=0); // constructor
|
explicit FTextView (FWidget* = 0); // constructor
|
||||||
~FTextView(); // destructor
|
~FTextView(); // destructor
|
||||||
const char* getClassName() const;
|
const char* getClassName() const;
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ class FTextView : public FWidget
|
||||||
void onFocusOut (FFocusEvent*);
|
void onFocusOut (FFocusEvent*);
|
||||||
// make every setGeometry from FWidget available
|
// make every setGeometry from FWidget available
|
||||||
using FWidget::setGeometry;
|
using FWidget::setGeometry;
|
||||||
void setGeometry (int, int, int, int, bool adjust=true);
|
void setGeometry (int, int, int, int, bool = true);
|
||||||
uInt getColumns() const;
|
uInt getColumns() const;
|
||||||
uInt getRows() const;
|
uInt getRows() const;
|
||||||
void setPosition (int);
|
void setPosition (int);
|
||||||
|
|
|
@ -67,15 +67,15 @@ class FToggleButton : public FWidget
|
||||||
virtual void onKeyPress (FKeyEvent*);
|
virtual void onKeyPress (FKeyEvent*);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FToggleButton (FWidget* parent=0); // constructor
|
explicit FToggleButton (FWidget* = 0); // constructor
|
||||||
FToggleButton (const FString&, FWidget* parent=0); // constructor
|
FToggleButton (const FString&, FWidget* = 0); // constructor
|
||||||
virtual ~FToggleButton(); // destructor
|
virtual ~FToggleButton(); // destructor
|
||||||
virtual const char* getClassName() const;
|
virtual const char* getClassName() const;
|
||||||
|
|
||||||
void hide();
|
void hide();
|
||||||
// make every setGeometry from FWidget available
|
// make every setGeometry from FWidget available
|
||||||
using FWidget::setGeometry;
|
using FWidget::setGeometry;
|
||||||
void setGeometry (int, int, int, int, bool adjust=true);
|
void setGeometry (int, int, int, int, bool = true);
|
||||||
|
|
||||||
void onMouseDown (FMouseEvent*);
|
void onMouseDown (FMouseEvent*);
|
||||||
void onMouseUp (FMouseEvent*);
|
void onMouseUp (FMouseEvent*);
|
||||||
|
|
|
@ -314,7 +314,7 @@ class FWidget : public FObject, public FTerm
|
||||||
virtual bool focusPrevChild (void);
|
virtual bool focusPrevChild (void);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FWidget (FWidget* parent=0); // constructor
|
explicit FWidget (FWidget* = 0); // constructor
|
||||||
~FWidget(); // destructor
|
~FWidget(); // destructor
|
||||||
|
|
||||||
const char* getClassName() const;
|
const char* getClassName() const;
|
||||||
|
@ -341,11 +341,11 @@ class FWidget : public FObject, public FTerm
|
||||||
|
|
||||||
void addCallback ( FString
|
void addCallback ( FString
|
||||||
, FCallback
|
, FCallback
|
||||||
, void* data = null );
|
, void* = null );
|
||||||
void addCallback ( FString
|
void addCallback ( FString
|
||||||
, FWidget*
|
, FWidget*
|
||||||
, FMemberCallback
|
, FMemberCallback
|
||||||
, void* data = null );
|
, void* = null );
|
||||||
void delCallback (FCallback);
|
void delCallback (FCallback);
|
||||||
void delCallback (FWidget*);
|
void delCallback (FWidget*);
|
||||||
void emitCallback (FString);
|
void emitCallback (FString);
|
||||||
|
@ -411,20 +411,20 @@ class FWidget : public FObject, public FTerm
|
||||||
FPoint globalToLocalPos(const FPoint&);
|
FPoint globalToLocalPos(const FPoint&);
|
||||||
void setForegroundColor (int);
|
void setForegroundColor (int);
|
||||||
void setBackgroundColor (int);
|
void setBackgroundColor (int);
|
||||||
void setX (int, bool adjust=true);
|
void setX (int, bool = true);
|
||||||
void setY (int, bool adjust=true);
|
void setY (int, bool = true);
|
||||||
void setPos (const FPoint&, bool adjust=true);
|
void setPos (const FPoint&, bool = true);
|
||||||
void setPos (int, int, bool adjust=true);
|
void setPos (int, int, bool = true);
|
||||||
void setWidth (int, bool adjust=true);
|
void setWidth (int, bool = true);
|
||||||
void setHeight (int, bool adjust=true);
|
void setHeight (int, bool = true);
|
||||||
void setTopPadding (int, bool adjust=true);
|
void setTopPadding (int, bool = true);
|
||||||
void setLeftPadding (int, bool adjust=true);
|
void setLeftPadding (int, bool = true);
|
||||||
void setBottomPadding (int, bool adjust=true);
|
void setBottomPadding (int, bool = true);
|
||||||
void setRightPadding (int, bool adjust=true);
|
void setRightPadding (int, bool = true);
|
||||||
void getTermGeometry();
|
void getTermGeometry();
|
||||||
void setTermGeometry (int, int);
|
void setTermGeometry (int, int);
|
||||||
virtual void setGeometry (const FRect&, bool adjust=true);
|
virtual void setGeometry (const FRect&, bool = true);
|
||||||
virtual void setGeometry (int, int, int, int, bool adjust=true);
|
virtual void setGeometry (int, int, int, int, bool = true);
|
||||||
virtual void move (const FPoint&);
|
virtual void move (const FPoint&);
|
||||||
virtual void move (int x, int y);
|
virtual void move (int x, int y);
|
||||||
int getFlags() const;
|
int getFlags() const;
|
||||||
|
@ -458,7 +458,7 @@ class FWidget : public FObject, public FTerm
|
||||||
void clearShadow();
|
void clearShadow();
|
||||||
void drawFlatBorder();
|
void drawFlatBorder();
|
||||||
void clearFlatBorder();
|
void clearFlatBorder();
|
||||||
void setDoubleFlatLine(int, bool bit=true);
|
void setDoubleFlatLine(int, bool = true);
|
||||||
void unsetDoubleFlatLine(int);
|
void unsetDoubleFlatLine(int);
|
||||||
std::vector<bool>& doubleFlatLine_ref(int);
|
std::vector<bool>& doubleFlatLine_ref(int);
|
||||||
virtual void drawBorder();
|
virtual void drawBorder();
|
||||||
|
|
|
@ -58,7 +58,7 @@ class FWindow : public FWidget
|
||||||
virtual void onWindowLowered (FEvent*);
|
virtual void onWindowLowered (FEvent*);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FWindow (FWidget* parent=0); // constructor
|
explicit FWindow (FWidget* = 0); // constructor
|
||||||
~FWindow (); // destructor
|
~FWindow (); // destructor
|
||||||
|
|
||||||
const char* getClassName() const;
|
const char* getClassName() const;
|
||||||
|
|
|
@ -28,7 +28,7 @@ class Button : public FButton
|
||||||
private:
|
private:
|
||||||
bool checked;
|
bool checked;
|
||||||
public:
|
public:
|
||||||
explicit Button (FWidget* parent=0); // constructor
|
explicit Button (FWidget* = 0); // constructor
|
||||||
void setChecked(bool);
|
void setChecked(bool);
|
||||||
void onKeyPress (FKeyEvent*);
|
void onKeyPress (FKeyEvent*);
|
||||||
};
|
};
|
||||||
|
|
|
@ -17,7 +17,7 @@ class Mandelbrot : public FDialog
|
||||||
virtual void draw();
|
virtual void draw();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit Mandelbrot (FWidget* parent=0); // constructor
|
explicit Mandelbrot (FWidget* = 0); // constructor
|
||||||
~Mandelbrot(); // destructor
|
~Mandelbrot(); // destructor
|
||||||
void onAccel (FAccelEvent*);
|
void onAccel (FAccelEvent*);
|
||||||
void onClose (FCloseEvent*);
|
void onClose (FCloseEvent*);
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
class timer : public FWidget
|
class timer : public FWidget
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit timer (FWidget* parent = 0);
|
explicit timer (FWidget* = 0);
|
||||||
protected:
|
protected:
|
||||||
virtual void draw();
|
virtual void draw();
|
||||||
void onTimer (FTimerEvent*);
|
void onTimer (FTimerEvent*);
|
||||||
|
|
|
@ -31,7 +31,7 @@ class watch : public FDialog
|
||||||
watch& operator = (const watch&); // and operator '='
|
watch& operator = (const watch&); // and operator '='
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit watch (FWidget* parent=0); // constructor
|
explicit watch (FWidget* = 0); // constructor
|
||||||
~watch(); // destructor
|
~watch(); // destructor
|
||||||
void printTime();
|
void printTime();
|
||||||
void onTimer (FTimerEvent*);
|
void onTimer (FTimerEvent*);
|
||||||
|
|
Loading…
Reference in New Issue