Logo Search packages:      
Sourcecode: nateon version File versions  Download package

bool KNateon::initialize (  ) 

설정창 보이기

단축키 설정.

Definition at line 197 of file knateon.cpp.

References initializeLoginView(), initializeNateonDPConnection(), initializeNateonDPLConnection(), slotMenuSendFile(), slotSetup(), and slotViewMemoBox().

{
      m_CommandQueue.setAutoDelete( FALSE );
      m_CommandQueue.clear();
    
    // m_P2PList.setAutoDelete( false );
    // m_P2PList.clear();
    
      // initialize main UI window
      if ( !KNateonInterface::initialize() )
      {
            KMessageBox::information( this, "oops, KNateoninterface initialize fail!", "caption", 0, 0);
            return false;
      }

      // initialize network packet monitoring window
      if ( !initializeNetworkWindow() )
      {
            KMessageBox::information( this, "oops, networkwindow  initialize fail!", "caption", 0, 0);
            return false;
      }

      // initialize connection to DPL(dispatch load balancer) server
      if ( !initializeNateonDPLConnection() )
      {
            KMessageBox::information( this, "oops, nateondplconnection  initialize fail!", "caption", 0, 0);
            return false;
      }

      // initialize connection to DP(dispatch server) server
      if ( !initializeNateonDPConnection() )
      {
            KMessageBox::information( this, "oops, nateondpconnection  initialize fail!", "caption", 0, 0);
            return false;
      }

      // initialize logout UI window
      if ( !initializeLogoutView() )
      {
            KMessageBox::information( this, "oops, logoutview  initialize fail!", "caption", 0, 0);
            return false;
      }
  
  
      // initialize main buddylist view
      if ( !initializeMainView() )
      {
            KMessageBox::information( this, "oops, mainview  initialize fail!", "caption", 0, 0);
            return false;
      }

  
      // initialize login UI window
      if ( !initializeLoginView() )
      {
            KMessageBox::information( this, "oops, loginview  initialize fail!", "caption", 0, 0);
            return false;
      }
  
  
      // initialize system tray view
      if ( !initializeSystemTray() )
      {
            KMessageBox::information( this, "oops, systemtray  initialize fail!", "caption", 0, 0);
            return false;
      }

      if ( !initIdleTimer() )
      {
            KMessageBox::information( this, "oops, IdleTimer  initialize fail!", "caption", 0, 0);
            return false;
      }

      /*! 설정창 보이기 */
      connect( pSetupAction, SIGNAL( activated() ), SLOT( slotSetup() ) );
      connect( pNetLogAction, SIGNAL( activated() ), SLOT( slotNetLog() ) );
      
      slotUpdateStatusText( UTF8("대기중") );
      
      /// 단축키 설정.
      KActionCollection *ac =  new KActionCollection ( this );
      new KAction( i18n("&MessageBox"), "messagebox", KShortcut( Qt::Key_F3 ) , this, SLOT( slotViewMemoBox() ), ac, "messagebox" );
      new KAction( i18n("&Setup"), "setup", KShortcut( Qt::Key_F11 ) , this, SLOT( slotSetup() ), ac, "setup" );
      new KAction( i18n("&SendFile"), "sendfile", KShortcut( Qt::CTRL + Qt::Key_T ) , this, SLOT( slotMenuSendFile() ), ac, "sendfile" );
      // new KAction( i18n("&Send3"), "memo_send3", KShortcut( Qt::CTRL + Qt::SHIFT + Qt::Key_R ) , this, SLOT( slotReplyAll() ), ac, "memo_send3" );
      // new KAction( i18n("&Send4"), "memo_send4", KShortcut( Qt::Key_Escape ) , this, SLOT( close() ), ac, "memo_send4" );
      
//     connect(m_pP2PServer, SIGNAL( OutgoingMessage(const QString& ) ), m_pNetworkWindow, SLOT( addOutgoingServerMessage(const  QString& ) ) );
//     connect(m_pP2PServer, SIGNAL( IncomingMessage(const QString& ) ), m_pNetworkWindow, SLOT( addIncomingServerMessage(const QString& ) ) );
      return true;
}


Generated by  Doxygen 1.6.0   Back to index