Qt

 view release on metacpan or  search on metacpan

qtcore/tools/puic/perl/qclass_lib_map.h  view on Meta::CPAN

QT_CLASS_LIB(QAccessibleFactoryInterface, QtGui4, qaccessibleplugin.h)
QT_CLASS_LIB(QAccessiblePlugin, QtGui4, qaccessibleplugin.h)
QT_CLASS_LIB(QAccessibleWidget, QtGui4, qaccessiblewidget.h)
QT_CLASS_LIB(QAccessibleWidgetEx, QtGui4, qaccessiblewidget.h)
QT_CLASS_LIB(QAction, QtGui4, qaction.h)
QT_CLASS_LIB(QActionGroup, QtGui4, qactiongroup.h)
QT_CLASS_LIB(QApplication, QtGui4, qapplication.h)
QT_CLASS_LIB(QBoxLayout, QtGui4, qboxlayout.h)
QT_CLASS_LIB(QHBoxLayout, QtGui4, qboxlayout.h)
QT_CLASS_LIB(QVBoxLayout, QtGui4, qboxlayout.h)
QT_CLASS_LIB(QClipboard, QtGui4, qclipboard.h)
QT_CLASS_LIB(QCursor, QtGui4, qcursor.h)
QT_CLASS_LIB(QCursor, QtGui4, qcursor.h)
QT_CLASS_LIB(QCursorShape, QtGui4, qcursor.h)
QT_CLASS_LIB(QDesktopWidget, QtGui4, qdesktopwidget.h)
QT_CLASS_LIB(QDrag, QtGui4, qdrag.h)
QT_CLASS_LIB(QtEvents4, QtGui4, qevent.h)
QT_CLASS_LIB(QInputEvent, QtGui4, qevent.h)
QT_CLASS_LIB(QMouseEvent, QtGui4, qevent.h)
QT_CLASS_LIB(QHoverEvent, QtGui4, qevent.h)
QT_CLASS_LIB(QWheelEvent, QtGui4, qevent.h)

qtgui/examples/mainwindows/application/MainWindow.pm  view on Meta::CPAN


    my $exitAct = Qt::Action("E&xit", this);
    $exitAct->setShortcut(Qt::KeySequence("Ctrl+Q"));
    $exitAct->setStatusTip("Exit the application");
    this->connect($exitAct, SIGNAL 'triggered()', this, SLOT 'close()');
    this->{exitAct} = $exitAct;

    my $cutAct = Qt::Action(Qt::Icon("images/cut.png"), "Cu&t", this);
    $cutAct->setShortcut(Qt::KeySequence("Ctrl+X"));
    $cutAct->setStatusTip("Cut the current selection's contents to the " .
                            "clipboard");
    this->connect($cutAct, SIGNAL 'triggered()', $textEdit, SLOT 'cut()');
    this->{cutAct} = $cutAct;

    my $copyAct = Qt::Action(Qt::Icon("images/copy.png"), "&Copy", this);
    $copyAct->setShortcut(Qt::KeySequence("Ctrl+C"));
    $copyAct->setStatusTip("Copy the current selection's contents to the " .
                             "clipboard");
    this->connect($copyAct, SIGNAL 'triggered()', $textEdit, SLOT 'copy()');
    this->{copyAct} = $copyAct;

    my $pasteAct = Qt::Action(Qt::Icon("images/paste.png"), "&Paste", this);
    $pasteAct->setShortcut(Qt::KeySequence("Ctrl+V"));
    $pasteAct->setStatusTip("Paste the clipboard's contents into the current " .
                              "selection");
    this->connect($pasteAct, SIGNAL 'triggered()', $textEdit, SLOT 'paste()');
    this->{pasteAct} = $pasteAct;

    my $aboutAct = Qt::Action("&About", this);
    $aboutAct->setStatusTip("Show the application's About box");
    this->connect($aboutAct, SIGNAL 'triggered()', this, SLOT 'about()');
    this->{aboutAct} = $aboutAct;

    my $aboutQtAct = Qt::Action("About &Qt", this);

qtgui/examples/mainwindows/mdi/MainWindow.pm  view on Meta::CPAN

    my $exitAct = Qt::Action("E&xit", this);
    this->{exitAct} = $exitAct;
    $exitAct->setShortcut(Qt::KeySequence("Ctrl+Q"));
    $exitAct->setStatusTip("Exit the application");
    this->connect($exitAct, SIGNAL 'triggered()', Qt::qApp(), SLOT 'closeAllWindows()');

    my $cutAct = Qt::Action(Qt::Icon("images/cut.png"), "Cu&t", this);
    this->{cutAct} = $cutAct;
    $cutAct->setShortcut(Qt::KeySequence("Ctrl+X"));
    $cutAct->setStatusTip("Cut the current selection's contents to the " .
                            "clipboard");
    this->connect($cutAct, SIGNAL 'triggered()', this, SLOT 'cut()');

    my $copyAct = Qt::Action(Qt::Icon("images/copy.png"), "&Copy", this);
    this->{copyAct} = $copyAct;
    $copyAct->setShortcut(Qt::KeySequence("Ctrl+C"));
    $copyAct->setStatusTip("Copy the current selection's contents to the " .
                             "clipboard");
    this->connect($copyAct, SIGNAL 'triggered()', this, SLOT 'copy()');

    my $pasteAct = Qt::Action(Qt::Icon("images/paste.png"), "&Paste", this);
    this->{pasteAct} = $pasteAct;
    $pasteAct->setShortcut(Qt::KeySequence("Ctrl+V"));
    $pasteAct->setStatusTip("Paste the clipboard's contents into the current " .
                              "selection");
    this->connect($pasteAct, SIGNAL 'triggered()', this, SLOT 'paste()');

    my $closeAct = Qt::Action("Cl&ose", this);
    this->{closeAct} = $closeAct;
    $closeAct->setShortcut(Qt::KeySequence("Ctrl+F4"));
    $closeAct->setStatusTip("Close the active window");
    this->connect($closeAct, SIGNAL 'triggered()',
            this->{mdiArea}, SLOT 'closeActiveSubWindow()');

qtgui/examples/mainwindows/menus/MainWindow.pm  view on Meta::CPAN

    this->connect($undoAct, SIGNAL 'triggered()', this, SLOT 'undo()');

    my $redoAct = this->{redoAct} = Qt::Action(this->tr('&Redo'), this);
    $redoAct->setShortcuts(Qt::KeySequence::Redo());
    $redoAct->setStatusTip(this->tr('Redo the last operation'));
    this->connect($redoAct, SIGNAL 'triggered()', this, SLOT 'redo()');

    my $cutAct = this->{cutAct} = Qt::Action(this->tr('Cu&t'), this);
    $cutAct->setShortcuts(Qt::KeySequence::Cut());
    $cutAct->setStatusTip(this->tr('Cut the current selection\'s contents to the ' .
                            'clipboard'));
    this->connect($cutAct, SIGNAL 'triggered()', this, SLOT 'cut()');

    my $copyAct = this->{copyAct} = Qt::Action(this->tr('&Copy'), this);
    $copyAct->setShortcut(Qt::KeySequence(this->tr('Ctrl+C')));
    $copyAct->setStatusTip(this->tr('Copy the current selection\'s contents to the ' .
                             'clipboard'));
    this->connect($copyAct, SIGNAL 'triggered()', this, SLOT 'copy()');

    my $pasteAct = this->{pasteAct} = Qt::Action(this->tr('&Paste'), this);
    $pasteAct->setShortcuts(Qt::KeySequence::Paste());
    $pasteAct->setStatusTip(this->tr('Paste the clipboard\'s contents into the current ' .
                              'selection'));
    this->connect($pasteAct, SIGNAL 'triggered()', this, SLOT 'paste()');

    my $boldAct = this->{boldAct} = Qt::Action(this->tr('&Bold'), this);
    $boldAct->setCheckable(1);
    $boldAct->setShortcut(Qt::KeySequence(this->tr('Ctrl+B')));
    $boldAct->setStatusTip(this->tr('Make the text bold'));
    this->connect($boldAct, SIGNAL 'triggered()', this, SLOT 'bold()');

    my $boldFont = $boldAct->font();

qtgui/examples/mainwindows/sdi/MainWindow.pm  view on Meta::CPAN

    this->connect(this->closeAct, SIGNAL 'triggered()', this, SLOT 'close()');

    this->{exitAct} = Qt::Action(this->tr('E&xit'), this);
    this->exitAct->setShortcut(Qt::KeySequence(this->tr('Ctrl+Q')));
    this->exitAct->setStatusTip(this->tr('Exit the application'));
    this->connect(this->exitAct, SIGNAL 'triggered()', qApp, SLOT 'closeAllWindows()');

    this->{cutAct} = Qt::Action(Qt::Icon('images/cut.png'), this->tr('Cu&t'), this);
    this->cutAct->setShortcuts(Qt::KeySequence::Cut());
    this->cutAct->setStatusTip(this->tr('Cut the current selection\'s contents to the ' .
                            'clipboard'));
    this->connect(this->cutAct, SIGNAL 'triggered()', textEdit, SLOT 'cut()');

    this->{copyAct} = Qt::Action(Qt::Icon('images/copy.png'), this->tr('&Copy'), this);
    this->copyAct->setShortcuts(Qt::KeySequence::Copy());
    this->copyAct->setStatusTip(this->tr('Copy the current selection\'s contents to the ' .
                             'clipboard'));
    this->connect(this->copyAct, SIGNAL 'triggered()', textEdit, SLOT 'copy()');

    this->{pasteAct} = Qt::Action(Qt::Icon('images/paste.png'), this->tr('&Paste'), this);
    this->pasteAct->setShortcuts(Qt::KeySequence::Paste());
    this->pasteAct->setStatusTip(this->tr('Paste the clipboard\'s contents into the current ' .
                              'selection'));
    this->connect(this->pasteAct, SIGNAL 'triggered()', textEdit, SLOT 'paste()');

    this->{aboutAct} = Qt::Action(this->tr('&About'), this);
    this->aboutAct->setStatusTip(this->tr('Show the application\'s About box'));
    this->connect(this->aboutAct, SIGNAL 'triggered()', this, SLOT 'about()');

    this->{aboutQtAct} = Qt::Action(this->tr('About &Qt'), this);
    this->aboutQtAct->setStatusTip(this->tr('Show the Qt4 library\'s About box'));
    this->connect(this->aboutQtAct, SIGNAL 'triggered()', qApp, SLOT 'aboutQt()');

qtgui/examples/widgets/charactermap/MainWindow.pm  view on Meta::CPAN

    findSizes => ['QFont'],
    insertCharacter => ['QString'],
    updateClipboard => [];

use CharacterWidget;

sub characterWidget() {
    return this->{characterWidget};
}

sub clipboard() {
    return this->{clipboard};
}

sub styleCombo() {
    return this->{styleCombo};
}

sub sizeCombo() {
    return this->{sizeCombo};
}

qtgui/examples/widgets/charactermap/MainWindow.pm  view on Meta::CPAN


sub fontMerging() {
    return this->{fontMerging};
}

sub setCharacterWidget {
    return this->{characterWidget} = shift;
}

sub setClipboard {
    return this->{clipboard} = shift;
}

sub setStyleCombo {
    return this->{styleCombo} = shift;
}

sub setSizeCombo {
    return this->{sizeCombo} = shift;
}

qtgui/examples/widgets/charactermap/MainWindow.pm  view on Meta::CPAN

    this->scrollArea->setWidget(this->characterWidget);
# [0]

# [1]
    this->findStyles(this->fontCombo->currentFont());
# [1]
    this->findSizes(this->fontCombo->currentFont());

# [2]
    this->setLineEdit( Qt::LineEdit() );
    my $clipboardButton = Qt::PushButton(this->tr('&To clipboard'));
# [2]

# [3]
    this->setClipboard( Qt::Application::clipboard() );
# [3]

# [4]
    this->connect(this->fontCombo, SIGNAL 'currentFontChanged(const QFont &)',
            this, SLOT 'findStyles(const QFont &)');
    this->connect(this->fontCombo, SIGNAL 'currentFontChanged(const QFont &)',
            this, SLOT 'findSizes(const QFont &)');
    this->connect(this->fontCombo, SIGNAL 'currentFontChanged(const QFont &)',
            this->characterWidget, SLOT 'updateFont(const QFont &)');
    this->connect(this->sizeCombo, SIGNAL 'currentIndexChanged(const QString &)',
            this->characterWidget, SLOT 'updateSize(const QString &)');
    this->connect(this->styleCombo, SIGNAL 'currentIndexChanged(const QString &)',
            this->characterWidget, SLOT 'updateStyle(const QString &)');
# [4] //! [5]
    this->connect(this->characterWidget, SIGNAL 'characterSelected(const QString &)',
            this, SLOT 'insertCharacter(const QString &)');
    this->connect($clipboardButton, SIGNAL 'clicked()', this, SLOT 'updateClipboard()');
# [5]
    this->connect(this->fontMerging, SIGNAL 'toggled(bool)', this->characterWidget, SLOT 'updateFontMerging(bool)');

# [6]
    my $controlsLayout = Qt::HBoxLayout();
    $controlsLayout->addWidget($fontLabel);
    $controlsLayout->addWidget(this->fontCombo, 1);
    $controlsLayout->addWidget($sizeLabel);
    $controlsLayout->addWidget(this->sizeCombo, 1);
    $controlsLayout->addWidget($styleLabel);
    $controlsLayout->addWidget(this->styleCombo, 1);
    $controlsLayout->addWidget($fontMergingLabel);
    $controlsLayout->addWidget(this->fontMerging, 1);
    $controlsLayout->addStretch(1);

    my $lineLayout = Qt::HBoxLayout();
    $lineLayout->addWidget(this->lineEdit, 1);
    $lineLayout->addSpacing(12);
    $lineLayout->addWidget($clipboardButton);

    my $centralLayout = Qt::VBoxLayout();
    $centralLayout->addLayout($controlsLayout);
    $centralLayout->addWidget(this->scrollArea, 1);
    $centralLayout->addSpacing(4);
    $centralLayout->addLayout($lineLayout);
    $centralWidget->setLayout($centralLayout);

    this->setCentralWidget($centralWidget);
    this->setWindowTitle(this->tr('Character Map'));

qtgui/examples/widgets/charactermap/MainWindow.pm  view on Meta::CPAN

# [9]
sub insertCharacter {
    my ($character) = @_;
    this->lineEdit->insert($character);
}
# [9]

# [10]
sub updateClipboard {
# [11]
    this->clipboard->setText(this->lineEdit->text(), Qt::Clipboard::Clipboard());
# [11]
    this->clipboard->setText(this->lineEdit->text(), Qt::Clipboard::Selection());
}
# [10]

1;



( run in 1.394 second using v1.01-cache-2.11-cpan-2398b32b56e )