~ubuntu-branches/debian/sid/texstudio/sid

« back to all changes in this revision

Viewing changes to texmaker.h

  • Committer: Package Import Robot
  • Author(s): Tom Jampen
  • Date: 2015-09-13 21:19:38 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20150913211938-r3ro0cmgzo7w6frp
Tags: 2.10.0+debian-1
* Merging upstream version 2.10.0+debian.
* Updating 01-use-libhunspell.patch.
* Regenerating 03-disable-auto-update.patch.
* Updating 04-no-qt-translations.patch.
* Removing 05-fix-mercurial-revision.patch, included upstream.
* Updating copyright file to match source code changes.
* Updating rules file to reflect new changelog location.
* Removing no longer used lintian-override.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include "textanalysis.h"
35
35
#include "toolwidgets.h"
36
36
#include "txstabwidget.h"
 
37
#include "searchresultwidget.h"
37
38
#include "unicodeinsertion.h"
38
39
#include "tablemanipulation.h"
39
40
#include "PDFDocument.h"
81
82
    Q_INVOKABLE QString getRelativeFileName(const QString & file, QString basepath, bool keepSuffix=false); //provide function for scripts
82
83
        QByteArray windowstate;
83
84
        bool tobemaximized,tobefullscreen;
84
 
 
 
85
        
85
86
public slots:
86
87
    LatexEditorView* load(const QString &f , bool asProject = false, bool hidden = false, bool recheck=true,bool dontAsk=false);
87
88
        void executeCommandLine(const QStringList& args, bool realCmdLine);
123
124
        void createStatusBar();
124
125
        bool ActivateEditorForFile(QString f, bool checkTemporaryNames = false, bool setFocus = true);
125
126
        bool saveAllFilesForClosing(); // checks for unsaved files and asks the user if they should be saved
 
127
        bool saveFilesForClosing(const QList<LatexEditorView*>& editors); // checks for unsaved files and asks the user if they should be saved
126
128
        void closeAllFiles();
127
 
        bool canCloseNow(); //asks the user and close all files, and prepares to exit txs
 
129
        bool canCloseNow(bool saveSettings=true); //asks the user and close all files, and prepares to exit txs
128
130
        void closeEvent(QCloseEvent *e);
129
131
        
130
132
        void updateUserMacros(bool updateMenu = true);
160
162
        QActionGroup *biblatexEntryActions;
161
163
        QActionGroup *bibTypeActions;
162
164
        QActionGroup *highlightLanguageActions;
163
 
 
 
165
        QActionGroup *actgroupRootDocMode;
 
166
        QAction *actRootDocAutomatic;
 
167
        QAction *actRootDocExplicit;
 
168
        QAction *actRootDocSetExplicit;
 
169
        
164
170
        //toolbars
165
 
        QAction *ToggleAct, *ToggleRememberAct;
 
171
        QAction *ToggleRememberAct;
166
172
        QAction *actSave, *actUndo, *actRedo;
167
173
        
168
174
        QLabel *statusLabelMode, *statusLabelProcess;
243
249
        void fileOpenRecent();
244
250
        void fileOpenAllRecent();
245
251
        void fileRecentList();
 
252
        void viewDocumentListHidden();
246
253
        void fileDocumentOpenFromChoosen(const QString& doc, int duplicate, int lineNr, int column);
247
254
        void viewDocumentList();
248
255
        void viewDocumentOpenFromChoosen(const QString& doc, int duplicate, int lineNr, int column);
285
292
        void declareConflictResolved();
286
293
protected slots:        
287
294
    void openExternalFile();
288
 
        void openExternalFile(const QString& name,const QString& defaultExt="tex",LatexDocument *doc=0); // signaled by latexViewer to open specific file
 
295
        void openExternalFile(QString name, const QString& defaultExt="tex", LatexDocument *doc=0); // signaled by latexViewer to open specific file
289
296
        
290
297
        void editUndo();
291
298
        void editRedo();
292
299
        void editDebugUndoStack();
293
300
        void editCopy();
294
301
        void editPaste();
 
302
        void editPasteImage(QImage image);
295
303
        void editSectionCopy();
296
304
        void editSectionCopy(int startingLine, int endLine);
297
305
        void editSectionCut();
312
320
        void editUnIndentSection();
313
321
        void editHardLineBreak();
314
322
        void editHardLineBreakRepeat();
315
 
        void editEraseLine();
316
 
        void editEraseEndLine();
 
323
        void editDeleteLine();
 
324
        void editDeleteToEndOfLine();
 
325
        void editDeleteFromStartOfLine();
317
326
        void editMoveLineUp();
318
327
        void editMoveLineDown();
319
328
        void editDuplicateLine();
327
336
        void editInsertRefToNextLabel(const QString &refCmd="\\ref", bool backward=false);
328
337
        void editInsertRefToPrevLabel(const QString &refCmd="\\ref");
329
338
        void editFindGlobal();
330
 
    void updateFindGlobal(int scope);
 
339
        void runSearch(SearchQuery *query);
 
340
        void findLabelUsages();
 
341
        void findLabelUsages(LatexDocument *doc, const QString &labelText);
 
342
        SearchResultWidget * searchResultWidget();
331
343
        
332
344
        void findWordRepetions();
333
345
        void findNextWordRepetion();
335
347
        void StructureContextMenu(const QPoint& point);
336
348
        void structureContextMenuCloseDocument();
337
349
        void structureContextMenuSwitchMasterDocument();
 
350
        void structureContextMenuOpenAllRelatedDocuments();
 
351
        void structureContextMenuCloseAllRelatedDocuments();
338
352
        void structureContextMenuExpandSubitems();
339
353
        void structureContextMenuCollapseSubitems();
340
354
        void structureContextMenuExpandAllDocuments();
354
368
private slots:  
355
369
        void ReadSettings(bool reread=false);
356
370
        void SaveSettings(const QString& configName="");
 
371
        void restoreDefaultSettings();
357
372
        
358
373
protected slots:        
359
374
        void showMarkTooltipForLogMessage(QList<int> errors);
387
402
        void callToolButtonAction();
388
403
        void InsertFromAction();
389
404
        void InsertBib();
390
 
        void InsertStruct();
391
 
    void CloseEnv();
 
405
        void CloseEnv();
392
406
        
393
407
        void InsertBibEntryFromAction();
394
408
        void InsertBibEntry(const QString& id="");
430
444
    void searchExtendToggled(bool toggled);
431
445
 
432
446
    void changeIconSize(int value);
433
 
    void changeCentralIconSize(int value);
434
 
    void changeSymbolSize(int value, bool changePanel=true);
 
447
    void changeSecondaryIconSize(int value);
 
448
    void changeSymbolGridIconSize(int value, bool changePanel=true);
435
449
 
436
450
public slots:
437
451
        void connectSubCommand(ProcessX* p, bool showStdoutLocallyDefault);
447
461
        bool runCommand(const QString& commandline, QString* buffer = 0, QTextCodec *codecForBuffer = 0);
448
462
protected slots:        
449
463
        void processNotification(const QString& message);
 
464
        void openTerminal();
450
465
        void CleanAll();
 
466
        void checkShortcutChangeNotification(QAction *act);
451
467
        void commandFromAction();  //calls a command given by sender.data, doesn't wait
452
468
        
453
469
        void WebPublish();
474
490
        void HelpAbout();
475
491
        
476
492
        void GeneralOptions();
477
 
        void ToggleMode();
 
493
        void setAutomaticRootDetection();
 
494
        void setExplicitRootDocument(LatexDocument * doc);
 
495
        void setCurrentDocAsExplicitRoot();
478
496
        
479
497
        void gotoNextDocument();
480
498
        void gotoPrevDocument();
540
558
        void fileInConflict();
541
559
        void fileAutoReloading(QString fname);
542
560
        
543
 
        void jumpToSearch(QDocument* doc,int lineNumber);
 
561
        void jumpToSearchResult(QDocument* doc, int lineNumber, const SearchQuery *query);
544
562
        
545
563
        void cursorPositionChanged();
546
564
        void syncPDFViewer(QDocumentCursor cur, bool inForeground = true);
653
671
        Q_INVOKABLE QString clipboardText(const QClipboard::Mode& mode = QClipboard::Clipboard) const;
654
672
        Q_INVOKABLE void setClipboardText(const QString& text, const QClipboard::Mode& mode = QClipboard::Clipboard);
655
673
        Q_INVOKABLE int getVersion() const;
 
674
        Q_INVOKABLE void simulateKeyPress(const QString &shortcut);
656
675
        
657
676
        static void recoverFromCrash();
658
677