You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
//import org.trinitydesktop.qt.TQApplication;
|
|
|
|
//import org.trinitydesktop.qt.TQDir;
|
|
|
|
import org.trinitydesktop.qt.*;
|
|
|
|
|
|
|
|
public class DirTest {
|
|
|
|
public static void main(String[] args)
|
|
|
|
{
|
|
|
|
TQApplication myapp = new TQApplication(args);
|
|
|
|
|
|
|
|
TQDir mydir = new TQDir("/tmp");
|
|
|
|
if ( mydir.match(new String [] {"*.bmp", "*.h"}, "foobar.bmp") ) {
|
|
|
|
System.out.println("foobar matches");
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( ! mydir.match(new String[] {"*.bmp", "*.h"}, "baz.cpp") ) {
|
|
|
|
System.out.println("baz doesn't match");
|
|
|
|
}
|
|
|
|
|
|
|
|
TQFile myobj = new TQFile();
|
|
|
|
Object mytest;
|
|
|
|
System.out.println("myobj: " + myobj.toString());
|
|
|
|
mytest = (TQDir) Qt.dynamicCast("TQDir", myobj);
|
|
|
|
System.out.println("mytest: " + mytest.toString());
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
static {
|
|
|
|
qtjava.initialize();
|
|
|
|
}
|
|
|
|
}
|