コード例 #1
0
ファイル: KTutorialEditor.cpp プロジェクト: KDE/ktutorial
KTutorialEditor::KTutorialEditor(): KXmlGuiWindow(0),
    mTutorial(0) {

    mTreeView = new AutoExpandableTreeView();
    mTreeView->setObjectName("centralTreeView");
    mTreeView->setWordWrap(true);
    setCentralWidget(mTreeView);

    setupDocks();

    setupActions();

    connect(mEditActions, SIGNAL(cleanChanged(bool)),
            this, SIGNAL(cleanChanged(bool)));
    connect(this, SIGNAL(cleanChanged(bool)),
            this, SLOT(handleUndoStackCleanChanged(bool)));

    //The actions can not be added in setupDocks because setupActions() needs
    //the docks to be created (to get their toggleAction), so it can be called
    //before setupDocks().
    setupActionListWidgets();

    mFileActions->newTutorial();

    ktutorial::KTutorial::self()->setup(this);

    setupGUI();
}
コード例 #2
0
ファイル: kkreditmain.cpp プロジェクト: hideki1234/Kakuro
KkrEditMain::KkrEditMain(QWidget *parent)
    : QMainWindow(parent)
{
    makeCoreWidgets();
    setupCentralPane();
    setupMainMenu();
    setupDocks();

    // connections
    connect(this, &KkrEditMain::sigNewMeta, &m_MetaData, &MetaDataManager::slCreate);
    connect(this, &KkrEditMain::sigNewBoard, &m_BoardData, &KkrBoardManager::slCreate);
}
コード例 #3
0
ファイル: miniflo.cpp プロジェクト: AlanLZY/textroom
MiniFlo::MiniFlo(QWidget *parent)
	: QDialog(parent)
{
	m_ui.setupUi(this);
	m_file = new MindMap(this);

        QPlastiqueStyle * style = new QPlastiqueStyle();
        MiniFlo::setStyle(style);

	m_ui.graphicsView->setScene(m_file->scene());
	m_ui.graphicsView->setMindmap(m_file);

	setupDocks();
	setupModel();
	setupMiniFlo();

	connect( m_ui.graphicsView, SIGNAL( reparentBlocks(Block*,Block*)),
	         m_file, SLOT(slotReparentBlocks(Block*,Block*)));
	connect( m_ui.graphicsView, SIGNAL( selectionChanged()),
	         m_file, SLOT(itemSelectionChanged()));
	connect( m_file, SIGNAL(fileLoaded( const QString& )),
	         this, SLOT(fileLoaded(const QString &)));
}