More constant character pointers
This commit is contained in:
parent
05c61f1901
commit
e66171ee73
|
@ -38,5 +38,6 @@ test/input-dialog
|
||||||
test/choice
|
test/choice
|
||||||
test/mandelbrot
|
test/mandelbrot
|
||||||
test/keyboard
|
test/keyboard
|
||||||
|
test/mouse
|
||||||
test/timer
|
test/timer
|
||||||
test/ui
|
test/ui
|
||||||
|
|
|
@ -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() );
|
assert ( ! s.isNull() );
|
||||||
term_area* area = getPrintArea();
|
term_area* area = getPrintArea();
|
||||||
|
|
|
@ -263,7 +263,7 @@ class FVTerm : public FObject, public FTerm
|
||||||
int print (term_area*, const char*);
|
int print (term_area*, const char*);
|
||||||
int print (const std::string&);
|
int print (const std::string&);
|
||||||
int print (term_area*, 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 (term_area*, const FString&);
|
||||||
int print (int);
|
int print (int);
|
||||||
int print (term_area*, int);
|
int print (term_area*, int);
|
||||||
|
|
|
@ -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();
|
||||||
|
}
|
Loading…
Reference in New Issue