More function declared as const

This commit is contained in:
Markus Gans 2020-07-12 17:00:16 +02:00
parent 361f0e6a14
commit d8b35dc1a7
35 changed files with 96 additions and 96 deletions

View File

@ -34,7 +34,7 @@ void cb_quit (const finalcut::FWidget*, FDataPtr);
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void cb_quit (const finalcut::FWidget*, FDataPtr data) void cb_quit (const finalcut::FWidget*, FDataPtr data)
{ {
auto& app = *(static_cast<finalcut::FApplication*>(data)); const auto& app = *(static_cast<finalcut::FApplication*>(data));
app.quit(); app.quit();
} }

View File

@ -942,7 +942,7 @@ void MyDialog::cb_input2buttonText (finalcut::FWidget* widget, FDataPtr data) co
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void MyDialog::cb_setTitlebar (finalcut::FWidget* widget, const FDataPtr) void MyDialog::cb_setTitlebar (finalcut::FWidget* widget, const FDataPtr)
{ {
auto& lineedit = *(static_cast<finalcut::FLineEdit*>(widget)); const auto& lineedit = *(static_cast<finalcut::FLineEdit*>(widget));
finalcut::FString title{}; finalcut::FString title{};
lineedit >> title; lineedit >> title;
finalcut::FTerm::setTermTitle (title); finalcut::FTerm::setTermTitle (title);

View File

@ -613,13 +613,13 @@ void FApplication::keyPressed()
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FApplication::keyReleased() void FApplication::keyReleased() const
{ {
sendKeyUpEvent (keyboard_widget); sendKeyUpEvent (keyboard_widget);
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FApplication::escapeKeyPressed() void FApplication::escapeKeyPressed() const
{ {
sendEscapeKeyPressEvent(); sendEscapeKeyPressEvent();
} }
@ -710,7 +710,7 @@ inline bool FApplication::sendKeyUpEvent (FWidget* widget) const
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
inline void FApplication::sendKeyboardAccelerator() inline void FApplication::sendKeyboardAccelerator() const
{ {
if ( FWidget::getOpenMenu() ) if ( FWidget::getOpenMenu() )
return; return;
@ -738,7 +738,7 @@ inline void FApplication::sendKeyboardAccelerator()
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FApplication::processKeyboardEvent() void FApplication::processKeyboardEvent() const
{ {
if ( quit_now || app_exit_loop ) if ( quit_now || app_exit_loop )
return; return;
@ -933,7 +933,7 @@ void FApplication::unselectMenubarItems()
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FApplication::sendMouseEvent() void FApplication::sendMouseEvent() const
{ {
auto clicked = FWidget::getClickedWidget(); auto clicked = FWidget::getClickedWidget();
@ -1186,7 +1186,7 @@ void FApplication::processMouseEvent()
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FApplication::processResizeEvent() void FApplication::processResizeEvent() const
{ {
if ( ! FTerm::hasChangedTermSize() ) if ( ! FTerm::hasChangedTermSize() )
return; return;

View File

@ -48,7 +48,7 @@ void FColorPalette::setPalette (FColor index, int r, int g, int b) const
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FColorPalette::setVGAdefaultPalette() void FColorPalette::setVGAdefaultPalette() const
{ {
setPalette (fc::Black, 0x00, 0x00, 0x00); setPalette (fc::Black, 0x00, 0x00, 0x00);
setPalette (fc::Blue, 0x00, 0x00, 0xaa); setPalette (fc::Blue, 0x00, 0x00, 0xaa);

View File

@ -535,19 +535,19 @@ void FKeyboard::substringKeyHandling()
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FKeyboard::keyPressed() void FKeyboard::keyPressed() const
{ {
keypressed_cmd.execute(); keypressed_cmd.execute();
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FKeyboard::keyReleased() void FKeyboard::keyReleased() const
{ {
keyreleased_cmd.execute(); keyreleased_cmd.execute();
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FKeyboard::escapeKeyPressed() void FKeyboard::escapeKeyPressed() const
{ {
escape_key_cmd.execute(); escape_key_cmd.execute();
} }

View File

@ -1454,7 +1454,7 @@ void FListView::adjustViewport (const int element_count)
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FListView::adjustScrollbars (const std::size_t element_count) void FListView::adjustScrollbars (const std::size_t element_count) const
{ {
const std::size_t width = getClientWidth(); const std::size_t width = getClientWidth();
const std::size_t height = getClientHeight(); const std::size_t height = getClientHeight();
@ -1681,7 +1681,7 @@ void FListView::drawBorder()
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FListView::drawScrollbars() void FListView::drawScrollbars() const
{ {
if ( ! hbar->isShown() && isHorizontallyScrollable() ) if ( ! hbar->isShown() && isHorizontallyScrollable() )
hbar->show(); hbar->show();
@ -1958,7 +1958,7 @@ inline FString FListView::getCheckBox (const FListViewItem* item) const
//---------------------------------------------------------------------- //----------------------------------------------------------------------
inline FString FListView::getLinePrefix ( const FListViewItem* item inline FString FListView::getLinePrefix ( const FListViewItem* item
, std::size_t indent ) , std::size_t indent ) const
{ {
FString line{""}; FString line{""};
@ -2286,7 +2286,7 @@ void FListView::recalculateHorizontalBar (std::size_t len)
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FListView::recalculateVerticalBar (std::size_t element_count) void FListView::recalculateVerticalBar (std::size_t element_count) const
{ {
const std::size_t height = getClientHeight(); const std::size_t height = getClientHeight();
const int vmax = ( element_count > height ) const int vmax = ( element_count > height )

View File

@ -69,7 +69,7 @@ const std::string FLogger::getTimeString() const
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
const std::string FLogger::getEOL() const std::string FLogger::getEOL() const
{ {
if ( getEnding() == FLog::LF ) if ( getEnding() == FLog::LF )
return "\n"; return "\n";

View File

@ -585,7 +585,7 @@ void FMenu::adjustItems() const
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
int FMenu::adjustX (int x_pos) int FMenu::adjustX (int x_pos) const
{ {
// Is menu outside on the right of the screen? // Is menu outside on the right of the screen?
if ( x_pos + int(max_item_width) >= int(getDesktopWidth() - 1) ) if ( x_pos + int(max_item_width) >= int(getDesktopWidth() - 1) )

View File

@ -476,7 +476,7 @@ bool FMouseGPM::getGpmKeyPressed (bool is_pending)
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FMouseGPM::drawGpmPointer() void FMouseGPM::drawGpmPointer() const
{ {
if ( isGpmMouseEnabled() && gpm_ev.x != -1 ) if ( isGpmMouseEnabled() && gpm_ev.x != -1 )
GPM_DRAWPOINTER(&gpm_ev); GPM_DRAWPOINTER(&gpm_ev);

View File

@ -1545,7 +1545,7 @@ inline void FOptiAttr::resetAttribute (FChar*& attr) const
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
inline void FOptiAttr::reset (FChar*& attr) inline void FOptiAttr::reset (FChar*& attr) const
{ {
if ( attr ) if ( attr )
{ {

View File

@ -707,7 +707,7 @@ inline int FOptiMove::verticalMove (char move[], int from_y, int to_y)
//---------------------------------------------------------------------- //----------------------------------------------------------------------
inline void FOptiMove::downMove ( char move[], int& vtime inline void FOptiMove::downMove ( char move[], int& vtime
, int from_y, int to_y ) , int from_y, int to_y ) const
{ {
const int num = to_y - from_y; const int num = to_y - from_y;
@ -735,7 +735,7 @@ inline void FOptiMove::downMove ( char move[], int& vtime
//---------------------------------------------------------------------- //----------------------------------------------------------------------
inline void FOptiMove::upMove ( char move[], int& vtime inline void FOptiMove::upMove ( char move[], int& vtime
, int from_y, int to_y ) , int from_y, int to_y ) const
{ {
const int num = from_y - to_y; const int num = from_y - to_y;
@ -786,7 +786,7 @@ inline int FOptiMove::horizontalMove (char hmove[], int from_x, int to_x)
//---------------------------------------------------------------------- //----------------------------------------------------------------------
inline void FOptiMove::rightMove ( char hmove[], int& htime inline void FOptiMove::rightMove ( char hmove[], int& htime
, int from_x, int to_x ) , int from_x, int to_x ) const
{ {
int num = to_x - from_x; int num = to_x - from_x;
@ -841,7 +841,7 @@ inline void FOptiMove::rightMove ( char hmove[], int& htime
//---------------------------------------------------------------------- //----------------------------------------------------------------------
inline void FOptiMove::leftMove ( char hmove[], int& htime inline void FOptiMove::leftMove ( char hmove[], int& htime
, int from_x, int to_x ) , int from_x, int to_x ) const
{ {
int num = from_x - to_x; int num = from_x - to_x;

View File

@ -613,7 +613,7 @@ void FScrollbar::drawButtons()
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
FScrollbar::sType FScrollbar::getClickedScrollType (int x, int y) FScrollbar::sType FScrollbar::getClickedScrollType (int x, int y) const
{ {
if ( bar_orientation == fc::vertical ) if ( bar_orientation == fc::vertical )
{ {

View File

@ -846,7 +846,7 @@ void FScrollView::setVerticalScrollBarVisibility() const
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FScrollView::setViewportCursor() void FScrollView::setViewportCursor() const
{ {
if ( ! isChild(getFocusWidget()) ) if ( ! isChild(getFocusWidget()) )
return; return;

View File

@ -776,7 +776,7 @@ const FString FString::mid (std::size_t pos, std::size_t len) const
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
FStringList FString::split (const FString& delimiter) FStringList FString::split (const FString& delimiter) const
{ {
const FString s{*this}; const FString s{*this};
FStringList string_list{}; FStringList string_list{};

View File

@ -2359,7 +2359,7 @@ void FTerm::init()
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
bool FTerm::init_terminal() bool FTerm::init_terminal() const
{ {
// Initialize termios // Initialize termios
FTermios::init(); FTermios::init();
@ -2462,7 +2462,7 @@ void FTerm::initBaudRate() const
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FTerm::finish() void FTerm::finish() const
{ {
// Set default signal handler // Set default signal handler

View File

@ -368,7 +368,7 @@ void FTermXTerminal::setXTermTitle()
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FTermXTerminal::setXTermSize() void FTermXTerminal::setXTermSize() const
{ {
initCheck(); initCheck();
@ -572,7 +572,7 @@ inline void FTermXTerminal::setXTermDefaultsMouseCursor()
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
inline bool FTermXTerminal::canSetXTermBackground() inline bool FTermXTerminal::canSetXTermBackground() const
{ {
initCheck(false); initCheck(false);
@ -691,7 +691,7 @@ void FTermXTerminal::resetXTermHighlightBackground()
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
bool FTermXTerminal::canResetColor() bool FTermXTerminal::canResetColor() const
{ {
initCheck(false); initCheck(false);
@ -712,7 +712,7 @@ bool FTermXTerminal::canResetColor()
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FTermXTerminal::oscPrefix() void FTermXTerminal::oscPrefix() const
{ {
initCheck(); initCheck();
@ -729,7 +729,7 @@ void FTermXTerminal::oscPrefix()
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FTermXTerminal::oscPostfix() void FTermXTerminal::oscPostfix() const
{ {
initCheck(); initCheck();
@ -786,7 +786,7 @@ const FString FTermXTerminal::captureXTermFont()
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
const FString FTermXTerminal::captureXTermTitle() const FString FTermXTerminal::captureXTermTitle() const
{ {
initCheck(FString{}); initCheck(FString{});

View File

@ -711,7 +711,7 @@ void FVTerm::createArea ( const FRect& box
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FVTerm::resizeArea ( const FRect& box void FVTerm::resizeArea ( const FRect& box
, const FSize& shadow , const FSize& shadow
, FTermArea* area ) , FTermArea* area ) const
{ {
// Resize the virtual window to a new size. // Resize the virtual window to a new size.
@ -854,7 +854,7 @@ void FVTerm::restoreVTerm (const FRect& box)
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
bool FVTerm::updateVTermCursor (const FTermArea* area) bool FVTerm::updateVTermCursor (const FTermArea* area) const
{ {
if ( ! area ) if ( ! area )
return false; return false;
@ -1147,7 +1147,7 @@ void FVTerm::putArea (const FPoint& pos, const FTermArea* area)
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FVTerm::scrollAreaForward (FTermArea* area) void FVTerm::scrollAreaForward (FTermArea* area) const
{ {
// Scrolls the entire area up line down // Scrolls the entire area up line down
FChar nc{}; // next character FChar nc{}; // next character
@ -1201,7 +1201,7 @@ void FVTerm::scrollAreaForward (FTermArea* area)
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FVTerm::scrollAreaReverse (FTermArea* area) void FVTerm::scrollAreaReverse (FTermArea* area) const
{ {
// Scrolls the entire area one line down // Scrolls the entire area one line down
@ -2111,7 +2111,7 @@ void FVTerm::getAreaCharacter ( const FPoint& pos, const FTermArea* area
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
bool FVTerm::clearTerm (int fillchar) bool FVTerm::clearTerm (int fillchar) const
{ {
// Clear the real terminal and put cursor at home // Clear the real terminal and put cursor at home
@ -2324,7 +2324,7 @@ bool FVTerm::canClearTrailingWS (uInt& xmax, uInt y)
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
bool FVTerm::skipUnchangedCharacters(uInt& x, uInt xmax, uInt y) bool FVTerm::skipUnchangedCharacters (uInt& x, uInt xmax, uInt y) const
{ {
// Skip characters without changes if it is faster than redrawing // Skip characters without changes if it is faster than redrawing
@ -2860,7 +2860,7 @@ void FVTerm::updateTerminalLine (uInt y)
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
bool FVTerm::updateTerminalCursor() bool FVTerm::updateTerminalCursor() const
{ {
// Updates the input cursor visibility and the position // Updates the input cursor visibility and the position
if ( vterm && vterm->input_cursor_visible ) if ( vterm && vterm->input_cursor_visible )
@ -3006,7 +3006,7 @@ inline void FVTerm::appendCharacter (FChar*& next_char)
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
inline void FVTerm::appendChar (FChar*& next_char) inline void FVTerm::appendChar (FChar*& next_char) const
{ {
newFontChanges (next_char); newFontChanges (next_char);
charsetChanges (next_char); charsetChanges (next_char);

View File

@ -160,15 +160,15 @@ class FApplication : public FWidget
void findKeyboardWidget() const; void findKeyboardWidget() const;
bool isKeyPressed() const; bool isKeyPressed() const;
void keyPressed(); void keyPressed();
void keyReleased(); void keyReleased() const;
void escapeKeyPressed(); void escapeKeyPressed() const;
void performKeyboardAction(); void performKeyboardAction();
void sendEscapeKeyPressEvent() const; void sendEscapeKeyPressEvent() const;
bool sendKeyDownEvent (FWidget*) const; bool sendKeyDownEvent (FWidget*) const;
bool sendKeyPressEvent (FWidget*) const; bool sendKeyPressEvent (FWidget*) const;
bool sendKeyUpEvent (FWidget*) const; bool sendKeyUpEvent (FWidget*) const;
void sendKeyboardAccelerator(); void sendKeyboardAccelerator() const;
void processKeyboardEvent(); void processKeyboardEvent() const;
bool processDialogSwitchAccelerator() const; bool processDialogSwitchAccelerator() const;
bool processAccelerator (const FWidget* const&) const; bool processAccelerator (const FWidget* const&) const;
bool getMouseEvent() const; bool getMouseEvent() const;
@ -176,7 +176,7 @@ class FApplication : public FWidget
void unsetMoveSizeMode() const; void unsetMoveSizeMode() const;
void closeDropDown(); void closeDropDown();
void unselectMenubarItems(); void unselectMenubarItems();
void sendMouseEvent(); void sendMouseEvent() const;
void sendMouseMoveEvent ( const FPoint& void sendMouseMoveEvent ( const FPoint&
, const FPoint& , const FPoint&
, int ) const; , int ) const;
@ -192,7 +192,7 @@ class FApplication : public FWidget
void sendWheelEvent (const FPoint&, const FPoint&) const; void sendWheelEvent (const FPoint&, const FPoint&) const;
static FWidget* processParameters (const int&, char*[]); static FWidget* processParameters (const int&, char*[]);
void processMouseEvent(); void processMouseEvent();
void processResizeEvent(); void processResizeEvent() const;
void processCloseWidget(); void processCloseWidget();
void processLogger() const; void processLogger() const;
bool processNextEvent(); bool processNextEvent();

View File

@ -67,7 +67,7 @@ class FColorPalette
protected: protected:
void setPalette (FColor, int, int, int) const; void setPalette (FColor, int, int, int) const;
void setVGAdefaultPalette(); void setVGAdefaultPalette() const;
private: private:
// Data members // Data members

View File

@ -151,7 +151,7 @@ class FComboBox : public FWidget
std::size_t getCount() const; std::size_t getCount() const;
FString getText() const; FString getText() const;
FDataPtr getItemData(); FDataPtr getItemData();
FLineEdit::label_o getLabelOrientation(); FLineEdit::label_o getLabelOrientation() const;
// Mutators // Mutators
void setSize (const FSize&, bool = true) override; void setSize (const FSize&, bool = true) override;
@ -254,7 +254,7 @@ inline FDataPtr FComboBox::getItemData()
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
inline FLineEdit::label_o FComboBox::getLabelOrientation() inline FLineEdit::label_o FComboBox::getLabelOrientation() const
{ return input_field.getLabelOrientation(); } { return input_field.getLabelOrientation(); }
//---------------------------------------------------------------------- //----------------------------------------------------------------------

View File

@ -156,9 +156,9 @@ class FKeyboard final
FKey parseKeyString(); FKey parseKeyString();
FKey keyCorrection (const FKey&) const; FKey keyCorrection (const FKey&) const;
void substringKeyHandling(); void substringKeyHandling();
void keyPressed(); void keyPressed() const;
void keyReleased(); void keyReleased() const;
void escapeKeyPressed(); void escapeKeyPressed() const;
// Data members // Data members
FKeyboardCommand keypressed_cmd{}; FKeyboardCommand keypressed_cmd{};

View File

@ -358,7 +358,7 @@ class FListView : public FWidget
protected: protected:
// Methods // Methods
void adjustViewport (const int); void adjustViewport (const int);
void adjustScrollbars (const std::size_t); void adjustScrollbars (const std::size_t) const;
void adjustSize() override; void adjustSize() override;
private: private:
@ -399,14 +399,14 @@ class FListView : public FWidget
iterator getListEnd (const FListViewItem*); iterator getListEnd (const FListViewItem*);
void draw() override; void draw() override;
void drawBorder() override; void drawBorder() override;
void drawScrollbars(); void drawScrollbars() const;
void drawHeadlines(); void drawHeadlines();
void drawList(); void drawList();
void drawListLine (const FListViewItem*, bool, bool); void drawListLine (const FListViewItem*, bool, bool);
void clearList(); void clearList();
void setLineAttributes (bool, bool) const; void setLineAttributes (bool, bool) const;
FString getCheckBox (const FListViewItem* item) const; FString getCheckBox (const FListViewItem* item) const;
FString getLinePrefix (const FListViewItem*, std::size_t); FString getLinePrefix (const FListViewItem*, std::size_t) const;
void drawSortIndicator (std::size_t&, std::size_t); void drawSortIndicator (std::size_t&, std::size_t);
void drawHeadlineLabel (const headerItems::const_iterator&); void drawHeadlineLabel (const headerItems::const_iterator&);
void drawHeaderBorder (std::size_t); void drawHeaderBorder (std::size_t);
@ -418,7 +418,7 @@ class FListView : public FWidget
void beforeInsertion (FListViewItem*); void beforeInsertion (FListViewItem*);
void afterInsertion(); void afterInsertion();
void recalculateHorizontalBar (std::size_t); void recalculateHorizontalBar (std::size_t);
void recalculateVerticalBar (std::size_t); void recalculateVerticalBar (std::size_t) const;
void mouseHeaderClicked(); void mouseHeaderClicked();
void wheelUp (int); void wheelUp (int);
void wheelDown (int); void wheelDown (int);

View File

@ -87,7 +87,7 @@ class FLogger : public FLog
// Methods // Methods
void newlineReplace (std::string&, const std::string&) const; void newlineReplace (std::string&, const std::string&) const;
const std::string getTimeString() const; const std::string getTimeString() const;
const std::string getEOL(); const std::string getEOL() const;
void printLogLine (const std::string&); void printLogLine (const std::string&);
// Data member // Data member

View File

@ -176,7 +176,7 @@ class FMenu : public FWindow, public FMenuList
void initCallbacks(); void initCallbacks();
void calculateDimensions(); void calculateDimensions();
void adjustItems() const; void adjustItems() const;
int adjustX(int); int adjustX(int) const;
void openSubMenu (FMenu*, bool = false); void openSubMenu (FMenu*, bool = false);
void closeOpenedSubMenu(); void closeOpenedSubMenu();
void hideSubMenus(); void hideSubMenus();

View File

@ -234,7 +234,7 @@ class FMouseGPM final : public FMouse
void interpretKeyDown(); void interpretKeyDown();
void interpretKeyUp(); void interpretKeyUp();
bool getGpmKeyPressed(bool); bool getGpmKeyPressed(bool);
void drawGpmPointer(); void drawGpmPointer() const;
private: private:
// Enumeration // Enumeration
@ -514,8 +514,8 @@ class FMouseControl
FMouse* getMouseWithData(); FMouse* getMouseWithData();
FMouse* getMouseWithEvent(); FMouse* getMouseWithEvent();
void xtermMouse (bool) const; void xtermMouse (bool) const;
void enableXTermMouse(); void enableXTermMouse() const;
void disableXTermMouse(); void disableXTermMouse() const;
// Data member // Data member
FMouseProtocol mouse_protocol{}; FMouseProtocol mouse_protocol{};
@ -530,11 +530,11 @@ inline const FString FMouseControl::getClassName() const
{ return "FMouseControl"; } { return "FMouseControl"; }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
inline void FMouseControl::enableXTermMouse() inline void FMouseControl::enableXTermMouse() const
{ xtermMouse(true); } { xtermMouse(true); }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
inline void FMouseControl::disableXTermMouse() inline void FMouseControl::disableXTermMouse() const
{ xtermMouse(false); } { xtermMouse(false); }
} // namespace finalcut } // namespace finalcut

View File

@ -253,7 +253,7 @@ class FOptiAttr final
void change_to_default_color (FChar*&, FChar*&, FColor&, FColor&); void change_to_default_color (FChar*&, FChar*&, FColor&, FColor&);
void change_current_color (const FChar* const&, FColor, FColor); void change_current_color (const FChar* const&, FColor, FColor);
void resetAttribute (FChar*&) const; void resetAttribute (FChar*&) const;
void reset (FChar*&); void reset (FChar*&) const;
bool caused_reset_attributes (const char[], uChar = all_tests) const; bool caused_reset_attributes (const char[], uChar = all_tests) const;
bool hasCharsetEquivalence() const; bool hasCharsetEquivalence() const;
void detectSwitchOn (const FChar* const&, const FChar* const&); void detectSwitchOn (const FChar* const&, const FChar* const&);

View File

@ -171,11 +171,11 @@ class FOptiMove final
int repeatedAppend (const capability&, volatile int, char*) const; int repeatedAppend (const capability&, volatile int, char*) const;
int relativeMove (char[], int, int, int, int); int relativeMove (char[], int, int, int, int);
int verticalMove (char[], int, int); int verticalMove (char[], int, int);
void downMove (char[], int&, int, int); void downMove (char[], int&, int, int) const;
void upMove (char[], int&, int, int); void upMove (char[], int&, int, int) const;
int horizontalMove (char[], int, int); int horizontalMove (char[], int, int);
void rightMove (char[], int&, int, int); void rightMove (char[], int&, int, int) const;
void leftMove (char[], int&, int, int); void leftMove (char[], int&, int, int) const;
bool isWideMove (int, int, int, int) const; bool isWideMove (int, int, int, int) const;
bool isMethod0Faster (int&, int, int); bool isMethod0Faster (int&, int, int);

View File

@ -138,7 +138,7 @@ class FScrollbar : public FWidget
void drawHorizontalBar(); void drawHorizontalBar();
void drawHorizontalBackgroundColumn(); void drawHorizontalBackgroundColumn();
void drawButtons(); void drawButtons();
sType getClickedScrollType (int, int); sType getClickedScrollType (int, int) const;
sType getVerticalClickedScrollType (int) const; sType getVerticalClickedScrollType (int) const;
sType getHorizontalClickedScrollType (int) const; sType getHorizontalClickedScrollType (int) const;
int getSliderClickPos (int, int) const; int getSliderClickPos (int, int) const;

View File

@ -169,7 +169,7 @@ class FScrollView : public FWidget
, Callback ); , Callback );
void setHorizontalScrollBarVisibility() const; void setHorizontalScrollBarVisibility() const;
void setVerticalScrollBarVisibility() const; void setVerticalScrollBarVisibility() const;
void setViewportCursor(); void setViewportCursor() const;
// Callback methods // Callback methods
void cb_vbarChange (const FWidget*, const FDataPtr); void cb_vbarChange (const FWidget*, const FDataPtr);

View File

@ -82,7 +82,7 @@ class FSpinBox : public FWidget
sInt64 getValue() const; sInt64 getValue() const;
FString getPrefix() const; FString getPrefix() const;
FString getSuffix() const; FString getSuffix() const;
FLineEdit::label_o getLabelOrientation(); FLineEdit::label_o getLabelOrientation() const;
// Mutators // Mutators
void setSize (const FSize&, bool = true) override; void setSize (const FSize&, bool = true) override;
@ -175,7 +175,7 @@ inline FString FSpinBox::getSuffix() const
{ return sfix; } { return sfix; }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
inline FLineEdit::label_o FSpinBox::getLabelOrientation() inline FLineEdit::label_o FSpinBox::getLabelOrientation() const
{ return input_field.getLabelOrientation(); } { return input_field.getLabelOrientation(); }
//---------------------------------------------------------------------- //----------------------------------------------------------------------

View File

@ -211,7 +211,7 @@ class FString
const FString right (std::size_t) const; const FString right (std::size_t) const;
const FString mid (std::size_t, std::size_t) const; const FString mid (std::size_t, std::size_t) const;
FStringList split (const FString&); FStringList split (const FString&) const;
FString& setString (const FString&); FString& setString (const FString&);
template <typename NumT> template <typename NumT>

View File

@ -352,11 +352,11 @@ class FTerm final
void allocationValues() const; void allocationValues() const;
void deallocationValues(); void deallocationValues();
void init(); void init();
bool init_terminal(); bool init_terminal() const;
void initOSspecifics() const; void initOSspecifics() const;
void initTermspecifics() const; void initTermspecifics() const;
void initBaudRate() const; void initBaudRate() const;
void finish(); void finish() const;
void finishOSspecifics() const; void finishOSspecifics() const;
void finish_encoding() const; void finish_encoding() const;
void destroyColorPaletteTheme(); void destroyColorPaletteTheme();

View File

@ -114,7 +114,7 @@ class FTermXTerminal final
void setXTermCursorStyle(); void setXTermCursorStyle();
void setXTermFont(); void setXTermFont();
void setXTermTitle(); void setXTermTitle();
void setXTermSize(); void setXTermSize() const;
void setXTermForeground(); void setXTermForeground();
void setXTermBackground(); void setXTermBackground();
void setXTermCursorColor(); void setXTermCursorColor();
@ -124,7 +124,7 @@ class FTermXTerminal final
void setXTerm8ColorDefaults(); void setXTerm8ColorDefaults();
void setXTerm16ColorDefaults(); void setXTerm16ColorDefaults();
void setXTermDefaultsMouseCursor(); void setXTermDefaultsMouseCursor();
bool canSetXTermBackground(); bool canSetXTermBackground() const;
void resetXTermColorMap(); void resetXTermColorMap();
void resetXTermForeground(); void resetXTermForeground();
void resetXTermBackground(); void resetXTermBackground();
@ -133,11 +133,11 @@ class FTermXTerminal final
void resetXTermMouseBackground(); void resetXTermMouseBackground();
void resetXTermHighlightBackground(); void resetXTermHighlightBackground();
bool isInitialized() const; bool isInitialized() const;
bool canResetColor(); bool canResetColor() const;
void oscPrefix(); void oscPrefix() const;
void oscPostfix(); void oscPostfix() const;
const FString captureXTermFont(); const FString captureXTermFont();
const FString captureXTermTitle(); const FString captureXTermTitle() const;
static void enableXTermMouse(); static void enableXTermMouse();
static void disableXTermMouse(); static void disableXTermMouse();
void enableXTermMetaSendsESC(); void enableXTermMetaSendsESC();

View File

@ -145,8 +145,8 @@ class FTextView : public FWidget
std::size_t getTextWidth() const; std::size_t getTextWidth() const;
// Inquiry // Inquiry
bool isHorizontallyScrollable(); bool isHorizontallyScrollable() const;
bool isVerticallyScrollable(); bool isVerticallyScrollable() const;
// Methods // Methods
void init(); void init();
@ -259,11 +259,11 @@ inline void FTextView::deleteLine (int pos)
{ deleteRange (pos, pos); } { deleteRange (pos, pos); }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
inline bool FTextView::isHorizontallyScrollable() inline bool FTextView::isHorizontallyScrollable() const
{ return bool( max_line_width > getTextWidth() ); } { return bool( max_line_width > getTextWidth() ); }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
inline bool FTextView::isVerticallyScrollable() inline bool FTextView::isVerticallyScrollable() const
{ return bool( getRows() > getTextHeight() ); } { return bool( getRows() > getTextHeight() ); }
} // namespace finalcut } // namespace finalcut

View File

@ -301,18 +301,18 @@ class FVTerm
, FTermArea*& ); , FTermArea*& );
void resizeArea ( const FRect& void resizeArea ( const FRect&
, const FSize& , const FSize&
, FTermArea* ); , FTermArea* ) const;
static void removeArea (FTermArea*&); static void removeArea (FTermArea*&);
static void restoreVTerm (const FRect&); static void restoreVTerm (const FRect&);
bool updateVTermCursor (const FTermArea*); bool updateVTermCursor (const FTermArea*) const;
static void setAreaCursor ( const FPoint& static void setAreaCursor ( const FPoint&
, bool, FTermArea* ); , bool, FTermArea* );
static void getArea (const FPoint&, const FTermArea*); static void getArea (const FPoint&, const FTermArea*);
static void getArea (const FRect&, const FTermArea*); static void getArea (const FRect&, const FTermArea*);
void putArea (const FTermArea*); void putArea (const FTermArea*);
static void putArea (const FPoint&, const FTermArea*); static void putArea (const FPoint&, const FTermArea*);
void scrollAreaForward (FTermArea*); void scrollAreaForward (FTermArea*) const;
void scrollAreaReverse (FTermArea*); void scrollAreaReverse (FTermArea*) const;
void clearArea (FTermArea*, int = ' '); void clearArea (FTermArea*, int = ' ');
void processTerminalUpdate(); void processTerminalUpdate();
static void startTerminalUpdate(); static void startTerminalUpdate();
@ -383,13 +383,13 @@ class FVTerm
, const FChar*, FChar* ); , const FChar*, FChar* );
static void getAreaCharacter ( const FPoint&, const FTermArea* static void getAreaCharacter ( const FPoint&, const FTermArea*
, FChar*& ); , FChar*& );
bool clearTerm (int = ' '); bool clearTerm (int = ' ') const;
bool clearFullArea (const FTermArea*, FChar&); bool clearFullArea (const FTermArea*, FChar&);
static void clearAreaWithShadow (const FTermArea*, const FChar&); static void clearAreaWithShadow (const FTermArea*, const FChar&);
static bool canClearToEOL (uInt, uInt); static bool canClearToEOL (uInt, uInt);
static bool canClearLeadingWS (uInt&, uInt); static bool canClearLeadingWS (uInt&, uInt);
static bool canClearTrailingWS (uInt&, uInt); static bool canClearTrailingWS (uInt&, uInt);
bool skipUnchangedCharacters (uInt&, uInt, uInt); bool skipUnchangedCharacters (uInt&, uInt, uInt) const;
void printRange (uInt, uInt, uInt, bool); void printRange (uInt, uInt, uInt, bool);
void replaceNonPrintableFullwidth (uInt, FChar*&) const; void replaceNonPrintableFullwidth (uInt, FChar*&) const;
void printCharacter (uInt&, uInt, bool, FChar*&); void printCharacter (uInt&, uInt, bool, FChar*&);
@ -405,7 +405,7 @@ class FVTerm
bool printWrap (FTermArea*) const; bool printWrap (FTermArea*) const;
void printPaddingCharacter (FTermArea*, const FChar&); void printPaddingCharacter (FTermArea*, const FChar&);
void updateTerminalLine (uInt); void updateTerminalLine (uInt);
bool updateTerminalCursor(); bool updateTerminalCursor() const;
bool isInsideTerminal (const FPoint&) const; bool isInsideTerminal (const FPoint&) const;
bool isTermSizeChanged() const; bool isTermSizeChanged() const;
static void markAsPrinted (uInt, uInt); static void markAsPrinted (uInt, uInt);
@ -413,7 +413,7 @@ class FVTerm
static void newFontChanges (FChar*&); static void newFontChanges (FChar*&);
static void charsetChanges (FChar*&); static void charsetChanges (FChar*&);
void appendCharacter (FChar*&); void appendCharacter (FChar*&);
void appendChar (FChar*&); void appendChar (FChar*&) const;
void appendAttributes (FChar*&) const; void appendAttributes (FChar*&) const;
int appendLowerRight (FChar*&); int appendLowerRight (FChar*&);
static void characterFilter (FChar*&); static void characterFilter (FChar*&);