From 4f99f868f09bbffa2e15733b8b7c78eba07a199e Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 6 Dec 2020 21:23:48 +0900 Subject: Renaming of files in preparation for code style tools. Signed-off-by: Michele Calgaro --- interfaces/terminal/test/Makefile.am | 2 +- interfaces/terminal/test/main.cc | 63 ------------------------------------ interfaces/terminal/test/main.cpp | 63 ++++++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+), 64 deletions(-) delete mode 100644 interfaces/terminal/test/main.cc create mode 100644 interfaces/terminal/test/main.cpp (limited to 'interfaces') diff --git a/interfaces/terminal/test/Makefile.am b/interfaces/terminal/test/Makefile.am index 03a04301b..414159af1 100644 --- a/interfaces/terminal/test/Makefile.am +++ b/interfaces/terminal/test/Makefile.am @@ -1,6 +1,6 @@ INCLUDES=$(all_includes) check_PROGRAMS=test -test_SOURCES=main.cc +test_SOURCES=main.cpp test_LDADD=$(LIB_TQT) $(LIB_TDECORE) $(LIB_TDEUI) -ltdeio test_LDFLAGS=$(all_libraries) METASOURCES=AUTO diff --git a/interfaces/terminal/test/main.cc b/interfaces/terminal/test/main.cc deleted file mode 100644 index 8130f85d6..000000000 --- a/interfaces/terminal/test/main.cc +++ /dev/null @@ -1,63 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "main.h" -#include "main.moc" - -Win::Win() -{ - KLibFactory* factory = KLibLoader::self()->factory( "libkonsolepart" ); - assert( factory ); - KParts::Part* p = static_cast( factory->create( this, "tralala", TQOBJECT_OBJECT_NAME_STRING, "KParts::ReadOnlyPart" ) ); - setCentralWidget( p->widget() ); - - TerminalInterface* t = ::tqqt_cast( p ); - t->showShellInDir( TQDir::home().path() ); -// TQStrList l; -// l.append( "python" ); -// t->startProgram( TQString::fromUtf8( "/usr/bin/python" ), l ); - - connect( p, TQT_SIGNAL( processExited( int ) ), - this, TQT_SLOT( pythonExited( int ) ) ); -} - - -int main( int argc, char** argv ) -{ - TDEAboutData* about = new TDEAboutData( "tetest", "TETest", "0.1" ); - TDECmdLineArgs::init( argc, argv, about ); - TDEApplication a; - Win* win = new Win(); - win->show(); - return a.exec(); -}; - -#include - -void Win::pythonExited() -{ - std::cerr << "hee, " << p << std::endl; - std::cerr << ( ::tqqt_cast(p) ) << std::endl; - // KMessageBox::sorry( this, TQString::fromUtf8( "Exited, status was %1" ).arg( status ) ); - disconnect(p, TQT_SIGNAL( processExited() ), - this, TQT_SLOT( pythonExited() )); - TerminalInterface* t = ::tqqt_cast( p ); - TQStrList l; - l.append( "echo" ); - l.append( "hello world" ); - t->startProgram( TQString::fromUtf8( "/bin/echo" ), l ); -} - -void Win::forked() -{ - std::cerr << "hello from the child process!" << std::endl; -} diff --git a/interfaces/terminal/test/main.cpp b/interfaces/terminal/test/main.cpp new file mode 100644 index 000000000..8130f85d6 --- /dev/null +++ b/interfaces/terminal/test/main.cpp @@ -0,0 +1,63 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "main.h" +#include "main.moc" + +Win::Win() +{ + KLibFactory* factory = KLibLoader::self()->factory( "libkonsolepart" ); + assert( factory ); + KParts::Part* p = static_cast( factory->create( this, "tralala", TQOBJECT_OBJECT_NAME_STRING, "KParts::ReadOnlyPart" ) ); + setCentralWidget( p->widget() ); + + TerminalInterface* t = ::tqqt_cast( p ); + t->showShellInDir( TQDir::home().path() ); +// TQStrList l; +// l.append( "python" ); +// t->startProgram( TQString::fromUtf8( "/usr/bin/python" ), l ); + + connect( p, TQT_SIGNAL( processExited( int ) ), + this, TQT_SLOT( pythonExited( int ) ) ); +} + + +int main( int argc, char** argv ) +{ + TDEAboutData* about = new TDEAboutData( "tetest", "TETest", "0.1" ); + TDECmdLineArgs::init( argc, argv, about ); + TDEApplication a; + Win* win = new Win(); + win->show(); + return a.exec(); +}; + +#include + +void Win::pythonExited() +{ + std::cerr << "hee, " << p << std::endl; + std::cerr << ( ::tqqt_cast(p) ) << std::endl; + // KMessageBox::sorry( this, TQString::fromUtf8( "Exited, status was %1" ).arg( status ) ); + disconnect(p, TQT_SIGNAL( processExited() ), + this, TQT_SLOT( pythonExited() )); + TerminalInterface* t = ::tqqt_cast( p ); + TQStrList l; + l.append( "echo" ); + l.append( "hello world" ); + t->startProgram( TQString::fromUtf8( "/bin/echo" ), l ); +} + +void Win::forked() +{ + std::cerr << "hello from the child process!" << std::endl; +} -- cgit v1.2.1