Changeset 3004
- Timestamp:
- 06/11/06 06:42:41 (3 years ago)
- Files:
-
- hydranode/hngui/Jamfile (modified) (2 diffs)
- hydranode/hngui/gui.qrc (modified) (1 diff)
- hydranode/hngui/main.cpp (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
hydranode/hngui/Jamfile
r3002 r3004 7 7 lib ole : : <name>ole32 ; 8 8 extrasrc = gui.rc trayicon_win.cpp gdi ; 9 } else { 10 extrasrc = trayicon_x11.cpp ; 9 11 } 10 12 11 exe hydranode-gui : 13 exe hydranode-gui : 12 14 # gui layouts 13 mainlayout.ui 15 mainlayout.ui 14 16 transfercontent.ui searchcontent.ui librarycontent.ui 15 settingstabs.ui 17 settingstabs.ui 16 18 # filedetailsdock.ui searchdetailsdock.ui 17 19 pagetemplate.ui home_homeactions.ui home_homepage.ui catdialog.ui 18 20 commentframe.ui 19 21 20 22 # gui code 21 downloadlist.cpp downloadlist.h 22 main.cpp main.h 23 downloadlist.cpp downloadlist.h 24 main.cpp main.h 23 25 searchtabs.h searchtabs.cpp 24 26 searchlist.cpp searchlist.h 25 27 transfertabs.cpp transfertabs.h 26 settingspage.cpp settingspage.h 28 settingspage.cpp settingspage.h 27 29 notifylabel.cpp notifylabel.h 28 librarylist.cpp librarylist.h 29 librarytabs.cpp librarytabs.h 30 librarylist.cpp librarylist.h 31 librarytabs.cpp librarytabs.h 30 32 hometabs.cpp hometabs.h 31 htreewidget.cpp 33 htreewidget.cpp 32 34 newsfeed.cpp newsfeed.h 33 35 myhydra.cpp myhydra.h 34 36 customheader.cpp customheader.h 35 37 36 38 # gui resources 37 39 gui.qrc 38 40 39 41 # extra sources 40 ../hncgcomm/cgcomm.cpp ../hncgcomm/utils.cpp ecomm.cpp ecomm.h 42 ../hncgcomm/cgcomm.cpp ../hncgcomm/utils.cpp ecomm.cpp ecomm.h 41 43 filetypes.cpp trayicon.cpp trayicon.h 42 44 43 45 # dependancies 44 46 /qt4//QtGui /qt4//QtNetwork /qt4//QtXml 45 47 ../extra//boost_signals ../extra//boost_date_time 46 48 47 49 # plugins (built-in currently due to lack of support for plugin loading) 48 50 plugins/donkeypage.cpp plugins/donkeypage.h plugins/donkeypage_ui.ui 49 51 50 52 # platform-specific sources 51 53 $(extrasrc) 52 : <include>. 54 : <include>. 53 55 <define>QT_NO_KEYWORDS 54 56 <variant>release:<define>QT_NO_DEBUG … … 58 60 ; 59 61 60 stage stage 62 stage stage 61 63 : hydranode-gui ../extra//boost_signals ../extra//boost_date_time 62 64 : <variant>debug:<location>debug hydranode/hngui/gui.qrc
r2898 r3004 14 14 <file>icons/stars.png</file> 15 15 <file>icons/yellowbar.png</file> 16 <file>icons/hydranode.png</file> 17 <file>icons/hydranode16.png</file> 16 18 </qresource> 17 19 <qresource prefix="/backgrounds" > hydranode/hngui/main.cpp
r3002 r3004 60 60 Splash(const QPixmap &img); 61 61 void showMessage( 62 const QString &message, int alignment = Qt::AlignLeft, 62 const QString &message, int alignment = Qt::AlignLeft, 63 63 const QColor &color = Qt::black 64 64 ); … … 74 74 QPixmap::fromImage( 75 75 pixmap().toImage().createAlphaMask( 76 Qt::AutoColor | Qt::DiffuseDither 76 Qt::AutoColor | Qt::DiffuseDither 77 77 | Qt::DiffuseAlphaDither 78 ), Qt::AutoColor | Qt::DiffuseDither 78 ), Qt::AutoColor | Qt::DiffuseDither 79 79 | Qt::DiffuseAlphaDither 80 80 ) … … 201 201 202 202 setWindowTitle("Hydranode"); 203 setWindowIcon(QIcon(":/ hydranode.png"));203 setWindowIcon(QIcon(":/icons/hydranode")); 204 204 205 205 QMenu *menu = new QMenu(this); 206 206 menu->addAction("Quit", this, SLOT(close())); 207 m_tray = new TrayIcon(0, "Hydranode"); 208 m_tray->setIcon(QPixmap("hydranode.png")); 209 m_tray->setPopup(menu); 207 m_tray = new TrayIcon( 208 QPixmap(":/icons/hydranode16"), "Hydranode", 209 menu, 0, "Hydranode-tray" 210 ); 211 m_tray->show(); 210 212 211 213 QSettings conf(confDir() + "gui.ini", QSettings::IniFormat); … … 561 563 } 562 564 conf.setValue("ShowTitle", m_showTitle); 565 delete m_tray; 563 566 } 564 567 … … 584 587 // QPixmap::fromImage( 585 588 // m_kaar.toImage().createAlphaMask( 586 // Qt::AutoColor | Qt::DiffuseDither 589 // Qt::AutoColor | Qt::DiffuseDither 587 590 // | Qt::DiffuseAlphaDither 588 // ), Qt::AutoColor | Qt::DiffuseDither 591 // ), Qt::AutoColor | Qt::DiffuseDither 589 592 // | Qt::DiffuseAlphaDither 590 593 // ) … … 593 596 QPixmap::fromImage( 594 597 m_kaar.toImage().createAlphaMask( 595 Qt::AutoColor | Qt::DiffuseDither 598 Qt::AutoColor | Qt::DiffuseDither 596 599 | Qt::DiffuseAlphaDither 597 ), Qt::AutoColor | Qt::DiffuseDither 600 ), Qt::AutoColor | Qt::DiffuseDither 598 601 | Qt::DiffuseAlphaDither 599 602 ) … … 679 682 } 680 683 p.drawPixmap(0, m_kaar.height() + ACBAR_HEIGHT, m_lb); 681 p.drawPixmap(width() - 3, m_kaar.height() + ACBAR_HEIGHT, m_rb); 684 p.drawPixmap(width() - 3, m_kaar.height() + ACBAR_HEIGHT, m_rb); 682 685 p.drawPixmap(0, height() - 8, m_bb); 683 686 } … … 736 739 } 737 740 if ( 738 obj == m_ui->left1 || obj == m_ui->left2 || obj == m_ui->left3 739 || obj == m_ui->right1 || obj == m_ui->right2 741 obj == m_ui->left1 || obj == m_ui->left2 || obj == m_ui->left3 742 || obj == m_ui->right1 || obj == m_ui->right2 740 743 || obj == m_ui->right3 741 744 ) {
