/** Constructeur @param project projet a visualiser @param parent Widget parent */ ProjectView::ProjectView(QETProject *project, QWidget *parent) : QWidget(parent), project_(0) { initActions(); initWidgets(); initLayout(); setProject(project); }
KoPAView::KoPAView( KoPADocument *document, QWidget *parent ) : KoView( document, parent ) , d( new Private( document ) ) { initGUI(); initActions(); if ( d->doc->pageCount() > 0 ) doUpdateActivePage( d->doc->pageByIndex( 0, false ) ); }
/* * The show() public SLOT, when the app is being drawn!!! * Init member variables and all UI widgets */ void MainWindow::show() { if(m_initializationCompleted == false) { restoreGeometry(SettingsManager::getWindowSize()); m_commandExecuting=ectn_NONE; m_commandQueued=ectn_NONE; m_leFilterPackage = new SearchLineEdit(this, m_hasSLocate); setWindowTitle(StrConstants::getApplicationName()); setMinimumSize(QSize(820, 520)); initTabOutput(); initTabInfo(); initTabFiles(); initTabTransaction(); initTabHelpUsage(); initTabNews(); initLineEditFilterPackages(); initPackageTreeView(); initActions(); loadSettings(); loadPanelSettings(); initStatusBar(); initToolButtonPacman(); initToolButtonAUR(); initAppIcon(); initMenuBar(); initToolBar(); initTabWidgetPropertiesIndex(); refreshDistroNews(false); if (Package::hasPacmanDatabase()) { refreshGroupsWidget(); } QMainWindow::show(); m_listOfVisitedPackages.clear(); m_indOfVisitedPackage = 0; if (Package::hasPacmanDatabase()) { metaBuildPackageList(); } // Maybe this system has never run a pacman -Syy else { doSyncDatabase(); } } else QMainWindow::show(); }
ResourceDataBrowser::ResourceDataBrowser(StorageManager *pStorageManager, QWidget *parent) : QDialog(parent), ui(new Ui::ResourceDataBrowser) { ui->setupUi(this); this->pStorageManagerAct = pStorageManager; setWindowTitle(tr("Resource Data Browser")); initActions(); setupResourceTable(); }
ViewManager::ViewManager(KAB::Core *core, QWidget *parent, const char *name) : QWidget(parent, name), mCore(core), mActiveView(0), mFilterSelectionWidget(0) { initGUI(); initActions(); mViewDict.setAutoDelete(true); createViewFactories(); }
KMMainView::KMMainView(QWidget *parent, const char *name, KActionCollection *coll) : QWidget(parent, name) { m_current = 0; m_first = true; // create widgets m_printerview = new KMPrinterView(this, "PrinterView"); m_printerpages = new KMPages(this, "PrinterPages"); m_pop = new QPopupMenu(this); m_toolbar = new KToolBar(this, "ToolBar"); m_toolbar->setMovingEnabled(false); m_plugin = new PluginComboBox(this, "Plugin"); /* m_menubar = new KMenuBar( this ); static_cast<KMenuBar*>( m_menubar )->setTopLevelMenu( false ); */ m_menubar = new KToolBar(this, "MenuBar", false, false); m_menubar->setIconText(KToolBar::IconTextRight); m_menubar->setMovingEnabled(false); // layout QVBoxLayout *m_layout = new QVBoxLayout(this, 0, 0); m_layout->addWidget(m_toolbar); m_layout->addWidget(m_menubar); m_boxlayout = new QBoxLayout(QBoxLayout::TopToBottom, 0, 0); m_layout->addLayout(m_boxlayout); m_boxlayout->addWidget(m_printerview); m_boxlayout->addWidget(m_printerpages); m_layout->addSpacing(5); m_layout->addWidget(m_plugin, 0); // connections connect(KMTimer::self(), SIGNAL(timeout()), SLOT(slotTimer())); connect(m_printerview, SIGNAL(printerSelected(const QString &)), SLOT(slotPrinterSelected(const QString &))); connect(m_printerview, SIGNAL(rightButtonClicked(const QString &, const QPoint &)), SLOT(slotRightButtonClicked(const QString &, const QPoint &))); connect(m_pop, SIGNAL(aboutToShow()), KMTimer::self(), SLOT(hold())); connect(m_pop, SIGNAL(aboutToHide()), KMTimer::self(), SLOT(release())); connect(m_manager, SIGNAL(updatePossible(bool)), SLOT(slotUpdatePossible(bool))); // actions if(coll) m_actions = coll; else m_actions = new KActionCollection(this); initActions(); // first update restoreSettings(); loadParameters(); // delay first update until KMManager is ready reset(i18n("Initializing manager..."), true, true); }
FunctionManager::FunctionManager(QWidget* parent, Doc* doc) : QWidget(parent) , m_doc(doc) , m_hsplitter(NULL) , m_vsplitter(NULL) , m_tree(NULL) , m_toolbar(NULL) , m_addSceneAction(NULL) , m_addChaserAction(NULL) , m_addCollectionAction(NULL) , m_addEFXAction(NULL) , m_addRGBMatrixAction(NULL) , m_addScriptAction(NULL) , m_addAudioAction(NULL) , m_addVideoAction(NULL) , m_autostartAction(NULL) , m_wizardAction(NULL) , m_addFolderAction(NULL) , m_cloneAction(NULL) , m_deleteAction(NULL) , m_selectAllAction(NULL) , m_editor(NULL) , m_scene_editor(NULL) { Q_ASSERT(s_instance == NULL); s_instance = this; Q_ASSERT(doc != NULL); new QVBoxLayout(this); layout()->setContentsMargins(0, 0, 0, 0); layout()->setSpacing(0); initActions(); initToolbar(); initSplitterView(); updateActionStatus(); connect(m_doc, SIGNAL(modeChanged(Doc::Mode)), this, SLOT(slotModeChanged())); m_tree->updateTree(); connect(m_doc, SIGNAL(clearing()), this, SLOT(slotDocClearing())); connect(m_doc, SIGNAL(loaded()), this, SLOT(slotDocLoaded())); connect(m_doc, SIGNAL(functionNameChanged(quint32)), this, SLOT(slotFunctionNameChanged(quint32))); connect(m_doc, SIGNAL(functionAdded(quint32)), this, SLOT(slotFunctionAdded(quint32))); QSettings settings; QVariant var = settings.value(SETTINGS_SPLITTER); if (var.isValid() == true) m_hsplitter->restoreState(var.toByteArray()); else m_hsplitter->setSizes(QList <int> () << int(this->width() / 2) << int(this->width() / 2)); }
DebuggerManager::DebuggerManager(QObject *myparent) : QObject(myparent) { initActions(); // Create objects m_breakpointList = new DebuggerBreakpointList(); m_pathmapper = new PathMapper(this, "pathmapper"); m_debuggerui = NULL; m_interface = new QuantaDebuggerInterface(this, "interface"); m_client = NULL; }
KVerbosApp::KVerbosApp(QWidget* , const char* name):KMainWindow (0, name) { // als erstes das Logo starten KStartupLogo* start_logo = new KStartupLogo(0); start_logo->show(); start_logo->raise(); // die Instanzen von kverbos zählen kverbosCounter++; config=kapp->config(); /////////////////////////////////////////////////////////////////// // call inits to invoke all other construction parts initStatusBar(); initActions(); initDocument(); initView(); readOptions(); /////////////////////////////////////////////////////////////////// // disable actions at startup // Mir ist nicht klar, warum die Autoren des Frameworks diese // Menuoptionen deaktivieren. // Ich werde hier jedenfalls gleich einmal einige auskommentieren. // fileSave->setEnabled(false); // fileSaveAs->setEnabled(false); filePrint->setEnabled(false); editCut->setEnabled(false); editCopy->setEnabled(false); editPaste->setEnabled(false); userResults->setEnabled(false); // El programa ha leído las opciones del programa. Entonces puedo iniciar el objeto // por la control de KFeeder. if (useKFeeder) { kfeederControl = new KFeederControl(kverbosCounter, showKFeederSplash, automaticKFeeder); useKFeeder = kfeederControl->isActive(); if (!useKFeeder) { // the KFeeder didn't start so it isn't installed. Delete the control object delete kfeederControl; kfeederControl = 0; }; } else kfeederControl = 0; // das Logo wieder löschen delete start_logo; }
KoPAView::KoPAView(KoPart *part, KoPADocument *document, KoPAFlags withModeBox, QWidget *parent) : KoView(part, document, parent) , d( new Private(document)) { initGUI(withModeBox); initActions(); if ( d->doc->pageCount() > 0 ) doUpdateActivePage( d->doc->pageByIndex( 0, false ) ); setAcceptDrops(true); }
MenuStyleItem::MenuStyleItem(QWidget *parent) : QDialog(parent), ui(new Ui::MenuStyleItem) { ui->setupUi(this); m_preferences = PreferencesManager::getInstance(); initActions(); setWindowFlags(Qt::FramelessWindowHint|Qt::BypassWindowManagerHint|Qt::Popup); setMouseTracking(true); }
KMixWindow::KMixWindow(bool invisible) : KXmlGuiWindow(0, Qt::WindowContextHelpButtonHint), m_multiDriverMode(false), // -<- I never-ever want the multi-drivermode to be activated by accident m_dockWidget(), m_dsm(0), m_dontSetDefaultCardOnStart(false) { setObjectName(QLatin1String("KMixWindow")); // disable delete-on-close because KMix might just sit in the background waiting for cards to be plugged in setAttribute(Qt::WA_DeleteOnClose, false); initActions(); // init actions first, so we can use them in the loadConfig() already loadConfig(); // Load config before initMixer(), e.g. due to "MultiDriver" keyword initActionsLate(); // init actions that require a loaded config KGlobal::locale()->insertCatalog(QLatin1String("kmix-controls")); initWidgets(); initPrefDlg(); DBusMixSetWrapper::initialize(this, "/Mixers"); MixerToolBox::instance()->initMixer(m_multiDriverMode, m_backendFilter, m_hwInfoString); KMixDeviceManager *theKMixDeviceManager = KMixDeviceManager::instance(); initActionsAfterInitMixer(); // init actions that require initialized mixer backend(s). recreateGUI(false); if (m_wsMixers->count() < 1) { // Something is wrong. Perhaps a hardware or driver or backend change. Let KMix search harder recreateGUI(false, QString(), true); } if (!kapp->isSessionRestored() ) // done by the session manager otherwise setInitialSize(); fixConfigAfterRead(); theKMixDeviceManager->initHotplug(); connect(theKMixDeviceManager, SIGNAL(plugged(const char*,QString,QString&)), SLOT (plugged(const char*,QString,QString&))); connect(theKMixDeviceManager, SIGNAL(unplugged(QString)), SLOT (unplugged(QString))); if (m_startVisible && !invisible) show(); // Started visible connect(kapp, SIGNAL(aboutToQuit()), SLOT(saveConfig()) ); ControlManager::instance().addListener( QString(), // All mixers (as the Global master Mixer might change) (ControlChangeType::Type)(ControlChangeType::ControlList | ControlChangeType::MasterChanged), this, QString("KMixWindow") ); // Send an initial volume refresh (otherwise all volumes are 0 until the next change) ControlManager::instance().announce(QString(), ControlChangeType::Volume, QString("Startup")); }
void DeviceExplorerView::setModel(DeviceExplorerFilterProxyModel* model) { QTreeView::setModel(static_cast<QAbstractItemModel*>(model)); m_hasProxy = true; if (model) { setInitialColumnsSizes(); // restoreSettings(); initActions(); // after restoreSettings() to have actions correctly // initialized } }
/*! constructor */ editor::editor(QWidget *parent,Qt::WindowFlags flags): QMainWindow(parent,flags) { ev=new editorView(this); setCentralWidget (ev); initActions(); initMenubar(); statusBar()->showMessage("Select a tool"); setMinimumSize(640,480); resize(640,480); // addToLog (QString(" editor create: %1") // .arg(QString::number((ulong)this,16)),LOGEDIT); setWindowTitle("QSSTV Editor"); }
void DeviceExplorerView::setModel(QAbstractItemModel* model) { m_hasProxy = false; QTreeView::setModel(model); // TODO review the save/restore system if (model) { setInitialColumnsSizes(); // restoreSettings(); initActions(); // after restoreSettings() to have actions correctly // initialized } }
KPrView::KPrView(KPrPart *part, KPrDocument *document, QWidget *parent) : KoPAView(part, document, KoPAView::ModeBox, parent) , m_part(part) , m_presentationMode( new KPrViewModePresentation( this, kopaCanvas() )) , m_normalMode( viewMode() ) , m_notesMode( new KPrViewModeNotes( this, kopaCanvas() )) , m_slidesSorterMode(new KPrViewModeSlidesSorter(this, kopaCanvas())) #ifndef CALLIGRA_DISABLE_DBUS , m_dbus(new KPrViewAdaptor( this ) ) #else , m_dbus(0) #endif { m_normalMode->setName(i18n("Normal")); initGUI(); initActions(); // Change strings because in KPresenter it's called slides and not pages actionCollection()->action("view_masterpages")->setText(i18n("Show Master Slides")); actionCollection()->action("import_document")->setText(i18n("Import Slideshow...")); actionCollection()->action("page_insertpage")->setText(i18n( "Insert Slide")); actionCollection()->action("page_insertpage")->setToolTip(i18n("Insert a new slide after the current one")); actionCollection()->action("page_insertpage")->setWhatsThis(i18n("Insert a new slide after the current one")); actionCollection()->action("page_copypage")->setText(i18n("Copy Slide")); actionCollection()->action("page_copypage")->setToolTip(i18n("Copy the current slide")); actionCollection()->action("page_copypage")->setWhatsThis(i18n("Copy the current slide")); actionCollection()->action("page_deletepage")->setText(i18n("Delete Slide")); actionCollection()->action("page_deletepage")->setToolTip(i18n("Delete the current slide")); actionCollection()->action("page_deletepage")->setWhatsThis(i18n("Delete the current slide")); actionCollection()->action("format_masterpage")->setText(i18n("Master Slide...")); actionCollection()->action("page_previous")->setText(i18n("Previous Slide")); actionCollection()->action("page_previous")->setToolTip(i18n("Go to previous slide")); actionCollection()->action("page_previous")->setWhatsThis(i18n("Go to previous slide")); actionCollection()->action("page_next")->setText(i18n("Next Slide")); actionCollection()->action("page_next")->setToolTip(i18n("Go to next slide")); actionCollection()->action("page_next")->setWhatsThis(i18n("Go to next slide")); actionCollection()->action("page_first")->setText(i18n("First Slide")); actionCollection()->action("page_first")->setToolTip(i18n("Go to first slide")); actionCollection()->action("page_first")->setWhatsThis(i18n("Go to first slide")); actionCollection()->action("page_last")->setText(i18n("Last Slide")); actionCollection()->action("page_last")->setToolTip(i18n("Go to last slide")); actionCollection()->action("page_last")->setWhatsThis(i18n("Go to last slide")); actionCollection()->action("configure")->setText(i18n("Configure Stage...")); masterShapeManager()->setPaintingStrategy( new KPrShapeManagerDisplayMasterStrategy( masterShapeManager(), new KPrPageSelectStrategyActive( kopaCanvas() ) ) ); connect(zoomController(), SIGNAL(zoomChanged(KoZoomMode::Mode,qreal)), this, SLOT(zoomChanged(KoZoomMode::Mode,qreal))); setAcceptDrops(true); }
MainWindow::MainWindow() { setCaption(tr("GA Bots " VERSION)); initActions(); initMenuBar(); initToolBar(); initStatusBar(); initGABotDoc(); initView(); ViewToolBar->setOn(true); ViewStatusBar->setOn(true); //ViewGame->setOn(true); connect(GABotDoc, SIGNAL(gameReady(bool)), this, SLOT(slotGameReady(bool))); connect(GABotDoc, SIGNAL(teamAScores()), View, SLOT(slotScoreA())); connect(GABotDoc, SIGNAL(teamBScores()), View, SLOT(slotScoreB())); connect(GABotDoc, SIGNAL(clearScores()), View, SLOT(slotClearScores())); connect(GABotDoc, SIGNAL(moveTeamA(Coordinate, Coordinate)), View, SLOT(slotMoveTeamA(Coordinate, Coordinate))); connect(GABotDoc, SIGNAL(moveTeamB(Coordinate, Coordinate)), View, SLOT(slotMoveTeamB(Coordinate, Coordinate))); connect(GABotDoc, SIGNAL(turnTeamA(Coordinate, Direction)), View, SLOT(slotTurnTeamA(Coordinate, Direction))); connect(GABotDoc, SIGNAL(turnTeamB(Coordinate, Direction)), View, SLOT(slotTurnTeamB(Coordinate, Direction))); connect(GABotDoc, SIGNAL(moveBall(Coordinate,Coordinate)), View, SLOT(slotMoveBall(Coordinate,Coordinate))); connect(GoGame, SIGNAL(activated()), this, SLOT(slotGoGame())); connect(GoGame, SIGNAL(activated()), GABotDoc, SLOT(slotStartTimer())); connect(StopGame, SIGNAL(activated()), GABotDoc, SLOT(slotStopTimer())); connect(StopGame, SIGNAL(activated()), this, SLOT(slotStopGame())); connect(View, SIGNAL(valueChanged(int)), this, SLOT(slotTickInterval(int))); connect(GABotDoc, SIGNAL(clearField()), View, SLOT(slotClearField())); connect(ResetScreen, SIGNAL(activated()), View, SLOT(slotClearField())); //not sure if we should clear the field whenever regenerating the team // connect(TeamAGenerate,SIGNAL(activated()), View, SLOT(slotClearField())); // connect(TeamBGenerate,SIGNAL(activated()), View, SLOT(slotClearField())); connect(GABotDoc, SIGNAL(gameOver()), View, SLOT(slotClearField())); connect(GABotDoc, SIGNAL(gameOver()), View, SLOT(slotClearScores())); connect(GABotDoc, SIGNAL(gameOver()), this, SLOT(slotGameOver())); }
CantorWorksheetView::CantorWorksheetView(CantorWorksheet* worksheet) : QWidget(), m_worksheet(worksheet) { QHBoxLayout* layout = new QHBoxLayout(this); layout->setContentsMargins(0, 0, 0, 0); part = worksheet->part(); if (part) { layout->addWidget(part->widget()); initActions(); initMenus(); connect(m_worksheet, SIGNAL(requestProjectContextMenu(QMenu*)), this, SLOT(createContextMenu(QMenu*))); connect(m_worksheet, SIGNAL(statusChanged(Cantor::Session::Status)), this, SLOT(statusChanged(Cantor::Session::Status))); } }
void KBattleshipWindow::init() { m_aiPlaying = false; m_placeable = false; m_shootable = false; m_serverHasClient = false; m_config = kapp->config(); initStatusBar(); initActions(); readOptions(); initView(); initChat(); initShipPlacing(); parseCommandLine(); }
TaskEditDialog::TaskEditDialog(QWidget *parent) : QDialog(parent) , ui(new Ui::TaskEditDialog) { ui->setupUi(this); initActions(); initToolButtons(); updateTimeEditActions(); connect(ui->taskTime_treeWidget, SIGNAL(itemSelectionChanged()), this, SLOT(updateTimeEditActions())); connect(ui->taskTime_treeWidget, SIGNAL(itemActivated(QTreeWidgetItem *, int)), this, SLOT(openTimeEditDialog(QTreeWidgetItem *))); }
void TravelWorkbench::initialize() { CoaWorkbench::initialize(); initActions(); #ifdef Q_WS_MAC slotSwitchToSDIMode(); slotFileNew(); //create a first, empty window #else slotSwitchToMDIMode(); //slotFileNew(); //create a first, empty window #endif }
KgpgApp::KgpgApp(TQWidget *parent, const char *name, WFlags f,TDEShortcut goHome,bool mainWindow):TDEMainWindow(parent, name,f) { isMainWindow=mainWindow; textEncoding=TQString(); readOptions(); goDefaultKey=goHome; // call inits to invoke all other construction parts initActions(); initView(); slotSetFont(KGpgSettings::font()); setupGUI(( ToolBar | Keys | StatusBar | Save | Create ), "kgpg.rc"); setAutoSaveSettings("Editor",true); }
JuffEd::JuffEd() : Juff::PluginNotifier(), Juff::DocHandlerInt() { mw_ = new JuffMW(); initActions(); viewer_ = new Juff::DocViewer(this); mw_->setMainWidget(viewer_); settingsDlg_ = new SettingsDlg(mw_); connect(settingsDlg_, SIGNAL(applied()), SLOT(onSettingsApplied())); connect(viewer_, SIGNAL(docActivated(Juff::Document*)), SLOT(onDocActivated(Juff::Document*))); connect(mw_, SIGNAL(closeRequested(bool&)), SLOT(onCloseRequested(bool&))); // UI must be initialized before engines and plugins because // we need menus to be already created when loading engines and plugins. initUI(); loadEngines(); pluginMgr_ = new PluginManager(this, this); // buildUI() *must* go before loadPlugins() because // it creates structures and widgets expected by loadPlugins() buildUI(); loadPlugins(); search_ = new SearchEngine(this, mw_); setSessionName( MainSettings::get( MainSettings::LastSession ) ); if ( !loadSession() ) { slotFileNew(); } if ( viewer_->docCount(Juff::PanelAll) == 0 ) { openDoc("", Juff::PanelLeft); viewer_->hidePanel(Juff::PanelRight); } else if ( viewer_->docCount(Juff::PanelLeft) == 0 ) { viewer_->hidePanel(Juff::PanelLeft); } else if ( viewer_->docCount(Juff::PanelRight) == 0 ) { viewer_->hidePanel(Juff::PanelRight); } onSettingsApplied(); mw_->restoreState(); }
void DeviceExplorerView::setModel(DeviceExplorerFilterProxyModel* model) { QTreeView::setModel(static_cast<QAbstractItemModel*>(model)); m_hasProxy = true; #ifdef MODEL_TEST qDebug() << "*** ADD MODEL_TEST\n"; (void) new ModelTest(model->sourceModel(), this); #endif if(model) { setInitialColumnsSizes(); restoreSettings(); initActions(); //after restoreSettings() to have actions correctly initialized } }
void DeviceExplorerView::setModel(QAbstractItemModel* model) { QTreeView::setModel(model); m_hasProxy = false; #ifdef MODEL_TEST qDebug() << "*** ADD MODEL_TEST\n"; (void) new ModelTest(model, this); #endif if(model) { setInitialColumnsSizes(); restoreSettings(); initActions(); //after restoreSettings() to have actions correctly initialized } }
MainWindow::MainWindow() : KXmlGuiWindow( 0 ) { mMainWidget = new MainWidget( this, this ); setCentralWidget( mMainWidget ); initActions(); setStandardToolBarMenuEnabled( true ); toolBar()->setToolButtonStyle( Qt::ToolButtonTextUnderIcon ); setupGUI( Keys | Save | Create, "kaddressbookui.rc" ); setAutoSaveSettings(); }
/** @param parent parent QWidget of this window */ QETTitleBlockTemplateEditor::QETTitleBlockTemplateEditor(QWidget *parent) : QETMainWindow(parent), opened_from_file_(false), read_only_(false), duplicate_(false), tb_template_(0), logo_manager_(0) { setWindowIcon(QET::Icons::QETLogo); setAttribute(Qt::WA_DeleteOnClose); initWidgets(); initActions(); initMenus(); initToolbars(); readSettings(); }
void KatalogView::init(const QString& katName ) { m_katalogName = katName; initActions(); /////////////////////////////////////////////////////////////////// // set up a vertical layout box QWidget *w = new QWidget(this); QBoxLayout *box = new QVBoxLayout(w); // start to set up the listview createCentralWidget(box, w); KatalogListView *listview = getListView(); if( ! listview ) { // qDebug () << "ERROR: No listview created !!!" << endl; } else { m_filterHead = new FilterHeader(w, listview); box->insertWidget(0, m_filterHead); connect( listview, SIGNAL(currentItemChanged ( QTreeWidgetItem*, QTreeWidgetItem*)), this, SLOT(slTreeviewItemChanged( QTreeWidgetItem*, QTreeWidgetItem*)) ); connect( listview, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)), this, SLOT(slEditTemplate())); connect( listview, SIGNAL(templateHoovered(CatalogTemplate*)), this, SLOT(slotShowTemplateDetails( CatalogTemplate*))); // Populate the context Menu (listview->contextMenu())->addAction( m_acEditItem ); (listview->contextMenu())->addAction( m_acNewItem ); (listview->contextMenu())->addAction( m_acDeleteItem ); (listview->contextMenu())->addSeparator(); (listview->contextMenu())->addAction( m_acAddChapter ); (listview->contextMenu())->addAction( m_acEditChapter ); (listview->contextMenu())->addAction( m_acRemChapter ); getKatalog( katName ); listview->addCatalogDisplay( katName ); } setCentralWidget(w); m_editListViewItem = 0; // qDebug () << "Getting katalog!" << katName << endl; setAutoSaveSettings( QString::fromLatin1( "CatalogWindow" ), true ); }
MontageView::MontageView( QWidget* parent, const char* name, WFlags f ) : QIconView( parent, name, f ), m_dirty(false), m_remove_action(0), m_remove_all_action(0), m_open_action(0) { initActions(); setItemsMovable(false); connect( this, SIGNAL( doubleClicked( QIconViewItem* ) ), this, SLOT( itemDoubleClicked( QIconViewItem* ) )); connect( this, SIGNAL( contextMenuRequested(QIconViewItem*, const QPoint&) ), this, SLOT( showContextMenu(QIconViewItem*, const QPoint&) ) ); }
KMouthApp::KMouthApp(QWidget* , const char* name): KXmlGuiWindow(0) { setObjectName(QLatin1String(name)); isConfigured = false; config = KGlobal::config(); /////////////////////////////////////////////////////////////////// // call inits to invoke all other construction parts initStatusBar(); initPhraseList(); initActions(); optionsDialog = new OptionsDialog(this); connect(optionsDialog, SIGNAL(configurationChanged()), this, SLOT(slotConfigurationChanged())); connect(optionsDialog, SIGNAL(configurationChanged()), phraseList, SLOT(configureCompletion())); phrases = new KActionCollection(static_cast<QWidget*>(this)); readOptions(); ConfigWizard *wizard = new ConfigWizard(this, config.data()); if (wizard->configurationNeeded()) { if (wizard->requestConfiguration()) { isConfigured = true; saveOptions(); wizard->saveConfig(); readOptions(); } else isConfigured = false; } else isConfigured = true; delete wizard; if (isConfigured) { phraseList->configureCompletion(); } /////////////////////////////////////////////////////////////////// // disable actions at startup fileSaveAs->setEnabled(false); filePrint->setEnabled(false); printer = 0; }