mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-14 21:49:57 +01:00
Remplacement des principales icones par des icones provenant du theme Oxygen.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@603 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -170,9 +170,9 @@ void DiagramPrintDialog::buildPrintTypeDialog() {
|
||||
buttons_ = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||
|
||||
dialog_ -> setWindowTitle(tr("Choix du type d'impression"));
|
||||
printer_icon_ -> setPixmap(QPixmap(":/ico/printtype_printer.png"));
|
||||
pdf_icon_ -> setPixmap(QPixmap(":/ico/printtype_pdf.png"));
|
||||
ps_icon_ -> setPixmap(QPixmap(":/ico/printtype_ps.png"));
|
||||
printer_icon_ -> setPixmap(QPixmap(":/ico/printer.png"));
|
||||
pdf_icon_ -> setPixmap(QPixmap(":/ico/application-pdf.png"));
|
||||
ps_icon_ -> setPixmap(QPixmap(":/ico/image-x-eps.png"));
|
||||
printtype_choice_ -> addButton(printer_choice_);
|
||||
printtype_choice_ -> addButton(pdf_choice_);
|
||||
printtype_choice_ -> addButton(ps_choice_);
|
||||
|
||||
@@ -54,7 +54,7 @@ DiagramView::DiagramView(Diagram *diagram, QWidget *parent) : QGraphicsView(pare
|
||||
updateWindowTitle();
|
||||
|
||||
context_menu = new QMenu(this);
|
||||
paste_here = new QAction(QIcon(":/ico/paste.png"), tr("Coller ici", "context menu action"), this);
|
||||
paste_here = new QAction(QIcon(":/ico/edit-paste.png"), tr("Coller ici", "context menu action"), this);
|
||||
connect(paste_here, SIGNAL(triggered()), this, SLOT(pasteHere()));
|
||||
|
||||
connect(scene, SIGNAL(selectionChanged()), this, SIGNAL(selectionChanged()));
|
||||
|
||||
@@ -69,43 +69,43 @@ QETElementEditor::~QETElementEditor() {
|
||||
Met en place les actions
|
||||
*/
|
||||
void QETElementEditor::setupActions() {
|
||||
new_element = new QAction(QIcon(":/ico/new.png"), tr("&Nouveau"), this);
|
||||
open = new QAction(QIcon(":/ico/open.png"), tr("&Ouvrir"), this);
|
||||
open_file = new QAction(QIcon(":/ico/open.png"), tr("&Ouvrir depuis un fichier"), this);
|
||||
save = new QAction(QIcon(":/ico/save.png"), tr("&Enregistrer"), this);
|
||||
save_as = new QAction(QIcon(":/ico/saveas.png"), tr("Enregistrer sous"), this);
|
||||
save_as_file = new QAction(QIcon(":/ico/saveas.png"), tr("Enregistrer dans un fichier"), this);
|
||||
reload = new QAction(QIcon(":/ico/reload.png"), tr("Recharger"), this);
|
||||
quit = new QAction(QIcon(":/ico/exit.png"), tr("&Quitter"), this);
|
||||
selectall = new QAction( tr("Tout s\351lectionner"), this);
|
||||
deselectall = new QAction( tr("D\351s\351lectionner tout"), this);
|
||||
cut = new QAction(QIcon(":/ico/cut.png"), tr("Co&uper"), this);
|
||||
copy = new QAction(QIcon(":/ico/copy.png"), tr("Cop&ier"), this);
|
||||
paste = new QAction(QIcon(":/ico/paste.png"), tr("C&oller"), this);
|
||||
paste_in_area = new QAction(QIcon(":/ico/paste.png"), tr("C&oller dans la zone..."), this);
|
||||
inv_select = new QAction( tr("Inverser la s\351lection"), this);
|
||||
edit_delete = new QAction(QIcon(":/ico/delete.png"), tr("&Supprimer"), this);
|
||||
zoom_in = new QAction(QIcon(":/ico/viewmag+.png"), tr("Zoom avant"), this);
|
||||
zoom_out = new QAction(QIcon(":/ico/viewmag-.png"), tr("Zoom arri\350re"), this);
|
||||
zoom_fit = new QAction(QIcon(":/ico/viewmagfit.png"), tr("Zoom adapt\351"), this);
|
||||
zoom_reset = new QAction(QIcon(":/ico/viewmag.png"), tr("Pas de zoom"), this);
|
||||
edit_size_hs = new QAction(QIcon(":/ico/hotspot.png"), tr("\311diter la taille et le point de saisie"), this);
|
||||
edit_names = new QAction(QIcon(":/ico/names.png"), tr("\311diter les noms"), this);
|
||||
edit_ori = new QAction(QIcon(":/ico/orientations.png"), tr("\311diter les orientations"), this);
|
||||
edit_raise = new QAction(QIcon(":/ico/raise.png"), tr("Rapprocher"), this);
|
||||
edit_lower = new QAction(QIcon(":/ico/lower.png"), tr("\311loigner"), this);
|
||||
edit_backward = new QAction(QIcon(":/ico/send_backward.png"),tr("Envoyer au fond"), this);
|
||||
edit_forward = new QAction(QIcon(":/ico/bring_forward.png"),tr("Amener au premier plan"), this);
|
||||
move = new QAction(QIcon(":/ico/select.png"), tr("D\351placer un objet"), this);
|
||||
add_line = new QAction(QIcon(":/ico/line.png"), tr("Ajouter une ligne"), this);
|
||||
add_rectangle = new QAction(QIcon(":/ico/rectangle.png"), tr("Ajouter un rectangle"), this);
|
||||
add_ellipse = new QAction(QIcon(":/ico/ellipse.png"), tr("Ajouter une ellipse"), this);
|
||||
add_circle = new QAction(QIcon(":/ico/circle.png"), tr("Ajouter un cercle"), this);
|
||||
add_polygon = new QAction(QIcon(":/ico/polygon.png"), tr("Ajouter un polygone"), this);
|
||||
add_text = new QAction(QIcon(":/ico/text.png"), tr("Ajouter du texte"), this);
|
||||
add_arc = new QAction(QIcon(":/ico/arc.png"), tr("Ajouter un arc de cercle"), this);
|
||||
add_terminal = new QAction(QIcon(":/ico/terminal.png"), tr("Ajouter une borne"), this);
|
||||
add_textfield = new QAction(QIcon(":/ico/textfield.png"), tr("Ajouter un champ de texte"), this);
|
||||
new_element = new QAction(QIcon(":/ico/document-new.png"), tr("&Nouveau"), this);
|
||||
open = new QAction(QIcon(":/ico/document-open.png"), tr("&Ouvrir"), this);
|
||||
open_file = new QAction(QIcon(":/ico/document-open.png"), tr("&Ouvrir depuis un fichier"), this);
|
||||
save = new QAction(QIcon(":/ico/document-save.png"), tr("&Enregistrer"), this);
|
||||
save_as = new QAction(QIcon(":/ico/document-save-as.png"), tr("Enregistrer sous"), this);
|
||||
save_as_file = new QAction(QIcon(":/ico/document-save-as.png"), tr("Enregistrer dans un fichier"), this);
|
||||
reload = new QAction(QIcon(":/ico/view-refresh.png"), tr("Recharger"), this);
|
||||
quit = new QAction(QIcon(":/ico/application-exit.png"), tr("&Quitter"), this);
|
||||
selectall = new QAction(QIcon(":/ico/edit-select-all.png"), tr("Tout s\351lectionner"), this);
|
||||
deselectall = new QAction( tr("D\351s\351lectionner tout"), this);
|
||||
cut = new QAction(QIcon(":/ico/edit-cut.png"), tr("Co&uper"), this);
|
||||
copy = new QAction(QIcon(":/ico/edit-copy.png"), tr("Cop&ier"), this);
|
||||
paste = new QAction(QIcon(":/ico/edit-paste.png"), tr("C&oller"), this);
|
||||
paste_in_area = new QAction(QIcon(":/ico/edit-paste.png"), tr("C&oller dans la zone..."), this);
|
||||
inv_select = new QAction( tr("Inverser la s\351lection"), this);
|
||||
edit_delete = new QAction(QIcon(":/ico/edit-delete.png"), tr("&Supprimer"), this);
|
||||
zoom_in = new QAction(QIcon(":/ico/zoom-in.png"), tr("Zoom avant"), this);
|
||||
zoom_out = new QAction(QIcon(":/ico/zoom-out.png"), tr("Zoom arri\350re"), this);
|
||||
zoom_fit = new QAction(QIcon(":/ico/zoom-fit-best.png"), tr("Zoom adapt\351"), this);
|
||||
zoom_reset = new QAction(QIcon(":/ico/zoom-original.png"), tr("Pas de zoom"), this);
|
||||
edit_size_hs = new QAction(QIcon(":/ico/hotspot.png"), tr("\311diter la taille et le point de saisie"), this);
|
||||
edit_names = new QAction(QIcon(":/ico/names.png"), tr("\311diter les noms"), this);
|
||||
edit_ori = new QAction(QIcon(":/ico/orientations.png"), tr("\311diter les orientations"), this);
|
||||
edit_raise = new QAction(QIcon(":/ico/raise.png"), tr("Rapprocher"), this);
|
||||
edit_lower = new QAction(QIcon(":/ico/lower.png"), tr("\311loigner"), this);
|
||||
edit_backward = new QAction(QIcon(":/ico/send_backward.png"), tr("Envoyer au fond"), this);
|
||||
edit_forward = new QAction(QIcon(":/ico/bring_forward.png"), tr("Amener au premier plan"), this);
|
||||
move = new QAction(QIcon(":/ico/select.png"), tr("D\351placer un objet"), this);
|
||||
add_line = new QAction(QIcon(":/ico/line.png"), tr("Ajouter une ligne"), this);
|
||||
add_rectangle = new QAction(QIcon(":/ico/rectangle.png"), tr("Ajouter un rectangle"), this);
|
||||
add_ellipse = new QAction(QIcon(":/ico/ellipse.png"), tr("Ajouter une ellipse"), this);
|
||||
add_circle = new QAction(QIcon(":/ico/circle.png"), tr("Ajouter un cercle"), this);
|
||||
add_polygon = new QAction(QIcon(":/ico/polygon.png"), tr("Ajouter un polygone"), this);
|
||||
add_text = new QAction(QIcon(":/ico/text.png"), tr("Ajouter du texte"), this);
|
||||
add_arc = new QAction(QIcon(":/ico/arc.png"), tr("Ajouter un arc de cercle"), this);
|
||||
add_terminal = new QAction(QIcon(":/ico/terminal.png"), tr("Ajouter une borne"), this);
|
||||
add_textfield = new QAction(QIcon(":/ico/textfield.png"), tr("Ajouter un champ de texte"), this);
|
||||
|
||||
QString add_status_tip = tr("Maintenez la touche Shift enfonc\351e pour effectuer plusieurs ajouts d'affil\351e");
|
||||
add_line -> setStatusTip(add_status_tip);
|
||||
@@ -120,8 +120,8 @@ void QETElementEditor::setupActions() {
|
||||
|
||||
undo = ce_scene -> undoStack().createUndoAction(this, tr("Annuler"));
|
||||
redo = ce_scene -> undoStack().createRedoAction(this, tr("Refaire"));
|
||||
undo -> setIcon(QIcon(":/ico/undo.png"));
|
||||
redo -> setIcon(QIcon(":/ico/redo.png"));
|
||||
undo -> setIcon(QIcon(":/ico/edit-undo.png"));
|
||||
redo -> setIcon(QIcon(":/ico/edit-redo.png"));
|
||||
undo -> setShortcuts(QKeySequence::Undo);
|
||||
redo -> setShortcuts(QKeySequence::Redo);
|
||||
|
||||
@@ -237,7 +237,7 @@ void QETElementEditor::setupActions() {
|
||||
parts_toolbar -> setAllowedAreas(Qt::AllToolBarAreas);
|
||||
|
||||
/*
|
||||
QAction *xml_preview = new QAction(QIcon(":/ico/info.png"), tr("XML"), this);
|
||||
QAction *xml_preview = new QAction(QIcon(":/ico/dialog-information.png"), tr("XML"), this);
|
||||
connect(xml_preview, SIGNAL(triggered()), this, SLOT(xmlPreview()));
|
||||
parts_toolbar -> addAction(xml_preview);
|
||||
*/
|
||||
|
||||
@@ -73,7 +73,7 @@ void ElementsCategoriesList::reload() {
|
||||
|
||||
// chargement des elements de la collection utilisateur
|
||||
if (!first_load) QETApp::customElementsCollection() -> reload();
|
||||
addCollection(invisibleRootItem(), QETApp::customElementsCollection(), tr("Collection utilisateur"), QIcon(":/ico/folder_home.png"));
|
||||
addCollection(invisibleRootItem(), QETApp::customElementsCollection(), tr("Collection utilisateur"), QIcon(":/ico/go-home.png"));
|
||||
|
||||
if (first_load) first_load = false;
|
||||
}
|
||||
|
||||
@@ -30,10 +30,10 @@ ElementsCategoriesWidget::ElementsCategoriesWidget(QWidget *parent) : QWidget(pa
|
||||
elementscategorieslist = new ElementsCategoriesList(false, QET::All, this);
|
||||
|
||||
// actions
|
||||
action_reload = new QAction(QIcon(":/ico/reload.png"), tr("Recharger les cat\351gories"), this);
|
||||
action_new = new QAction(QIcon(":/ico/category_new.png"), tr("Nouvelle cat\351gorie"), this);
|
||||
action_open = new QAction(QIcon(":/ico/category_edit.png"), tr("\311diter la cat\351gorie"), this);
|
||||
action_delete = new QAction(QIcon(":/ico/category_delete.png"), tr("Supprimer la cat\351gorie"), this);
|
||||
action_reload = new QAction(QIcon(":/ico/view-refresh.png"), tr("Recharger les cat\351gories"), this);
|
||||
action_new = new QAction(QIcon(":/ico/folder-new.png"), tr("Nouvelle cat\351gorie"), this);
|
||||
action_open = new QAction(QIcon(":/ico/folder-edit.png"), tr("\311diter la cat\351gorie"), this);
|
||||
action_delete = new QAction(QIcon(":/ico/folder-delete.png"), tr("Supprimer la cat\351gorie"), this);
|
||||
|
||||
// initialise la barre d'outils
|
||||
toolbar = new QToolBar(this);
|
||||
|
||||
@@ -651,7 +651,7 @@ void ElementsPanel::reload(bool reload_collections) {
|
||||
common_collection_item_ = addCollection(invisibleRootItem(), QETApp::commonElementsCollection(), tr("Collection QET"), QIcon(":/ico/qet-16.png"));
|
||||
|
||||
// chargement des elements de la collection utilisateur
|
||||
custom_collection_item_ = addCollection(invisibleRootItem(), QETApp::customElementsCollection(), tr("Collection utilisateur"), QIcon(":/ico/folder_home.png"));
|
||||
custom_collection_item_ = addCollection(invisibleRootItem(), QETApp::customElementsCollection(), tr("Collection utilisateur"), QIcon(":/ico/go-home.png"));
|
||||
|
||||
// chargement des projets
|
||||
foreach(QETProject *project, projects_to_display_.values()) {
|
||||
|
||||
@@ -47,23 +47,23 @@ ElementsPanelWidget::ElementsPanelWidget(QWidget *parent) : QWidget(parent) {
|
||||
elements_panel = new ElementsPanel(this);
|
||||
|
||||
// initialise les actions
|
||||
reload = new QAction(QIcon(":/ico/reload.png"), tr("Recharger les collections"), this);
|
||||
new_category = new QAction(QIcon(":/ico/category_new.png"), tr("Nouvelle cat\351gorie"), this);
|
||||
edit_category = new QAction(QIcon(":/ico/category_edit.png"), tr("\311diter la cat\351gorie"), this);
|
||||
delete_category = new QAction(QIcon(":/ico/category_delete.png"), tr("Supprimer la cat\351gorie"), this);
|
||||
delete_collection = new QAction(QIcon(":/ico/category_delete.png"), tr("Vider la collection"), this);
|
||||
new_element = new QAction(QIcon(":/ico/new.png"), tr("Nouvel \351l\351ment"), this);
|
||||
edit_element = new QAction(QIcon(":/ico/edit.png"), tr("\311diter l'\351l\351ment"), this);
|
||||
delete_element = new QAction(QIcon(":/ico/delete.png"), tr("Supprimer l'\351l\351ment"), this);
|
||||
prj_close = new QAction(QIcon(":/ico/fileclose.png"), tr("Fermer ce projet"), this);
|
||||
prj_edit_prop = new QAction(QIcon(":/ico/info.png"), tr("Propri\351t\351s du projet"), this);
|
||||
prj_prop_diagram = new QAction(QIcon(":/ico/info.png"), tr("Propri\351t\351s du sch\351ma"), this);
|
||||
prj_add_diagram = new QAction(QIcon(":/ico/diagram_add.png"), tr("Ajouter un sch\351ma"), this);
|
||||
prj_del_diagram = new QAction(QIcon(":/ico/diagram_del.png"), tr("Supprimer ce sch\351ma"), this);
|
||||
move_elements_ = new QAction(QIcon(":/ico/item_move.png"), tr("D\351placer dans cette cat\351gorie"), this);
|
||||
copy_elements_ = new QAction(QIcon(":/ico/item_copy.png"), tr("Copier dans cette cat\351gorie"), this);
|
||||
cancel_elements_ = new QAction(QIcon(":/ico/item_cancel.png"), tr("Annuler"), this);
|
||||
erase_textfield = new QAction(QIcon(":/ico/erase.png"), tr("Effacer le filtre"), this);
|
||||
reload = new QAction(QIcon(":/ico/view-refresh.png"), tr("Recharger les collections"), this);
|
||||
new_category = new QAction(QIcon(":/ico/folder-new.png"), tr("Nouvelle cat\351gorie"), this);
|
||||
edit_category = new QAction(QIcon(":/ico/folder-edit.png"), tr("\311diter la cat\351gorie"), this);
|
||||
delete_category = new QAction(QIcon(":/ico/folder-delete.png"), tr("Supprimer la cat\351gorie"), this);
|
||||
delete_collection = new QAction(QIcon(":/ico/folder-delete.png"), tr("Vider la collection"), this);
|
||||
new_element = new QAction(QIcon(":/ico/document-new.png"), tr("Nouvel \351l\351ment"), this);
|
||||
edit_element = new QAction(QIcon(":/ico/document-edit.png"), tr("\311diter l'\351l\351ment"), this);
|
||||
delete_element = new QAction(QIcon(":/ico/document-delete.png"), tr("Supprimer l'\351l\351ment"), this);
|
||||
prj_close = new QAction(QIcon(":/ico/document-close.png"), tr("Fermer ce projet"), this);
|
||||
prj_edit_prop = new QAction(QIcon(":/ico/dialog-information.png"), tr("Propri\351t\351s du projet"), this);
|
||||
prj_prop_diagram = new QAction(QIcon(":/ico/dialog-information.png"), tr("Propri\351t\351s du sch\351ma"), this);
|
||||
prj_add_diagram = new QAction(QIcon(":/ico/diagram_add.png"), tr("Ajouter un sch\351ma"), this);
|
||||
prj_del_diagram = new QAction(QIcon(":/ico/diagram_del.png"), tr("Supprimer ce sch\351ma"), this);
|
||||
move_elements_ = new QAction(QIcon(":/ico/item_move.png"), tr("D\351placer dans cette cat\351gorie"), this);
|
||||
copy_elements_ = new QAction(QIcon(":/ico/item_copy.png"), tr("Copier dans cette cat\351gorie"), this);
|
||||
cancel_elements_ = new QAction(QIcon(":/ico/item_cancel.png"), tr("Annuler"), this);
|
||||
erase_textfield = new QAction(QIcon(":/ico/edit-clear-locationbar-ltr.png"), tr("Effacer le filtre"), this);
|
||||
|
||||
// initialise le champ de texte pour filtrer avec une disposition horizontale
|
||||
QLabel *filter_label = new QLabel(tr("Filtrer : "), this);
|
||||
|
||||
@@ -317,9 +317,9 @@ void ExportDialog::slot_keepRatioChanged(int diagram_id) {
|
||||
|
||||
// gere l'icone du bouton "Conserver les proportions"
|
||||
if (current_diagram -> keep_ratio -> isChecked()) {
|
||||
current_diagram -> keep_ratio -> setIcon(QIcon(":/ico/lock.png"));
|
||||
current_diagram -> keep_ratio -> setIcon(QIcon(":/ico/object-locked.png"));
|
||||
} else {
|
||||
current_diagram -> keep_ratio -> setIcon(QIcon(":/ico/unlock.png"));
|
||||
current_diagram -> keep_ratio -> setIcon(QIcon(":/ico/object-unlocked.png"));
|
||||
}
|
||||
|
||||
// ne fait rien si l'option "Conserver les proportions" n'est pas activee
|
||||
@@ -717,7 +717,7 @@ ExportDialog::ExportDiagramLine::ExportDiagramLine(Diagram *dia) {
|
||||
keep_ratio = new QPushButton();
|
||||
keep_ratio -> setCheckable(true);
|
||||
keep_ratio -> setChecked(true);
|
||||
keep_ratio -> setIcon(QIcon(":/ico/lock.png"));
|
||||
keep_ratio -> setIcon(QIcon(":/ico/object-locked.png"));
|
||||
keep_ratio -> setToolTip(QObject::tr("Conserver les proportions"));
|
||||
|
||||
reset_size = new QPushButton();
|
||||
@@ -725,7 +725,7 @@ ExportDialog::ExportDiagramLine::ExportDiagramLine(Diagram *dia) {
|
||||
reset_size -> setToolTip(QObject::tr("R\351initialiser les dimensions"));
|
||||
|
||||
preview = new QPushButton();
|
||||
preview -> setIcon(QIcon(":/ico/viewmag.png"));
|
||||
preview -> setIcon(QIcon(":/ico/zoom-original.png"));
|
||||
preview -> setToolTip(QObject::tr("Aper\347u"));
|
||||
}
|
||||
|
||||
|
||||
@@ -26,8 +26,8 @@ OrientationSetWidget::OrientationSetWidget(QWidget *parent) : QWidget(parent) {
|
||||
default_radios = new QButtonGroup(this);
|
||||
|
||||
#define MK_COMBO_BOX(a) a##_orientation = new QComboBox();\
|
||||
a##_orientation -> addItem(QIcon(":/ico/allowed.png"), tr("Possible"), "y");\
|
||||
a##_orientation -> addItem(QIcon(":/ico/forbidden.png"),tr("Impossible"), "n");\
|
||||
a##_orientation -> addItem(QIcon(":/ico/user-online.png"), tr("Possible"), "y");\
|
||||
a##_orientation -> addItem(QIcon(":/ico/user-busy.png"),tr("Impossible"), "n");\
|
||||
connect(a##_orientation, SIGNAL(activated(int)), this, SLOT(updateOrientationSet()));\
|
||||
a##_default = new QRadioButton();
|
||||
|
||||
|
||||
@@ -828,15 +828,15 @@ void QETApp::initSystemTray() {
|
||||
// initialisation des menus de l'icone dans le systray
|
||||
menu_systray = new QMenu(tr("QElectroTech", "systray menu title"));
|
||||
|
||||
quitter_qet = new QAction(QIcon(":/ico/exit.png"), tr("&Quitter"), this);
|
||||
quitter_qet = new QAction(QIcon(":/ico/application-exit.png"), tr("&Quitter"), this);
|
||||
reduce_appli = new QAction(QIcon(":/ico/masquer.png"), tr("&Masquer"), this);
|
||||
restore_appli = new QAction(QIcon(":/ico/restaurer.png"), tr("&Restaurer"), this);
|
||||
reduce_diagrams = new QAction(QIcon(":/ico/masquer.png"), tr("&Masquer tous les \351diteurs de sch\351ma"), this);
|
||||
restore_diagrams = new QAction(QIcon(":/ico/restaurer.png"), tr("&Restaurer tous les \351diteurs de sch\351ma"), this);
|
||||
reduce_elements = new QAction(QIcon(":/ico/masquer.png"), tr("&Masquer tous les \351diteurs d'\351l\351ment"), this);
|
||||
restore_elements = new QAction(QIcon(":/ico/restaurer.png"), tr("&Restaurer tous les \351diteurs d'\351l\351ment"), this);
|
||||
new_diagram = new QAction(QIcon(":/ico/window_new.png"), tr("&Nouvel \351diteur de sch\351ma"), this);
|
||||
new_element = new QAction(QIcon(":/ico/window_new.png"), tr("&Nouvel \351diteur d'\351l\351ment"), this);
|
||||
new_diagram = new QAction(QIcon(":/ico/window-new.png"), tr("&Nouvel \351diteur de sch\351ma"), this);
|
||||
new_element = new QAction(QIcon(":/ico/window-new.png"), tr("&Nouvel \351diteur d'\351l\351ment"), this);
|
||||
|
||||
quitter_qet -> setStatusTip(tr("Ferme l'application QElectroTech"));
|
||||
reduce_appli -> setToolTip(tr("R\351duire QElectroTech dans le systray"));
|
||||
@@ -1002,22 +1002,22 @@ int QETStyle::styleHint(StyleHint hint, const QStyleOption *option, const QWidge
|
||||
QIcon QETStyle::standardIconImplementation(StandardPixmap standardIcon, const QStyleOption *option, const QWidget* widget) const {
|
||||
switch(standardIcon) {
|
||||
case QStyle::SP_DialogSaveButton:
|
||||
return(QIcon(":/ico/save.png"));
|
||||
return(QIcon(":/ico/document-save.png"));
|
||||
case QStyle::SP_DialogOpenButton:
|
||||
return(QIcon(":/ico/open.png"));
|
||||
return(QIcon(":/ico/document-open.png"));
|
||||
case QStyle::SP_DialogCancelButton:
|
||||
return(QIcon(":/ico/button_cancel.png"));
|
||||
return(QIcon(":/ico/dialog-cancel.png"));
|
||||
case QStyle::SP_DialogOkButton:
|
||||
case QStyle::SP_DialogApplyButton:
|
||||
return(QIcon(":/ico/button_ok.png"));
|
||||
return(QIcon(":/ico/dialog-ok.png"));
|
||||
case QStyle::SP_DialogCloseButton:
|
||||
return(QIcon(":/ico/fileclose.png"));
|
||||
return(QIcon(":/ico/document-close.png"));
|
||||
case QStyle::SP_DialogYesButton:
|
||||
return(QIcon(":/ico/allowed.png"));
|
||||
return(QIcon(":/ico/user-online.png"));
|
||||
case QStyle::SP_DialogNoButton:
|
||||
return(QIcon(":/ico/forbidden.png"));
|
||||
return(QIcon(":/ico/user-busy.png"));
|
||||
case QStyle::SP_DialogResetButton:
|
||||
return(QIcon(":/ico/undo.png"));
|
||||
return(QIcon(":/ico/edit-undo.png"));
|
||||
case QStyle::SP_DialogHelpButton:
|
||||
case QStyle::SP_DialogDiscardButton:
|
||||
return(QIcon());
|
||||
|
||||
@@ -190,66 +190,66 @@ void QETDiagramEditor::aboutQET() {
|
||||
*/
|
||||
void QETDiagramEditor::actions() {
|
||||
// icones et labels
|
||||
new_file = new QAction(QIcon(":/ico/new.png"), tr("&Nouveau"), this);
|
||||
open_file = new QAction(QIcon(":/ico/open.png"), tr("&Ouvrir"), this);
|
||||
close_file = new QAction(QIcon(":/ico/fileclose.png"), tr("&Fermer"), this);
|
||||
save_file = new QAction(QIcon(":/ico/save.png"), tr("&Enregistrer"), this);
|
||||
save_file_sous = new QAction(QIcon(":/ico/saveas.png"), tr("Enregistrer sous"), this);
|
||||
save_all = new QAction(QIcon(":/ico/save_all.png"), tr("&Enregistrer tous les sch\351mas"), this);
|
||||
import_diagram = new QAction(QIcon(":/ico/import.png"), tr("&Importer"), this);
|
||||
export_diagram = new QAction(QIcon(":/ico/export.png"), tr("E&xporter"), this);
|
||||
print = new QAction(QIcon(":/ico/print.png"), tr("Imprimer"), this);
|
||||
quit_editor = new QAction(QIcon(":/ico/exit.png"), tr("&Quitter"), this);
|
||||
new_file = new QAction(QIcon(":/ico/document-new.png"), tr("&Nouveau"), this);
|
||||
open_file = new QAction(QIcon(":/ico/document-open.png"), tr("&Ouvrir"), this);
|
||||
close_file = new QAction(QIcon(":/ico/document-close.png"), tr("&Fermer"), this);
|
||||
save_file = new QAction(QIcon(":/ico/document-save.png"), tr("&Enregistrer"), this);
|
||||
save_file_sous = new QAction(QIcon(":/ico/document-save-as.png"), tr("Enregistrer sous"), this);
|
||||
save_all = new QAction(QIcon(":/ico/document-save-all.png"), tr("&Enregistrer tous les sch\351mas"), this);
|
||||
import_diagram = new QAction(QIcon(":/ico/document-import.png"), tr("&Importer"), this);
|
||||
export_diagram = new QAction(QIcon(":/ico/document-export.png"), tr("E&xporter"), this);
|
||||
print = new QAction(QIcon(":/ico/document-print.png"), tr("Imprimer"), this);
|
||||
quit_editor = new QAction(QIcon(":/ico/application-exit.png"), tr("&Quitter"), this);
|
||||
|
||||
undo = undo_group.createUndoAction(this, tr("Annuler"));
|
||||
undo -> setIcon(QIcon(":/ico/undo.png"));
|
||||
undo -> setIcon(QIcon(":/ico/edit-undo.png"));
|
||||
redo = undo_group.createRedoAction(this, tr("Refaire"));
|
||||
redo -> setIcon(QIcon(":/ico/redo.png"));
|
||||
cut = new QAction(QIcon(":/ico/cut.png"), tr("Co&uper"), this);
|
||||
copy = new QAction(QIcon(":/ico/copy.png"), tr("Cop&ier"), this);
|
||||
paste = new QAction(QIcon(":/ico/paste.png"), tr("C&oller"), this);
|
||||
select_all = new QAction( tr("Tout s\351lectionner"), this);
|
||||
select_nothing = new QAction( tr("D\351s\351lectionner tout"), this);
|
||||
select_invert = new QAction( tr("Inverser la s\351lection"), this);
|
||||
delete_selection = new QAction(QIcon(":/ico/delete.png"), tr("Supprimer"), this);
|
||||
rotate_selection = new QAction(QIcon(":/ico/pivoter.png"), tr("Pivoter"), this);
|
||||
conductor_prop = new QAction(QIcon(":/ico/conductor.png"), tr("Propri\351t\351s du conducteur"), this);
|
||||
conductor_reset = new QAction(QIcon(":/ico/conductor2.png"), tr("R\351initialiser les conducteurs"), this);
|
||||
conductor_default = new QAction(QIcon(":/ico/conductor3.png"), tr("Conducteurs par d\351faut"), this);
|
||||
infos_diagram = new QAction(QIcon(":/ico/info.png"), tr("Propri\351t\351s du sch\351ma"), this);
|
||||
add_text = new QAction(QIcon(":/ico/textfield.png"), tr("Ajouter un champ de texte"), this);
|
||||
add_column = new QAction(QIcon(":/ico/add_col.png"), tr("Ajouter une colonne"), this);
|
||||
remove_column = new QAction(QIcon(":/ico/remove_col.png"), tr("Enlever une colonne"), this);
|
||||
add_row = new QAction(QIcon(":/ico/add_row.png"), tr("Ajouter une ligne"), this);
|
||||
remove_row = new QAction(QIcon(":/ico/remove_row.png"), tr("Enlever une ligne"), this);
|
||||
redo -> setIcon(QIcon(":/ico/edit-redo.png"));
|
||||
cut = new QAction(QIcon(":/ico/edit-cut.png"), tr("Co&uper"), this);
|
||||
copy = new QAction(QIcon(":/ico/edit-copy.png"), tr("Cop&ier"), this);
|
||||
paste = new QAction(QIcon(":/ico/edit-paste.png"), tr("C&oller"), this);
|
||||
select_all = new QAction(QIcon(":/ico/edit-select-all.png"), tr("Tout s\351lectionner"), this);
|
||||
select_nothing = new QAction( tr("D\351s\351lectionner tout"), this);
|
||||
select_invert = new QAction( tr("Inverser la s\351lection"), this);
|
||||
delete_selection = new QAction(QIcon(":/ico/edit-delete.png"), tr("Supprimer"), this);
|
||||
rotate_selection = new QAction(QIcon(":/ico/object-rotate-right.png"), tr("Pivoter"), this);
|
||||
conductor_prop = new QAction(QIcon(":/ico/conductor.png"), tr("Propri\351t\351s du conducteur"), this);
|
||||
conductor_reset = new QAction(QIcon(":/ico/conductor2.png"), tr("R\351initialiser les conducteurs"), this);
|
||||
conductor_default = new QAction(QIcon(":/ico/conductor3.png"), tr("Conducteurs par d\351faut"), this);
|
||||
infos_diagram = new QAction(QIcon(":/ico/dialog-information.png"), tr("Propri\351t\351s du sch\351ma"), this);
|
||||
add_text = new QAction(QIcon(":/ico/textfield.png"), tr("Ajouter un champ de texte"), this);
|
||||
add_column = new QAction(QIcon(":/ico/add_col.png"), tr("Ajouter une colonne"), this);
|
||||
remove_column = new QAction(QIcon(":/ico/remove_col.png"), tr("Enlever une colonne"), this);
|
||||
add_row = new QAction(QIcon(":/ico/add_row.png"), tr("Ajouter une ligne"), this);
|
||||
remove_row = new QAction(QIcon(":/ico/remove_row.png"), tr("Enlever une ligne"), this);
|
||||
|
||||
prj_edit_prop = new QAction(QIcon(":/ico/info.png"), tr("Propri\351t\351s du projet"), this);
|
||||
prj_add_diagram = new QAction(QIcon(":/ico/diagram_add.png"),tr("Ajouter un sch\351ma"), this);
|
||||
prj_del_diagram = new QAction(QIcon(":/ico/diagram_del.png"),tr("Supprimer le sch\351ma"), this);
|
||||
prj_clean = new QAction( tr("Nettoyer le projet"), this);
|
||||
prj_edit_prop = new QAction(QIcon(":/ico/dialog-information.png"), tr("Propri\351t\351s du projet"), this);
|
||||
prj_add_diagram = new QAction(QIcon(":/ico/diagram_add.png"), tr("Ajouter un sch\351ma"), this);
|
||||
prj_del_diagram = new QAction(QIcon(":/ico/diagram_del.png"), tr("Supprimer le sch\351ma"), this);
|
||||
prj_clean = new QAction(QIcon(":/ico/edit-clear.png"), tr("Nettoyer le projet"), this);
|
||||
|
||||
zoom_in = new QAction(QIcon(":/ico/viewmag+.png"), tr("Zoom avant"), this);
|
||||
zoom_out = new QAction(QIcon(":/ico/viewmag-.png"), tr("Zoom arri\350re"), this);
|
||||
zoom_fit = new QAction(QIcon(":/ico/viewmagfit.png"), tr("Zoom adapt\351"), this);
|
||||
zoom_reset = new QAction(QIcon(":/ico/viewmag.png"), tr("Pas de zoom"), this);
|
||||
zoom_in = new QAction(QIcon(":/ico/zoom-in.png"), tr("Zoom avant"), this);
|
||||
zoom_out = new QAction(QIcon(":/ico/zoom-out.png"), tr("Zoom arri\350re"), this);
|
||||
zoom_fit = new QAction(QIcon(":/ico/zoom-fit-best.png"), tr("Zoom adapt\351"), this);
|
||||
zoom_reset = new QAction(QIcon(":/ico/zoom-original.png"), tr("Pas de zoom"), this);
|
||||
|
||||
tabbed_view_mode = new QAction( tr("en utilisant des onglets"), this);
|
||||
windowed_view_mode= new QAction( tr("en utilisant des fen\352tres"), this);
|
||||
tabbed_view_mode = new QAction( tr("en utilisant des onglets"), this);
|
||||
windowed_view_mode= new QAction( tr("en utilisant des fen\352tres"), this);
|
||||
|
||||
mode_selection = new QAction(QIcon(":/ico/select.png"), tr("Mode Selection"), this);
|
||||
mode_visualise = new QAction(QIcon(":/ico/move.png"), tr("Mode Visualisation"), this);
|
||||
mode_selection = new QAction(QIcon(":/ico/select.png"), tr("Mode Selection"), this);
|
||||
mode_visualise = new QAction(QIcon(":/ico/move.png"), tr("Mode Visualisation"), this);
|
||||
|
||||
fullscreen = new QAction(this);
|
||||
slot_updateFullScreenAction();
|
||||
configure = new QAction(QIcon(":/ico/configure.png"), tr("&Configurer QElectroTech"), this);
|
||||
configure = new QAction(QIcon(":/ico/configure.png"), tr("&Configurer QElectroTech"), this);
|
||||
|
||||
tile_window = new QAction( tr("&Mosa\357que"), this);
|
||||
cascade_window = new QAction( tr("&Cascade"), this);
|
||||
next_window = new QAction( tr("Projet suivant"), this);
|
||||
prev_window = new QAction( tr("Projet pr\351c\351dent"), this);
|
||||
tile_window = new QAction( tr("&Mosa\357que"), this);
|
||||
cascade_window = new QAction( tr("&Cascade"), this);
|
||||
next_window = new QAction( tr("Projet suivant"), this);
|
||||
prev_window = new QAction( tr("Projet pr\351c\351dent"), this);
|
||||
|
||||
about_qet = new QAction(QIcon(":/ico/qet.png"), tr("\300 &propos de QElectroTech"), this);
|
||||
about_qt = new QAction(QIcon(":/ico/qt.png"), tr("\300 propos de &Qt"), this);
|
||||
about_qet = new QAction(QIcon(":/ico/qet.png"), tr("\300 &propos de QElectroTech"), this);
|
||||
about_qt = new QAction(QIcon(":/ico/qt.png"), tr("\300 propos de &Qt"), this);
|
||||
|
||||
// raccourcis clavier
|
||||
new_file -> setShortcut(QKeySequence::New);
|
||||
@@ -503,7 +503,7 @@ void QETDiagramEditor::menus() {
|
||||
QMenu *display_toolbars = createPopupMenu();
|
||||
display_toolbars -> setTearOffEnabled(true);
|
||||
display_toolbars -> setTitle(tr("Afficher"));
|
||||
display_toolbars -> setIcon(QIcon(":/ico/toolbars.png"));
|
||||
display_toolbars -> setIcon(QIcon(":/ico/configure-toolbars.png"));
|
||||
main_bar -> toggleViewAction() -> setStatusTip(tr("Affiche ou non la barre d'outils principale"));
|
||||
view_bar -> toggleViewAction() -> setStatusTip(tr("Affiche ou non la barre d'outils Affichage"));
|
||||
diagram_bar -> toggleViewAction() -> setStatusTip(tr("Affiche ou non la barre d'outils Sch\351ma"));
|
||||
@@ -1162,11 +1162,11 @@ void QETDiagramEditor::slot_updateComplexActions() {
|
||||
void QETDiagramEditor::slot_updateFullScreenAction() {
|
||||
if (windowState() & Qt::WindowFullScreen) {
|
||||
fullscreen -> setText(tr("Sortir du &mode plein \351cran"));
|
||||
fullscreen -> setIcon(QIcon(":/ico/sortir_fs.png"));
|
||||
fullscreen -> setIcon(QIcon(":/ico/view-restore.png"));
|
||||
fullscreen -> setStatusTip(tr("Affiche QElectroTech en mode fen\352tr\351", "status bar tip"));
|
||||
} else {
|
||||
fullscreen -> setText(tr("Passer en &mode plein \351cran"));
|
||||
fullscreen -> setIcon(QIcon(":/ico/entrer_fs.png"));
|
||||
fullscreen -> setIcon(QIcon(":/ico/view-fullscreen.png"));
|
||||
fullscreen -> setStatusTip(tr("Affiche QElectroTech en mode plein \351cran", "status bar tip"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,23 +124,23 @@ void QETPrintPreviewDialog::build() {
|
||||
preview_ = new QPrintPreviewWidget(printer_);
|
||||
diagrams_label_ = new QLabel(tr("Sch\351mas \340 imprimer\240:"));
|
||||
diagrams_list_ = new DiagramsChooser(project_);
|
||||
toggle_diagrams_list_ = new QAction(QIcon(":/ico/diagram.png"), tr("Cacher la liste des sch\351mas"), this);
|
||||
toggle_print_options_ = new QAction(QIcon(":/ico/configure.png"), tr("Cacher les options d'impression"), this);
|
||||
adjust_width_ = new QAction(QIcon(":/ico/view_fit_width.png"), tr("Ajuster la largeur"), this);
|
||||
adjust_page_ = new QAction(QIcon(":/ico/view_fit_window.png"), tr("Ajuster la page"), this);
|
||||
zoom_out_ = new QAction(QIcon(":/ico/viewmag-.png"), tr("Zoom arri\350re"), this);
|
||||
toggle_diagrams_list_ = new QAction(QIcon(":/ico/diagram.png"), tr("Cacher la liste des sch\351mas"), this);
|
||||
toggle_print_options_ = new QAction(QIcon(":/ico/configure.png"), tr("Cacher les options d'impression"), this);
|
||||
adjust_width_ = new QAction(QIcon(":/ico/view_fit_width.png"), tr("Ajuster la largeur"), this);
|
||||
adjust_page_ = new QAction(QIcon(":/ico/view_fit_window.png"), tr("Ajuster la page"), this);
|
||||
zoom_out_ = new QAction(QIcon(":/ico/zoom-out.png"), tr("Zoom arri\350re"), this);
|
||||
zoom_box_ = new QComboBox(this);
|
||||
zoom_in_ = new QAction(QIcon(":/ico/viewmag+.png"), tr("Zoom avant"), this);
|
||||
landscape_ = new QAction(QIcon(":/ico/landscape.png"), tr("Paysage"), this);
|
||||
portrait_ = new QAction(QIcon(":/ico/portrait.png"), tr("Portrait"), this);
|
||||
first_page_ = new QAction(QIcon(":/ico/2leftarrow.png"), tr("Premi\350re page"), this);
|
||||
previous_page_ = new QAction(QIcon(":/ico/1leftarrow.png"), tr("Page pr\351c\351dente"), this);
|
||||
next_page_ = new QAction(QIcon(":/ico/1rightarrow.png"), tr("Page suivante"), this);
|
||||
last_page_ = new QAction(QIcon(":/ico/2rightarrow.png"), tr("Derni\350re page"), this);
|
||||
single_page_view_ = new QAction(QIcon(":/ico/single_page.png"), tr("Afficher une seule page"), this);
|
||||
facing_pages_view_ = new QAction(QIcon(":/ico/two_pages.png"), tr("Afficher deux pages"), this);
|
||||
all_pages_view_ = new QAction(QIcon(":/ico/all_pages.png"), tr("Afficher un aper\347u de toutes les pages"), this);
|
||||
page_setup_ = new QAction(QIcon(":/ico/confprint.png"), tr("Mise en page"), this);
|
||||
zoom_in_ = new QAction(QIcon(":/ico/zoom-in.png"), tr("Zoom avant"), this);
|
||||
landscape_ = new QAction(QIcon(":/ico/landscape.png"), tr("Paysage"), this);
|
||||
portrait_ = new QAction(QIcon(":/ico/portrait.png"), tr("Portrait"), this);
|
||||
first_page_ = new QAction(QIcon(":/ico/arrow-left-double.png"), tr("Premi\350re page"), this);
|
||||
previous_page_ = new QAction(QIcon(":/ico/arrow-left.png"), tr("Page pr\351c\351dente"), this);
|
||||
next_page_ = new QAction(QIcon(":/ico/arrow-right.png"), tr("Page suivante"), this);
|
||||
last_page_ = new QAction(QIcon(":/ico/arrow-right-double.png"), tr("Derni\350re page"), this);
|
||||
single_page_view_ = new QAction(QIcon(":/ico/single_page.png"), tr("Afficher une seule page"), this);
|
||||
facing_pages_view_ = new QAction(QIcon(":/ico/two_pages.png"), tr("Afficher deux pages"), this);
|
||||
all_pages_view_ = new QAction(QIcon(":/ico/all_pages.png"), tr("Afficher un aper\347u de toutes les pages"), this);
|
||||
page_setup_ = new QAction(QIcon(":/ico/document-print-frame.png"), tr("Mise en page"), this);
|
||||
|
||||
toggle_diagrams_list_ -> setCheckable(true);
|
||||
toggle_diagrams_list_ -> setChecked(true);
|
||||
@@ -205,7 +205,7 @@ void QETPrintPreviewDialog::build() {
|
||||
fit_diagram_to_page_ -> setChecked(true);
|
||||
|
||||
buttons_ = new QDialogButtonBox();
|
||||
buttons_ -> addButton(new QPushButton(QIcon(":/ico/print.png"), tr("Imprimer")), QDialogButtonBox::AcceptRole);
|
||||
buttons_ -> addButton(new QPushButton(QIcon(":/ico/document-print.png"), tr("Imprimer")), QDialogButtonBox::AcceptRole);
|
||||
buttons_ -> addButton(QDialogButtonBox::Cancel);
|
||||
|
||||
connect(toggle_diagrams_list_, SIGNAL(toggled(bool)), this, SLOT(setDiagramsListVisible(bool)));
|
||||
|
||||
@@ -141,7 +141,7 @@ void RecentFiles::buildMenu() {
|
||||
// reinitialise le menu
|
||||
if (!menu_) {
|
||||
menu_ = new QMenu(tr("&R\351cemment ouvert(s)"));
|
||||
menu_ -> setIcon(QIcon(":/ico/open.png"));
|
||||
menu_ -> setIcon(QIcon(":/ico/document-open-recent.png"));
|
||||
} else {
|
||||
menu_ -> clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user