Mxx_ru 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +26 -26
- data/NEWS +107 -107
- data/README +21 -21
- data/Rakefile +56 -59
- data/examples/exe_and_lib/prj.rb +11 -11
- data/examples/exe_and_lib/say.rb +7 -7
- data/examples/exe_dll_lib/inout.rb +18 -18
- data/examples/exe_dll_lib/prj.rb +11 -11
- data/examples/exe_dll_lib/say.rb +9 -9
- data/examples/exe_dll_lib_2/build.rb +10 -10
- data/examples/exe_dll_lib_2/inout/prj.rb +16 -16
- data/examples/exe_dll_lib_2/main/prj.rb +9 -9
- data/examples/exe_dll_lib_2/say/prj.rb +8 -8
- data/examples/simple_exe/prj.rb +7 -7
- data/lib/mxx_ru/abstract_target.rb +335 -335
- data/lib/mxx_ru/binary_library.rb +106 -106
- data/lib/mxx_ru/binary_target.rb +173 -173
- data/lib/mxx_ru/binary_unittest.rb +143 -143
- data/lib/mxx_ru/compat.rb +33 -33
- data/lib/mxx_ru/cpp.rb +38 -38
- data/lib/mxx_ru/cpp/analyzer.rb +237 -237
- data/lib/mxx_ru/cpp/composite.rb +118 -118
- data/lib/mxx_ru/cpp/detect_toolset.rb +122 -122
- data/lib/mxx_ru/cpp/mode.rb +90 -90
- data/lib/mxx_ru/cpp/obj_placement.rb +330 -330
- data/lib/mxx_ru/cpp/obj_placements/custom_subdir.rb +155 -155
- data/lib/mxx_ru/cpp/qt.rb +366 -366
- data/lib/mxx_ru/cpp/rucodegen.rb +157 -157
- data/lib/mxx_ru/cpp/source_file.rb +79 -79
- data/lib/mxx_ru/cpp/target.rb +1523 -1523
- data/lib/mxx_ru/cpp/toolset.rb +1087 -1087
- data/lib/mxx_ru/cpp/toolsets/bcc_win32_5.rb +53 -53
- data/lib/mxx_ru/cpp/toolsets/bcc_win32_family.rb +460 -460
- data/lib/mxx_ru/cpp/toolsets/c89_etk_nsk.rb +59 -59
- data/lib/mxx_ru/cpp/toolsets/c89_nsk.rb +59 -59
- data/lib/mxx_ru/cpp/toolsets/c89_nsk_family.rb +277 -277
- data/lib/mxx_ru/cpp/toolsets/gcc_cygwin.rb +58 -58
- data/lib/mxx_ru/cpp/toolsets/gcc_family.rb +420 -424
- data/lib/mxx_ru/cpp/toolsets/gcc_linux.rb +64 -64
- data/lib/mxx_ru/cpp/toolsets/gcc_mingw.rb +150 -150
- data/lib/mxx_ru/cpp/toolsets/gcc_sparc_solaris.rb +91 -91
- data/lib/mxx_ru/cpp/toolsets/gcc_unix_family.rb +103 -84
- data/lib/mxx_ru/cpp/toolsets/vc7.rb +62 -62
- data/lib/mxx_ru/cpp/toolsets/vc8.rb +455 -455
- data/lib/mxx_ru/cpp/toolsets/vc_family.rb +448 -448
- data/lib/mxx_ru/ex.rb +165 -165
- data/lib/mxx_ru/makestyle_generator.rb +146 -146
- data/lib/mxx_ru/textfile_unittest.rb +303 -303
- data/lib/mxx_ru/util.rb +340 -340
- data/tests/c/pcre/chartables.c +183 -183
- data/tests/c/pcre/config.h +99 -99
- data/tests/c/pcre/dftables.c +167 -167
- data/tests/c/pcre/get.c +349 -349
- data/tests/c/pcre/internal.h +677 -677
- data/tests/c/pcre/maketables.c +140 -140
- data/tests/c/pcre/pcre.c +8304 -8304
- data/tests/c/pcre/pcre.h +193 -193
- data/tests/c/pcre/pcre.rb +14 -14
- data/tests/c/pcre/pcredemo.c +316 -316
- data/tests/c/pcre/pcregrep.c +642 -642
- data/tests/c/pcre/pcreposix.c +305 -305
- data/tests/c/pcre/pcreposix.h +88 -88
- data/tests/c/pcre/pcretest.c +1483 -1483
- data/tests/c/pcre/perltest +211 -211
- data/tests/c/pcre/printint.c +360 -360
- data/tests/c/pcre/study.c +472 -472
- data/tests/cpp/cpp_sources_glob/build.rb +7 -7
- data/tests/cpp/cpp_sources_glob/some/module/prj.rb +10 -10
- data/tests/cpp/cpp_sources_glob/tc_cpp_sources_glob.rb +18 -18
- data/tests/cpp/mswin_res_dll/build.rb +14 -14
- data/tests/cpp/mswin_res_dll/dll.cpp +17 -17
- data/tests/cpp/mswin_res_dll/dll.rb +29 -29
- data/tests/cpp/mswin_res_dll/dll.rc +48 -48
- data/tests/cpp/mswin_res_dll/h/dll.hpp +8 -8
- data/tests/cpp/mswin_res_dll/h/res.h +3 -3
- data/tests/cpp/mswin_res_dll/main.cpp +13 -13
- data/tests/cpp/mswin_res_dll/main.rb +19 -19
- data/tests/cpp/mswin_res_dll/tc_mswin_res_dll.rb +18 -18
- data/tests/cpp/mswin_res_exe/build.rb +23 -23
- data/tests/cpp/mswin_res_exe/h/res.h +3 -3
- data/tests/cpp/mswin_res_exe/main.cpp +17 -17
- data/tests/cpp/mswin_res_exe/main.rc +48 -48
- data/tests/cpp/mswin_res_exe/tc_mswin_res_exe.rb +18 -18
- data/tests/cpp/rucodegen.embedded/host_config.cpp +32 -32
- data/tests/cpp/rucodegen.embedded/impl/conn_params.cpp +7 -7
- data/tests/cpp/rucodegen.embedded/impl/conn_params.rb +14 -14
- data/tests/cpp/rucodegen.embedded/impl/h/conn_params.hpp +10 -10
- data/tests/cpp/rucodegen.embedded/prj.rb +16 -16
- data/tests/cpp/rucodegen.embedded/tc_rucodegen.rb +18 -18
- data/tests/cpp/rucodegen/host_config.cpp +20 -20
- data/tests/cpp/rucodegen/host_config.rb +14 -14
- data/tests/cpp/rucodegen/impl/conn_params.cpp +7 -7
- data/tests/cpp/rucodegen/impl/conn_params.rb +14 -14
- data/tests/cpp/rucodegen/impl/h/conn_params.hpp +10 -10
- data/tests/cpp/rucodegen/prj.rb +16 -16
- data/tests/cpp/rucodegen/tc_rucodegen.rb +18 -18
- data/tests/cpp/textfile_unittest/build.rb +8 -8
- data/tests/cpp/textfile_unittest/etalons/out_1.txt +1 -1
- data/tests/cpp/textfile_unittest/etalons/out_128.txt +128 -128
- data/tests/cpp/textfile_unittest/main.cpp +89 -89
- data/tests/cpp/textfile_unittest/prj.rb +8 -8
- data/tests/cpp/textfile_unittest/prj.ut.rb +18 -18
- data/tests/cpp/textfile_unittest/tc_textfile_unittest.rb +18 -18
- data/tests/cpp/toolset_name.rb +6 -6
- data/tests/cpp/vc_cleanup/prj_dll_no_implib.rb +10 -10
- data/tests/cpp/vc_cleanup/prj_dll_no_implib_simple_target_root.rb +11 -11
- data/tests/cpp/vc_cleanup/prj_dll_with_implib.rb +11 -11
- data/tests/cpp/vc_cleanup/prj_dll_with_implib_simple_target_root.rb +14 -14
- data/tests/cpp/vc_cleanup/prj_exe_no_implib.rb +10 -10
- data/tests/cpp/vc_cleanup/prj_exe_no_implib_simple_target_root.rb +11 -11
- data/tests/cpp/vc_cleanup/prj_lib.rb +10 -10
- data/tests/cpp/vc_cleanup/prj_lib_with_simple_target_root.rb +11 -11
- data/tests/cpp/vc_cleanup/tc_vc_cleanup.rb +23 -23
- data/tests/mxx_ru/binary_library/tc_binary_library.rb +57 -57
- data/tests/mxx_ru/binary_library/tc_binary_target_lib_methods.rb +114 -114
- data/tests/mxx_ru/change_default_value/ignoring_by_build_root/build.rb +8 -8
- data/tests/mxx_ru/change_default_value/ignoring_by_build_root/child_1.rb +5 -5
- data/tests/mxx_ru/change_default_value/ignoring_by_child_1/build.rb +7 -7
- data/tests/mxx_ru/change_default_value/ignoring_by_child_1/child_1.rb +5 -5
- data/tests/mxx_ru/change_default_value/ignoring_by_child_1/child_2.rb +5 -5
- data/tests/mxx_ru/change_default_value/ok/build.rb +8 -8
- data/tests/mxx_ru/change_default_value/ok/child_1.rb +8 -8
- data/tests/mxx_ru/lib_path/build.rb +8 -8
- data/tests/mxx_ru/lib_path/bye.rb +8 -8
- data/tests/mxx_ru/lib_path/hi.rb +8 -8
- data/tests/mxx_ru/lib_path/main.rb +12 -12
- data/tests/mxx_ru/lib_path/tc_lib_path.rb +18 -18
- data/tests/mxx_ru/obj_placements/tc_custom_subdir.rb +58 -58
- data/tests/mxx_ru/opt_lib_ext/build.rb +7 -7
- data/tests/mxx_ru/opt_lib_ext/hi.rb +7 -7
- data/tests/mxx_ru/opt_lib_ext/tc_opt_lib_ext.rb +18 -18
- data/tests/mxx_ru/opt_lib_ext/test-no-ext.rb +9 -9
- data/tests/mxx_ru/opt_lib_ext/test-with-ext.rb +13 -13
- data/tests/mxx_ru/plural_form_methods/tc.rb +72 -72
- data/tests/mxx_ru/qt_gen/tc_uic_result_subdir.rb +76 -76
- data/tests/mxx_ru/target_ext/prj_dll.rb +8 -8
- data/tests/mxx_ru/target_ext/prj_exe.rb +8 -8
- data/tests/mxx_ru/target_ext/prj_lib.rb +8 -8
- data/tests/mxx_ru/target_ext/tc_target_ext.rb +24 -24
- data/tests/mxx_ru/tc_makestyle_generator.rb +117 -117
- data/tests/mxx_ru/vc8/tc_actual_manifest.rb +230 -230
- data/tests/mxx_ru/vc8/tc_append_mt_commands.rb +104 -104
- data/tests/mxx_ru/vc8/tc_default_manifest.rb +17 -17
- data/tests/mxx_ru/vc8/tc_define_manifest.rb +173 -173
- data/tests/mxx_ru/vc8/tc_drop_default_manifest.rb +16 -16
- data/tests/mxx_ru/vc8/tc_invalid_params.rb +81 -81
- data/tests/mxx_ru/vc8/ts_vc8.rb +10 -10
- data/tests/qt/aclock/aclock.cpp +148 -148
- data/tests/qt/aclock/aclock.h +45 -45
- data/tests/qt/aclock/main.cpp +28 -28
- data/tests/qt/aclock/prj.rb +21 -21
- data/tests/qt/iconview/main.cpp +76 -76
- data/tests/qt/iconview/prj.rb +21 -21
- data/tests/qt/toplevel/main.cpp +9 -9
- data/tests/qt/toplevel/options.ui +587 -587
- data/tests/qt/toplevel/prj.rb +22 -22
- data/tests/test_with_compilation.rb +110 -110
- data/tests/unix/lib_linking_mode/a_shared.rb +7 -7
- data/tests/unix/lib_linking_mode/a_static.rb +7 -7
- data/tests/unix/lib_linking_mode/etalon/shared.txt +2 -2
- data/tests/unix/lib_linking_mode/etalon/static.txt +2 -2
- data/tests/unix/lib_linking_mode/main_conflict.rb +12 -12
- data/tests/unix/lib_linking_mode/main_conflict_2.rb +11 -11
- data/tests/unix/lib_linking_mode/main_shared.rb +9 -9
- data/tests/unix/lib_linking_mode/main_shared.ut.rb +11 -11
- data/tests/unix/lib_linking_mode/main_shared_2.rb +10 -10
- data/tests/unix/lib_linking_mode/main_shared_2.ut.rb +11 -11
- data/tests/unix/lib_linking_mode/main_static.rb +9 -9
- data/tests/unix/lib_linking_mode/main_static.ut.rb +11 -11
- data/tests/unix/lib_linking_mode/main_static_2.rb +10 -10
- data/tests/unix/lib_linking_mode/main_static_2.ut.rb +11 -11
- data/tests/unix/lib_linking_mode/tc_conflicted_build.rb +18 -18
- data/tests/unix/lib_linking_mode/tc_normal_build.rb +18 -18
- data/tests/unix/lib_order/a.cpp +4 -0
- data/tests/unix/lib_order/a.hpp +1 -0
- data/tests/unix/lib_order/a.rb +8 -0
- data/tests/unix/lib_order/b.cpp +10 -0
- data/tests/unix/lib_order/b.hpp +1 -0
- data/tests/unix/lib_order/b.rb +8 -0
- data/tests/unix/lib_order/build.rb +9 -0
- data/tests/unix/lib_order/c.cpp +12 -0
- data/tests/unix/lib_order/c.hpp +2 -0
- data/tests/unix/lib_order/c.rb +8 -0
- data/tests/unix/lib_order/d.cpp +7 -0
- data/tests/unix/lib_order/d.hpp +1 -0
- data/tests/unix/lib_order/d.rb +8 -0
- data/tests/unix/lib_order/main.cpp +7 -0
- data/tests/unix/lib_order/main.rb +14 -0
- data/tests/unix/lib_order/tc_normal_build.rb +16 -0
- metadata +342 -319
data/tests/qt/aclock/aclock.h
CHANGED
@@ -1,45 +1,45 @@
|
|
1
|
-
/****************************************************************************
|
2
|
-
** $Id: qt/aclock.h 3.3.3 edited Dec 10 2003 $
|
3
|
-
**
|
4
|
-
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
|
5
|
-
**
|
6
|
-
** This file is part of an example program for Qt. This example
|
7
|
-
** program may be used, distributed and modified without limitation.
|
8
|
-
**
|
9
|
-
*****************************************************************************/
|
10
|
-
|
11
|
-
#ifndef ACLOCK_H
|
12
|
-
#define ACLOCK_H
|
13
|
-
|
14
|
-
#include <qwidget.h>
|
15
|
-
#include <qdatetime.h>
|
16
|
-
|
17
|
-
class QTimer;
|
18
|
-
class AnalogClock : public QWidget // analog clock widget
|
19
|
-
{
|
20
|
-
Q_OBJECT
|
21
|
-
public:
|
22
|
-
AnalogClock( QWidget *parent=0, const char *name=0 );
|
23
|
-
void setAutoMask(bool b);
|
24
|
-
|
25
|
-
protected:
|
26
|
-
void updateMask();
|
27
|
-
void paintEvent( QPaintEvent *);
|
28
|
-
void mousePressEvent( QMouseEvent *);
|
29
|
-
void mouseMoveEvent( QMouseEvent *);
|
30
|
-
void drawClock( QPainter* );
|
31
|
-
|
32
|
-
private slots:
|
33
|
-
void timeout();
|
34
|
-
|
35
|
-
public slots:
|
36
|
-
void setTime( const QTime & t );
|
37
|
-
|
38
|
-
private:
|
39
|
-
QPoint clickPos;
|
40
|
-
QTime time;
|
41
|
-
QTimer *internalTimer;
|
42
|
-
};
|
43
|
-
|
44
|
-
|
45
|
-
#endif // ACLOCK_H
|
1
|
+
/****************************************************************************
|
2
|
+
** $Id: qt/aclock.h 3.3.3 edited Dec 10 2003 $
|
3
|
+
**
|
4
|
+
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
|
5
|
+
**
|
6
|
+
** This file is part of an example program for Qt. This example
|
7
|
+
** program may be used, distributed and modified without limitation.
|
8
|
+
**
|
9
|
+
*****************************************************************************/
|
10
|
+
|
11
|
+
#ifndef ACLOCK_H
|
12
|
+
#define ACLOCK_H
|
13
|
+
|
14
|
+
#include <qwidget.h>
|
15
|
+
#include <qdatetime.h>
|
16
|
+
|
17
|
+
class QTimer;
|
18
|
+
class AnalogClock : public QWidget // analog clock widget
|
19
|
+
{
|
20
|
+
Q_OBJECT
|
21
|
+
public:
|
22
|
+
AnalogClock( QWidget *parent=0, const char *name=0 );
|
23
|
+
void setAutoMask(bool b);
|
24
|
+
|
25
|
+
protected:
|
26
|
+
void updateMask();
|
27
|
+
void paintEvent( QPaintEvent *);
|
28
|
+
void mousePressEvent( QMouseEvent *);
|
29
|
+
void mouseMoveEvent( QMouseEvent *);
|
30
|
+
void drawClock( QPainter* );
|
31
|
+
|
32
|
+
private slots:
|
33
|
+
void timeout();
|
34
|
+
|
35
|
+
public slots:
|
36
|
+
void setTime( const QTime & t );
|
37
|
+
|
38
|
+
private:
|
39
|
+
QPoint clickPos;
|
40
|
+
QTime time;
|
41
|
+
QTimer *internalTimer;
|
42
|
+
};
|
43
|
+
|
44
|
+
|
45
|
+
#endif // ACLOCK_H
|
data/tests/qt/aclock/main.cpp
CHANGED
@@ -1,28 +1,28 @@
|
|
1
|
-
/****************************************************************************
|
2
|
-
** $Id: qt/main.cpp 3.3.3 edited May 27 2003 $
|
3
|
-
**
|
4
|
-
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
|
5
|
-
**
|
6
|
-
** This file is part of an example program for Qt. This example
|
7
|
-
** program may be used, distributed and modified without limitation.
|
8
|
-
**
|
9
|
-
*****************************************************************************/
|
10
|
-
|
11
|
-
#include "aclock.h"
|
12
|
-
#include <qapplication.h>
|
13
|
-
|
14
|
-
|
15
|
-
int main( int argc, char **argv )
|
16
|
-
{
|
17
|
-
QApplication a( argc, argv );
|
18
|
-
AnalogClock *clock = new AnalogClock;
|
19
|
-
if ( argc == 2 && strcmp( argv[1], "-transparent" ) == 0 )
|
20
|
-
clock->setAutoMask( TRUE );
|
21
|
-
clock->resize( 100, 100 );
|
22
|
-
a.setMainWidget( clock );
|
23
|
-
clock->setCaption("Qt Example - Analog Clock");
|
24
|
-
clock->show();
|
25
|
-
int result = a.exec();
|
26
|
-
delete clock;
|
27
|
-
return result;
|
28
|
-
}
|
1
|
+
/****************************************************************************
|
2
|
+
** $Id: qt/main.cpp 3.3.3 edited May 27 2003 $
|
3
|
+
**
|
4
|
+
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
|
5
|
+
**
|
6
|
+
** This file is part of an example program for Qt. This example
|
7
|
+
** program may be used, distributed and modified without limitation.
|
8
|
+
**
|
9
|
+
*****************************************************************************/
|
10
|
+
|
11
|
+
#include "aclock.h"
|
12
|
+
#include <qapplication.h>
|
13
|
+
|
14
|
+
|
15
|
+
int main( int argc, char **argv )
|
16
|
+
{
|
17
|
+
QApplication a( argc, argv );
|
18
|
+
AnalogClock *clock = new AnalogClock;
|
19
|
+
if ( argc == 2 && strcmp( argv[1], "-transparent" ) == 0 )
|
20
|
+
clock->setAutoMask( TRUE );
|
21
|
+
clock->resize( 100, 100 );
|
22
|
+
a.setMainWidget( clock );
|
23
|
+
clock->setCaption("Qt Example - Analog Clock");
|
24
|
+
clock->show();
|
25
|
+
int result = a.exec();
|
26
|
+
delete clock;
|
27
|
+
return result;
|
28
|
+
}
|
data/tests/qt/aclock/prj.rb
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
require 'mxx_ru/cpp/qt'
|
2
|
-
|
3
|
-
Mxx_ru::setup_target(
|
4
|
-
Mxx_ru::Cpp::Exe_target.new( "prj.rb" ) {
|
5
|
-
|
6
|
-
threading_mode( Mxx_ru::Cpp::THREADING_MULTI )
|
7
|
-
rtl_mode( Mxx_ru::Cpp::RTL_SHARED )
|
8
|
-
|
9
|
-
target( "aclock" )
|
10
|
-
|
11
|
-
qt = generator( Mxx_ru::Cpp::Qt_gen.new( self ) )
|
12
|
-
# qt.moc_result_subdir = nil
|
13
|
-
|
14
|
-
lib( "qt-mt333.lib" )
|
15
|
-
|
16
|
-
qt.h2moc( "aclock.h" )
|
17
|
-
|
18
|
-
cpp_source( "main.cpp" )
|
19
|
-
cpp_source( "aclock.cpp" )
|
20
|
-
}
|
21
|
-
)
|
1
|
+
require 'mxx_ru/cpp/qt'
|
2
|
+
|
3
|
+
Mxx_ru::setup_target(
|
4
|
+
Mxx_ru::Cpp::Exe_target.new( "prj.rb" ) {
|
5
|
+
|
6
|
+
threading_mode( Mxx_ru::Cpp::THREADING_MULTI )
|
7
|
+
rtl_mode( Mxx_ru::Cpp::RTL_SHARED )
|
8
|
+
|
9
|
+
target( "aclock" )
|
10
|
+
|
11
|
+
qt = generator( Mxx_ru::Cpp::Qt_gen.new( self ) )
|
12
|
+
# qt.moc_result_subdir = nil
|
13
|
+
|
14
|
+
lib( "qt-mt333.lib" )
|
15
|
+
|
16
|
+
qt.h2moc( "aclock.h" )
|
17
|
+
|
18
|
+
cpp_source( "main.cpp" )
|
19
|
+
cpp_source( "aclock.cpp" )
|
20
|
+
}
|
21
|
+
)
|
data/tests/qt/iconview/main.cpp
CHANGED
@@ -1,76 +1,76 @@
|
|
1
|
-
/****************************************************************************
|
2
|
-
** $Id: qt/main.cpp 3.3.3 edited May 27 2003 $
|
3
|
-
**
|
4
|
-
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
|
5
|
-
**
|
6
|
-
** This file is part of an example program for Qt. This example
|
7
|
-
** program may be used, distributed and modified without limitation.
|
8
|
-
**
|
9
|
-
*****************************************************************************/
|
10
|
-
|
11
|
-
#include <qiconview.h>
|
12
|
-
#include <qapplication.h>
|
13
|
-
#include <qdragobject.h>
|
14
|
-
#include <qpixmap.h>
|
15
|
-
#include <qiconset.h>
|
16
|
-
|
17
|
-
#include <qmime.h>
|
18
|
-
#include <stdio.h>
|
19
|
-
|
20
|
-
class ListenDND : public QObject
|
21
|
-
{
|
22
|
-
Q_OBJECT
|
23
|
-
|
24
|
-
public:
|
25
|
-
ListenDND( QWidget *w )
|
26
|
-
: view( w )
|
27
|
-
{}
|
28
|
-
|
29
|
-
public slots:
|
30
|
-
void dropped( QDropEvent *mime ) {
|
31
|
-
qDebug( "Dropped Mimesource %p into the view %p", mime, view );
|
32
|
-
qDebug( " Formats:" );
|
33
|
-
int i = 0;
|
34
|
-
const char *str = mime->format( i );
|
35
|
-
qDebug( " %s", str );
|
36
|
-
while ( str ) {
|
37
|
-
qDebug( " %s", str );
|
38
|
-
str = mime->format( ++i );
|
39
|
-
}
|
40
|
-
};
|
41
|
-
void moved() {
|
42
|
-
qDebug( "All selected items were moved to another widget" );
|
43
|
-
}
|
44
|
-
|
45
|
-
protected:
|
46
|
-
QWidget *view;
|
47
|
-
|
48
|
-
};
|
49
|
-
|
50
|
-
int main( int argc, char **argv )
|
51
|
-
{
|
52
|
-
QApplication a( argc, argv );
|
53
|
-
|
54
|
-
QIconView qiconview;
|
55
|
-
qiconview.setSelectionMode( QIconView::Extended );
|
56
|
-
|
57
|
-
for ( unsigned int i = 0; i < 3000; i++ ) {
|
58
|
-
QIconViewItem *item = new QIconViewItem( &qiconview, QString( "Item %1" ).arg( i + 1 ) );
|
59
|
-
item->setRenameEnabled( TRUE );
|
60
|
-
}
|
61
|
-
|
62
|
-
qiconview.setCaption( "Qt Example - Iconview" );
|
63
|
-
|
64
|
-
ListenDND listen_dnd( &qiconview );
|
65
|
-
QObject::connect( &qiconview, SIGNAL( dropped( QDropEvent *, const QValueList<QIconDragItem> & ) ),
|
66
|
-
&listen_dnd, SLOT( dropped( QDropEvent * ) ) );
|
67
|
-
QObject::connect( &qiconview, SIGNAL( moved() ), &listen_dnd, SLOT( moved() ) );
|
68
|
-
|
69
|
-
a.setMainWidget( &qiconview );
|
70
|
-
qiconview.show();
|
71
|
-
qiconview.resize( qiconview.sizeHint() );
|
72
|
-
|
73
|
-
return a.exec();
|
74
|
-
}
|
75
|
-
|
76
|
-
#include "main.moc"
|
1
|
+
/****************************************************************************
|
2
|
+
** $Id: qt/main.cpp 3.3.3 edited May 27 2003 $
|
3
|
+
**
|
4
|
+
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
|
5
|
+
**
|
6
|
+
** This file is part of an example program for Qt. This example
|
7
|
+
** program may be used, distributed and modified without limitation.
|
8
|
+
**
|
9
|
+
*****************************************************************************/
|
10
|
+
|
11
|
+
#include <qiconview.h>
|
12
|
+
#include <qapplication.h>
|
13
|
+
#include <qdragobject.h>
|
14
|
+
#include <qpixmap.h>
|
15
|
+
#include <qiconset.h>
|
16
|
+
|
17
|
+
#include <qmime.h>
|
18
|
+
#include <stdio.h>
|
19
|
+
|
20
|
+
class ListenDND : public QObject
|
21
|
+
{
|
22
|
+
Q_OBJECT
|
23
|
+
|
24
|
+
public:
|
25
|
+
ListenDND( QWidget *w )
|
26
|
+
: view( w )
|
27
|
+
{}
|
28
|
+
|
29
|
+
public slots:
|
30
|
+
void dropped( QDropEvent *mime ) {
|
31
|
+
qDebug( "Dropped Mimesource %p into the view %p", mime, view );
|
32
|
+
qDebug( " Formats:" );
|
33
|
+
int i = 0;
|
34
|
+
const char *str = mime->format( i );
|
35
|
+
qDebug( " %s", str );
|
36
|
+
while ( str ) {
|
37
|
+
qDebug( " %s", str );
|
38
|
+
str = mime->format( ++i );
|
39
|
+
}
|
40
|
+
};
|
41
|
+
void moved() {
|
42
|
+
qDebug( "All selected items were moved to another widget" );
|
43
|
+
}
|
44
|
+
|
45
|
+
protected:
|
46
|
+
QWidget *view;
|
47
|
+
|
48
|
+
};
|
49
|
+
|
50
|
+
int main( int argc, char **argv )
|
51
|
+
{
|
52
|
+
QApplication a( argc, argv );
|
53
|
+
|
54
|
+
QIconView qiconview;
|
55
|
+
qiconview.setSelectionMode( QIconView::Extended );
|
56
|
+
|
57
|
+
for ( unsigned int i = 0; i < 3000; i++ ) {
|
58
|
+
QIconViewItem *item = new QIconViewItem( &qiconview, QString( "Item %1" ).arg( i + 1 ) );
|
59
|
+
item->setRenameEnabled( TRUE );
|
60
|
+
}
|
61
|
+
|
62
|
+
qiconview.setCaption( "Qt Example - Iconview" );
|
63
|
+
|
64
|
+
ListenDND listen_dnd( &qiconview );
|
65
|
+
QObject::connect( &qiconview, SIGNAL( dropped( QDropEvent *, const QValueList<QIconDragItem> & ) ),
|
66
|
+
&listen_dnd, SLOT( dropped( QDropEvent * ) ) );
|
67
|
+
QObject::connect( &qiconview, SIGNAL( moved() ), &listen_dnd, SLOT( moved() ) );
|
68
|
+
|
69
|
+
a.setMainWidget( &qiconview );
|
70
|
+
qiconview.show();
|
71
|
+
qiconview.resize( qiconview.sizeHint() );
|
72
|
+
|
73
|
+
return a.exec();
|
74
|
+
}
|
75
|
+
|
76
|
+
#include "main.moc"
|
data/tests/qt/iconview/prj.rb
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
require 'mxx_ru/cpp/qt'
|
2
|
-
|
3
|
-
Mxx_ru::setup_target(
|
4
|
-
Mxx_ru::Cpp::Exe_target.new( "prj.rb" ) {
|
5
|
-
|
6
|
-
threading_mode( Mxx_ru::Cpp::THREADING_MULTI )
|
7
|
-
rtl_mode( Mxx_ru::Cpp::RTL_SHARED )
|
8
|
-
|
9
|
-
target( "iconview" )
|
10
|
-
|
11
|
-
qt = generator( Mxx_ru::Cpp::Qt_gen.new( self ) )
|
12
|
-
qt.moc_result_subdir = nil
|
13
|
-
|
14
|
-
qt.cpp2moc( "main.cpp" )
|
15
|
-
|
16
|
-
cpp_source( "main.cpp" )
|
17
|
-
|
18
|
-
lib( "qt-mt333.lib" )
|
19
|
-
|
20
|
-
}
|
21
|
-
)
|
1
|
+
require 'mxx_ru/cpp/qt'
|
2
|
+
|
3
|
+
Mxx_ru::setup_target(
|
4
|
+
Mxx_ru::Cpp::Exe_target.new( "prj.rb" ) {
|
5
|
+
|
6
|
+
threading_mode( Mxx_ru::Cpp::THREADING_MULTI )
|
7
|
+
rtl_mode( Mxx_ru::Cpp::RTL_SHARED )
|
8
|
+
|
9
|
+
target( "iconview" )
|
10
|
+
|
11
|
+
qt = generator( Mxx_ru::Cpp::Qt_gen.new( self ) )
|
12
|
+
qt.moc_result_subdir = nil
|
13
|
+
|
14
|
+
qt.cpp2moc( "main.cpp" )
|
15
|
+
|
16
|
+
cpp_source( "main.cpp" )
|
17
|
+
|
18
|
+
lib( "qt-mt333.lib" )
|
19
|
+
|
20
|
+
}
|
21
|
+
)
|
data/tests/qt/toplevel/main.cpp
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
#include <qapplication.h>
|
2
|
-
#include "options.h"
|
3
|
-
|
4
|
-
int main( int argc, char ** argv )
|
5
|
-
{
|
6
|
-
QApplication a( argc, argv );
|
7
|
-
OptionsDialog dlg;
|
8
|
-
return dlg.exec();
|
9
|
-
}
|
1
|
+
#include <qapplication.h>
|
2
|
+
#include "options.h"
|
3
|
+
|
4
|
+
int main( int argc, char ** argv )
|
5
|
+
{
|
6
|
+
QApplication a( argc, argv );
|
7
|
+
OptionsDialog dlg;
|
8
|
+
return dlg.exec();
|
9
|
+
}
|
@@ -1,587 +1,587 @@
|
|
1
|
-
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
|
2
|
-
<class>OptionsDialog</class>
|
3
|
-
<widget class="QDialog">
|
4
|
-
<property name="name">
|
5
|
-
<cstring>OptionsDialog</cstring>
|
6
|
-
</property>
|
7
|
-
<property name="geometry">
|
8
|
-
<rect>
|
9
|
-
<x>0</x>
|
10
|
-
<y>0</y>
|
11
|
-
<width>371</width>
|
12
|
-
<height>482</height>
|
13
|
-
</rect>
|
14
|
-
</property>
|
15
|
-
<property name="caption">
|
16
|
-
<string>Select Options</string>
|
17
|
-
</property>
|
18
|
-
<vbox>
|
19
|
-
<property name="name">
|
20
|
-
<cstring>unnamed</cstring>
|
21
|
-
</property>
|
22
|
-
<widget class="QLayoutWidget">
|
23
|
-
<property name="name">
|
24
|
-
<cstring>layout5</cstring>
|
25
|
-
</property>
|
26
|
-
<hbox>
|
27
|
-
<property name="name">
|
28
|
-
<cstring>unnamed</cstring>
|
29
|
-
</property>
|
30
|
-
<widget class="QLayoutWidget">
|
31
|
-
<property name="name">
|
32
|
-
<cstring>layout4</cstring>
|
33
|
-
</property>
|
34
|
-
<vbox>
|
35
|
-
<property name="name">
|
36
|
-
<cstring>unnamed</cstring>
|
37
|
-
</property>
|
38
|
-
<widget class="QButtonGroup">
|
39
|
-
<property name="name">
|
40
|
-
<cstring>bgBorder</cstring>
|
41
|
-
</property>
|
42
|
-
<property name="title">
|
43
|
-
<string>&Border</string>
|
44
|
-
</property>
|
45
|
-
<property name="flat">
|
46
|
-
<bool>true</bool>
|
47
|
-
</property>
|
48
|
-
<property name="checkable">
|
49
|
-
<bool>true</bool>
|
50
|
-
</property>
|
51
|
-
<property name="whatsThis" stdset="0">
|
52
|
-
<string>Select different types of borders, or turn the border off. Windows without a border are ignored by the window manager.</string>
|
53
|
-
</property>
|
54
|
-
<vbox>
|
55
|
-
<property name="name">
|
56
|
-
<cstring>unnamed</cstring>
|
57
|
-
</property>
|
58
|
-
<widget class="QRadioButton">
|
59
|
-
<property name="name">
|
60
|
-
<cstring>rbBorderNormal</cstring>
|
61
|
-
</property>
|
62
|
-
<property name="text">
|
63
|
-
<string>&Normal</string>
|
64
|
-
</property>
|
65
|
-
<property name="accel">
|
66
|
-
<string>Alt+N</string>
|
67
|
-
</property>
|
68
|
-
<property name="checked">
|
69
|
-
<bool>true</bool>
|
70
|
-
</property>
|
71
|
-
<property name="toolTip" stdset="0">
|
72
|
-
<string>A normal border</string>
|
73
|
-
</property>
|
74
|
-
<property name="whatsThis" stdset="0">
|
75
|
-
<string>Gives the window a normal, resizable border. The window should have a layout installed to handle the resizing gracefully.</string>
|
76
|
-
</property>
|
77
|
-
</widget>
|
78
|
-
<widget class="QRadioButton">
|
79
|
-
<property name="name">
|
80
|
-
<cstring>rbBorderDialog</cstring>
|
81
|
-
</property>
|
82
|
-
<property name="text">
|
83
|
-
<string>&Dialog</string>
|
84
|
-
</property>
|
85
|
-
<property name="accel">
|
86
|
-
<string>Alt+D</string>
|
87
|
-
</property>
|
88
|
-
<property name="toolTip" stdset="0">
|
89
|
-
<string>A thin dialog border</string>
|
90
|
-
</property>
|
91
|
-
<property name="whatsThis" stdset="0">
|
92
|
-
<string>Gives the window a thin dialog border. Depending on the window manager the window will not be resizable. Use QWidget::setFixedSize() in addition to enforce a static size on all systems.</string>
|
93
|
-
</property>
|
94
|
-
</widget>
|
95
|
-
</vbox>
|
96
|
-
</widget>
|
97
|
-
<widget class="QButtonGroup">
|
98
|
-
<property name="name">
|
99
|
-
<cstring>bgTitle</cstring>
|
100
|
-
</property>
|
101
|
-
<property name="title">
|
102
|
-
<string>&Titlebar</string>
|
103
|
-
</property>
|
104
|
-
<property name="flat">
|
105
|
-
<bool>true</bool>
|
106
|
-
</property>
|
107
|
-
<property name="checkable">
|
108
|
-
<bool>true</bool>
|
109
|
-
</property>
|
110
|
-
<property name="whatsThis" stdset="0">
|
111
|
-
<string>Select different controls you want to see in the titlebar, or turn the titlebar off. Popup windows should not have a titlebar.</string>
|
112
|
-
</property>
|
113
|
-
<vbox>
|
114
|
-
<property name="name">
|
115
|
-
<cstring>unnamed</cstring>
|
116
|
-
</property>
|
117
|
-
<widget class="QCheckBox">
|
118
|
-
<property name="name">
|
119
|
-
<cstring>cbTitleSystem</cstring>
|
120
|
-
</property>
|
121
|
-
<property name="text">
|
122
|
-
<string>S&ystem Menu</string>
|
123
|
-
</property>
|
124
|
-
<property name="accel">
|
125
|
-
<string>Alt+Y</string>
|
126
|
-
</property>
|
127
|
-
<property name="checked">
|
128
|
-
<bool>true</bool>
|
129
|
-
</property>
|
130
|
-
<property name="toolTip" stdset="0">
|
131
|
-
<string>A window system menu.</string>
|
132
|
-
</property>
|
133
|
-
<property name="whatsThis" stdset="0">
|
134
|
-
<string>Adds a window system menu. Many window managers require a system menu to be able to provide minimize or maximize controls. A system menu implies a close button.</string>
|
135
|
-
</property>
|
136
|
-
</widget>
|
137
|
-
<widget class="QCheckBox">
|
138
|
-
<property name="name">
|
139
|
-
<cstring>cbTitleMinimize</cstring>
|
140
|
-
</property>
|
141
|
-
<property name="text">
|
142
|
-
<string>Minimi&ze</string>
|
143
|
-
</property>
|
144
|
-
<property name="accel">
|
145
|
-
<string>Alt+Z</string>
|
146
|
-
</property>
|
147
|
-
<property name="toolTip" stdset="0">
|
148
|
-
<string>A minimize button</string>
|
149
|
-
</property>
|
150
|
-
<property name="whatsThis" stdset="0">
|
151
|
-
<string>Adds a minimze button. This option requires a system menu on many window managers.</string>
|
152
|
-
</property>
|
153
|
-
</widget>
|
154
|
-
<widget class="QCheckBox">
|
155
|
-
<property name="name">
|
156
|
-
<cstring>cbTitleMaximize</cstring>
|
157
|
-
</property>
|
158
|
-
<property name="text">
|
159
|
-
<string>Ma&ximize</string>
|
160
|
-
</property>
|
161
|
-
<property name="accel">
|
162
|
-
<string>Alt+X</string>
|
163
|
-
</property>
|
164
|
-
<property name="toolTip" stdset="0">
|
165
|
-
<string>A maximize button</string>
|
166
|
-
</property>
|
167
|
-
<property name="whatsThis" stdset="0">
|
168
|
-
<string>Adds a maximze button. This option requires a system menu on many window managers.</string>
|
169
|
-
</property>
|
170
|
-
</widget>
|
171
|
-
<widget class="QCheckBox">
|
172
|
-
<property name="name">
|
173
|
-
<cstring>cbTitleContext</cstring>
|
174
|
-
</property>
|
175
|
-
<property name="text">
|
176
|
-
<string>&What's This</string>
|
177
|
-
</property>
|
178
|
-
<property name="accel">
|
179
|
-
<string>Alt+W</string>
|
180
|
-
</property>
|
181
|
-
<property name="toolTip" stdset="0">
|
182
|
-
<string>A context help button</string>
|
183
|
-
</property>
|
184
|
-
<property name="whatsThis" stdset="0">
|
185
|
-
<string>Adds a context help button. This option requires a system menu on many window managers, and often doesn't work together with minimize and maximize buttons.</string>
|
186
|
-
</property>
|
187
|
-
</widget>
|
188
|
-
</vbox>
|
189
|
-
</widget>
|
190
|
-
</vbox>
|
191
|
-
</widget>
|
192
|
-
<widget class="QLayoutWidget">
|
193
|
-
<property name="name">
|
194
|
-
<cstring>layout3</cstring>
|
195
|
-
</property>
|
196
|
-
<vbox>
|
197
|
-
<property name="name">
|
198
|
-
<cstring>unnamed</cstring>
|
199
|
-
</property>
|
200
|
-
<widget class="QButtonGroup">
|
201
|
-
<property name="name">
|
202
|
-
<cstring>bgBehavior</cstring>
|
203
|
-
</property>
|
204
|
-
<property name="title">
|
205
|
-
<string>Behavior</string>
|
206
|
-
</property>
|
207
|
-
<property name="flat">
|
208
|
-
<bool>true</bool>
|
209
|
-
</property>
|
210
|
-
<property name="whatsThis" stdset="0">
|
211
|
-
<string>Select different behaviors of the window in runtime.</string>
|
212
|
-
</property>
|
213
|
-
<vbox>
|
214
|
-
<property name="name">
|
215
|
-
<cstring>unnamed</cstring>
|
216
|
-
</property>
|
217
|
-
<widget class="QCheckBox">
|
218
|
-
<property name="name">
|
219
|
-
<cstring>cbBehaviorTaskbar</cstring>
|
220
|
-
</property>
|
221
|
-
<property name="text">
|
222
|
-
<string>Taskbar &Entry</string>
|
223
|
-
</property>
|
224
|
-
<property name="accel">
|
225
|
-
<string>Alt+E</string>
|
226
|
-
</property>
|
227
|
-
<property name="toolTip" stdset="0">
|
228
|
-
<string>Entry in the taskbar</string>
|
229
|
-
</property>
|
230
|
-
<property name="whatsThis" stdset="0">
|
231
|
-
<string>Gives the window a separate task bar entry.</string>
|
232
|
-
</property>
|
233
|
-
</widget>
|
234
|
-
<widget class="QCheckBox">
|
235
|
-
<property name="name">
|
236
|
-
<cstring>cbBehaviorStays</cstring>
|
237
|
-
</property>
|
238
|
-
<property name="text">
|
239
|
-
<string>Stays on T&op</string>
|
240
|
-
</property>
|
241
|
-
<property name="accel">
|
242
|
-
<string>Alt+O</string>
|
243
|
-
</property>
|
244
|
-
<property name="toolTip" stdset="0">
|
245
|
-
<string>Stay on top of the desktop</string>
|
246
|
-
</property>
|
247
|
-
<property name="whatsThis" stdset="0">
|
248
|
-
<string>Informs the window system that the window should stay on top of all other windows, including windows from other applications. This is not supported on all X11 window managers.</string>
|
249
|
-
</property>
|
250
|
-
</widget>
|
251
|
-
<widget class="QCheckBox">
|
252
|
-
<property name="name">
|
253
|
-
<cstring>cbBehaviorPopup</cstring>
|
254
|
-
</property>
|
255
|
-
<property name="enabled">
|
256
|
-
<bool>false</bool>
|
257
|
-
</property>
|
258
|
-
<property name="text">
|
259
|
-
<string>&Popup</string>
|
260
|
-
</property>
|
261
|
-
<property name="accel">
|
262
|
-
<string>Alt+P</string>
|
263
|
-
</property>
|
264
|
-
<property name="toolTip" stdset="0">
|
265
|
-
<string>A popup window</string>
|
266
|
-
</property>
|
267
|
-
<property name="whatsThis" stdset="0">
|
268
|
-
<string>Indicates that this widget is a popup window. Popup windows are modal, but close automatically when the mouse is clicked.</string>
|
269
|
-
</property>
|
270
|
-
</widget>
|
271
|
-
<widget class="QCheckBox">
|
272
|
-
<property name="name">
|
273
|
-
<cstring>cbBehaviorTool</cstring>
|
274
|
-
</property>
|
275
|
-
<property name="text">
|
276
|
-
<string>Too&l</string>
|
277
|
-
</property>
|
278
|
-
<property name="accel">
|
279
|
-
<string>Alt+L</string>
|
280
|
-
</property>
|
281
|
-
<property name="toolTip" stdset="0">
|
282
|
-
<string>A tool window</string>
|
283
|
-
</property>
|
284
|
-
<property name="whatsThis" stdset="0">
|
285
|
-
<string>Makes the window a tool window. Tool windows often have a smaller titlebar and decoration, and don't activate automtically when displayed. Tool windows often cannot have their own taskbar entry.</string>
|
286
|
-
</property>
|
287
|
-
</widget>
|
288
|
-
<widget class="QCheckBox">
|
289
|
-
<property name="name">
|
290
|
-
<cstring>cbBehaviorModal</cstring>
|
291
|
-
</property>
|
292
|
-
<property name="text">
|
293
|
-
<string>&Modal</string>
|
294
|
-
</property>
|
295
|
-
<property name="accel">
|
296
|
-
<string>Alt+M</string>
|
297
|
-
</property>
|
298
|
-
<property name="toolTip" stdset="0">
|
299
|
-
<string>Show modal</string>
|
300
|
-
</property>
|
301
|
-
<property name="whatsThis" stdset="0">
|
302
|
-
<string>The window is modal for the application, e.g. input for other windows are blocked by this window.</string>
|
303
|
-
</property>
|
304
|
-
</widget>
|
305
|
-
</vbox>
|
306
|
-
</widget>
|
307
|
-
<spacer>
|
308
|
-
<property name="name">
|
309
|
-
<cstring>spacer2</cstring>
|
310
|
-
</property>
|
311
|
-
<property name="orientation">
|
312
|
-
<enum>Vertical</enum>
|
313
|
-
</property>
|
314
|
-
<property name="sizeType">
|
315
|
-
<enum>Expanding</enum>
|
316
|
-
</property>
|
317
|
-
<property name="sizeHint">
|
318
|
-
<size>
|
319
|
-
<width>20</width>
|
320
|
-
<height>31</height>
|
321
|
-
</size>
|
322
|
-
</property>
|
323
|
-
</spacer>
|
324
|
-
</vbox>
|
325
|
-
</widget>
|
326
|
-
</hbox>
|
327
|
-
</widget>
|
328
|
-
<widget class="QGroupBox">
|
329
|
-
<property name="name">
|
330
|
-
<cstring>gbProperties</cstring>
|
331
|
-
</property>
|
332
|
-
<property name="title">
|
333
|
-
<string>Properties</string>
|
334
|
-
</property>
|
335
|
-
<property name="flat">
|
336
|
-
<bool>true</bool>
|
337
|
-
</property>
|
338
|
-
<property name="whatsThis" stdset="0">
|
339
|
-
<string>Set other properties of the window.</string>
|
340
|
-
</property>
|
341
|
-
<grid>
|
342
|
-
<property name="name">
|
343
|
-
<cstring>unnamed</cstring>
|
344
|
-
</property>
|
345
|
-
<widget class="QLineEdit" row="0" column="1">
|
346
|
-
<property name="name">
|
347
|
-
<cstring>leCaption</cstring>
|
348
|
-
</property>
|
349
|
-
<property name="text">
|
350
|
-
<string>Caption</string>
|
351
|
-
</property>
|
352
|
-
<property name="toolTip" stdset="0">
|
353
|
-
<string>Window caption</string>
|
354
|
-
</property>
|
355
|
-
<property name="whatsThis" stdset="0">
|
356
|
-
<string>The caption of the window.</string>
|
357
|
-
</property>
|
358
|
-
</widget>
|
359
|
-
<widget class="QLayoutWidget" row="1" column="1">
|
360
|
-
<property name="name">
|
361
|
-
<cstring>layout2</cstring>
|
362
|
-
</property>
|
363
|
-
<hbox>
|
364
|
-
<property name="name">
|
365
|
-
<cstring>unnamed</cstring>
|
366
|
-
</property>
|
367
|
-
<widget class="QLineEdit">
|
368
|
-
<property name="name">
|
369
|
-
<cstring>leIcon</cstring>
|
370
|
-
</property>
|
371
|
-
<property name="toolTip" stdset="0">
|
372
|
-
<string>Icon file</string>
|
373
|
-
</property>
|
374
|
-
<property name="whatsThis" stdset="0">
|
375
|
-
<string>Provide an image file.</string>
|
376
|
-
</property>
|
377
|
-
</widget>
|
378
|
-
<widget class="QToolButton">
|
379
|
-
<property name="name">
|
380
|
-
<cstring>tbPick</cstring>
|
381
|
-
</property>
|
382
|
-
<property name="text">
|
383
|
-
<string>...</string>
|
384
|
-
</property>
|
385
|
-
<property name="toolTip" stdset="0">
|
386
|
-
<string>Pick an icon</string>
|
387
|
-
</property>
|
388
|
-
<property name="whatsThis" stdset="0">
|
389
|
-
<string>Select an image file.</string>
|
390
|
-
</property>
|
391
|
-
</widget>
|
392
|
-
</hbox>
|
393
|
-
</widget>
|
394
|
-
<widget class="QSlider" row="2" column="1">
|
395
|
-
<property name="name">
|
396
|
-
<cstring>slTransparency</cstring>
|
397
|
-
</property>
|
398
|
-
<property name="maxValue">
|
399
|
-
<number>100</number>
|
400
|
-
</property>
|
401
|
-
<property name="pageStep">
|
402
|
-
<number>10</number>
|
403
|
-
</property>
|
404
|
-
<property name="orientation">
|
405
|
-
<enum>Horizontal</enum>
|
406
|
-
</property>
|
407
|
-
<property name="tickmarks">
|
408
|
-
<enum>Below</enum>
|
409
|
-
</property>
|
410
|
-
<property name="tickInterval">
|
411
|
-
<number>10</number>
|
412
|
-
</property>
|
413
|
-
<property name="toolTip" stdset="0">
|
414
|
-
<string>Window transparency</string>
|
415
|
-
</property>
|
416
|
-
<property name="whatsThis" stdset="0">
|
417
|
-
<string>Set the transparency of the window.
|
418
|
-
A high value gives a high window transparency, e.g. it is less visible.
|
419
|
-
|
420
|
-
Note that this attribute is not supported on many windowing systems and will have no effect.</string>
|
421
|
-
</property>
|
422
|
-
</widget>
|
423
|
-
<widget class="QLabel" row="2" column="0">
|
424
|
-
<property name="name">
|
425
|
-
<cstring>textLabel3</cstring>
|
426
|
-
</property>
|
427
|
-
<property name="text">
|
428
|
-
<string>Transp&arency:</string>
|
429
|
-
</property>
|
430
|
-
<property name="buddy" stdset="0">
|
431
|
-
<cstring>slTransparency</cstring>
|
432
|
-
</property>
|
433
|
-
</widget>
|
434
|
-
<widget class="QLabel" row="1" column="0">
|
435
|
-
<property name="name">
|
436
|
-
<cstring>textLabel2</cstring>
|
437
|
-
</property>
|
438
|
-
<property name="text">
|
439
|
-
<string>&Icon:</string>
|
440
|
-
</property>
|
441
|
-
<property name="buddy" stdset="0">
|
442
|
-
<cstring>leIcon</cstring>
|
443
|
-
</property>
|
444
|
-
</widget>
|
445
|
-
<widget class="QLabel" row="0" column="0">
|
446
|
-
<property name="name">
|
447
|
-
<cstring>textLabel1</cstring>
|
448
|
-
</property>
|
449
|
-
<property name="text">
|
450
|
-
<string>&Caption:</string>
|
451
|
-
</property>
|
452
|
-
<property name="buddy" stdset="0">
|
453
|
-
<cstring>leCaption</cstring>
|
454
|
-
</property>
|
455
|
-
</widget>
|
456
|
-
</grid>
|
457
|
-
</widget>
|
458
|
-
<widget class="QLayoutWidget">
|
459
|
-
<property name="name">
|
460
|
-
<cstring>layout1</cstring>
|
461
|
-
</property>
|
462
|
-
<hbox>
|
463
|
-
<property name="name">
|
464
|
-
<cstring>unnamed</cstring>
|
465
|
-
</property>
|
466
|
-
<spacer>
|
467
|
-
<property name="name">
|
468
|
-
<cstring>spacer1</cstring>
|
469
|
-
</property>
|
470
|
-
<property name="orientation">
|
471
|
-
<enum>Horizontal</enum>
|
472
|
-
</property>
|
473
|
-
<property name="sizeType">
|
474
|
-
<enum>Expanding</enum>
|
475
|
-
</property>
|
476
|
-
<property name="sizeHint">
|
477
|
-
<size>
|
478
|
-
<width>70</width>
|
479
|
-
<height>21</height>
|
480
|
-
</size>
|
481
|
-
</property>
|
482
|
-
</spacer>
|
483
|
-
<widget class="QPushButton">
|
484
|
-
<property name="name">
|
485
|
-
<cstring>pbApply</cstring>
|
486
|
-
</property>
|
487
|
-
<property name="text">
|
488
|
-
<string>Apply</string>
|
489
|
-
</property>
|
490
|
-
<property name="accel">
|
491
|
-
<string></string>
|
492
|
-
</property>
|
493
|
-
<property name="default">
|
494
|
-
<bool>true</bool>
|
495
|
-
</property>
|
496
|
-
<property name="whatsThis" stdset="0">
|
497
|
-
<string>Creates a new window with the selected flags, or modifies the visible window.</string>
|
498
|
-
</property>
|
499
|
-
</widget>
|
500
|
-
<widget class="QPushButton">
|
501
|
-
<property name="name">
|
502
|
-
<cstring>pbClose</cstring>
|
503
|
-
</property>
|
504
|
-
<property name="text">
|
505
|
-
<string>Close</string>
|
506
|
-
</property>
|
507
|
-
<property name="accel">
|
508
|
-
<string></string>
|
509
|
-
</property>
|
510
|
-
<property name="whatsThis" stdset="0">
|
511
|
-
<string>Closes this dialog and exits the application.</string>
|
512
|
-
</property>
|
513
|
-
</widget>
|
514
|
-
</hbox>
|
515
|
-
</widget>
|
516
|
-
</vbox>
|
517
|
-
</widget>
|
518
|
-
<connections>
|
519
|
-
<connection>
|
520
|
-
<sender>pbClose</sender>
|
521
|
-
<signal>clicked()</signal>
|
522
|
-
<receiver>OptionsDialog</receiver>
|
523
|
-
<slot>close()</slot>
|
524
|
-
</connection>
|
525
|
-
<connection>
|
526
|
-
<sender>pbApply</sender>
|
527
|
-
<signal>clicked()</signal>
|
528
|
-
<receiver>OptionsDialog</receiver>
|
529
|
-
<slot>apply()</slot>
|
530
|
-
</connection>
|
531
|
-
<connection>
|
532
|
-
<sender>bgBorder</sender>
|
533
|
-
<signal>toggled(bool)</signal>
|
534
|
-
<receiver>bgTitle</receiver>
|
535
|
-
<slot>setEnabled(bool)</slot>
|
536
|
-
</connection>
|
537
|
-
<connection>
|
538
|
-
<sender>cbTitleSystem</sender>
|
539
|
-
<signal>toggled(bool)</signal>
|
540
|
-
<receiver>cbTitleMinimize</receiver>
|
541
|
-
<slot>setEnabled(bool)</slot>
|
542
|
-
</connection>
|
543
|
-
<connection>
|
544
|
-
<sender>cbTitleSystem</sender>
|
545
|
-
<signal>toggled(bool)</signal>
|
546
|
-
<receiver>cbTitleMaximize</receiver>
|
547
|
-
<slot>setEnabled(bool)</slot>
|
548
|
-
</connection>
|
549
|
-
<connection>
|
550
|
-
<sender>cbTitleSystem</sender>
|
551
|
-
<signal>toggled(bool)</signal>
|
552
|
-
<receiver>cbTitleContext</receiver>
|
553
|
-
<slot>setEnabled(bool)</slot>
|
554
|
-
</connection>
|
555
|
-
<connection>
|
556
|
-
<sender>bgTitle</sender>
|
557
|
-
<signal>toggled(bool)</signal>
|
558
|
-
<receiver>cbBehaviorPopup</receiver>
|
559
|
-
<slot>setDisabled(bool)</slot>
|
560
|
-
</connection>
|
561
|
-
<connection>
|
562
|
-
<sender>cbBehaviorPopup</sender>
|
563
|
-
<signal>toggled(bool)</signal>
|
564
|
-
<receiver>bgTitle</receiver>
|
565
|
-
<slot>setDisabled(bool)</slot>
|
566
|
-
</connection>
|
567
|
-
<connection>
|
568
|
-
<sender>tbPick</sender>
|
569
|
-
<signal>clicked()</signal>
|
570
|
-
<receiver>OptionsDialog</receiver>
|
571
|
-
<slot>pickIcon()</slot>
|
572
|
-
</connection>
|
573
|
-
</connections>
|
574
|
-
<includes>
|
575
|
-
<include location="global" impldecl="in declaration">qguardedptr.h</include>
|
576
|
-
<include location="global" impldecl="in declaration">qvbox.h</include>
|
577
|
-
<include location="global" impldecl="in implementation">qfiledialog.h</include>
|
578
|
-
</includes>
|
579
|
-
<variables>
|
580
|
-
<variable access="private">QGuardedPtr<QVBox> widget;</variable>
|
581
|
-
</variables>
|
582
|
-
<slots>
|
583
|
-
<slot>apply()</slot>
|
584
|
-
<slot access="protected">pickIcon()</slot>
|
585
|
-
</slots>
|
586
|
-
<layoutdefaults spacing="6" margin="11"/>
|
587
|
-
</UI>
|
1
|
+
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
|
2
|
+
<class>OptionsDialog</class>
|
3
|
+
<widget class="QDialog">
|
4
|
+
<property name="name">
|
5
|
+
<cstring>OptionsDialog</cstring>
|
6
|
+
</property>
|
7
|
+
<property name="geometry">
|
8
|
+
<rect>
|
9
|
+
<x>0</x>
|
10
|
+
<y>0</y>
|
11
|
+
<width>371</width>
|
12
|
+
<height>482</height>
|
13
|
+
</rect>
|
14
|
+
</property>
|
15
|
+
<property name="caption">
|
16
|
+
<string>Select Options</string>
|
17
|
+
</property>
|
18
|
+
<vbox>
|
19
|
+
<property name="name">
|
20
|
+
<cstring>unnamed</cstring>
|
21
|
+
</property>
|
22
|
+
<widget class="QLayoutWidget">
|
23
|
+
<property name="name">
|
24
|
+
<cstring>layout5</cstring>
|
25
|
+
</property>
|
26
|
+
<hbox>
|
27
|
+
<property name="name">
|
28
|
+
<cstring>unnamed</cstring>
|
29
|
+
</property>
|
30
|
+
<widget class="QLayoutWidget">
|
31
|
+
<property name="name">
|
32
|
+
<cstring>layout4</cstring>
|
33
|
+
</property>
|
34
|
+
<vbox>
|
35
|
+
<property name="name">
|
36
|
+
<cstring>unnamed</cstring>
|
37
|
+
</property>
|
38
|
+
<widget class="QButtonGroup">
|
39
|
+
<property name="name">
|
40
|
+
<cstring>bgBorder</cstring>
|
41
|
+
</property>
|
42
|
+
<property name="title">
|
43
|
+
<string>&Border</string>
|
44
|
+
</property>
|
45
|
+
<property name="flat">
|
46
|
+
<bool>true</bool>
|
47
|
+
</property>
|
48
|
+
<property name="checkable">
|
49
|
+
<bool>true</bool>
|
50
|
+
</property>
|
51
|
+
<property name="whatsThis" stdset="0">
|
52
|
+
<string>Select different types of borders, or turn the border off. Windows without a border are ignored by the window manager.</string>
|
53
|
+
</property>
|
54
|
+
<vbox>
|
55
|
+
<property name="name">
|
56
|
+
<cstring>unnamed</cstring>
|
57
|
+
</property>
|
58
|
+
<widget class="QRadioButton">
|
59
|
+
<property name="name">
|
60
|
+
<cstring>rbBorderNormal</cstring>
|
61
|
+
</property>
|
62
|
+
<property name="text">
|
63
|
+
<string>&Normal</string>
|
64
|
+
</property>
|
65
|
+
<property name="accel">
|
66
|
+
<string>Alt+N</string>
|
67
|
+
</property>
|
68
|
+
<property name="checked">
|
69
|
+
<bool>true</bool>
|
70
|
+
</property>
|
71
|
+
<property name="toolTip" stdset="0">
|
72
|
+
<string>A normal border</string>
|
73
|
+
</property>
|
74
|
+
<property name="whatsThis" stdset="0">
|
75
|
+
<string>Gives the window a normal, resizable border. The window should have a layout installed to handle the resizing gracefully.</string>
|
76
|
+
</property>
|
77
|
+
</widget>
|
78
|
+
<widget class="QRadioButton">
|
79
|
+
<property name="name">
|
80
|
+
<cstring>rbBorderDialog</cstring>
|
81
|
+
</property>
|
82
|
+
<property name="text">
|
83
|
+
<string>&Dialog</string>
|
84
|
+
</property>
|
85
|
+
<property name="accel">
|
86
|
+
<string>Alt+D</string>
|
87
|
+
</property>
|
88
|
+
<property name="toolTip" stdset="0">
|
89
|
+
<string>A thin dialog border</string>
|
90
|
+
</property>
|
91
|
+
<property name="whatsThis" stdset="0">
|
92
|
+
<string>Gives the window a thin dialog border. Depending on the window manager the window will not be resizable. Use QWidget::setFixedSize() in addition to enforce a static size on all systems.</string>
|
93
|
+
</property>
|
94
|
+
</widget>
|
95
|
+
</vbox>
|
96
|
+
</widget>
|
97
|
+
<widget class="QButtonGroup">
|
98
|
+
<property name="name">
|
99
|
+
<cstring>bgTitle</cstring>
|
100
|
+
</property>
|
101
|
+
<property name="title">
|
102
|
+
<string>&Titlebar</string>
|
103
|
+
</property>
|
104
|
+
<property name="flat">
|
105
|
+
<bool>true</bool>
|
106
|
+
</property>
|
107
|
+
<property name="checkable">
|
108
|
+
<bool>true</bool>
|
109
|
+
</property>
|
110
|
+
<property name="whatsThis" stdset="0">
|
111
|
+
<string>Select different controls you want to see in the titlebar, or turn the titlebar off. Popup windows should not have a titlebar.</string>
|
112
|
+
</property>
|
113
|
+
<vbox>
|
114
|
+
<property name="name">
|
115
|
+
<cstring>unnamed</cstring>
|
116
|
+
</property>
|
117
|
+
<widget class="QCheckBox">
|
118
|
+
<property name="name">
|
119
|
+
<cstring>cbTitleSystem</cstring>
|
120
|
+
</property>
|
121
|
+
<property name="text">
|
122
|
+
<string>S&ystem Menu</string>
|
123
|
+
</property>
|
124
|
+
<property name="accel">
|
125
|
+
<string>Alt+Y</string>
|
126
|
+
</property>
|
127
|
+
<property name="checked">
|
128
|
+
<bool>true</bool>
|
129
|
+
</property>
|
130
|
+
<property name="toolTip" stdset="0">
|
131
|
+
<string>A window system menu.</string>
|
132
|
+
</property>
|
133
|
+
<property name="whatsThis" stdset="0">
|
134
|
+
<string>Adds a window system menu. Many window managers require a system menu to be able to provide minimize or maximize controls. A system menu implies a close button.</string>
|
135
|
+
</property>
|
136
|
+
</widget>
|
137
|
+
<widget class="QCheckBox">
|
138
|
+
<property name="name">
|
139
|
+
<cstring>cbTitleMinimize</cstring>
|
140
|
+
</property>
|
141
|
+
<property name="text">
|
142
|
+
<string>Minimi&ze</string>
|
143
|
+
</property>
|
144
|
+
<property name="accel">
|
145
|
+
<string>Alt+Z</string>
|
146
|
+
</property>
|
147
|
+
<property name="toolTip" stdset="0">
|
148
|
+
<string>A minimize button</string>
|
149
|
+
</property>
|
150
|
+
<property name="whatsThis" stdset="0">
|
151
|
+
<string>Adds a minimze button. This option requires a system menu on many window managers.</string>
|
152
|
+
</property>
|
153
|
+
</widget>
|
154
|
+
<widget class="QCheckBox">
|
155
|
+
<property name="name">
|
156
|
+
<cstring>cbTitleMaximize</cstring>
|
157
|
+
</property>
|
158
|
+
<property name="text">
|
159
|
+
<string>Ma&ximize</string>
|
160
|
+
</property>
|
161
|
+
<property name="accel">
|
162
|
+
<string>Alt+X</string>
|
163
|
+
</property>
|
164
|
+
<property name="toolTip" stdset="0">
|
165
|
+
<string>A maximize button</string>
|
166
|
+
</property>
|
167
|
+
<property name="whatsThis" stdset="0">
|
168
|
+
<string>Adds a maximze button. This option requires a system menu on many window managers.</string>
|
169
|
+
</property>
|
170
|
+
</widget>
|
171
|
+
<widget class="QCheckBox">
|
172
|
+
<property name="name">
|
173
|
+
<cstring>cbTitleContext</cstring>
|
174
|
+
</property>
|
175
|
+
<property name="text">
|
176
|
+
<string>&What's This</string>
|
177
|
+
</property>
|
178
|
+
<property name="accel">
|
179
|
+
<string>Alt+W</string>
|
180
|
+
</property>
|
181
|
+
<property name="toolTip" stdset="0">
|
182
|
+
<string>A context help button</string>
|
183
|
+
</property>
|
184
|
+
<property name="whatsThis" stdset="0">
|
185
|
+
<string>Adds a context help button. This option requires a system menu on many window managers, and often doesn't work together with minimize and maximize buttons.</string>
|
186
|
+
</property>
|
187
|
+
</widget>
|
188
|
+
</vbox>
|
189
|
+
</widget>
|
190
|
+
</vbox>
|
191
|
+
</widget>
|
192
|
+
<widget class="QLayoutWidget">
|
193
|
+
<property name="name">
|
194
|
+
<cstring>layout3</cstring>
|
195
|
+
</property>
|
196
|
+
<vbox>
|
197
|
+
<property name="name">
|
198
|
+
<cstring>unnamed</cstring>
|
199
|
+
</property>
|
200
|
+
<widget class="QButtonGroup">
|
201
|
+
<property name="name">
|
202
|
+
<cstring>bgBehavior</cstring>
|
203
|
+
</property>
|
204
|
+
<property name="title">
|
205
|
+
<string>Behavior</string>
|
206
|
+
</property>
|
207
|
+
<property name="flat">
|
208
|
+
<bool>true</bool>
|
209
|
+
</property>
|
210
|
+
<property name="whatsThis" stdset="0">
|
211
|
+
<string>Select different behaviors of the window in runtime.</string>
|
212
|
+
</property>
|
213
|
+
<vbox>
|
214
|
+
<property name="name">
|
215
|
+
<cstring>unnamed</cstring>
|
216
|
+
</property>
|
217
|
+
<widget class="QCheckBox">
|
218
|
+
<property name="name">
|
219
|
+
<cstring>cbBehaviorTaskbar</cstring>
|
220
|
+
</property>
|
221
|
+
<property name="text">
|
222
|
+
<string>Taskbar &Entry</string>
|
223
|
+
</property>
|
224
|
+
<property name="accel">
|
225
|
+
<string>Alt+E</string>
|
226
|
+
</property>
|
227
|
+
<property name="toolTip" stdset="0">
|
228
|
+
<string>Entry in the taskbar</string>
|
229
|
+
</property>
|
230
|
+
<property name="whatsThis" stdset="0">
|
231
|
+
<string>Gives the window a separate task bar entry.</string>
|
232
|
+
</property>
|
233
|
+
</widget>
|
234
|
+
<widget class="QCheckBox">
|
235
|
+
<property name="name">
|
236
|
+
<cstring>cbBehaviorStays</cstring>
|
237
|
+
</property>
|
238
|
+
<property name="text">
|
239
|
+
<string>Stays on T&op</string>
|
240
|
+
</property>
|
241
|
+
<property name="accel">
|
242
|
+
<string>Alt+O</string>
|
243
|
+
</property>
|
244
|
+
<property name="toolTip" stdset="0">
|
245
|
+
<string>Stay on top of the desktop</string>
|
246
|
+
</property>
|
247
|
+
<property name="whatsThis" stdset="0">
|
248
|
+
<string>Informs the window system that the window should stay on top of all other windows, including windows from other applications. This is not supported on all X11 window managers.</string>
|
249
|
+
</property>
|
250
|
+
</widget>
|
251
|
+
<widget class="QCheckBox">
|
252
|
+
<property name="name">
|
253
|
+
<cstring>cbBehaviorPopup</cstring>
|
254
|
+
</property>
|
255
|
+
<property name="enabled">
|
256
|
+
<bool>false</bool>
|
257
|
+
</property>
|
258
|
+
<property name="text">
|
259
|
+
<string>&Popup</string>
|
260
|
+
</property>
|
261
|
+
<property name="accel">
|
262
|
+
<string>Alt+P</string>
|
263
|
+
</property>
|
264
|
+
<property name="toolTip" stdset="0">
|
265
|
+
<string>A popup window</string>
|
266
|
+
</property>
|
267
|
+
<property name="whatsThis" stdset="0">
|
268
|
+
<string>Indicates that this widget is a popup window. Popup windows are modal, but close automatically when the mouse is clicked.</string>
|
269
|
+
</property>
|
270
|
+
</widget>
|
271
|
+
<widget class="QCheckBox">
|
272
|
+
<property name="name">
|
273
|
+
<cstring>cbBehaviorTool</cstring>
|
274
|
+
</property>
|
275
|
+
<property name="text">
|
276
|
+
<string>Too&l</string>
|
277
|
+
</property>
|
278
|
+
<property name="accel">
|
279
|
+
<string>Alt+L</string>
|
280
|
+
</property>
|
281
|
+
<property name="toolTip" stdset="0">
|
282
|
+
<string>A tool window</string>
|
283
|
+
</property>
|
284
|
+
<property name="whatsThis" stdset="0">
|
285
|
+
<string>Makes the window a tool window. Tool windows often have a smaller titlebar and decoration, and don't activate automtically when displayed. Tool windows often cannot have their own taskbar entry.</string>
|
286
|
+
</property>
|
287
|
+
</widget>
|
288
|
+
<widget class="QCheckBox">
|
289
|
+
<property name="name">
|
290
|
+
<cstring>cbBehaviorModal</cstring>
|
291
|
+
</property>
|
292
|
+
<property name="text">
|
293
|
+
<string>&Modal</string>
|
294
|
+
</property>
|
295
|
+
<property name="accel">
|
296
|
+
<string>Alt+M</string>
|
297
|
+
</property>
|
298
|
+
<property name="toolTip" stdset="0">
|
299
|
+
<string>Show modal</string>
|
300
|
+
</property>
|
301
|
+
<property name="whatsThis" stdset="0">
|
302
|
+
<string>The window is modal for the application, e.g. input for other windows are blocked by this window.</string>
|
303
|
+
</property>
|
304
|
+
</widget>
|
305
|
+
</vbox>
|
306
|
+
</widget>
|
307
|
+
<spacer>
|
308
|
+
<property name="name">
|
309
|
+
<cstring>spacer2</cstring>
|
310
|
+
</property>
|
311
|
+
<property name="orientation">
|
312
|
+
<enum>Vertical</enum>
|
313
|
+
</property>
|
314
|
+
<property name="sizeType">
|
315
|
+
<enum>Expanding</enum>
|
316
|
+
</property>
|
317
|
+
<property name="sizeHint">
|
318
|
+
<size>
|
319
|
+
<width>20</width>
|
320
|
+
<height>31</height>
|
321
|
+
</size>
|
322
|
+
</property>
|
323
|
+
</spacer>
|
324
|
+
</vbox>
|
325
|
+
</widget>
|
326
|
+
</hbox>
|
327
|
+
</widget>
|
328
|
+
<widget class="QGroupBox">
|
329
|
+
<property name="name">
|
330
|
+
<cstring>gbProperties</cstring>
|
331
|
+
</property>
|
332
|
+
<property name="title">
|
333
|
+
<string>Properties</string>
|
334
|
+
</property>
|
335
|
+
<property name="flat">
|
336
|
+
<bool>true</bool>
|
337
|
+
</property>
|
338
|
+
<property name="whatsThis" stdset="0">
|
339
|
+
<string>Set other properties of the window.</string>
|
340
|
+
</property>
|
341
|
+
<grid>
|
342
|
+
<property name="name">
|
343
|
+
<cstring>unnamed</cstring>
|
344
|
+
</property>
|
345
|
+
<widget class="QLineEdit" row="0" column="1">
|
346
|
+
<property name="name">
|
347
|
+
<cstring>leCaption</cstring>
|
348
|
+
</property>
|
349
|
+
<property name="text">
|
350
|
+
<string>Caption</string>
|
351
|
+
</property>
|
352
|
+
<property name="toolTip" stdset="0">
|
353
|
+
<string>Window caption</string>
|
354
|
+
</property>
|
355
|
+
<property name="whatsThis" stdset="0">
|
356
|
+
<string>The caption of the window.</string>
|
357
|
+
</property>
|
358
|
+
</widget>
|
359
|
+
<widget class="QLayoutWidget" row="1" column="1">
|
360
|
+
<property name="name">
|
361
|
+
<cstring>layout2</cstring>
|
362
|
+
</property>
|
363
|
+
<hbox>
|
364
|
+
<property name="name">
|
365
|
+
<cstring>unnamed</cstring>
|
366
|
+
</property>
|
367
|
+
<widget class="QLineEdit">
|
368
|
+
<property name="name">
|
369
|
+
<cstring>leIcon</cstring>
|
370
|
+
</property>
|
371
|
+
<property name="toolTip" stdset="0">
|
372
|
+
<string>Icon file</string>
|
373
|
+
</property>
|
374
|
+
<property name="whatsThis" stdset="0">
|
375
|
+
<string>Provide an image file.</string>
|
376
|
+
</property>
|
377
|
+
</widget>
|
378
|
+
<widget class="QToolButton">
|
379
|
+
<property name="name">
|
380
|
+
<cstring>tbPick</cstring>
|
381
|
+
</property>
|
382
|
+
<property name="text">
|
383
|
+
<string>...</string>
|
384
|
+
</property>
|
385
|
+
<property name="toolTip" stdset="0">
|
386
|
+
<string>Pick an icon</string>
|
387
|
+
</property>
|
388
|
+
<property name="whatsThis" stdset="0">
|
389
|
+
<string>Select an image file.</string>
|
390
|
+
</property>
|
391
|
+
</widget>
|
392
|
+
</hbox>
|
393
|
+
</widget>
|
394
|
+
<widget class="QSlider" row="2" column="1">
|
395
|
+
<property name="name">
|
396
|
+
<cstring>slTransparency</cstring>
|
397
|
+
</property>
|
398
|
+
<property name="maxValue">
|
399
|
+
<number>100</number>
|
400
|
+
</property>
|
401
|
+
<property name="pageStep">
|
402
|
+
<number>10</number>
|
403
|
+
</property>
|
404
|
+
<property name="orientation">
|
405
|
+
<enum>Horizontal</enum>
|
406
|
+
</property>
|
407
|
+
<property name="tickmarks">
|
408
|
+
<enum>Below</enum>
|
409
|
+
</property>
|
410
|
+
<property name="tickInterval">
|
411
|
+
<number>10</number>
|
412
|
+
</property>
|
413
|
+
<property name="toolTip" stdset="0">
|
414
|
+
<string>Window transparency</string>
|
415
|
+
</property>
|
416
|
+
<property name="whatsThis" stdset="0">
|
417
|
+
<string>Set the transparency of the window.
|
418
|
+
A high value gives a high window transparency, e.g. it is less visible.
|
419
|
+
|
420
|
+
Note that this attribute is not supported on many windowing systems and will have no effect.</string>
|
421
|
+
</property>
|
422
|
+
</widget>
|
423
|
+
<widget class="QLabel" row="2" column="0">
|
424
|
+
<property name="name">
|
425
|
+
<cstring>textLabel3</cstring>
|
426
|
+
</property>
|
427
|
+
<property name="text">
|
428
|
+
<string>Transp&arency:</string>
|
429
|
+
</property>
|
430
|
+
<property name="buddy" stdset="0">
|
431
|
+
<cstring>slTransparency</cstring>
|
432
|
+
</property>
|
433
|
+
</widget>
|
434
|
+
<widget class="QLabel" row="1" column="0">
|
435
|
+
<property name="name">
|
436
|
+
<cstring>textLabel2</cstring>
|
437
|
+
</property>
|
438
|
+
<property name="text">
|
439
|
+
<string>&Icon:</string>
|
440
|
+
</property>
|
441
|
+
<property name="buddy" stdset="0">
|
442
|
+
<cstring>leIcon</cstring>
|
443
|
+
</property>
|
444
|
+
</widget>
|
445
|
+
<widget class="QLabel" row="0" column="0">
|
446
|
+
<property name="name">
|
447
|
+
<cstring>textLabel1</cstring>
|
448
|
+
</property>
|
449
|
+
<property name="text">
|
450
|
+
<string>&Caption:</string>
|
451
|
+
</property>
|
452
|
+
<property name="buddy" stdset="0">
|
453
|
+
<cstring>leCaption</cstring>
|
454
|
+
</property>
|
455
|
+
</widget>
|
456
|
+
</grid>
|
457
|
+
</widget>
|
458
|
+
<widget class="QLayoutWidget">
|
459
|
+
<property name="name">
|
460
|
+
<cstring>layout1</cstring>
|
461
|
+
</property>
|
462
|
+
<hbox>
|
463
|
+
<property name="name">
|
464
|
+
<cstring>unnamed</cstring>
|
465
|
+
</property>
|
466
|
+
<spacer>
|
467
|
+
<property name="name">
|
468
|
+
<cstring>spacer1</cstring>
|
469
|
+
</property>
|
470
|
+
<property name="orientation">
|
471
|
+
<enum>Horizontal</enum>
|
472
|
+
</property>
|
473
|
+
<property name="sizeType">
|
474
|
+
<enum>Expanding</enum>
|
475
|
+
</property>
|
476
|
+
<property name="sizeHint">
|
477
|
+
<size>
|
478
|
+
<width>70</width>
|
479
|
+
<height>21</height>
|
480
|
+
</size>
|
481
|
+
</property>
|
482
|
+
</spacer>
|
483
|
+
<widget class="QPushButton">
|
484
|
+
<property name="name">
|
485
|
+
<cstring>pbApply</cstring>
|
486
|
+
</property>
|
487
|
+
<property name="text">
|
488
|
+
<string>Apply</string>
|
489
|
+
</property>
|
490
|
+
<property name="accel">
|
491
|
+
<string></string>
|
492
|
+
</property>
|
493
|
+
<property name="default">
|
494
|
+
<bool>true</bool>
|
495
|
+
</property>
|
496
|
+
<property name="whatsThis" stdset="0">
|
497
|
+
<string>Creates a new window with the selected flags, or modifies the visible window.</string>
|
498
|
+
</property>
|
499
|
+
</widget>
|
500
|
+
<widget class="QPushButton">
|
501
|
+
<property name="name">
|
502
|
+
<cstring>pbClose</cstring>
|
503
|
+
</property>
|
504
|
+
<property name="text">
|
505
|
+
<string>Close</string>
|
506
|
+
</property>
|
507
|
+
<property name="accel">
|
508
|
+
<string></string>
|
509
|
+
</property>
|
510
|
+
<property name="whatsThis" stdset="0">
|
511
|
+
<string>Closes this dialog and exits the application.</string>
|
512
|
+
</property>
|
513
|
+
</widget>
|
514
|
+
</hbox>
|
515
|
+
</widget>
|
516
|
+
</vbox>
|
517
|
+
</widget>
|
518
|
+
<connections>
|
519
|
+
<connection>
|
520
|
+
<sender>pbClose</sender>
|
521
|
+
<signal>clicked()</signal>
|
522
|
+
<receiver>OptionsDialog</receiver>
|
523
|
+
<slot>close()</slot>
|
524
|
+
</connection>
|
525
|
+
<connection>
|
526
|
+
<sender>pbApply</sender>
|
527
|
+
<signal>clicked()</signal>
|
528
|
+
<receiver>OptionsDialog</receiver>
|
529
|
+
<slot>apply()</slot>
|
530
|
+
</connection>
|
531
|
+
<connection>
|
532
|
+
<sender>bgBorder</sender>
|
533
|
+
<signal>toggled(bool)</signal>
|
534
|
+
<receiver>bgTitle</receiver>
|
535
|
+
<slot>setEnabled(bool)</slot>
|
536
|
+
</connection>
|
537
|
+
<connection>
|
538
|
+
<sender>cbTitleSystem</sender>
|
539
|
+
<signal>toggled(bool)</signal>
|
540
|
+
<receiver>cbTitleMinimize</receiver>
|
541
|
+
<slot>setEnabled(bool)</slot>
|
542
|
+
</connection>
|
543
|
+
<connection>
|
544
|
+
<sender>cbTitleSystem</sender>
|
545
|
+
<signal>toggled(bool)</signal>
|
546
|
+
<receiver>cbTitleMaximize</receiver>
|
547
|
+
<slot>setEnabled(bool)</slot>
|
548
|
+
</connection>
|
549
|
+
<connection>
|
550
|
+
<sender>cbTitleSystem</sender>
|
551
|
+
<signal>toggled(bool)</signal>
|
552
|
+
<receiver>cbTitleContext</receiver>
|
553
|
+
<slot>setEnabled(bool)</slot>
|
554
|
+
</connection>
|
555
|
+
<connection>
|
556
|
+
<sender>bgTitle</sender>
|
557
|
+
<signal>toggled(bool)</signal>
|
558
|
+
<receiver>cbBehaviorPopup</receiver>
|
559
|
+
<slot>setDisabled(bool)</slot>
|
560
|
+
</connection>
|
561
|
+
<connection>
|
562
|
+
<sender>cbBehaviorPopup</sender>
|
563
|
+
<signal>toggled(bool)</signal>
|
564
|
+
<receiver>bgTitle</receiver>
|
565
|
+
<slot>setDisabled(bool)</slot>
|
566
|
+
</connection>
|
567
|
+
<connection>
|
568
|
+
<sender>tbPick</sender>
|
569
|
+
<signal>clicked()</signal>
|
570
|
+
<receiver>OptionsDialog</receiver>
|
571
|
+
<slot>pickIcon()</slot>
|
572
|
+
</connection>
|
573
|
+
</connections>
|
574
|
+
<includes>
|
575
|
+
<include location="global" impldecl="in declaration">qguardedptr.h</include>
|
576
|
+
<include location="global" impldecl="in declaration">qvbox.h</include>
|
577
|
+
<include location="global" impldecl="in implementation">qfiledialog.h</include>
|
578
|
+
</includes>
|
579
|
+
<variables>
|
580
|
+
<variable access="private">QGuardedPtr<QVBox> widget;</variable>
|
581
|
+
</variables>
|
582
|
+
<slots>
|
583
|
+
<slot>apply()</slot>
|
584
|
+
<slot access="protected">pickIcon()</slot>
|
585
|
+
</slots>
|
586
|
+
<layoutdefaults spacing="6" margin="11"/>
|
587
|
+
</UI>
|