More constant character pointers

This commit is contained in:
Markus Gans 2017-03-17 23:22:13 +01:00
parent 05c61f1901
commit e66171ee73
4 changed files with 24 additions and 2 deletions

1
.gitignore vendored
View File

@ -38,5 +38,6 @@ test/input-dialog
test/choice
test/mandelbrot
test/keyboard
test/mouse
test/timer
test/ui

View File

@ -387,7 +387,7 @@ int FVTerm::print (term_area* area, const std::string& s)
}
//----------------------------------------------------------------------
int FVTerm::print (FString& s)
int FVTerm::print (const FString& s)
{
assert ( ! s.isNull() );
term_area* area = getPrintArea();

View File

@ -263,7 +263,7 @@ class FVTerm : public FObject, public FTerm
int print (term_area*, const char*);
int print (const std::string&);
int print (term_area*, const std::string&);
int print (FString&);
int print (const FString&);
int print (term_area*, const FString&);
int print (int);
int print (term_area*, int);

21
test/mouse.cpp Normal file
View File

@ -0,0 +1,21 @@
// File: mouse.cpp
#include "fapp.h"
#include "fdialog.h"
//----------------------------------------------------------------------
// main part
//----------------------------------------------------------------------
int main (int argc, char* argv[])
{
// Create the application object
FApplication app(argc, argv);
// Create a simple dialog box
FDialog mouse_draw(&app);
mouse_draw.setGeometry (12, 4, 60, 18);
app.setMainWidget(&mouse_draw);
mouse_draw.show();
return app.exec();
}