Mercurial > hg > easyhg
view hgexpwidget.h @ 26:ee34bd26751e
Having some problems getting ip addr on win7. Debug output added.
author | Jari Korhonen <jtkorhonen@gmail.com> |
---|---|
date | Thu, 20 May 2010 22:56:44 +0300 |
parents | a9098eba2ee5 |
children | 45bfb8dc1faf |
line wrap: on
line source
#ifndef HGEXPWIDGET_H #define HGEXPWIDGET_H //** Copyright (C) Jari Korhonen, 2010 (under lgpl) #include <QtGui> #include <QtCore> #include "common.h" #define NUM_STAT_FILE_TYPES 7 class HgExpWidget: public QTabWidget { Q_OBJECT public: HgExpWidget(QWidget *parent, QString remoteRepo, QString workFolderPath, unsigned char viewFileTypesBits = DEFAULT_HG_STAT_BITS); void updateWorkFolderFileList(QString fileList); void updateLocalRepoHeadsList(QString headList); void updateLocalRepoHgLogList(QString hgLogList); void updateLocalRepoParentsList(QString parentsList); void setWorkFolderAndRepoNames(QString workFolderPath, QString remoteRepoPath); QString getCurrentFileListLine(); void getHistoryDiffRevisions(QString& revA, QString& revB); void getUpdateToRevRevision(QString& rev); void clearLists(); void enableDisableOtherTabs(); QString getStatFlags(void); unsigned char getFileTypesBits(); QListWidget *workFolderFileList; QListWidget *localRepoHeadsList; QListWidget *localRepoHgLogList; signals: void workFolderViewTypesChanged(); private: QGroupBox *grpRemoteRepo; QWidget *workPageWidget; QWidget *historyPageWidget; QWidget *headsPageWidget; QGroupBox *grpLocalRepo; QVBoxLayout *mainLayout; QVBoxLayout *localRepoLayout; QVBoxLayout *parentsLayout; QListWidget *localRepoHgParentsList; QLabel *parentsLabel; QGroupBox *grpWorkFolder; QHBoxLayout *workFolderLayout; QGroupBox *grpViewFileTypes; QVBoxLayout *fileTypesLayout; QCheckBox *chkViewFileTypes[NUM_STAT_FILE_TYPES]; QVBoxLayout *historyLayout; QVBoxLayout *headsLayout; QString findRev(QString itemText, QString& smallRev); QStringList splitChangeSets(QString chgSetsStr); int findLineStart(int nowIndex, QString chgSetsStr); }; #endif // HGEXPWIDGET_H